/* 中国父母 — zhongguofumu.com
   Always dark by design: the site is meant to feel like a room with the lights off. */

@font-face {
  font-family: "ZGFM Serif";
  src: url("/fonts/zgfm-serif.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #070606;
  --bg-1: #0c0a0a;
  --bg-2: #121010;
  --bg-3: #1b1716;
  --line: rgba(236, 226, 214, 0.08);
  --line-2: rgba(236, 226, 214, 0.16);
  --text: #ddd4cc;
  --text-2: #a69b93;
  --text-3: #8a807a;
  --text-4: #4c4542;
  --red: #8e1b1b;
  --red-2: #b0281f;
  --red-3: #e0564a;
  --red-deep: #3a0b0b;
  --paper: #e9dcc5;
  --display: "ZGFM Serif", "Noto Serif SC", "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", serif;
  --read: "Noto Serif SC", "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "PingFang SC", "Microsoft YaHei", serif;
  --ui: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }
/* Fixed display copy: break at punctuation, never inside a word like 日记. */
.hero-lede, .alone-title, .manifesto-quote, .diary-text h2, .write-hero h1, .help-hero h1, .nf h1, .crescendo-after p, .words li, .cq {
  word-break: keep-all; overflow-wrap: anywhere;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain over everything. */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-3); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--paper); color: #000; padding: 6px 12px; }
.skip:focus { left: 8px; }

