/* ==========================================================================
   Fumiyo Yoshikawa — Portfolio Website
   Stylesheet (shared across all pages)
   ========================================================================== */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf7f0;
  --bg-soft: #f3eee2;
  --text: #2d2a26;
  --text-soft: #6b6358;
  --text-muted: #8a8174;
  --accent: #a63a2c;     /* seal red */
  --gold: #b08d57;
  --line: #e0d9c8;
  --line-strong: #c8bfa9;
  --shadow-soft: 0 2px 24px rgba(45, 42, 38, 0.06);
  --shadow-mid: 0 4px 28px rgba(45, 42, 38, 0.10);
  --shadow-strong: 0 8px 40px rgba(45, 42, 38, 0.16);
  --max-w: 1240px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }

.ja { font-family: 'Noto Serif JP', serif; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(250, 247, 240, 0.92);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.brand .ja-tag {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-left: 0.6rem;
}

.nav { display: flex; gap: 2rem; align-items: center; }
.nav a {
  font-family: 'Helvetica', 'Arial', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.nav a:hover, .nav a.active { color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; gap: 1rem; position: absolute; top: 100%; right: 0; background: var(--bg); padding: 1.5rem 2rem; border: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; font-size: 1.4rem; color: var(--text); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-soft);
}

.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
  filter: blur(2px);
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 0 2rem;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
}

.hero-meta {
  font-family: 'Helvetica', 'Arial', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* Hero with full image (alternative) */
.hero-full {
  height: 90vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 6rem;
}

.hero-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(250,247,240,0) 50%, rgba(250,247,240,0.95) 100%);
}

.hero-full .hero-content { position: relative; z-index: 2; }

/* ---------- Section heads ---------- */
.section-head {
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-head .ja {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.2em;
}

.section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-head .lead {
  margin-top: 1.25rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-soft);
  font-size: 1.1rem;
  font-style: italic;
}

/* ---------- Featured (Home) ---------- */
.featured-work {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.featured-work .img-wrap {
  background: #fff;
  padding: 1.5rem;
  box-shadow: var(--shadow-mid);
}

.featured-work h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.featured-work .subtitle {
  font-style: italic;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.featured-work p { margin-bottom: 1.25rem; color: var(--text); }

.cta {
  display: inline-block;
  font-family: 'Helvetica', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--accent);
  margin-top: 1rem;
}

.cta:hover { color: var(--text); border-color: var(--text); }

@media (max-width: 768px) {
  .featured-work { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Works grid ---------- */
.works-intro {
  background: var(--bg-soft);
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.work-card {
  display: block;
  text-align: center;
  transition: transform 0.4s ease;
}

.work-card:hover { transform: translateY(-4px); }

.work-card .img-wrap {
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.4s ease;
  margin-bottom: 1rem;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.work-card:hover .img-wrap { box-shadow: var(--shadow-mid); }

.work-card .img-wrap img {
  max-height: 100%;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.work-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.work-card .meta {
  font-family: 'Helvetica', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ---------- Series filter (Works page) ---------- */
.series-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin: 2rem 0 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.series-filter button {
  font-family: 'Helvetica', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.series-filter button:hover { color: var(--text); }
.series-filter button.active { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ---------- Series detail (Tsunagu, Vital Energy) ---------- */
.series-hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.series-hero .ja { color: var(--accent); margin-bottom: 0.5rem; letter-spacing: 0.2em; }

.series-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.series-hero .meta {
  font-family: 'Helvetica', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 2rem;
}

.series-intro {
  max-width: 720px;
  margin: 0 auto 4rem;
  font-size: 1.15rem;
  color: var(--text);
}

.series-intro p { margin-bottom: 1.25rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.about-portrait {
  background: #fff;
  padding: 1.5rem;
  box-shadow: var(--shadow-mid);
}

.about-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
  color: var(--text);
}

.about-text h3:first-child { margin-top: 0; }
.about-text p { margin-bottom: 1.25rem; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- Exhibitions list ---------- */
.cv-section {
  margin-bottom: 3.5rem;
}

.cv-section h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.cv-section .ja-sub {
  font-family: 'Noto Serif JP', serif;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.25rem;
}

.cv-list {
  list-style: none;
  padding: 0;
}

.cv-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 1rem;
  line-height: 1.5;
}

.cv-list li:last-child { border-bottom: 0; }

.cv-list .year {
  font-family: 'Helvetica', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.cv-list em {
  font-style: italic;
}

.cv-list .venue {
  display: block;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: 0.15rem;
}

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3rem;
}

.news-card {
  background: #fff;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
a.news-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}
a.news-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.news-card img {
  margin-bottom: 1.25rem;
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--bg-soft);
}

.news-card .label {
  font-family: 'Helvetica', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

.news-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  margin: 0.5rem 0 0.75rem;
}

.news-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* ---------- Contact ---------- */
.contact-info {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info .row {
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--line);
}

.contact-info .label {
  font-family: 'Helvetica', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.contact-info .value {
  font-size: 1.2rem;
  color: var(--text);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  text-align: center;
}

.site-footer .seal {
  color: var(--accent);
  font-size: 1.5rem;
  font-family: 'Noto Serif JP', serif;
  margin-bottom: 0.5rem;
}

.site-footer .copy {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.site-footer .credit {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Diptych (for Vital Energy and similar) ---------- */
.diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 3rem 0;
}

.diptych figure { text-align: center; }
.diptych .img-wrap {
  background: #fff;
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
}

.diptych figcaption .label {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.diptych figcaption h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
}

@media (max-width: 768px) {
  .diptych { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.spacer-1 { height: 2rem; }
.spacer-2 { height: 4rem; }

/* ---------- Lightbox ---------- */
#lb {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.94);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#lb.open {
  opacity: 1;
  visibility: visible;
}

#lb-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
}

#lb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 85vw;
  max-height: 78vh;
}

#lb-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

#lb-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
}
#lb-close:hover { color: #fff; }

#lb-prev,
#lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 3.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.75rem;
  transition: color 0.2s;
  z-index: 1;
}
#lb-prev { left: -4.5rem; }
#lb-next { right: -4.5rem; }
#lb-prev:hover,
#lb-next:hover { color: rgba(255, 255, 255, 0.9); }

#lb-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  padding: 0.75rem 0 0;
  gap: 1.5rem;
}

#lb-caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#lb-copy {
  font-family: 'Helvetica', 'Arial', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  #lb-prev { left: 0.25rem; font-size: 2.5rem; }
  #lb-next { right: 0.25rem; font-size: 2.5rem; }
  #lb-img-wrap { max-width: 92vw; }
  #lb-img { max-height: 70vh; }
}

/* ---------- Footer social links ---------- */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Helvetica', 'Arial', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--accent); }

.footer-social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .footer-social { flex-direction: column; align-items: center; gap: 1rem; }
}
