@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600;700&family=Russo+One&display=swap');

/* ============================================================
   CSS 变量
   ============================================================ */
:root {
  --c-deep: #1A0A2E;
  --c-pink: #FF2D6B;
  --c-cyan: #00E5FF;
  --c-deep-mid: #2a1248;
  --c-deep-light: #3d1a60;
  --c-text: #e8e0f0;
  --c-text-muted: #9a85b5;
  --c-card-bg: #22103e;
  --c-card-hover: #2e1852;
  --c-border: #3d2260;
  --font-display: 'Russo One', 'Chakra Petch', system-ui, sans-serif;
  --font-body: 'Chakra Petch', system-ui, sans-serif;
  --nav-h: 64px;
  --max-w: 1200px;
  --prose-w: 780px;
  --radius: 0;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--c-deep);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-pink); }
ul, menu { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ============================================================
   Scrollbar
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-deep); }
::-webkit-scrollbar-thumb { background: var(--c-pink); }

/* ============================================================
   Site Wrap
   ============================================================ */
.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }

/* ============================================================
   Navigation — details > summary + menu > li > a
   ============================================================ */
.nav-details {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 10, 46, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--c-pink);
}

.nav-details[open] .nav-overlay { display: flex; }
.nav-details[open] .nav-hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-details[open] .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-details[open] .nav-hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-summary {
  display: block;
  height: var(--nav-h);
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.nav-summary::-webkit-details-marker { display: none; }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 20px);
  color: var(--c-cyan);
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-align: center;
  flex: 1;
}
.nav-brand:hover { color: var(--c-pink); }

.nav-hamburger {
  position: absolute;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 32px;
  padding: 8px 0;
  min-height: 40px;
  justify-content: center;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--c-cyan);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(26, 10, 46, 0.98);
  z-index: 999;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
  overflow-y: auto;
}

.nav-overlay-inner {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-menu li a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 28px);
  color: var(--c-text);
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border);
  letter-spacing: 0.03em;
  transition: color var(--transition), padding-left var(--transition);
}
.nav-menu li a:hover,
.nav-menu li a[aria-current="page"] {
  color: var(--c-pink);
  padding-left: 16px;
}

.nav-search {
  display: flex;
  gap: 0;
}
.nav-search input {
  flex: 1;
  background: var(--c-card-bg);
  border: 2px solid var(--c-border);
  border-right: none;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition);
}
.nav-search input:focus { border-color: var(--c-cyan); }
.nav-search button {
  background: var(--c-pink);
  border: 2px solid var(--c-pink);
  color: #fff;
  font-size: 16px;
  padding: 12px 24px;
  font-weight: 700;
  min-height: 48px;
  transition: background var(--transition);
}
.nav-search button:hover { background: #cc0050; }

/* ============================================================
   Sticky Subnav
   ============================================================ */
.sticky-subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 900;
  background: var(--c-deep-mid);
  border-bottom: 1px solid var(--c-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.sticky-subnav::-webkit-scrollbar { display: none; }
.sticky-subnav ul {
  display: flex;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}
.sticky-subnav li a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-muted);
  padding: 14px 16px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  min-height: 44px;
}
.sticky-subnav li a:hover,
.sticky-subnav li a[aria-current="page"] {
  color: var(--c-cyan);
  border-bottom-color: var(--c-cyan);
}

/* ============================================================
   Hero — Home (Parallax)
   ============================================================ */
.parallax-hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
  margin-top: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-layer { position: absolute; inset: 0; }

.hero-layer--back {
  z-index: 1;
  will-change: transform;
}
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,10,46,0.88) 0%, rgba(255,45,107,0.25) 100%);
}

.hero-layer--mid {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  will-change: transform;
}
.hero-bg-text {
  font-family: var(--font-display);
  font-size: clamp(120px, 20vw, 300px);
  color: rgba(255, 45, 107, 0.08);
  user-select: none;
  line-height: 1;
  padding-right: 5%;
}