.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(720px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.kicker { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.24em; color: var(--red-3); }
.empty { color: var(--text-3); padding: 40px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 2px;
  font-size: 15px; letter-spacing: 0.12em; text-decoration: none; cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #f6ece6; box-shadow: 0 0 0 0 rgba(176, 40, 31, 0); }
.btn-red:hover { background: var(--red-2); box-shadow: 0 0 32px -4px rgba(176, 40, 31, 0.55); }
.btn-ghost { background: rgba(7, 6, 6, 0.4); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-2); }
.btn-lg { min-height: 54px; padding: 0 44px; font-size: 16px; }
.btn[disabled] { opacity: 0.5; cursor: progress; }
.link-arrow { color: var(--text-2); text-decoration: none; font-size: 14px; letter-spacing: 0.08em; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin 0.25s var(--ease); }
.link-arrow:hover { color: var(--text); }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Header / footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: linear-gradient(rgba(7, 6, 6, 0.96), rgba(7, 6, 6, 0.82));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-overlay { position: absolute; inset: 0 0 auto; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.2em; }
.bars-icon { width: 20px; height: 20px; color: var(--red-3); flex: none; }
.site-nav { display: flex; gap: clamp(14px, 3vw, 32px); font-size: 15px; letter-spacing: 0.14em; }
.site-nav a { text-decoration: none; color: var(--text-2); padding: 4px 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.site-nav a:hover, .site-nav a.is-active { color: var(--text); border-color: var(--red-3); }
.site-nav .nav-write { color: var(--red-3); }

.site-footer { border-top: 1px solid var(--line); margin-top: 0; padding: 56px 0 64px; background: var(--bg); position: relative; z-index: 2; }
.footer-inner { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; display: grid; gap: 18px; color: var(--text-3); font-size: 14px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; color: var(--text); font-family: var(--display); letter-spacing: 0.2em; font-size: 17px; }
.footer-brand span { font-size: 12px; letter-spacing: 0.1em; }
.footer-line { margin: 0; letter-spacing: 0.14em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--text-2); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }
.footer-help { margin: 0; font-size: 13px; }
.footer-help a { color: var(--red-3); }

/* =====================================================================
   HOME — 1. The wall of voices
   ===================================================================== */
.voices {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
  display: grid; place-items: center;
  background: var(--bg);
  isolation: isolate;
}
.voices-bg {
  position: absolute; inset: -4%;
  background: url("/img/hero.webp") center / cover no-repeat;
  opacity: 0.55;
  filter: contrast(1.15) saturate(0.6);
  animation: drift 40s ease-in-out infinite alternate;
  z-index: -3;
}
@media (max-width: 760px) { .voices-bg { background-image: url("/img/hero-800.webp"); } }
@keyframes drift { to { transform: scale(1.06) translate(-1%, -1%); } }

.voices-rows {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  z-index: -2;
  --scale: 1;
  user-select: none;
}
.vrow {
  white-space: nowrap;
  font-family: var(--display); font-weight: 700;
  font-size: calc(var(--fs) * 1px * var(--scale));
  line-height: 1.02;
  margin: calc(var(--fs) * -0.04px) 0;
  flex: none;
}
.vtrack {
  display: inline-flex;
  animation: marquee var(--dur) linear infinite;
  will-change: transform;
}
.vrow.rev .vtrack { animation-direction: reverse; }
.vtrack span { padding-right: 1.6em; transition: color 0.6s, text-shadow 0.6s; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

.t-grey { color: rgba(205, 190, 180, 0.24); }
.t-red { color: rgba(176, 40, 31, 0.5); }
.t-deep { color: rgba(120, 18, 18, 0.26); filter: blur(1.5px); }
.vtrack span.flare { color: rgba(240, 90, 74, 0.95); text-shadow: 0 0 18px rgba(224, 60, 44, 0.6); }
.t-deep .vtrack span.flare { color: rgba(176, 40, 31, 0.7); text-shadow: none; }

/* Darkness everywhere except where you look. */
.voices-dark {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  --mx: 50%; --my: 45%;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(7, 6, 6, 0) 0, rgba(7, 6, 6, 0.15) 160px, rgba(7, 6, 6, 0.62) 520px);
}
/* The walls breathe in — a vignette that keeps tightening. */
.voices-veil {
  position: absolute; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 48% 40% at 50% 50%, rgba(7, 6, 6, 0.94) 0%, rgba(7, 6, 6, 0.78) 45%, rgba(7, 6, 6, 0) 100%),
    radial-gradient(ellipse 80% 75% at 50% 50%, rgba(7, 6, 6, 0) 55%, rgba(7, 6, 6, 0.96) 100%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  45% { transform: scale(0.94); opacity: 0.92; }
}

.hero { position: relative; text-align: center; padding: 0 var(--gutter); max-width: 980px; }
.hero-kicker { margin: 0 0 18px; font-size: 12px; letter-spacing: 0.5em; color: var(--text-3); text-transform: lowercase; }
.hero-title {
  margin: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(64px, 17vw, 168px);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.08em; margin-right: -0.08em;
  color: #eee5dd;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.9), 0 0 80px rgba(142, 27, 27, 0.35);
}
.hero-lede { margin: 26px 0 0; font-family: var(--display); font-size: clamp(17px, 2.2vw, 21px); line-height: 1.9; color: var(--text-2); letter-spacing: 0.08em; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-count { margin: 26px 0 0; font-size: 13px; color: var(--text-3); letter-spacing: 0.08em; }
.hero-count b { color: var(--text); font-weight: 600; font-size: 15px; }

.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 6px;
  font-size: 12px; letter-spacing: 0.4em; color: var(--text-3); text-decoration: none;
}
.scroll-hint i { width: 1px; height: 38px; background: linear-gradient(var(--text-3), transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Hero entrance */
.hero > * { opacity: 0; transform: translateY(10px); animation: rise 1.4s var(--ease) forwards; }
.hero > :nth-child(2) { animation-delay: 0.25s; }
.hero > :nth-child(3) { animation-delay: 0.7s; }
.hero > :nth-child(4) { animation-delay: 1s; }
.hero > :nth-child(5) { animation-delay: 1.2s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* =====================================================================
   HOME — 2. Crescendo: the voices pile up until there's no room.
   ===================================================================== */
.crescendo { position: relative; height: 460vh; background: var(--bg); }
.crescendo-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  --heat: 0;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(110, 14, 14, calc(var(--heat) * 0.55)), transparent 70%),
    var(--bg);
}
.crescendo-stage::before {
  /* window-bar shadows, slowly closing in as the heat rises */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(12vw - 10px), rgba(0, 0, 0, calc(0.15 + var(--heat) * 0.5)) calc(12vw - 10px) 12vw);
  transform: scaleX(calc(1 - var(--heat) * 0.25));
}
/* The wall: every voice at once, filling in as the heat rises. */
.cq-wall {
  position: absolute; inset: -4%;
  display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 0.2em 1.4em;
  padding: 0 2%;
  font-family: var(--display); font-weight: 700; font-size: clamp(13px, 1.25vw, 17px); line-height: 1.7;
  color: rgba(205, 190, 180, 0.55);
  opacity: calc(var(--heat) * var(--heat) * 0.6);
  transform: scale(calc(1.12 - var(--heat) * 0.12));
  filter: blur(0.4px);
  overflow: hidden; pointer-events: none;
  transition: opacity 0.4s;
}
.cq-wall span:nth-child(7n) { color: rgba(176, 40, 31, 0.8); }
.crescendo-stage.done .cq-wall { opacity: 0; transition-duration: 0.25s; }
.cq {
  position: absolute; left: var(--x); top: var(--y);
  margin: 0; width: max-content; max-width: min(88vw, 15em);
  transform: translate(-50%, -50%) scale(calc(var(--s) * 0.92));
  font-family: var(--display); font-weight: 700;
  font-size: clamp(20px, 3.3vw, 44px);
  line-height: 1.3; text-align: center;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), color 0.9s, filter 0.9s;
}
.cq.on { opacity: 1; transform: translate(-50%, -50%) scale(var(--s)); }
.cq.old { opacity: 0.32; color: #8d7f78; filter: blur(0.6px); }
.cq.older { opacity: 0.16; filter: blur(1.4px); }
.cq-last { color: var(--red-3); max-width: 92vw; }
.cq::before {
  content: ""; position: absolute; inset: -55% -14%; z-index: -1;
  background: radial-gradient(closest-side, rgba(7, 6, 6, 0.94), rgba(7, 6, 6, 0.7) 55%, rgba(7, 6, 6, 0));
  opacity: 0; transition: opacity 0.6s;
}
.cq.on:not(.old)::before { opacity: 1; }
.cq-last.on { text-shadow: 0 0 16px var(--bg), 0 0 40px var(--bg), 0 0 70px rgba(224, 60, 44, 0.5); }
.crescendo-stage.shake { animation: shake 0.28s linear; }
@keyframes shake { 25% { transform: translate(3px, -2px); } 50% { transform: translate(-3px, 2px); } 75% { transform: translate(2px, 1px); } }
.crescendo-stage.done .cq { opacity: 0; transition-duration: 0.25s; }
.crescendo-after { position: absolute; inset: 0; display: grid; place-content: center; gap: 22px; text-align: center; padding: 0 var(--gutter); pointer-events: none; }
.crescendo-after p { margin: 0; font-family: var(--display); font-weight: 700; opacity: 0; transition: opacity 1.4s var(--ease); }
.ca-1 { font-size: clamp(26px, 4.2vw, 52px); color: var(--text); letter-spacing: 0.08em; }
.ca-2 { font-size: clamp(17px, 2.2vw, 24px); color: var(--text-2); letter-spacing: 0.1em; }
.crescendo-stage.after-1 .ca-1, .crescendo-stage.after-2 .ca-2 { opacity: 1; }

/* No-JS / reduced motion: just show the words. */
html:not(.js) .crescendo, .reduce .crescendo { height: auto; }
html:not(.js) .crescendo-stage, .reduce .crescendo-stage { position: relative; height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 36px; padding: 120px var(--gutter); }
html:not(.js) .cq-wall, .reduce .cq-wall { display: none; }
html:not(.js) .cq, .reduce .cq { position: static; transform: none; opacity: 0.7; max-width: none; }
html:not(.js) .crescendo-after, .reduce .crescendo-after { position: static; width: 100%; padding-top: 60px; }
html:not(.js) .crescendo-after p, .reduce .crescendo-after p { opacity: 1; }

/* =====================================================================
   HOME — 3. Release
   ===================================================================== */
.alone { position: relative; padding: 60px var(--gutter) 140px; text-align: center; background: var(--bg); }
.alone-child { width: min(300px, 62vw); height: auto; margin: 0 auto 8px; opacity: 0.85; }
.alone-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 6vw, 72px); letter-spacing: 0.1em; color: #f1e9e2; }
.alone-text { margin: 28px auto 0; max-width: 34em; color: var(--text-2); font-family: var(--read); font-size: clamp(16px, 1.8vw, 18px); line-height: 2.1; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.manifesto { padding: 120px 0; border-top: 1px solid var(--line); background: linear-gradient(var(--bg), var(--bg-1)); }
.manifesto-quote { margin: 0 0 40px; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 5vw, 56px); line-height: 1.3; color: var(--paper); letter-spacing: 0.06em; }
.manifesto-body p, .prose p { font-family: var(--read); font-size: clamp(16px, 1.8vw, 18.5px); line-height: 2.05; color: var(--text); margin: 0 0 1.2em; }
.manifesto-body p:last-child { color: var(--red-3); }
.manifesto-sign { margin: 36px 0 0; color: var(--text-2); letter-spacing: 0.2em; font-size: 14px; }

