/* ═════════════════════════════════════════════
   一颗小紫薯｜相亲日记 — Magazine Editorial CSS
   Design:高级女性关系杂志专题页 / Editorial Layout
   ═════════════════════════════════════════════ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&display=swap');

/* ── Design Tokens ── */
:root {
  /* Paper palette */
  --paper: #F4EFE7;
  --paper-warm: #EDE7DD;
  --ink: #241C1A;
  --ink-soft: #4A3F38;
  --muted: #7D7068;
  --muted-light: #B5A9A0;

  /* Purple accent (低饱和紫薯色) */
  --purple: #6E4B73;
  --purple-soft: #8E7093;
  --purple-pale: #D8C3D9;
  --purple-wash: rgba(110,75,115,0.06);

  /* Gold accent (金棕高光) */
  --gold: #B89B72;
  --gold-pale: #D4C5AB;

  /* Lines */
  --hairline: #D8CEC3;
  --hairline-soft: #E5DDD5;

  /* Typography */
  --font-display: 'Playfair Display', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif;
  --font-heading: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;

  /* Scale */
  --fs-mega: clamp(88px, 12vw, 170px);
  --fs-hero: clamp(52px, 8vw, 104px);
  --fs-h1: clamp(36px, 5vw, 64px);
  --fs-h2: clamp(24px, 3.5vw, 42px);
  --fs-h3: clamp(20px, 2.5vw, 28px);
  --fs-body: 17px;
  --fs-sm: 14px;
  --fs-xs: 12px;
  --fs-label: 11px;

  --lh-body: 1.85;
  --lh-heading: 1.15;
  --lh-display: 1.0;

  /* Spacing */
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* Layout */
  --col-width: 1200px;
  --col-narrow: 680px;
  --col-gap: 48px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-mag: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Dark Mode ── */
:root.dark {
  --paper: #1C1820;
  --paper-warm: #231E28;
  --ink: #E8E3EE;
  --ink-soft: #C5BED0;
  --muted: #9B92A5;
  --muted-light: #6B6475;
  --purple: #A888B0;
  --purple-soft: #8E7093;
  --purple-pale: #4A3D50;
  --purple-wash: rgba(168,136,176,0.08);
  --gold: #C9A872;
  --gold-pale: #5A4D38;
  --hairline: #3A3440;
  --hairline-soft: #2E2835;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  min-height: 100svh;
  overflow-x: hidden;
}

/* Subtle paper texture */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.4;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(110,75,115,0.015) 2px, rgba(110,75,115,0.015) 4px);
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: var(--lh-heading); color: var(--ink); text-wrap: pretty; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 600; }

a { color: var(--purple); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--purple-soft); }

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

/* ── Decorative ── */
.hairline { border: none; border-top: 1px solid var(--hairline); }
.hairline-soft { border: none; border-top: 1px solid var(--hairline-soft); }
.label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-purple { color: var(--purple); }
.number {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--purple-pale);
  line-height: 1;
}
.ornament {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted-light);
}

/* ── Container ── */
.container {
  width: min(var(--col-width), calc(100% - var(--sp-8)));
  margin: 0 auto;
}
.container-narrow {
  width: min(var(--col-narrow), calc(100% - var(--sp-8)));
  margin: 0 auto;
}

/* ── Spacing ── */
.section { padding: var(--sp-20) 0; }
.section-lg { padding: var(--sp-24) 0 var(--sp-20); }
.section-sm { padding: var(--sp-12) 0; }

/* ── Navigation (thin, minimal) ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--hairline);
  background: rgba(244,239,231,0.88);
  backdrop-filter: blur(12px);
}
:root.dark .nav { background: rgba(28,24,32,0.88); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; gap: var(--sp-6);
}
.nav-brand {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.nav-brand:hover { color: var(--purple); }
.nav-links {
  display: flex; gap: 2px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav-links a {
  padding: 6px 12px;
  color: var(--muted);
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--purple); }
.nav-links a.active { color: var(--purple); font-weight: 700; }

/* Theme toggle */
.theme-toggle {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; color: var(--muted); font-size: 15px;
  transition: background 0.2s;
}
.theme-toggle:hover { background: var(--purple-wash); }

/* ── Progress Bar (hairline) ── */
.progress {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: 100%; height: 1px;
  background: transparent;
  pointer-events: none;
}
.progress::after {
  content: '';
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--gold);
  transition: width 0.1s linear;
}

