/* ============================================================
   四季官方CN中国｜阅新境 — Site Kit
   文件：/assets/site.css
   职责：reset、CSS 变量、中文排版、共享头部页脚、
   通用按钮、面包屑、正文容器、网格与基础组件
   ============================================================ */

/* ---------- 0. Tokens & Reset ---------- */
:root {
  --gold: #C79B42;
  --gold-soft: rgba(199, 155, 66, 0.16);
  --brown: #3E2A1E;
  --brown-soft: rgba(62, 42, 30, 0.12);
  --green: #1F3A2C;
  --green-soft: rgba(31, 58, 44, 0.12);
  --red: #B44730;
  --red-soft: rgba(180, 71, 48, 0.14);
  --paper: #F4ECDD;
  --ivory: #FFFBF2;
  --olive: #6F7555;
  --ink: #1F211D;
  --paper-dim: rgba(244, 236, 221, 0.78);
  --paper-line: rgba(244, 236, 221, 0.22);
  --font-head: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --base-size: 18px;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
  --shell: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--base-size);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--brown);
  line-height: 1.4;
  font-weight: 700;
}

h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.2vw, 36px); }
h3 { font-size: 22px; }

p { line-height: 1.8; }

ul, ol { padding-inline-start: 1.4em; }
li { margin-block: 8px; }

a {
  color: var(--brown);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--duration) var(--ease);
}
a:hover { color: var(--red); }

img, svg { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

[hidden] { display: none !important; }

::selection { background: var(--gold); color: var(--brown); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-footer :focus-visible,
.header-track :focus-visible {
  outline-color: var(--gold);
}

/* ---------- 1. Layout Utilities ---------- */
.shell {
  width: min(var(--shell), 100% - 48px);
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
}
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* ---------- 2. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--brown);
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(199, 155, 66, 0.28);
}
.btn-primary:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--paper);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(199, 155, 66, 0.65);
  color: var(--brown);
}
.btn-ghost:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--brown);
}
.btn-outline-light {
  background: transparent;
  border-color: var(--paper-line);
  color: var(--paper);
}
.btn-outline-light:hover {
  background: rgba(244, 236, 221, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}
.btn-small { padding: 9px 18px; font-size: 14px; }

/* ---------- 3. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -140px;
  left: 24px;
  z-index: 200;
  background: var(--brown);
  color: var(--paper);
  padding: 12px 24px;
  border-radius: 0 0 16px 16px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}
.skip-link:focus-visible {
  top: 0;
  color: var(--gold);
}

/* ---------- 4. Site Header ---------- */
.site-header {
  display: grid;
  grid-template-columns: minmax(240px, 3fr) minmax(0, 9fr);
  background: var(--paper);
  position: relative;
}

.header-track {
  background-color: var(--brown);
  background-image: radial-gradient(rgba(199, 155, 66, 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 42px 24px 30px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--paper);
  text-decoration: none;
}
.brand-lockup:hover { color: var(--paper); }

.brand-seal {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 3px rgba(244, 236, 221, 0.3),
              0 12px 26px rgba(16, 10, 6, 0.35);
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.brand-lockup:hover .brand-seal {
  background: var(--gold);
  color: var(--brown);
}

.brand-vertical {
  position: relative;
  display: inline-block;
  writing-mode: vertical-rl;
  line-height: 1.15;
  padding: 4px 0 8px 36px;
}
.brand-vertical-title {
  display: block;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.36em;
  color: var(--paper);
}
.brand-vertical-sub {
  position: absolute;
  top: 18px;
  left: 0;
  writing-mode: vertical-rl;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--gold);
  border-right: 1px solid rgba(199, 155, 66, 0.55);
  padding-right: 12px;
}

.track-site {
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: rgba(244, 236, 221, 0.55);
}

.header-panel {
  background: var(--paper);
  padding: 30px 48px 34px;
  border-bottom: 1px solid rgba(199, 155, 66, 0.35);
}
@media (min-width: 900px) {
  .header-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

.header-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.topline-site {
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--brown);
  white-space: nowrap;
}
.topline-site::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
  position: relative;
  top: -1px;
}
.topline-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline: auto;
  font-size: 14px;
  letter-spacing: 0.07em;
  color: var(--olive);
}
.tagline-seal {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--gold);
  color: var(--brown);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  flex: 0 0 auto;
}
.topline-action { flex: 0 0 auto; }