.featured { padding: 0 var(--gutter) 120px; background: var(--bg-1); }
.featured-card {
  width: min(1160px, 100%); margin-inline: auto;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch;
  background: var(--bg-2); border: 1px solid var(--line); text-decoration: none;
  overflow: hidden; transition: border-color 0.3s;
}
.featured-card:hover { border-color: var(--line-2); }
.featured-img { position: relative; min-height: 320px; overflow: hidden; }
.featured-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) contrast(1.05); transition: transform 1.6s var(--ease); }
.featured-card:hover .featured-img img { transform: scale(1.04); }
.featured-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, var(--bg-2)); }
.featured-text { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.featured-text h2 { margin: 0 0 18px; font-family: var(--read); font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.4; color: #f1e9e2; }
.featured-text p:not(.kicker) { margin: 0 0 28px; color: var(--text-2); font-family: var(--read); font-size: 16px; }

/* ---------- Story cards ---------- */
.latest { padding: 110px 0; background: var(--bg); border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 32px); letter-spacing: 0.08em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 26px 26px 20px; min-height: 230px;
  background: var(--bg-2); border: 1px solid var(--line);
  text-decoration: none; transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.card:hover { border-color: var(--line-2); background: var(--bg-3); transform: translateY(-2px); }
.card.is-featured { border-color: rgba(176, 40, 31, 0.35); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tags span { font-size: 12px; color: var(--red-3); letter-spacing: 0.06em; }
.card-tags span + span::before { content: "/"; margin-right: 6px; color: var(--text-4); }
.card-title { margin: 0; font-family: var(--read); font-weight: 700; font-size: 19px; line-height: 1.5; color: #efe7e0; }
.card-excerpt { margin: 0; flex: 1; color: var(--text-2); font-family: var(--read); font-size: 15px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--text-3); padding-top: 14px; border-top: 1px solid var(--line); }
.card-hugs { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.card-hugs svg { width: 14px; height: 14px; }

/* ---------- Diary CTA ---------- */
.diary { position: relative; min-height: 78vh; display: grid; align-items: center; overflow: hidden; border-top: 1px solid var(--line); }
.diary-img { position: absolute; inset: 0; background: url("/img/diary.webp") center / cover no-repeat; opacity: 0.75; }
@media (max-width: 760px) { .diary-img { background-image: url("/img/diary-800.webp"); } }
.diary-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 6, 6, 0.96) 25%, rgba(7, 6, 6, 0.55) 60%, rgba(7, 6, 6, 0.2)); }
.diary-text { position: relative; width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: 100px 0; }
.diary-text h2, .write-hero h1 { margin: 0 0 22px; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4.4vw, 52px); line-height: 1.45; letter-spacing: 0.04em; max-width: 14em; }
.diary-text h2 em, .write-hero h1 em { font-style: normal; color: var(--paper); }
.diary-text p:not(.kicker) { color: var(--text-2); max-width: 26em; margin: 0 0 32px; }