/* ── Buttons (minimal) ── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
}
.btn:hover { border-color: var(--purple); color: var(--purple); }
.btn-primary {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.btn-primary:hover { background: var(--purple-soft); border-color: var(--purple-soft); color: #fff; }
.btn-ghost { border-color: transparent; }
.btn-text {
  border: none; padding: 6px 0;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
}
.btn-text:hover { color: var(--purple); }
.hero-actions-sep {
  color: var(--muted-light);
  font-size: var(--fs-sm);
  user-select: none;
}
.btn-sm { padding: 6px 14px; font-size: var(--fs-xs); }

/* ── Tags (magazine-style, not pills) ── */
.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--purple);
  text-decoration: none;
}
.tag::before { content: '#'; color: var(--muted-light); }
.tag:hover { color: var(--purple-soft); }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* ── Featured Story ── */
.featured { position: relative; }
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gap);
  align-items: center;
}
.featured-text { max-width: 500px; }
.featured-kicker {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: var(--sp-4);
}
.featured-number {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 160px);
  color: var(--purple-pale);
  line-height: 0.8;
  margin-bottom: var(--sp-3);
  font-style: italic;
}
.featured-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--sp-4);
}
.featured-date {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: var(--sp-5);
}
.featured-excerpt {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: var(--sp-6);
  padding-left: var(--sp-4);
  border-left: 2px solid var(--purple-pale);
}
.featured-image {
  position: relative;
  overflow: hidden;
}
.featured-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: saturate(0.85) contrast(0.95);
  border: 1px solid var(--hairline);
}
.featured-image::after {
  content: '';
  position: absolute; inset: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  pointer-events: none;
}

/* ── Contents / Diary TOC ── */
.contents-header {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: var(--sp-5);
  margin-bottom: var(--sp-8);
}
.contents-header h2 {
  font-size: var(--fs-h3);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.contents-header .label { font-size: var(--fs-xs); }

/* Filter tabs */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 2px;
  margin-bottom: var(--sp-8);
  border-bottom: 1px solid var(--hairline-soft);
  padding-bottom: var(--sp-4);
}
.filter-tab {
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  text-transform: uppercase;
}
.filter-tab:hover { color: var(--purple); }
.filter-tab.is-active {
  color: var(--purple);
  font-weight: 700;
}
.filter-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 14px; right: 14px;
  height: 1px;
  background: var(--purple);
}

/* ── TOC Editorial Rhythm ── */
/* Base entry (all share this skeleton) */
.toc-featured,
.toc-major,
.toc-entry {
  display: grid;
  gap: var(--sp-6);
  align-items: start;
  border-bottom: 1px solid var(--hairline-soft);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background 0.25s var(--ease-mag), padding-left 0.3s var(--ease-mag);
}
.toc-featured:last-child,
.toc-major:last-child,
.toc-entry:last-child { border-bottom: none; }

/* Featured (No.01) — largest */
.toc-featured {
  grid-template-columns: 1fr 220px;
  padding: var(--sp-6) 0;
  gap: var(--sp-8);
}
.toc-featured .toc-num {
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--purple-pale);
  font-style: italic;
  line-height: 0.75;
  grid-column: 1;
}
.toc-featured .toc-body {
  grid-column: 1;
}
.toc-featured .toc-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--sp-3);
  color: var(--ink);
}
.toc-featured .toc-season {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc-featured .toc-meta {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.6;
  max-width: 460px;
}
.toc-featured .toc-date {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--muted-light);
  grid-column: 1;
  margin-top: var(--sp-2);
}
.toc-featured .toc-thumb {
  grid-column: 2; grid-row: 1 / span 3;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: saturate(0.8) contrast(0.95);
  border: 1px solid var(--hairline);
}
/* Section rule after featured */
.toc-section-rule {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-5) 0 var(--sp-4);
  border-bottom: 1px solid var(--hairline);
}
.toc-section-rule::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--hairline);
}
.toc-section-rule span {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* Major (No.36, No.35) — medium */
.toc-major {
  grid-template-columns: 64px 1fr 80px 72px;
  padding: var(--sp-6) 0;
  gap: var(--sp-5);
}
.toc-major .toc-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--purple-pale);
  font-style: italic;
  text-align: right;
  line-height: 0.85;
}
.toc-major .toc-thumb {
  width: 72px;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: saturate(0.8) contrast(0.95);
  border: 1px solid var(--hairline);
}
.toc-major .toc-body { min-width: 0; }
.toc-major .toc-title {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: 600;
  margin-bottom: var(--sp-1);
  color: var(--ink);
  display: flex; align-items: center; gap: var(--sp-3);
}
.toc-major .toc-meta {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.5;
}
.toc-major .toc-date {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--muted-light);
  text-align: right;
  white-space: nowrap;
  padding-top: var(--sp-1);
}