.site-nav { display: block; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-item { margin: 0; }

.nav-link {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--brown);
  text-decoration: none;
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.nav-link:hover {
  background: var(--gold-soft);
  color: var(--brown);
}
.nav-link[aria-current="page"] {
  background: var(--brown);
  color: var(--paper);
  box-shadow: 0 8px 18px rgba(62, 42, 30, 0.22);
}
.nav-link-accent { color: var(--red); }
.nav-link-accent:hover {
  background: var(--red-soft);
  color: var(--red);
}
.nav-link-accent[aria-current="page"] {
  background: var(--red);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 6px;
  min-width: 56px;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--gold);
}
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
}
.nav-toggle-text { font-size: 12px; letter-spacing: 0.2em; line-height: 1; }
.nav-toggle-text::before { content: "菜单"; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-text::before { content: "关闭"; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 5. Site Footer ---------- */
.site-footer {
  background-color: var(--green);
  background-image: radial-gradient(rgba(244, 236, 221, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--paper-dim);
  border-top: 1px solid rgba(199, 155, 66, 0.35);
}

.footer-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 30px 0 0;
}
.footer-ornament-line {
  width: min(180px, 22vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 155, 66, 0.6), transparent);
}
.footer-ornament-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}

.footer-inner { min-width: 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 4.2fr 2.4fr 2.4fr 3.6fr;
  gap: 44px 48px;
  padding: 52px 0 48px;
}

.footer-brand-title {
  font-family: var(--font-head);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: var(--paper);
}
.footer-brand-sub {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.34em;
  color: var(--gold);
}
.footer-about {
  margin-top: 24px;
  max-width: 38em;
  font-size: 15px;
  line-height: 1.9;
  color: var(--paper-dim);
}
.footer-trust {
  margin-top: 22px;
  max-width: 42em;
  padding-left: 16px;
  border-left: 2px solid rgba(199, 155, 66, 0.65);
  font-size: 13px;
  line-height: 1.85;
  color: rgba(244, 236, 221, 0.6);
}

.footer-col { min-width: 0; }
.footer-col-title {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(199, 155, 66, 0.3);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.footer-links a {
  color: var(--paper-dim);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.06em;
  transition: color var(--duration) var(--ease),
              padding-left var(--duration) var(--ease);
}
.footer-links a:hover {
  color: var(--gold);
  padding-left: 6px;
}

.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--paper-dim);
}
.footer-contact li { margin: 0; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(199, 155, 66, 0.22);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(244, 236, 221, 0.62);
}
.footer-copyright,
.footer-icp { margin: 0; }
.footer-icp { font-variant-numeric: tabular-nums; }

/* ---------- 6. Back to Top ---------- */
.top-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 18px;
  background: var(--brown);
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(31, 33, 29, 0.3);
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.top-btn:hover {
  background: var(--gold);
  color: var(--brown);
  transform: translateY(-3px);
}

/* ---------- 7. Typography Helpers ---------- */
.page-hero { padding: 88px 0 52px; }
.page-hero--compact { padding: 52px 0 28px; }

.page-title {
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.35;
  color: var(--brown);
  max-width: 14em;
}
.page-subtitle {
  margin-top: 18px;
  max-width: 38em;
  font-size: 18px;
  line-height: 1.9;
  color: var(--olive);
}

.lead {
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.95;
  color: var(--brown);
}
.meta {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--olive);
}
.dropcap::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-family: var(--font-head);
  font-size: 2.6em;
  line-height: 1;
  font-weight: 700;
  color: var(--brown);
}
.vert-note {
  writing-mode: vertical-rl;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--olive);
}