/* ---------- Help strip ---------- */
.help-strip { padding: 80px 0; background: var(--bg-1); border-top: 1px solid var(--line); }
.help-strip-inner { display: grid; grid-template-columns: 1.2fr 2fr auto; gap: 32px; align-items: center; }
.help-strip h2 { margin: 0 0 6px; font-size: 20px; font-family: var(--read); }
.help-strip p { margin: 0; color: var(--text-2); font-size: 14px; }
.hotlines-mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hotlines-mini a { display: grid; padding: 14px 18px; border: 1px solid var(--line); text-decoration: none; transition: border-color 0.2s; }
.hotlines-mini a:hover { border-color: var(--red-3); }
.hotlines-mini b { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; color: #f1e9e2; }
.hotlines-mini span { font-size: 12.5px; color: var(--text-3); }

/* =====================================================================
   Inner pages
   ===================================================================== */
.page-head { padding: clamp(60px, 10vw, 110px) 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 20% 0%, rgba(90, 14, 14, 0.25), transparent 60%); }
.page-head h1 { margin: 0; font-family: var(--read); font-weight: 700; font-size: clamp(30px, 5vw, 50px); line-height: 1.3; letter-spacing: 0.04em; }
.page-sub { margin: 16px 0 0; color: var(--text-2); }

