:root {
  --navy-950: #06162c;
  --navy-900: #0a1f3f;
  --navy-800: #0f2d52;
  --navy-700: #1a4d7a;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --gold-300: #e2cc8a;
  --gold-400: #d4b76f;
  --gold-500: #c9a961;
  --white: #fffdf8;
  --muted: #c6d2e3;
  --border: rgba(201, 169, 97, 0.3);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  --display: "Playfair Display", "Noto Serif TC", Georgia, serif;
  --body: "Lora", "Noto Serif TC", Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--body);
  line-height: 1.82;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 169, 97, .11), transparent 23rem),
    radial-gradient(circle at 88% 28%, rgba(0, 136, 204, .09), transparent 28rem),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 42%, #071a35);
  content: "";
}
a { color: var(--gold-300); text-underline-offset: .2em; }
a:hover { color: #f2dfa6; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--gold-500);
  color: var(--navy-950);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(201, 169, 97, .2);
  background: rgba(6, 22, 44, .91);
  backdrop-filter: blur(15px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 2rem));
  min-height: 4.8rem;
  margin: auto;
}
.brand {
  color: var(--gold-400);
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 700;
  text-decoration: none;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: .45rem;
  padding: .55rem .7rem;
  background: transparent;
  color: var(--white);
  font: inherit;
}
.site-nav { display: flex; align-items: center; gap: .15rem; }
.site-nav a {
  border-radius: .4rem;
  padding: .5rem .65rem;
  color: var(--blue-100);
  font-size: .78rem;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="true"] { background: rgba(201, 169, 97, .12); color: var(--gold-300); }
.reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold-500);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(780px, calc(100vh - 4.8rem));
  place-items: center;
  overflow: hidden;
  padding: 7rem 1rem 5rem;
  text-align: center;
}
.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(201, 169, 97, .08) 50%, transparent 50.2%),
    repeating-linear-gradient(118deg, transparent 0 52px, rgba(201, 169, 97, .035) 53px, transparent 54px);
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}
.hero-content { position: relative; width: min(980px, 100%); }
.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--gold-400);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 900px;
  margin: 0 auto 1.15rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}
.hero h1 span { display: block; color: var(--gold-300); font-size: .47em; letter-spacing: .02em; margin-top: .45em; }
.lede { max-width: 720px; margin: auto; color: var(--blue-100); font-size: clamp(1rem, 2vw, 1.28rem); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 1.35rem;
  margin: 2.4rem 0;
  color: var(--muted);
  font-size: .84rem;
}
.hero-meta span + span::before { margin-right: 1.35rem; color: var(--gold-500); content: "◆"; font-size: .55rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-500);
  border-radius: .45rem;
  padding: .72rem 1.1rem;
  background: var(--gold-500);
  color: var(--navy-950);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: #ddc27d; color: var(--navy-950); }
.button.secondary { background: transparent; color: var(--gold-300); }

