:root {
  --bg: #f7f0e5;
  --bg-deep: #efe0cc;
  --ink: #33241b;
  --muted: #715c50;
  --line: rgba(94, 66, 48, 0.16);
  --card: rgba(255, 252, 247, 0.72);
  --card-strong: rgba(255, 249, 241, 0.9);
  --gold: #b88d52;
  --rose: #d9b3a7;
  --water: #c9d9dd;
  --shadow: 0 24px 60px rgba(94, 66, 48, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 26%),
    radial-gradient(circle at 80% 12%, rgba(217, 179, 167, 0.26), transparent 24%),
    radial-gradient(circle at 70% 78%, rgba(201, 217, 221, 0.34), transparent 28%),
    linear-gradient(180deg, #fbf6ee 0%, var(--bg) 46%, #f1e5d5 100%);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.page-glow {
  position: fixed;
  width: 38rem;
  height: 38rem;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
}

.page-glow-left {
  top: -12rem;
  left: -10rem;
  background: rgba(240, 205, 142, 0.26);
}

.page-glow-right {
  right: -8rem;
  bottom: -10rem;
  background: rgba(180, 211, 218, 0.32);
}

.shell {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero,
.story,
.chapters {
  position: relative;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.84), rgba(255, 248, 239, 0.68));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero {
  padding: 28px;
}

.eyebrow,
.section-kicker,
.chapter-label,
.note-label,
.story-index,
.intro,
.panel-title,
.footer-brand {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker,
.note-label,
.panel-title,
.footer-brand {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.story-card,
.chapter-item {
  border-radius: var(--radius-lg);
}

.hero-copy {
  padding: 12px 8px 4px;
}

.intro {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2,
h3,
.cn-name {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-weight: 400;
}

h1 {
  margin: 0;
  font-size: clamp(3.6rem, 10vw, 6.8rem);
  line-height: 0.94;
}

h1 span {
  display: block;
  color: rgba(51, 36, 27, 0.7);
}

.cn-name {
  margin: 16px 0 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--muted);
}

.lead {
  width: min(34rem, 100%);
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.note-card,
.story-card,
.chapter-item,
.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(94, 66, 48, 0.12);
  background: var(--card);
}

.note-card {
  padding: 18px 18px 20px;
}

.note-card::after,
.story-card::after,
.chapter-item::after,
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 45%);
}

.note-text,
.panel-quote,
.story-card p,
.chapter-item p,
.footer-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-panel {
  padding: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.62), transparent 30%),
    linear-gradient(180deg, rgba(255, 247, 236, 0.94), rgba(249, 239, 227, 0.84));
  min-height: 100%;
}

.panel-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(184, 141, 82, 0.18);
}

.orbit-one {
  inset: 32px 18px auto auto;
  width: 160px;
  height: 160px;
}

.orbit-two {
  inset: auto auto 24px 20px;
  width: 110px;
  height: 110px;
}

.panel-quote {
  position: relative;
  z-index: 1;
  margin: 42px 0 94px;
  max-width: 19rem;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.7;
}

.panel-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.story,
.chapters {
  padding: 30px 28px 32px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
}

.section-heading.compact {
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.story-card,
.chapter-item {
  padding: 22px 20px 24px;
}

.story-index {
  margin: 0 0 32px;
  color: rgba(184, 141, 82, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.chapter-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.chapter-label {
  margin: 0 0 24px;
  color: rgba(113, 92, 80, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 10px 8px;
}

.footer-copy {
  font-size: 0.95rem;
}

@media (hover: hover) {
  .note-card,
  .story-card,
  .chapter-item,
  .hero-panel {
    transition:
      transform 220ms ease,
      border-color 220ms ease,
      box-shadow 220ms ease;
  }

  .note-card:hover,
  .story-card:hover,
  .chapter-item:hover,
  .hero-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 141, 82, 0.32);
    box-shadow: 0 18px 40px rgba(94, 66, 48, 0.12);
  }
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 1rem, 1120px);
    padding-top: 16px;
  }

  .hero,
  .story,
  .chapters {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-grid,
  .section-heading,
  .section-heading.compact,
  .story-grid,
  .chapter-list {
    grid-template-columns: 1fr;
  }

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

  .panel-quote {
    margin-bottom: 64px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 22px;
  }

  h1 {
    font-size: 3.35rem;
  }

  .lead {
    font-size: 0.98rem;
  }

  .panel-quote {
    font-size: 1.1rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  h3 {
    font-size: 1.24rem;
  }
}