.story-list { padding: 36px 0 100px; }
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 13.5px; color: var(--text-2); text-decoration: none; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s; user-select: none;
}
.chip small { font-size: 11px; color: var(--text-3); }
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip.is-on, .chip:has(input:checked) { background: var(--red); border-color: var(--red); color: #f6ece6; }
.chip.is-on small { color: rgba(255, 255, 255, 0.7); }
.sort { display: flex; gap: 18px; font-size: 14px; }
.sort a { color: var(--text-3); text-decoration: none; }
.sort a.is-on { color: var(--text); border-bottom: 1px solid var(--red-3); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; color: var(--text-3); font-size: 14px; }
.pager a { color: var(--text); }

/* ---------- Story ---------- */
.story { width: min(740px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(48px, 8vw, 90px) 0 40px; }
.story-cover { margin: calc(-1 * clamp(48px, 8vw, 90px)) calc(50% - 50vw) 48px; height: min(56vh, 520px); position: relative; overflow: hidden; }
.story-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.65); }
.story-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(7, 6, 6, 0.2), var(--bg)); }
.story-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 16px; }
.story-tags a { font-size: 13px; color: var(--red-3); text-decoration: none; letter-spacing: 0.08em; }
.story-tags a:hover { text-decoration: underline; }
.story-title { margin: 0; font-family: var(--read); font-weight: 700; font-size: clamp(28px, 4.6vw, 44px); line-height: 1.38; letter-spacing: 0.02em; color: #f3ebe4; }
.story-meta { margin: 18px 0 0; color: var(--text-3); font-size: 14px; }
.badge { display: inline-block; padding: 0 8px; border: 1px solid rgba(224, 86, 74, 0.5); color: var(--red-3); font-size: 12px; border-radius: 2px; }
.content-note { margin: 36px 0 0; padding: 14px 18px; border-left: 2px solid var(--red); background: rgba(142, 27, 27, 0.1); color: var(--text-2); font-size: 14px; }
.content-note a { color: var(--text); }
.story-body { margin-top: 44px; font-family: var(--read); font-size: clamp(17px, 1.9vw, 19px); line-height: 2.05; color: #d9d0c8; }
.story-body p { margin: 0 0 0.55em; }
.story-body p.gap { margin-top: 1.4em; }
.story-body h3 { margin: 2.4em 0 0.9em; font-size: 14px; font-family: var(--ui); font-weight: 600; letter-spacing: 0.3em; color: var(--red-3); }
.story-body h3::before { content: "— "; }

.story-react { margin: 80px 0 0; padding: 44px 0; border-top: 1px solid var(--line); text-align: center; }
.react-prompt { margin: 0 0 22px; color: var(--text-3); font-family: var(--read); letter-spacing: 0.1em; }
.react-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.react {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  border: 1px solid var(--line-2); background: transparent; border-radius: 999px; cursor: pointer;
  font-size: 15px; letter-spacing: 0.08em;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.react:hover { border-color: var(--text-2); }
.react-n { font-variant-numeric: tabular-nums; color: var(--text-3); min-width: 1.5ch; }
.react[aria-pressed="true"] { border-color: var(--red-2); background: rgba(142, 27, 27, 0.22); }
.react[aria-pressed="true"] .react-n { color: var(--text); }
.react.pop { animation: pop 0.5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.08); } }
.react-note { margin: 16px 0 0; min-height: 1.6em; color: var(--text-3); font-size: 14px; }
.story-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; padding-bottom: 20px; }
.tool { background: none; border: 0; padding: 6px 0; color: var(--text-3); font-size: 13px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.tool:hover { color: var(--text-2); }

.after-story { padding: 70px 0 100px; border-top: 1px solid var(--line); background: var(--bg-1); }
.after-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 28px 32px; margin-bottom: 70px; border: 1px solid var(--line); background: var(--bg-2); }
.after-cta p { margin: 0; font-family: var(--read); font-size: 20px; }