.page-shell { width: min(1180px, calc(100% - 2rem)); margin: auto; }
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: 5rem;
  align-items: start;
}
.article { min-width: 0; }
.section { padding: 5.5rem 0; border-top: 1px solid rgba(201, 169, 97, .18); }
.section:first-child { border-top: 0; }
.section-kicker { color: var(--gold-400); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.section h2 {
  margin: .3rem 0 1.2rem;
  color: var(--gold-300);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.15;
}
.section h3 { margin: 2.5rem 0 .8rem; color: var(--gold-300); font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2rem); }
.section-intro { max-width: 49rem; color: var(--blue-100); font-size: 1.08rem; }
.gold-rule { width: 5.5rem; height: 3px; margin: 1.4rem 0 2rem; background: linear-gradient(90deg, #a88434, var(--gold-300)); }

.toc {
  position: sticky;
  top: 7rem;
  margin-top: 5.5rem;
  border-left: 1px solid var(--border);
  padding-left: 1.1rem;
}
.toc p { margin: 0 0 .7rem; color: var(--gold-400); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.toc a { display: block; padding: .34rem 0; color: var(--muted); font-size: .78rem; text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--gold-300); }

.theme-grid, .card-grid, .movement-grid, .listening-grid { display: grid; gap: 1.2rem; }
.theme-grid { grid-template-columns: repeat(3, 1fr); margin-top: 2.5rem; }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.movement-grid { grid-template-columns: repeat(3, 1fr); margin-top: 1.5rem; }
.listening-grid { grid-template-columns: repeat(3, 1fr); margin-top: 1.8rem; }
.card, .theme-card, .movement, .listening-card {
  border: 1px solid var(--border);
  border-radius: .55rem;
  background: rgba(15, 45, 82, .7);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
}
.theme-card, .card, .movement { padding: 1.45rem; }
.theme-card strong { display: block; color: var(--gold-300); font-family: var(--display); font-size: 1.65rem; }
.theme-card span, .movement span { color: var(--blue-200); font-size: .82rem; }
.theme-card p, .movement p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.portrait-card { overflow: hidden; }
.portrait-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; filter: saturate(.82) contrast(1.04); }
.portrait-card .card-body { padding: 1.3rem; }
.portrait-card h3 { margin: 0; }
.portrait-card p { margin: .4rem 0 0; color: var(--muted); font-size: .88rem; }

.feature-image { margin: 2.2rem 0; overflow: hidden; border: 1px solid var(--border); border-radius: .6rem; background: var(--navy-800); box-shadow: var(--shadow); }
.feature-image img { width: 100%; max-height: 550px; object-fit: cover; }
.feature-image figcaption, .score-figure figcaption { padding: .75rem 1rem; color: var(--muted); font-size: .72rem; }
.pullquote { margin: 2.5rem 0; border-left: 4px solid var(--gold-500); padding: .5rem 0 .5rem 1.5rem; color: var(--gold-300); font-family: var(--display); font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.5; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; margin: 2.4rem 0; }
.split.reverse { grid-template-columns: .9fr 1.1fr; }
.split img { border-radius: .55rem; box-shadow: var(--shadow); }
.fact-list { padding: 0; list-style: none; }
.fact-list li { margin: .7rem 0; border-left: 2px solid var(--gold-500); padding-left: 1rem; color: var(--blue-100); }
.fact-list strong { color: var(--gold-300); }

.listening-card { overflow: hidden; }
.listening-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: white; }
.listening-card div { padding: 1.1rem; }
.listening-card b { color: var(--gold-300); }
.listening-card p { margin-bottom: 0; color: var(--muted); font-size: .86rem; }
.score-figure { margin: 1.4rem 0; border: 1px solid var(--border); border-radius: .5rem; overflow: hidden; background: #fff; }
.score-figure img { width: 100%; }

.timeline { position: relative; margin: 2.5rem 0; padding-left: 1.7rem; }
.timeline::before { position: absolute; top: .4rem; bottom: .4rem; left: .3rem; width: 1px; background: var(--gold-500); content: ""; }
.timeline-item { position: relative; margin-bottom: 1.8rem; }
.timeline-item::before { position: absolute; top: .55rem; left: -1.7rem; width: .62rem; height: .62rem; border: 2px solid var(--navy-900); border-radius: 50%; background: var(--gold-500); content: ""; }
.timeline-item b { color: var(--gold-300); }
.timeline-item p { margin: .2rem 0; color: var(--muted); }

.comparison-wrap { overflow-x: auto; margin-top: 2rem; }
.comparison { width: 100%; min-width: 700px; border-collapse: collapse; font-size: .86rem; }
.comparison th, .comparison td { border-bottom: 1px solid rgba(201, 169, 97, .18); padding: .9rem .75rem; text-align: left; vertical-align: top; }
.comparison th { color: var(--gold-300); }
.comparison td:first-child { color: var(--gold-400); font-weight: 700; }
.zeitgeist { display: grid; grid-template-columns: repeat(3, 1fr); gap: .2rem; margin: 2.5rem 0; }
.zeitgeist div { position: relative; min-height: 8rem; padding: 1.4rem; background: rgba(15, 45, 82, .76); }
.zeitgeist div::after { position: absolute; top: 50%; right: -.55rem; z-index: 2; border-top: .55rem solid transparent; border-bottom: .55rem solid transparent; border-left: .55rem solid var(--gold-500); content: ""; }
.zeitgeist div:last-child::after { display: none; }
.zeitgeist b { color: var(--gold-300); }
.zeitgeist span { display: block; color: var(--muted); font-size: .82rem; }

details { margin: .8rem 0; border: 1px solid var(--border); border-radius: .5rem; background: rgba(15, 45, 82, .55); }
summary { cursor: pointer; padding: 1rem 1.1rem; color: var(--gold-300); font-weight: 700; }
details > div { padding: 0 1.1rem 1.1rem; color: var(--muted); font-size: .82rem; }
.references { padding-left: 1.2rem; }
.references li { margin-bottom: .9rem; overflow-wrap: anywhere; }
.note-box { margin: 2rem 0; border: 1px solid var(--border); border-left: 4px solid var(--gold-500); border-radius: .45rem; padding: 1.2rem; background: rgba(15, 45, 82, .72); color: var(--blue-100); }

.talks-hero { min-height: 48vh; }
.talk-list { display: grid; gap: 2rem; width: min(1000px, calc(100% - 2rem)); margin: 0 auto 6rem; }
.talk-list > .eyebrow { margin-bottom: -.7rem; }
.talk-entry { display: grid; grid-template-columns: 15rem 1fr; overflow: hidden; border: 1px solid var(--border); border-radius: .65rem; background: rgba(15, 45, 82, .75); box-shadow: var(--shadow); }
.talk-entry img { width: 100%; height: 100%; min-height: 20rem; object-fit: cover; }
.talk-entry-content { padding: clamp(1.5rem, 4vw, 3rem); }
.talk-entry h2 { margin: .2rem 0 .8rem; color: var(--gold-300); font-family: var(--display); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.tag { border: 1px solid var(--border); border-radius: 99px; padding: .2rem .7rem; color: var(--blue-100); font-size: .72rem; }

.site-footer { border-top: 1px solid rgba(201, 169, 97, .2); padding: 2.2rem 1rem; color: var(--muted); text-align: center; font-size: .75rem; }
.site-footer a { margin: 0 .45rem; }

@media (max-width: 980px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .theme-grid, .card-grid { grid-template-columns: 1fr; }
  .portrait-card { display: grid; grid-template-columns: minmax(9rem, .7fr) 1.3fr; }
  .portrait-card img { height: 100%; aspect-ratio: 1; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 5.4rem; }
  .header-inner { min-height: 4.25rem; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .75rem 1rem 1rem;
    border-bottom: 1px solid var(--border);
    background: rgba(6, 22, 44, .98);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .7rem; }
  .hero { min-height: 70vh; padding-top: 5rem; }
  .hero-meta { display: block; }
  .hero-meta span { display: block; margin: .35rem 0; }
  .hero-meta span + span::before { display: none; }
  .section { padding: 4rem 0; }
  .movement-grid, .listening-grid, .zeitgeist, .split, .split.reverse { grid-template-columns: 1fr; }
  .zeitgeist div::after { top: auto; right: 50%; bottom: -.55rem; transform: translateX(50%) rotate(90deg); }
  .talk-entry { grid-template-columns: 1fr; }
  .talk-entry img { min-height: 15rem; max-height: 20rem; object-position: center 22%; }
}

@media (max-width: 520px) {
  .page-shell { width: min(100% - 1.3rem, 1180px); }
  .portrait-card { display: block; }
  .portrait-card img { aspect-ratio: 4 / 3; }
  .theme-card, .card, .movement { padding: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  :root { color-scheme: light; }
  body { background: white; color: #152033; }
  body::before, .site-header, .toc, .button, .site-footer { display: none; }
  .hero { min-height: auto; padding: 2rem 0; color: #152033; }
  .hero h1, .section h2, .section h3, .theme-card strong, .comparison th { color: #6f5520; }
  .article-grid { display: block; }
  .section { break-inside: avoid; padding: 2rem 0; border-color: #bbb; }
  .card, .theme-card, .movement, details { background: white; color: #152033; box-shadow: none; }
  p, .section-intro, .theme-card p, .movement p, details > div { color: #253247; }
}