/* Minor (all others) — compact */
.toc-entry {
  grid-template-columns: 48px 1fr auto 52px;
  padding: var(--sp-3) 0;
  gap: var(--sp-4);
}
.toc-entry .toc-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--muted-light);
  font-style: italic;
  text-align: right;
}
.toc-entry .toc-body { min-width: 0; }
.toc-entry .toc-title {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  display: flex; align-items: baseline; gap: var(--sp-3);
}
.toc-entry .toc-meta { display: none; }
.toc-entry .toc-date {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted-light);
  white-space: nowrap;
  padding-top: 1px;
}
.toc-entry .toc-thumb {
  width: 52px;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: saturate(0.8) contrast(0.95);
  border: 1px solid var(--hairline);
}
/* Arrow hint on hover */
.toc-entry:hover .toc-title::after {
  content: ' →';
  color: var(--purple);
}

/* Section label within TOC list */
.toc-divider {
  grid-column: 1 / -1;
  padding: var(--sp-5) 0 var(--sp-3);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  border-bottom: 1px solid var(--hairline);
}

/* Hover effects */
.toc-featured:hover, .toc-major:hover, .toc-entry:hover {
  background: var(--purple-wash);
  padding-left: var(--sp-2);
}
.toc-featured:hover .toc-num,
.toc-major:hover .toc-num,
.toc-entry:hover .toc-num { color: var(--purple); }

/* Empty state */
.empty-state {
  display: none;
  text-align: center;
  padding: var(--sp-16) 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.empty-state.is-visible { display: block; }

/* ── Relationship Column ── */
.column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gap);
  align-items: start;
}
.column-quote {
  position: sticky; top: 100px;
}
.column-quote blockquote {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 42px);
  line-height: 1.3;
  color: var(--ink);
  font-weight: 600;
  margin: 0;
}
.column-quote blockquote::before {
  content: open-quote;
  font-family: var(--font-display);
  font-size: 96px;
  color: var(--purple-pale);
  display: block;
  line-height: 0.5;
  margin-bottom: var(--sp-4);
}
.column-item {
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.column-item:last-child { border-bottom: none; }
.column-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--purple-pale);
  font-style: italic;
  line-height: 0.9;
  margin-bottom: var(--sp-3);
}
.column-item h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--sp-3);
  font-weight: 500;
}
.column-item p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: var(--lh-body);
}

/* ── Editor's Note ── */
.editors-note {
  text-align: center;
  max-width: var(--col-narrow);
  margin: 0 auto;
}
.editors-note .kicker {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}
.editors-note h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--sp-5);
  font-weight: 400;
}
.editors-note p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: var(--lh-body);
  margin-bottom: var(--sp-5);
}
.editors-note .note-actions {
  display: flex; justify-content: center; gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}
.editors-note .note-meta {
  display: flex; justify-content: center; gap: var(--sp-6);
  flex-wrap: wrap;
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--hairline-soft);
  font-size: var(--fs-xs);
  color: var(--muted-light);
}
.editors-note .note-meta strong { color: var(--ink); font-weight: 500; }

/* ── Footer ── */
.footer {
  padding: var(--sp-10) 0;
  border-top: 1px solid var(--hairline);
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--muted-light);
}
.footer-links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: var(--sp-5); margin-top: var(--sp-4);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--purple); }

/* ── Back to top ── */
.back-to-top {
  position: fixed; bottom: var(--sp-8); right: var(--sp-8); z-index: 40;
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--muted);
  font-size: var(--fs-xs);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.3s var(--ease);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { border-color: var(--purple); color: var(--purple); }

/* ── Hero Cover ── */
.hero-cover { position: relative; overflow: visible; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  min-height: 90svh;
  padding-top: var(--sp-8);
}
.hero-masthead {
  padding: var(--sp-8) 0;
  position: relative;
  z-index: 2;
}
.hero-overline {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: var(--sp-5);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-mega);
  line-height: 0.82;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: var(--sp-5);
}
.hero-subtitle {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: var(--sp-5);
}
.hero-issue {
  display: flex; gap: var(--sp-5);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}