/* ---------- Dialogs ---------- */
.dialog { border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); padding: 0; width: min(480px, 100% - 32px); border-radius: 4px; }
.dialog::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(3px); }
.dialog-body { padding: 28px; display: grid; gap: 12px; }
.dialog h2 { margin: 0; font-size: 20px; font-family: var(--read); }
.dialog p { margin: 0; color: var(--text-2); font-size: 14px; }
.dialog-msg:empty { display: none; }
.dialog-msg { color: var(--red-3) !important; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.radio { display: flex; gap: 10px; align-items: baseline; font-size: 15px; cursor: pointer; }
.radio input { accent-color: var(--red-2); }

/* ---------- Write ---------- */
.write-hero { position: relative; min-height: 46vh; display: grid; align-items: end; overflow: hidden; border-bottom: 1px solid var(--line); }
.write-hero-img { position: absolute; inset: 0; background: url("/img/diary.webp") 60% 40% / cover no-repeat; opacity: 0.6; }
.write-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(7, 6, 6, 0.3), var(--bg) 92%); }
.write-hero-text { position: relative; padding: 120px 0 40px; }
.write { padding: 40px 0 110px; }
.write-notes { display: grid; gap: 10px; padding: 22px 24px; margin-bottom: 40px; border: 1px solid var(--line); background: var(--bg-1); font-size: 14.5px; color: var(--text-2); }
.write-notes p { margin: 0; }
.write-notes b { color: var(--text); font-weight: 600; }
.write-form { display: grid; gap: 28px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { font-size: 15px; letter-spacing: 0.1em; color: var(--text); padding: 0; margin-bottom: 8px; }
.opt { color: var(--text-3); font-size: 13px; letter-spacing: 0; margin-left: 6px; }
.input {
  width: 100%; padding: 13px 16px;
  background: var(--bg-1); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 2px;
  font: 16px/1.6 var(--ui);
  transition: border-color 0.2s, background 0.2s;
}
.input::placeholder { color: var(--text-4); }
.input:focus { outline: none; border-color: var(--text-3); background: var(--bg-2); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.textarea { min-height: 380px; resize: vertical; font-family: var(--read); font-size: 17px; line-height: 2; }
.field-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-3); }
.count.over { color: var(--red-3); }
.field-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.chips-pick .chip input { position: absolute; opacity: 0; pointer-events: none; }
.chips-pick .chip { position: relative; }
.chips-pick .chip:has(input:focus-visible) { outline: 2px solid var(--red-3); outline-offset: 2px; }
.chips-pick.full .chip:not(:has(input:checked)) { opacity: 0.4; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); cursor: pointer; }
.check input { margin-top: 6px; width: 16px; height: 16px; accent-color: var(--red-2); flex: none; }
.form-error { margin: 0; padding: 12px 16px; border-left: 2px solid var(--red-3); background: rgba(142, 27, 27, 0.14); color: #f1d5d0; font-size: 14.5px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.pow-status { font-size: 13px; color: var(--text-3); }
.pow-status.ready { color: #8fa58a; }
.write-done { padding: 40px; border: 1px solid var(--line-2); background: var(--bg-1); display: grid; gap: 18px; }
.write-done h2 { margin: 0; font-family: var(--read); font-size: 28px; }
.write-done > p { margin: 0; color: var(--text-2); }
.code-box { padding: 22px; border: 1px dashed rgba(224, 86, 74, 0.5); background: rgba(142, 27, 27, 0.08); display: grid; gap: 12px; justify-items: start; }
.code-box p { margin: 0; font-size: 14px; color: var(--text-2); }
.code { font: 600 clamp(22px, 5vw, 30px)/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 0.12em; color: var(--paper) !important; user-select: all; }

/* ---------- Help ---------- */
.help-hero { position: relative; min-height: 62vh; display: grid; align-items: end; overflow: hidden; }
.help-hero-img { position: absolute; inset: 0; background: url("/img/door.webp") 50% 50% / cover no-repeat; opacity: 0.85; }
@media (max-width: 760px) { .help-hero-img { background-image: url("/img/door-800.webp"); background-position: 54% 50%; } }
.help-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(7, 6, 6, 0.1) 30%, var(--bg)); }
.help-hero-text { position: relative; padding: 140px 0 30px; }
.help-hero h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 6vw, 68px); letter-spacing: 0.08em; }
.help { padding: 30px 0 110px; }
.help-block { padding: 44px 0; border-bottom: 1px solid var(--line); }
.help-block h2 { margin: 0 0 18px; font-family: var(--read); font-size: 22px; }
.help-block p { color: var(--text-2); }
.hotlines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hotline { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 6px 22px; align-items: center; padding: 18px 22px; border: 1px solid var(--line); background: var(--bg-1); text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.hotline:hover { border-color: var(--red-3); background: var(--bg-2); }
.hotline b { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; color: #f3ebe4; white-space: nowrap; }
.hotline span { color: var(--text-2); font-size: 14px; }
.hotline strong { display: block; color: var(--text); font-size: 15.5px; margin-bottom: 2px; }
.hotline-big { border-color: rgba(224, 86, 74, 0.45); background: rgba(142, 27, 27, 0.12); }
.hotline-big b { font-size: 40px; color: var(--red-3); }
.help-note { font-size: 13px; color: var(--text-3) !important; margin: 14px 0 0; }
.law { margin: 18px 0; padding: 18px 22px; border-left: 2px solid var(--paper); background: var(--bg-1); }
.law p { margin: 0 0 8px; font-family: var(--read); color: var(--text) !important; font-size: 17px; line-height: 1.9; }
.law cite { font-style: normal; font-size: 13px; color: var(--text-3); }
.list { padding-left: 1.2em; color: var(--text-2); }
.list li { margin: 0.5em 0; }
.list b { color: var(--text); }
.prose .list li { font-family: var(--read); font-size: 16.5px; line-height: 1.9; }
.words { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.words li { font-family: var(--display); font-weight: 700; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.6; color: var(--paper); }

.prose { padding: 50px 0 110px; }
.prose h2 { margin: 2.4em 0 0.8em; font-family: var(--read); font-size: 22px; }
.prose a { color: var(--red-3); }

/* ---------- 404 / pending ---------- */
.nf { position: relative; min-height: calc(100vh - 220px); display: grid; align-items: center; overflow: hidden; }
.nf-img { position: absolute; inset: 0; background: url("/img/door.webp") center / cover no-repeat; opacity: 0.5; }
.nf-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 20%, rgba(7, 6, 6, 0.4)); }
.nf-text { position: relative; width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: 80px 0; }
.nf h1 { margin: 0 0 16px; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 5vw, 54px); }
.nf p:not(.kicker) { color: var(--text-2); max-width: 28em; margin: 0 0 30px; }