.hero-layer--front {
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content {
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-clip {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--c-deep);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 10;
}

/* ============================================================
   Hero — Section/Story/Tag/About/Privacy
   ============================================================ */
.section-hero,
.tag-hero,
.about-hero,
.privacy-hero,
.default-hero,
.story-hero {
  position: relative;
  margin-top: var(--nav-h);
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-deep-mid) 0%, var(--c-deep) 100%);
  border-bottom: 3px solid var(--c-pink);
}

.section-hero-inner,
.tag-hero-inner,
.about-hero-inner,
.privacy-hero-inner,
.default-hero-inner {
  padding: 60px 24px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.section-hero-clip,
.tag-hero-clip,
.about-hero-clip,
.privacy-hero-clip,
.default-hero-clip {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 50px;
  background: var(--c-deep);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 5;
}

.section-hero-title,
.tag-hero-title,
.about-hero-title,
.privacy-hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 56px);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-hero-desc,
.tag-hero-desc,
.about-hero-desc,
.privacy-hero-desc {
  font-size: 17px;
  color: var(--c-text-muted);
  max-width: 600px;
}

/* Story Hero */
.story-hero {
  flex-direction: column;
  align-items: stretch;
  min-height: 380px;
}
.story-hero-media {
  position: absolute; inset: 0;
  z-index: 1;
}
.story-hero-media .story-hero-img {
  width: 100%; height: 100%; object-fit: cover;
}
.story-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,10,46,0.5), rgba(26,10,46,0.95));
}
.story-hero-nophoto {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c-deep-mid), var(--c-deep));
  z-index: 1;
}
.story-hero-content {
  position: relative;
  z-index: 5;
  padding: 60px 24px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  margin-top: auto;
}
.story-hero-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4.5vw, 52px);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}
.story-hero-desc { font-size: 17px; color: var(--c-text-muted); max-width: 640px; }
.story-hero-clip {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 50px;
  background: var(--c-deep);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 10;
}
.story-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: 20px;
}
.article-date, .article-modified {
  font-size: 13px;
  color: var(--c-cyan);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.article-modified { color: var(--c-text-muted); }

/* ============================================================
   Hero Shared Typography
   ============================================================ */
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-pink);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-eyebrow a { color: var(--c-pink); }
.hero-eyebrow a:hover { color: var(--c-cyan); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 80px);
  color: #fff;
  line-height: 1.05;
  margin-bottom: 20px;
  text-shadow: 0 0 40px rgba(255,45,107,0.4);
}
.hero-sub {
  font-size: 18px;
  color: var(--c-text-muted);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btn {
  display: inline-block;
  background: var(--c-pink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 40px;
  letter-spacing: 0.08em;
  border: 2px solid var(--c-pink);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  min-height: 52px;
  min-width: 160px;
  text-align: center;
}
.hero-btn:hover {
  background: transparent;
  color: var(--c-pink);
  transform: translateY(-2px);
}

/* ============================================================
   Main Containers
   ============================================================ */
.home-main,
.section-main,
.story-main,
.tag-main,
.about-main,
.privacy-main,
.default-main {
  flex: 1;
  padding-top: 60px;
  padding-bottom: 60px;
}

/* ============================================================
   Content Section — main > div > figure/aside (交错)
   ============================================================ */
.content-section {
  max-width: var(--max-w);
  margin: 0 auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.content-figure {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.home-aside,
.section-aside,
.story-aside,
.tag-aside,
.about-aside,
.privacy-aside,
.default-aside {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: calc(var(--nav-h) + 60px);
}

/* Story layout: aside on left */
.story-body-section {
  max-width: var(--max-w);
  margin: 0 auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.story-body-section .story-aside {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: calc(var(--nav-h) + 60px);
}
.story-body-section .story-content-wrap {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

/* ============================================================
   Aside Styling
   ============================================================ */
.home-aside h2,
.section-aside h2,
.story-aside h2,
.tag-aside h2,
.about-aside h2,
.privacy-aside h2,
.default-aside h2 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--c-pink);
  margin-bottom: 4px;
  margin-top: 24px;
}
.home-aside h2:first-child,
.section-aside h2:first-child,
.story-aside h2:first-child,
.tag-aside h2:first-child,
.about-aside h2:first-child,
.privacy-aside h2:first-child,
.default-aside h2:first-child { margin-top: 0; }

.home-aside .subtitle,
.section-aside .subtitle,
.story-aside .subtitle,
.tag-aside .subtitle,
.about-aside .subtitle,
.privacy-aside .subtitle,
.default-aside .subtitle {
  font-size: 12px;
  color: var(--c-text-muted);
  margin-bottom: 12px;
}

.aside-links { display: flex; flex-direction: column; gap: 0; margin-bottom: 8px; }
.aside-links li a {
  display: block;
  font-size: 13px;
  color: var(--c-text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border);
  transition: color var(--transition), padding-left var(--transition);
  min-height: 36px;
}
.aside-links li a:hover,
.aside-links li a[aria-current="page"] {
  color: var(--c-cyan);
  padding-left: 8px;
}

.aside-parent { margin-bottom: 16px; }
.aside-parent a { font-size: 13px; color: var(--c-pink); font-weight: 600; }

.about-contact-note {
  font-size: 12px;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-top: 8px;
}

/* ============================================================
   Prose Block
   ============================================================ */
.prose-block {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
}
.prose-block h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  color: #fff;
  margin: 40px 0 12px;
  border-left: 4px solid var(--c-pink);
  padding-left: 16px;
}
.prose-block h3 {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.5vw, 22px);
  color: var(--c-cyan);
  margin: 28px 0 10px;
}
.prose-block p { margin-bottom: 18px; }
.prose-block ul, .prose-block ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.prose-block li { margin-bottom: 8px; }
.prose-block a { color: var(--c-cyan); border-bottom: 1px solid transparent; }
.prose-block a:hover { color: var(--c-pink); border-bottom-color: var(--c-pink); }
.prose-block strong { color: var(--c-pink); font-weight: 700; }
.prose-block code {
  background: var(--c-card-bg);
  color: var(--c-cyan);
  padding: 2px 8px;
  font-size: 14px;
}
.prose-block blockquote {
  border-left: 3px solid var(--c-cyan);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--c-text-muted);
  font-style: italic;
}

/* ============================================================
   h2 + p.subtitle — 标题装饰契约
   ============================================================ */
.reveal-section > h2,
.sections-block > h2,
.stories-block > h2,
.children-section > h2,
.tag-stories-section > h2,
.related-section > h2,
.about-stats > h2,
.home-main > div > h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 40px);
  color: #fff;
  margin-bottom: 8px;
  padding-left: 24px;
}
.subtitle {
  font-size: 15px;
  color: var(--c-text-muted);
  margin-bottom: 36px;
  padding-left: 24px;
}

