:root {
  --bg: #f6efe4;
  --bg-accent: #eadfcb;
  --panel: rgba(255, 252, 247, 0.72);
  --border: rgba(104, 80, 53, 0.15);
  --text: #2a211b;
  --muted: #6d5846;
  --strong: #8d3c29;
  --shadow: 0 22px 60px rgba(91, 62, 24, 0.12);
  --reader-width: 760px;
  --reader-font-size: 20px;
  --reader-line-height: 2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Noto Serif SC", serif;
  background:
    radial-gradient(circle at top left, rgba(179, 134, 69, 0.18), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(120, 73, 56, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, #f2ebde 52%, #efe7d7 100%);
}

body[data-theme="mist"] {
  --bg: #dce4ea;
  --bg-accent: #c2d0db;
  --panel: rgba(247, 251, 253, 0.75);
  --border: rgba(53, 70, 88, 0.14);
  --text: #1d2a35;
  --muted: #5d6f7f;
  --strong: #315d7a;
  --shadow: 0 22px 60px rgba(50, 72, 90, 0.12);
}

body[data-theme="night"] {
  --bg: #111416;
  --bg-accent: #1f2a30;
  --panel: rgba(20, 24, 27, 0.78);
  --border: rgba(194, 179, 160, 0.12);
  --text: #e9dfd2;
  --muted: #a59686;
  --strong: #f0ab76;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 420px);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.panel,
.cover-frame {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: 32px;
  padding: 40px;
}

.eyebrow,
.panel-label,
.reader-kicker,
.cover-mark,
.section-meta {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 12px;
}

.hero h1,
.cover-frame h2,
.reader-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(58px, 9vw, 104px);
  margin-top: 10px;
}

.subtitle {
  margin: 18px 0 0;
  font-size: 18px;
  color: var(--strong);
}

.intro {
  margin: 24px 0 0;
  max-width: 40rem;
  line-height: 1.95;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span,
.tag-list span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  text-decoration: none;
  font-size: 15px;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.cover-card {
  position: relative;
  min-height: 520px;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(128, 57, 38, 0.92), rgba(45, 24, 21, 0.98)),
    linear-gradient(180deg, #7b392a, #241816);
}

.cover-glow {
  position: absolute;
  inset: auto auto -60px -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 209, 135, 0.18);
  filter: blur(10px);
}

.cover-frame {
  position: absolute;
  inset: 24px;
  border-radius: 28px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f8eadb;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 230, 196, 0.18);
}

.cover-frame h2 {
  font-size: clamp(42px, 7vw, 72px);
}

.cover-quote {
  font-family: "Ma Shan Zheng", cursive;
  font-size: 34px;
  line-height: 1.45;
  margin: 0;
}

.cover-sign {
  margin: 0;
  align-self: flex-end;
  opacity: 0.82;
}

.layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(220px, 280px);
  gap: 20px;
  margin-top: 24px;
}

.panel {
  border-radius: 28px;
  padding: 22px;
}

.sticky {
  position: sticky;
  top: 18px;
}

.field {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.field input,
.field select {
  width: 100%;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.stat-grid div {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.stat-grid strong,
blockquote {
  display: block;
}

.stat-grid strong {
  font-size: 26px;
  font-family: "Cormorant Garamond", serif;
}

.stat-grid span {
  font-size: 12px;
  color: var(--muted);
}

.reader-wrap {
  min-width: 0;
}

.reader {
  width: min(100%, var(--reader-width));
  margin: 0 auto;
  padding: 44px clamp(22px, 3vw, 54px);
}

.reader-head {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.reader-head h2 {
  font-size: clamp(42px, 6vw, 60px);
  margin-top: 10px;
}

.reader-head p {
  margin: 14px auto 0;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.9;
}

.reader-section {
  padding: 32px 0 8px;
}

.section-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border);
}

.reader p {
  margin: 1.15em 0 0;
  font-size: var(--reader-font-size);
  line-height: var(--reader-line-height);
  text-wrap: pretty;
}

.reader-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-top: 28px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

blockquote {
  margin: 16px 0;
  padding: 18px 18px 18px 20px;
  border-left: 3px solid var(--strong);
  line-height: 1.9;
  color: var(--text);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 0 20px 20px 0;
}

.info-copy {
  color: var(--muted);
  line-height: 1.9;
}

.info-metrics {
  margin: 18px 0 20px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.14);
}

.info-metrics p {
  margin: 0;
  line-height: 1.9;
  color: var(--muted);
}

.info-metrics p + p {
  margin-top: 6px;
}

.info-metrics strong {
  color: var(--text);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 1120px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .rail {
    order: 2;
  }

  .sticky {
    position: static;
  }

  .reader {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100vw - 20px, 1440px);
    padding-top: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .panel,
  .reader {
    border-radius: 22px;
  }

  .cover-card {
    min-height: 420px;
  }

  .cover-quote {
    font-size: 28px;
  }

  .section-meta,
  .reader-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}