.hero-issue span {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted-light);
  text-transform: uppercase;
  padding-right: var(--sp-5);
  border-right: 1px solid var(--hairline);
}
.hero-issue span:last-child { border-right: none; }
.hero-dek {
  font-family: var(--font-heading);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 380px;
  margin-bottom: var(--sp-10);
}
.hero-actions {
  display: flex; gap: var(--sp-5); flex-wrap: wrap; align-items: center;
}
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  margin-left: -48px;
  z-index: 1;
}
.hero-cover-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.94) brightness(0.98);
  border: 1px solid var(--hairline);
}
.hero-visual::after {
  content: '';
  position: absolute; inset: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  pointer-events: none;
}
.hero-vert-label {
  position: absolute; left: -28px; top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-light);
  white-space: nowrap;
}
.hero-vert-label-left {
  position: absolute; right: 100%; top: 0;
  margin-right: 16px;
  writing-mode: vertical-rl;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  opacity: 0.7;
}

/* ── Stats (magazine infographic) ── */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: var(--sp-8) 0;
  margin: var(--sp-10) 0;
}
.stat-item {
  text-align: center;
  padding: var(--sp-4);
}
.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  color: var(--purple);
  font-style: italic;
  line-height: 1;
}
.stat-item .stat-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: var(--sp-2);
}
.stat-divider {
  width: 1px;
  background: var(--hairline);
  margin: 0 auto;
}

/* ── Ambient decoration ── */
.ambient-block {
  width: 100%;
  aspect-ratio: 16/5;
  background: linear-gradient(135deg, var(--purple-wash), var(--purple-pale), var(--paper-warm));
  opacity: 0.5;
  border: 1px solid var(--hairline-soft);
  margin: var(--sp-10) 0;
}

