:root {
  --bg: #11100e;
  --bg-soft: #191713;
  --panel: #211e18;
  --panel-light: #2b271f;
  --text: #f4efe5;
  --muted: #c4b8a7;
  --faint: #8d8172;
  --gold: #d6ae6d;
  --gold-soft: #f1d49b;
  --line: rgba(244, 239, 229, 0.13);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.36);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(214,174,109,0.18), transparent 34rem),
    radial-gradient(circle at 80% 25%, rgba(108,76,43,0.18), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
p { color: var(--muted); margin: 0 0 1rem; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; line-height: 0.98; margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.4rem, 3.5vw, 4rem); max-width: 1050px; }
h2 { font-size: clamp(2.6rem, 5vw, 5rem); }
h3 { font-size: 2rem; }
blockquote { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.2rem, 4vw, 4.7rem); line-height: 1.05; color: var(--gold-soft); }

.skip-link { position: absolute; left: -999px; top: 1rem; background: var(--text); color: var(--bg); padding: .75rem 1rem; z-index: 20; }
.skip-link:focus { left: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background: rgba(17, 16, 14, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border: 1px solid rgba(214,174,109,.5); border-radius: 999px; color: var(--gold-soft); font-family: "Cormorant Garamond", Georgia, serif; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; color: var(--muted); font-size: .95rem; }
.site-nav a:hover { color: var(--gold-soft); }
.nav-toggle { display: none; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: .55rem .9rem; }

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 1.5rem;
  align-items: center;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 7rem 0 4rem;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 6rem 0 auto auto;
  width: min(42vw, 540px);
  height: min(42vw, 540px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214,174,109,.18), transparent 65%);
  pointer-events: none;
}
.hero-content, .hero-card { position: relative; }
.hero h1 { max-width: 680px; }
.hero .lead { font-size: clamp(1.15rem, 2vw, 1.45rem); max-width: 690px; margin-top: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: linear-gradient(145deg, rgba(43,39,31,.92), rgba(25,23,19,.75));
  box-shadow: var(--shadow);
}
.hero-card p { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.4rem; line-height: 1.2; color: var(--text); margin-bottom: .9rem; }
.hero-card p:last-child { margin-bottom: 0; color: var(--gold-soft); }

.eyebrow, .section-kicker {
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--gold);
  font-size: .77rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.section { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; padding: 6rem 0; }
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.section-heading p { font-size: 1.1rem; }
.intro { text-align: center; max-width: 960px; }
.intro p:last-child { font-size: 1.2rem; max-width: 760px; margin: 1.4rem auto 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.primary { background: var(--gold-soft); color: #19120a; border-color: var(--gold-soft); }
.secondary { background: rgba(244,239,229,.06); color: var(--text); }
.text-link { color: var(--gold-soft); font-weight: 700; }

.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.book-card, .journal-card, .journal-list article {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: rgba(33,30,24,.76);
}
.book-card.featured { background: linear-gradient(160deg, rgba(214,174,109,.16), rgba(33,30,24,.9)); border-color: rgba(214,174,109,.35); }
.book-number { color: var(--gold); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; }
.book-card h3 { margin: .65rem 0 1rem; }
.tagline { color: var(--gold-soft); font-weight: 700; }

.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; position: relative; }
.timeline::before { content: ""; position: absolute; top: 1rem; left: 2rem; right: 2rem; height: 1px; background: var(--line); }
.timeline div { position: relative; padding-top: 2.8rem; }
.timeline span { position: absolute; top: .55rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 0 .45rem rgba(214,174,109,.12); }
.timeline strong { display: block; margin-bottom: .35rem; }
.timeline p { font-size: .92rem; }

.split-panel, .hope-panel, .newsletter, .page-hero {
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: linear-gradient(145deg, rgba(43,39,31,.82), rgba(25,23,19,.72));
  box-shadow: var(--shadow);
}
.split-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; align-items: center; padding: 3rem; }
.hope-panel, .newsletter { text-align: center; padding: 4rem 2rem; max-width: 920px; }
.hope-panel p, .newsletter p { max-width: 620px; margin-left: auto; margin-right: auto; }

.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.journal-card { display: block; min-height: 210px; }
.journal-card span { color: var(--gold); font-weight: 800; }
.journal-card h3 { margin: 2rem 0 1rem; }
.journal-card:hover { border-color: rgba(214,174,109,.45); }

.signup-form { display: flex; justify-content: center; gap: .7rem; margin-top: 1.5rem; flex-wrap: wrap; }
.signup-form input { width: min(360px, 100%); padding: .95rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(17,16,14,.75); color: var(--text); }
.small { color: var(--faint); font-size: .9rem; margin-top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.page-hero { width: min(960px, calc(100% - 2rem)); margin: 5rem auto 0; padding: 4rem 2rem; text-align: center; }
.page-hero h1 { margin: 0 auto; }
.page-hero .lead { max-width: 690px; margin: 1.5rem auto 0; font-size: 1.25rem; }
.prose { max-width: 820px; }
.prose p { font-size: 1.18rem; }
.prose blockquote { font-size: clamp(2rem, 4vw, 3.6rem); margin: 2rem 0; }
.centered { text-align: center; }
.disclaimer { border-top: 1px solid var(--line); padding-top: 3rem; }

.memory-list { width: min(980px, calc(100% - 2rem)); margin: 3rem auto 0; }
.memory-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.memory-list li { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(244,239,229,.045); color: var(--text); text-align: center; }

.journal-list { display: grid; gap: 1rem; max-width: 900px; }
.journal-list h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); margin-bottom: 1rem; }

.site-footer { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; color: var(--faint); }
.site-footer p { margin: 0; color: var(--faint); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 5rem; }
  .book-grid, .journal-grid, .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .timeline div { padding-top: 0; padding-left: 2rem; }
  .timeline span { top: .35rem; left: 0; }
  .split-panel { grid-template-columns: 1fr; padding: 2rem; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 720px) {
  h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .site-header { align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: 4.7rem; flex-direction: column; align-items: stretch; padding: 1rem; background: rgba(25,23,19,.98); border: 1px solid var(--line); border-radius: 1rem; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .55rem; }
  .brand span:last-child { display: none; }
  .hero, .section { width: min(100% - 1rem, var(--max)); }
  .page-hero { width: calc(100% - 1rem); padding: 3rem 1rem; }
}