/* ---------- 8. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  font-size: 14px;
  color: var(--olive);
  list-style: none;
}
.breadcrumb li { margin: 0; }
.breadcrumb a {
  color: var(--brown);
  text-decoration: none;
  letter-spacing: 0.06em;
}
.breadcrumb a:hover { color: var(--red); }
.breadcrumb li + li::before {
  content: "／";
  margin-right: 8px;
  color: var(--gold);
}
.breadcrumb [aria-current="page"] { color: var(--olive); }

/* ---------- 9. Section Head ---------- */
.section-head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 40px;
}
.section-kicker {
  writing-mode: vertical-rl;
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--gold);
  line-height: 1.4;
  padding-top: 6px;
}
.section-title {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.45;
  color: var(--brown);
}
.section-note {
  margin-top: 10px;
  font-size: 15px;
  color: var(--olive);
  max-width: 56em;
}

/* ---------- 10. Chapter Preview ---------- */
.chapter-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.preview-card {
  position: relative;
  display: block;
  background: var(--ivory);
  border: 1px solid rgba(199, 155, 66, 0.22);
  border-radius: var(--radius-lg);
  padding: 34px 28px 28px;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(62, 42, 30, 0.06);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}
.preview-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 8px 8px;
  background: var(--gold);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.preview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 155, 66, 0.5);
  box-shadow: 0 28px 52px rgba(62, 42, 30, 0.1);
}
.preview-card:hover::before { opacity: 1; }
.preview-card-number {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}
.preview-card-title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.5;
  color: var(--brown);
}
.preview-card-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--olive);
}
.preview-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--red);
  text-decoration: none;
  transition: gap var(--duration) var(--ease),
              color var(--duration) var(--ease);
}
.preview-card-link::after { content: "→"; }
.preview-card:hover .preview-card-link {
  gap: 12px;
  color: var(--brown);
}

/* ---------- 11. Info Card ---------- */
.info-card {
  background: var(--ivory);
  border: 1px solid rgba(199, 155, 66, 0.22);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.info-card-title {
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.5;
  color: var(--brown);
}
.info-card-body {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

/* ---------- 12. Details Archive ---------- */
.details-archive { display: grid; gap: 16px; }
.details-archive details {
  background: var(--ivory);
  border: 1px solid rgba(199, 155, 66, 0.22);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.details-archive details[open] {
  border-color: rgba(199, 155, 66, 0.5);
  box-shadow: 0 16px 36px rgba(62, 42, 30, 0.08);
}
.details-archive summary {
  position: relative;
  list-style: none;
  padding: 24px 68px 24px 28px;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 21px;
  line-height: 1.6;
  color: var(--brown);
  transition: background-color var(--duration) var(--ease);
}
.details-archive summary::-webkit-details-marker { display: none; }
.details-archive summary:hover { background: var(--gold-soft); }
.details-archive summary::after {
  content: "＋";
  position: absolute;
  top: 50%;
  right: 26px;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 300;
  color: var(--gold);
  transition: color var(--duration) var(--ease);
}
.details-archive details[open] summary::after {
  content: "－";
  color: var(--red);
}
.details-content {
  padding: 0 28px 26px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

/* ---------- 13. Tags ---------- */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--brown);
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}
a.tag:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--paper);
}

/* ---------- 14. Image Frame ---------- */
.image-frame {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--olive);
  border: 1px solid rgba(199, 155, 66, 0.22);
}
.image-frame::before {
  content: "";
  display: block;
  padding-top: 66.667%;
}
.image-frame--square::before { padding-top: 100%; }
.image-frame--portrait::before { padding-top: 125%; }
.image-frame--wide::before { padding-top: 42%; }
.image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: var(--green);
  background-image: linear-gradient(135deg, rgba(244, 236, 221, 0.05) 25%, transparent 25%, transparent 50%, rgba(244, 236, 221, 0.05) 50%, rgba(244, 236, 221, 0.05) 75%, transparent 75%);
  background-size: 26px 26px;
  color: var(--paper-dim);
  font-family: var(--font-head);
  letter-spacing: 0.2em;
}
.image-placeholder span {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(31, 33, 29, 0.55);
  font-size: 13px;
}