/* ── Responsive: Tablet ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: var(--sp-6); }
  .hero-visual { max-width: 360px; margin: 0 auto; }
  .hero-vert-label { display: none; }
  .hero-vert-label-left { display: none; }
  .featured-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .featured-image { max-width: 400px; margin: 0 auto; }
  .column-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .column-quote { position: static; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
}

/* ── Responsive: Mobile ── */
@media (max-width: 640px) {
  :root {
    --fs-body: 16px;
    --col-gap: 24px;
  }
  .container { width: calc(100% - var(--sp-6)); }
  .section { padding: var(--sp-12) 0; }
  .section-lg { padding: var(--sp-16) 0 var(--sp-12); }

  .nav-inner { min-height: 48px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 4px 8px; font-size: 10px; }

  .hero-grid { padding-top: var(--sp-4); }
  .hero-masthead { padding: var(--sp-6) 0; }
  .hero-issue { gap: var(--sp-4); }
  .hero-issue span { font-size: 9px; padding-right: var(--sp-4); }
  .hero-vert-label, .hero-vert-label-left { display: none; }
  .hero-title { font-size: clamp(52px, 14vw, 88px); line-height: 0.85; }

  .stats-band { grid-template-columns: repeat(2, 1fr); }

  .featured-grid { gap: var(--sp-6); }
  .featured-image { max-width: 280px; }

  .toc-featured { grid-template-columns: 1fr; gap: var(--sp-4); }
  .toc-featured .toc-num { font-size: 72px; }
  .toc-featured .toc-thumb { grid-column: 1; grid-row: auto; max-width: 200px; }
  .toc-major { grid-template-columns: 48px 1fr 50px; gap: var(--sp-3); }
  .toc-major .toc-num { font-size: 32px; }
  .toc-major .toc-date { display: none; }
  .toc-entry { grid-template-columns: 40px 1fr auto; gap: var(--sp-3); }
  .toc-entry .toc-num { font-size: 18px; }
  .toc-entry .toc-date { display: none; }

  .column-item { padding: var(--sp-4) 0; }

  .editors-note { text-align: left; }
  .editors-note .note-actions { justify-content: flex-start; }

  .back-to-top { bottom: var(--sp-4); right: var(--sp-4); }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ═══════════════════════════════════════
   ANIMATION SYSTEM
   ═══════════════════════════════════════ */

/* ── Hero Entrance Keyframes ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroImageReveal {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

/* Hero children start hidden, staggered by JS */
.hero-animate .hero-overline,
.hero-animate .hero-title,
.hero-animate .hero-subtitle,
.hero-animate .hero-issue,
.hero-animate .hero-dek,
.hero-animate .hero-actions {
  opacity: 0;
}
.hero-animate .hero-visual {
  opacity: 0;
}
.hero-animate.entered .hero-overline    { animation: heroFadeUp 0.7s var(--ease-mag) 0.05s forwards; }
.hero-animate.entered .hero-title       { animation: heroFadeUp 0.8s var(--ease-mag) 0.15s forwards; }
.hero-animate.entered .hero-subtitle    { animation: heroFadeUp 0.6s var(--ease-mag) 0.30s forwards; }
.hero-animate.entered .hero-issue       { animation: heroFadeUp 0.6s var(--ease-mag) 0.38s forwards; }
.hero-animate.entered .hero-dek         { animation: heroFadeUp 0.7s var(--ease-mag) 0.48s forwards; }
.hero-animate.entered .hero-actions     { animation: heroFadeUp 0.6s var(--ease-mag) 0.60s forwards; }
.hero-animate.entered .hero-visual      { animation: heroImageReveal 0.9s var(--ease-mag) 0.25s forwards; }

/* ── Scroll Reveal (with blur) ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(4px);
  transition: opacity 0.7s var(--ease-mag), transform 0.7s var(--ease-mag), filter 0.7s var(--ease-mag);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Parallax ── */
.parallax {
  overflow: hidden;
}
.parallax-inner {
  will-change: transform;
  transition: transform 0.1s linear;
}
@media (max-width: 640px) {
  .parallax-inner { transform: none !important; }
}

/* ── Sticky Contents Sidebar (desktop) ── */
.contents-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--col-gap);
  align-items: start;
}
.contents-sidebar {
  position: sticky;
  top: 90px;
  padding-top: var(--sp-2);
}
.contents-sidebar .sidebar-label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}
.contents-sidebar .sidebar-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--purple-pale);
  line-height: 1.3;
  margin-bottom: var(--sp-5);
}
.contents-sidebar .sidebar-divider {
  width: 40px;
  height: 1px;
  background: var(--hairline);
  margin-bottom: var(--sp-4);
}
.contents-sidebar .sidebar-section {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--muted-light);
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-2);
  cursor: pointer;
  transition: color 0.2s;
}
.contents-sidebar .sidebar-section:hover,
.contents-sidebar .sidebar-section.is-active {
  color: var(--purple);
}
@media (max-width: 1024px) {
  .contents-layout { grid-template-columns: 1fr; }
  .contents-sidebar { display: none; }
}

/* ── TOC Entry Hover (compact entries: arrow only) ── */

/* ── Section Indicator (desktop) ── */
.section-indicator {
  position: fixed;
  right: var(--sp-6);
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  text-align: right;
  line-height: 2;
  pointer-events: none;
  opacity: 0.7;
  display: none;
}
@media (min-width: 1400px) {
  .section-indicator { display: block; }
}
.section-indicator .si-label {
  display: block;
  color: var(--hairline);
  margin-bottom: var(--sp-3);
  font-size: 9px;
}
.section-indicator .si-item {
  display: block;
  transition: color 0.3s;
}
.section-indicator .si-item.is-active {
  color: var(--purple);
  font-weight: 600;
}

/* ── Back to Top Refinements ── */
.back-to-top {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Cherry Blossom Petals ── */
.sakura-container {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden;
}
.sakura-petal {
  position: absolute; top: -40px;
  width: 22px; height: 22px;
  background: radial-gradient(ellipse at 30% 30%, #FAD4E6, #EE9CBE 55%, #D4729A);
  border-radius: 100% 0 100% 0;
  opacity: 0.7;
  box-shadow: 0 0 6px rgba(238,156,190,0.3);
  animation: sakuraFall var(--fall-dur, 12s) linear var(--fall-delay, 0s) infinite;
}
.sakura-petal::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 70%, rgba(255,255,255,0.4), transparent);
  border-radius: inherit;
}
@keyframes sakuraFall {
  0%   { transform: translate(0, -10px) rotate(0deg) scale(0.7); opacity: 0; }
  8%   { opacity: 0.7; }
  15%  { opacity: 0.55; }
  80%  { opacity: 0.4; }
  100% { transform: translate(var(--drift, 60px), 105vh) rotate(var(--spin, 360deg)) scale(0.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sakura-container { display: none; }
}