/* ============================================================
   Section Cards — ul > li > section > h3/p
   ============================================================ */
.sec-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.sec-list > li > section {
  background: var(--c-card-bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--transition), transform var(--transition);
  height: 100%;
}
.sec-list > li > section:hover {
  background: var(--c-card-hover);
  transform: translateY(-3px);
}
.sec-list > li > section h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  line-height: 1.3;
}
.sec-list > li > section h3 a { color: inherit; }
.sec-list > li > section h3 a:hover { color: var(--c-cyan); }
.sec-list > li > section p { font-size: 14px; color: var(--c-text-muted); line-height: 1.6; flex: 1; }

/* ============================================================
   Story Cards — ul > li > section > h3/p
   ============================================================ */
.story-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.story-list > li > section {
  background: var(--c-card-bg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--transition), transform var(--transition);
}
.story-list > li > section:hover {
  background: var(--c-card-hover);
  transform: translateY(-2px);
}
.story-list > li > section h3 {
  font-family: var(--font-display);
  font-size: 16px;
  color: #fff;
  line-height: 1.4;
}
.story-list > li > section h3 a { color: inherit; }
.story-list > li > section h3 a:hover { color: var(--c-cyan); }
.story-list > li > section p { font-size: 13px; color: var(--c-text-muted); flex: 1; }
.story-list > li > section time { font-size: 12px; color: var(--c-cyan); font-weight: 600; letter-spacing: 0.05em; }

