/* ─────────────────────────────────────────
   SEIHA PARK — styles.css
   Stack: plain HTML / CSS / JS
───────────────────────────────────────── */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Design tokens ── */
:root {
  --cream: #F6F1EA;
  --ink:   #1C1917;
  --mid:   #6B6560;
  --gold:  #9A7D5A;
  --rule:  #DDD7CE;
  --pad-x: 4rem;
  --pad-y: 7rem;
  --max-w: 1300px;
}

/* ── Base ── */
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.82;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

/* ── Section dividers ── */
.section-divider {
  border: none;
  border-top: 1px solid var(--rule);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(246, 241, 234, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease;
}
.nav.scrolled {
  border-bottom-color: var(--rule);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}
.nav-links a:hover { color: var(--gold); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero-outer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--pad-y) + 3.5rem) var(--pad-x) var(--pad-y);
}
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5rem;
}

/* Staggered load animations — text only, not photo */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: fadeUp 0.6s ease 0.2s both; }
.hero-name    { animation: fadeUp 0.6s ease 0.4s both; }
.hero-tagline { animation: fadeUp 0.6s ease 0.6s both; }
.hero-ctas    { animation: fadeUp 0.6s ease 0.8s both; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}
.eyebrow-rule {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.eyebrow-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.21em;
  text-transform: uppercase;
  color: var(--gold);
}

/* The signature moment — name lockup at 120% */
.hero-name {
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 0.93;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
  /* Optical sizing for very large display type */
  font-optical-sizing: auto;
}
.hero-name em {
  font-style: italic;
  color: var(--gold);
  display: block; /* own line */
}

.hero-tagline {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--mid);
  line-height: 1.78;
  max-width: 38ch;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.btn-primary {
  font-family: 'Jost', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 0.85rem 1.8rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.btn-primary:hover { color: var(--gold); border-color: var(--gold); }
.btn-ghost {
  font-family: 'Jost', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--mid);
}
.btn-ghost:hover { color: var(--gold); }

/* Photo block */
.hero-photo-wrap {
  position: relative;
  width: clamp(260px, 30vw, 420px);
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
  /* Gradient placeholder — visible only when headshot missing */
  background: linear-gradient(160deg, #E8E1D6, #D4C9B8);
}
/* Gold vertical accent line — one of the site's signature details */
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 8%;
  height: 84%;
  width: 1px;
  background: var(--gold);
  pointer-events: none;
}
.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(12%);
}

/* ══════════════════════════════════════════
   SECTION BASE
══════════════════════════════════════════ */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
}
.section-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
}
.section-aside {
  display: flex;
  flex-direction: column;
}
.section-num {
  font-family: 'Jost', sans-serif;
  font-size: 0.57rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.section-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.meta-list {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.meta-row dt {
  font-family: 'Jost', sans-serif;
  font-size: 0.57rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.2rem;
}
.meta-row dd {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.55;
}

.bio p + p { margin-top: 1.3em; }

/* ══════════════════════════════════════════
   PERFORMANCES
══════════════════════════════════════════ */
.year-group { margin-bottom: 2.75rem; }
.year-group:last-child { margin-bottom: 0; }

.year-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.57rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
}
.perf-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}
.perf-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.perf-works {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--mid);
}
.perf-venue {
  font-family: 'Jost', sans-serif;
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  color: var(--mid);
  text-align: right;
  flex-shrink: 0;
  max-width: 180px;
  line-height: 1.55;
}

/* ══════════════════════════════════════════
   BACKGROUND
══════════════════════════════════════════ */
.background-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
}
.bg-col-head {
  font-family: 'Jost', sans-serif;
  font-size: 0.57rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}
.edu-item {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}
.edu-institution {
  font-size: 1rem;
  font-weight: 400; /* bold for institution names per spec */
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.edu-degree {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--mid);
  margin-bottom: 0.25rem;
}
.edu-detail {
  font-family: 'Jost', sans-serif;
  font-size: 0.59rem;
  letter-spacing: 0.07em;
  color: var(--mid);
  line-height: 1.6;
}
.award-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}
.award-name {
  font-size: 0.9rem;
  color: var(--ink);
  flex: 1;
  line-height: 1.5;
}
.award-prize {
  font-family: 'Jost', sans-serif;
  font-size: 0.57rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   TEACHING
══════════════════════════════════════════ */
.pull-quote {
  border-left: 2px solid var(--gold);
  padding: 0.5rem 0 0.5rem 2rem;
  margin-bottom: 2.25rem;
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.6;
  font-weight: 300;
  color: var(--ink);
}

.teaching-body p + p { margin-top: 1.3em; }

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact-intro {
  font-style: italic;
  color: var(--mid);
  font-size: 1rem;
  margin-bottom: 2.25rem;
}
.contact-rows { border-top: 1px solid var(--rule); }
.contact-row {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.25s ease;
}
.contact-row:hover { color: var(--gold); }
.contact-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.61rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--mid);
  width: 88px;
  flex-shrink: 0;
  transition: color 0.25s ease;
}
.contact-row:hover .contact-label { color: var(--gold); }
.contact-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ink);
  transition: color 0.25s ease;
}
.contact-row:hover .contact-value { color: var(--gold); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem var(--pad-x) 3rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  font-family: 'Jost', sans-serif;
  font-size: 0.61rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rule);
}

/* ══════════════════════════════════════════
   RESPONSIVE — < 900px
══════════════════════════════════════════ */
@media (max-width: 900px) {
  :root {
    --pad-x: 2.5rem;
    --pad-y: 5rem;
  }

  /* Hero: single column, photo stacks above text */
  .hero-outer { padding-top: calc(var(--pad-y) + 2rem); }
  .hero {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .hero-photo-wrap {
    order: -1; /* photo first on mobile */
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .hero-photo-wrap::before { left: -0.75rem; }
  .hero-tagline { max-width: 100%; }

  /* Section grid: collapse to single column */
  .section-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Hide section numerals and labels */
  .section-num,
  .section-label { display: none; }

  /* Sections without metadata: hide aside entirely */
  .section-aside:not(:has(.meta-list)) { display: none; }

  /* About aside: show metadata, provide spacing below */
  #about .section-aside { margin-bottom: 2.25rem; }

  /* Background sub-grid: keep two columns until 600px */
  .background-grid { gap: 2.5rem; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — < 600px (background grid)
══════════════════════════════════════════ */
@media (max-width: 600px) {
  .background-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — < 540px
══════════════════════════════════════════ */
@media (max-width: 540px) {
  :root {
    --pad-x: 1.5rem;
    --pad-y: 4rem;
  }

  /* Nav: name only, no links */
  .nav-links { display: none; }

  /* Performance venue: stack below title */
  .perf-item { flex-direction: column; gap: 0.4rem; }
  .perf-venue { text-align: left; max-width: none; }

  /* Award items: stack */
  .award-item { flex-direction: column; gap: 0.15rem; align-items: flex-start; }
  .award-prize { text-align: left; white-space: normal; }
}