/* ---------- Admin ---------- */
.admin { padding: 50px 0 100px; }
.admin h1 { font-family: var(--read); }
.admin-login { display: flex; gap: 10px; max-width: 420px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.admin-tabs button { background: none; border: 1px solid var(--line-2); padding: 6px 16px; cursor: pointer; border-radius: 999px; color: var(--text-2); }
.admin-tabs button.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.admin-logout { margin-left: auto; }
.admin-msg { color: var(--text-3); min-height: 1.5em; }
.admin-list { display: grid; gap: 14px; }
.admin-item { border: 1px solid var(--line); background: var(--bg-1); padding: 20px; display: grid; gap: 10px; }
.admin-item h3 { margin: 0; font-family: var(--read); font-size: 18px; }
.admin-item .meta { font-size: 13px; color: var(--text-3); }
.admin-item .flag { color: var(--red-3); font-size: 13px; }
.admin-item details { color: var(--text-2); font-size: 14px; }
.admin-item details div { white-space: pre-wrap; margin-top: 10px; max-height: 340px; overflow: auto; font-family: var(--read); line-height: 1.9; }
.admin-item .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-item .actions button { background: var(--bg-2); border: 1px solid var(--line-2); padding: 6px 14px; cursor: pointer; border-radius: 2px; }
.admin-item .actions button:hover { border-color: var(--text-2); }
.admin-item .actions .danger { border-color: rgba(224, 86, 74, 0.5); color: var(--red-3); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .help-strip-inner { grid-template-columns: 1fr; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { min-height: 240px; }
  .featured-img::after { background: linear-gradient(transparent 50%, var(--bg-2)); }
}
@media (max-width: 760px) {
  .voices-rows { --scale: 0.8; }
  .site-nav { gap: 16px; font-size: 14px; letter-spacing: 0.08em; }
  .brand { font-size: 16px; letter-spacing: 0.14em; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .field:first-child { grid-column: 1 / -1; }
  .hotline { grid-template-columns: 1fr; }
  .hotlines-mini { grid-template-columns: 1fr; }
  .hotlines-mini a { grid-template-columns: auto 1fr; align-items: baseline; gap: 14px; }
  .br-wide { display: none; }
  .diary-img::after { background: linear-gradient(rgba(7, 6, 6, 0.6), rgba(7, 6, 6, 0.94) 70%); }
  .write-done { padding: 24px; }
  .after-cta { padding: 22px; }
  .card { padding: 22px 20px 18px; min-height: 0; }
}
@media (max-width: 380px) {
  .site-nav { gap: 12px; }
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; }
  .vtrack { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
