/* ============================================================
   神絕OKiSSKRED · 诗歌网站
   视觉系统严格还原 Ardot 设计稿（editorial-poetic-min）
   - 暖宣纸底 #F5F0E6 / 墨咖正文 #3A2F22 / 咖啡次要 #6B5B45
   - 朱砂红强调 #9E3D2F / 发丝线 #E5DDC5
   - 中文：思源宋体 (Source Han Serif CN / Noto Serif SC)
   - 拉丁：Cormorant Garamond
   ============================================================ */

:root {
  --bg: #F5F0E6;
  --surface: #FAF6EE;
  --ink: #3A2F22;
  --coffee: #6B5B45;
  --cinnabar: #9E3D2F;
  --border: #E5DDC5;
  --serif-cn: "Source Han Serif CN", "Noto Serif SC", "Songti SC", serif;
  --serif-latin: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-cn);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ===================== Nav ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 0 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav__brand {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--ink);
}
.nav__links { font-size: 16px; color: var(--coffee); letter-spacing: 2px; }
.nav__links a { margin-left: 40px; transition: color .25s ease; }
.nav__links a:hover { color: var(--cinnabar); }

/* ===================== Hero ===================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 200px;
  gap: 28px;
}
.hero__kicker {
  font-family: var(--serif-latin);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--cinnabar);
}
.hero__title {
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 8px;
  color: var(--ink);
}
.hero__dek {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--coffee);
}
.hero__sign {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

/* ===================== Poems (诗选精选) ===================== */
.poems { padding: 140px 200px 120px; }
.poems__label {
  font-family: var(--serif-latin);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 4px;
  color: var(--cinnabar);
}
.poems__spacer { height: 56px; }

.poem-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity .25s ease;
}
.poem-row:first-of-type { border-top: 1px solid var(--border); }
.poem-row:hover .poem-row__title { color: var(--cinnabar); }
.poem-row__left { display: flex; flex-direction: column; gap: 8px; }
.poem-row__title {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  transition: color .25s ease;
}
.poem-row__excerpt { font-size: 16px; font-weight: 400; color: var(--coffee); }
.poem-row__meta {
  font-size: 14px;
  color: var(--cinnabar);
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ===================== Pull Quote ===================== */
.quote {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 200px;
}
.quote__line {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--ink);
}

/* ===================== Footer (home) ===================== */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 120px 200px;
  text-align: center;
}
.footer__sign { font-size: 30px; font-weight: 500; letter-spacing: 4px; color: var(--ink); }
.footer__contact { font-size: 15px; color: var(--coffee); }
.footer__credit { font-size: 13px; letter-spacing: 1px; color: var(--cinnabar); }

/* ===================== Detail · Header ===================== */
.detail__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 160px 400px 64px;
}
.detail__kicker {
  font-family: var(--serif-latin);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--cinnabar);
}
.detail__title {
  font-size: 56px;
  font-weight: 300;
  letter-spacing: 6px;
  color: var(--ink);
}
.detail__meta { font-size: 15px; color: var(--coffee); letter-spacing: 1px; }

/* ===================== Detail · Poem body ===================== */
.poem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 40px 400px 64px;
}
.poem__line { font-size: 22px; line-height: 44px; color: var(--ink); }
.poem__gap { height: 32px; width: 100%; }

/* ===================== Detail · Signature ===================== */
.sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 400px;
  text-align: center;
}
.seal {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  background: var(--cinnabar);
  display: flex;
  align-items: center;
  justify-content: center;
}
.seal__char {
  font-size: 40px;
  font-weight: 700;
  color: var(--bg);
  font-family: var(--serif-cn);
  line-height: 1;
}
.sign__name { font-size: 20px; font-weight: 500; letter-spacing: 3px; color: var(--ink); }

/* ===================== Detail · Footer nav ===================== */
.detail__footnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 400px 120px;
}
.detail__prev { font-size: 16px; color: var(--coffee); transition: color .25s ease; }
.detail__next { font-size: 16px; color: var(--cinnabar); transition: color .25s ease; }
.detail__prev:hover, .detail__next:hover { opacity: .7; }

/* ===================== Reveal (滚动渐显) ===================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
  .detail__header, .poem, .sign, .detail__footnav { padding-left: 200px; padding-right: 200px; }
}

@media (max-width: 768px) {
  .nav { padding: 0 24px; height: 64px; }
  .nav__brand { font-size: 20px; }
  .nav__links { font-size: 14px; letter-spacing: 1px; }
  .nav__links a { margin-left: 18px; }

  .hero { padding: 96px 24px; gap: 20px; }
  .hero__title { font-size: 44px; letter-spacing: 4px; }
  .hero__dek { font-size: 18px; }

  .poems { padding: 80px 24px 64px; }
  .poem-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .poem-row__meta { white-space: normal; }

  .quote { min-height: 420px; padding: 80px 24px; }
  .quote__line { font-size: 24px; }

  .footer { padding: 80px 24px; }

  .detail__header, .poem, .sign, .detail__footnav { padding-left: 24px; padding-right: 24px; }
  .detail__header { padding-top: 96px; }
  .detail__title { font-size: 40px; letter-spacing: 3px; }
  .poem__line { font-size: 19px; line-height: 38px; }
  .detail__footnav { padding: 56px 24px 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