/* ============================================================
   Child Cards — ul > li > section > h3/p
   ============================================================ */
.child-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.child-list > li > section {
  background: var(--c-card-bg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--transition), transform var(--transition);
}
.child-list > li > section:hover {
  background: var(--c-card-hover);
  transform: translateY(-2px);
}
.child-list > li > section h3 {
  font-family: var(--font-display);
  font-size: 16px;
  color: #fff;
  line-height: 1.4;
}
.child-list > li > section h3 a { color: inherit; }
.child-list > li > section h3 a:hover { color: var(--c-cyan); }
.child-list > li > section p { font-size: 14px; color: var(--c-text-muted); flex: 1; }
.child-list > li > section time { font-size: 12px; color: var(--c-cyan); font-weight: 600; }

/* ============================================================
   Sibling List — ul > li > section
   ============================================================ */
.sibling-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.sibling-list > li > section {
  background: var(--c-card-bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background var(--transition);
}
.sibling-list > li > section:hover { background: var(--c-card-hover); }
.sibling-list > li > section h3 { font-family: var(--font-display); font-size: 15px; color: #fff; }
.sibling-list > li > section h3 a { color: inherit; }
.sibling-list > li > section h3 a:hover { color: var(--c-cyan); }
.sibling-list > li > section p { font-size: 13px; color: var(--c-text-muted); }
.sibling-list > li > section time { font-size: 12px; color: var(--c-cyan); font-weight: 600; }

/* ============================================================
   Card Decorations
   ============================================================ */
.card-num {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--c-pink);
  opacity: 0.35;
  line-height: 1;
  letter-spacing: -0.02em;
}
.card-count {
  font-size: 12px;
  color: var(--c-cyan);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.card-cta {
  font-size: 13px;
  color: var(--c-pink);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: auto;
  display: inline-block;
  padding: 8px 0;
  min-height: 40px;
  line-height: 24px;
}
.card-cta:hover { color: var(--c-cyan); }

.story-cat a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-pink);
  text-transform: uppercase;
}
.story-cat a:hover { color: var(--c-cyan); }

/* ============================================================
   Block Spacing
   ============================================================ */
.sections-block,
.stories-block,
.children-section,
.tag-stories-section,
.related-section {
  margin-bottom: 72px;
}

/* ============================================================
   About Stats
   ============================================================ */
.about-stats {
  max-width: var(--max-w);
  margin: 0 auto 60px;
  padding: 0 24px;
}
.stats-row {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.stat-block {
  flex: 1;
  min-width: 160px;
  background: var(--c-card-bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 3px solid var(--c-cyan);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  color: var(--c-cyan);
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: var(--c-text-muted);
  letter-spacing: 0.08em;
}

/* ============================================================
   Tag Cloud
   ============================================================ */
.tag-cloud { flex-wrap: wrap; flex-direction: row; gap: 4px; }
.tag-cloud li a {
  border: 1px solid var(--c-border);
  padding: 6px 14px;
  font-size: 13px;
  min-height: 34px;
  border-bottom: none;
}
.tag-cloud li a:hover,
.tag-cloud li a[aria-current="page"] {
  background: var(--c-pink);
  color: #fff;
  border-color: var(--c-pink);
  padding-left: 14px;
}

/* ============================================================
   Footer — 三栏 dl
   ============================================================ */
.site-footer {
  background: var(--c-deep-mid);
  border-top: 2px solid var(--c-border);
  margin-top: auto;
}

.footer-cta {
  background: var(--c-pink);
  padding: 48px 24px;
  text-align: center;
}
.footer-cta-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 40px);
  color: #fff;
  margin-bottom: 20px;
}
.footer-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--c-pink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 48px;
  letter-spacing: 0.08em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  min-height: 52px;
}
.footer-cta-btn:hover {
  background: var(--c-deep);
  color: var(--c-cyan);
  transform: translateY(-2px);
}