/* ---------- 15. Notice / Table / Tabs ---------- */
.notice {
  display: flex;
  gap: 14px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--gold);
  background: var(--ivory);
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}
.notice-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--brown);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.info-table th,
.info-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(199, 155, 66, 0.22);
  text-align: left;
  vertical-align: top;
}
.info-table th {
  background: rgba(199, 155, 66, 0.12);
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--brown);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tab-button {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(199, 155, 66, 0.45);
  background: transparent;
  color: var(--brown);
  font-size: 15px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}
.tab-button:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}
.tab-button[aria-selected="true"] {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--paper);
}

/* ---------- 16. Ornaments ---------- */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.4em;
}
.divider-ornament::before,
.divider-ornament::after {
  content: "";
  width: min(120px, 16vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 155, 66, 0.55));
}
.divider-ornament::after {
  background: linear-gradient(90deg, rgba(199, 155, 66, 0.55), transparent);
}

.moon-gate {
  position: relative;
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  margin-inline: auto;
  border: 2px solid rgba(199, 155, 66, 0.65);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(199, 155, 66, 0.16), transparent 68%);
  font-family: var(--font-head);
  font-size: 28px;
  letter-spacing: 0.24em;
  color: var(--brown);
}
.moon-gate::before,
.moon-gate::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(199, 155, 66, 0.35);
  border-radius: 50%;
}
.moon-gate::before { inset: 8px; }
.moon-gate::after { inset: 16px; border-style: dashed; }

/* ---------- 17. Reveal & Scrollspy States ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease),
              transform 0.55s var(--ease);
}
[data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: translateY(0);
}

[data-spy-link] { position: relative; }
[data-spy-link][data-active] { color: var(--red); }
[data-spy-link][data-active]::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 1199px) {
  .topline-site { display: none; }
  .header-panel { padding-inline: 32px; }
}

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .chapter-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .site-header { display: block; }

  .header-track {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding: 14px 84px 14px 20px;
  }
  .brand-lockup { justify-content: flex-start; gap: 14px; }
  .brand-seal {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 26px;
  }
  .brand-vertical {
    writing-mode: horizontal-tb;
    padding: 0;
  }
  .brand-vertical-title {
    font-size: 20px;
    letter-spacing: 0.14em;
    line-height: 1;
  }
  .brand-vertical-sub { display: none; }
  .track-site { display: none; }

  .header-panel {
    display: none;
    padding: 8px 16px 22px;
    border-bottom: 0;
  }
  .header-panel[data-open] {
    display: block;
    animation: panel-in 0.3s var(--ease);
  }

  .header-topline {
    flex-wrap: wrap;
    margin-bottom: 12px;
  }
  .topline-tagline {
    font-size: 13px;
    margin-inline: 0;
  }
  .topline-action { display: none; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-link {
    display: block;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 17px;
  }
  .nav-link[aria-current="page"] {
    background: transparent;
    color: var(--brown);
    border-left: 3px solid var(--gold);
    box-shadow: none;
    border-radius: 8px;
  }

  .nav-toggle {
    position: absolute;
    top: 14px;
    right: 16px;
    display: inline-flex;
    z-index: 20;
  }

  .grid { gap: 24px; }
  .col-3, .col-4 { grid-column: span 6; }
  .col-7, .col-8, .col-9 { grid-column: span 12; }
  .col-6 { grid-column: span 12; }
}

@media (max-width: 719px) {
  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 599px) {
  .shell { width: min(100% - 32px, var(--shell)); }
  .page-hero { padding: 56px 0 32px; }
  .chapter-preview { grid-template-columns: 1fr; }
  .col-3, .col-4 { grid-column: span 12; }
}

/* ---------- 19. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