.footer-cols {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-dl dt {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--c-pink);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}
.footer-dl dd {
  margin-bottom: 0;
}
.footer-dl dd a {
  display: block;
  font-size: 14px;
  color: var(--c-text-muted);
  padding: 7px 0;
  transition: color var(--transition), padding-left var(--transition);
  border-bottom: 1px solid rgba(61,34,96,0.4);
  min-height: 36px;
}
.footer-dl dd a:hover {
  color: var(--c-cyan);
  padding-left: 8px;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--c-text-muted); min-height: 36px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--c-cyan); }

/* ============================================================
   Reveal Animations (Scroll-triggered)
   ============================================================ */
.reveal-section,
.reveal-item {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-section.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section,
  .reveal-item,
  .hero-layer--back,
  .hero-layer--mid,
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ============================================================
   Hover Micro-interactions
   ============================================================ */
@media (hover: hover) {
  .sec-list > li > section,
  .child-list > li > section,
  .story-list > li > section,
  .sibling-list > li > section {
    position: relative;
    overflow: hidden;
  }
  .sec-list > li > section::before,
  .child-list > li > section::before,
  .story-list > li > section::before,
  .sibling-list > li > section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 0;
    background: var(--c-pink);
    transition: height 0.3s ease;
  }
  .sec-list > li > section:hover::before,
  .child-list > li > section:hover::before,
  .story-list > li > section:hover::before,
  .sibling-list > li > section:hover::before {
    height: 100%;
  }
}

/* ============================================================
   Responsive — Tablet
   ============================================================ */
@media (max-width: 900px) {
  .content-section,
  .story-body-section {
    grid-template-columns: 1fr;
  }
  .content-figure { grid-column: 1; grid-row: 2; }
  .home-aside,
  .section-aside,
  .tag-aside,
  .about-aside,
  .privacy-aside,
  .default-aside {
    grid-column: 1; grid-row: 1;
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    align-items: start;
  }
  .story-body-section .story-aside {
    grid-column: 1; grid-row: 1;
    position: static;
  }
  .story-body-section .story-content-wrap {
    grid-column: 1; grid-row: 2;
  }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Responsive — Mobile
   ============================================================ */
@media (max-width: 600px) {
  :root { --nav-h: 56px; }

  .nav-brand { font-size: 13px; }

  .parallax-hero { height: 60vh; min-height: 360px; }
  .hero-title { font-size: clamp(28px, 8vw, 48px); }
  .hero-bg-text { font-size: 100px; }
  .hero-clip { height: 40px; }

  .content-section,
  .story-body-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px;
  }
  .content-figure { grid-column: 1; grid-row: 2; }
  .home-aside,
  .section-aside,
  .story-aside,
  .tag-aside,
  .about-aside,
  .privacy-aside,
  .default-aside {
    grid-column: 1; grid-row: 1;
    position: static;
    display: block;
  }
  .story-body-section .story-aside { grid-column: 1; grid-row: 1; position: static; }
  .story-body-section .story-content-wrap { grid-column: 1; grid-row: 2; }

  .sec-list,
  .story-list,
  .child-list,
  .sibling-list {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .sections-block > h2,
  .stories-block > h2,
  .children-section > h2,
  .tag-stories-section > h2,
  .related-section > h2,
  .about-stats > h2 {
    padding-left: 16px;
  }
  .subtitle { padding-left: 16px; }

  .footer-cols {
    grid-template-columns: 1fr;
    padding: 32px 16px;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .stats-row { flex-direction: column; }

  .sticky-subnav li a { padding: 12px 12px; font-size: 12px; }

  .section-hero-inner,
  .tag-hero-inner,
  .about-hero-inner,
  .privacy-hero-inner,
  .default-hero-inner {
    padding: 40px 16px 60px;
  }
  .story-hero-content { padding: 40px 16px 60px; }

  .about-aside { display: block; }
  .aside-links { flex-direction: column; }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  .nav-details, .sticky-subnav, .site-footer, .hero-clip,
  .section-hero-clip, .story-hero-clip, .tag-hero-clip,
  .about-hero-clip, .privacy-hero-clip, .default-hero-clip {
    display: none;
  }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
