:root {
  --cream: #f2ede6;
  --cream-deep: #e6ddd0;
  --paper: #f7f3ec;
  --espresso: #12203a;
  --espresso-soft: #1e2d4a;
  --ink: #1e2d4a;
  --gold: #8a6d4a;
  --gold-deep: #6e5638;
  --burgundy: #7a1e25;
  --rule: rgba(18, 32, 58, 0.18);
  --rule-soft: rgba(18, 32, 58, 0.08);
  --serif-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --serif-body: 'Cormorant Garamond', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(ellipse at top left, rgba(18, 32, 58, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(122, 30, 37, 0.06), transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

main, header, footer, section { position: relative; z-index: 2; }

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topbar .brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; }
.topbar .brand-mark { height: 64px; width: auto; display: block; }
.topbar .mark { font-family: var(--serif-display); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; }
.topbar .mark em { font-style: normal; color: var(--gold-deep); letter-spacing: 0; font-weight: 500; }
.topbar nav { display: flex; gap: 2rem; }
.topbar nav a { color: var(--ink); text-decoration: none; transition: color 0.3s ease; }
.topbar nav a:hover { color: var(--burgundy); }

/* FOOTER */
footer { padding: 3rem; border-top: 1px solid var(--rule); background: var(--cream); }
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-inner .mark { font-family: var(--serif-display); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--espresso); line-height: 1; }
.footer-inner .mark em { color: var(--gold-deep); font-style: normal; letter-spacing: 0; font-weight: 500; }
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand-mark { height: 54px; width: auto; display: block; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; }
.footer-links a { color: var(--espresso-soft); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--burgundy); }
.footer-legal { border-top: 1px solid var(--rule-soft); padding-top: 1.5rem; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--espresso-soft); line-height: 1.7; opacity: 0.75; }
.footer-legal p { margin-bottom: 0.4rem; }

/* BUTTONS */
.btn { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 1.1rem 2.2rem; border: 1px solid var(--espresso); background: var(--espresso); color: var(--cream); text-decoration: none; cursor: pointer; transition: all 0.4s ease; display: inline-block; }
.btn:hover { background: var(--burgundy); border-color: var(--burgundy); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--espresso); }
.btn-ghost:hover { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }

/* LEGAL / LONG-FORM PAGE */
.legal-page { max-width: 780px; margin: 0 auto; padding: 5rem 3rem 6rem; }
.legal-page .page-meta { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 2rem; display: flex; align-items: center; gap: 1rem; }
.legal-page .page-meta::before, .legal-page .page-meta::after { content: ''; flex: 0 0 2rem; height: 1px; background: var(--gold); }
.legal-page h1 { font-family: var(--serif-display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--espresso); margin-bottom: 1.5rem; }
.legal-page h1 em { font-style: normal; color: var(--burgundy); }
.legal-page .effective { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--espresso-soft); opacity: 0.75; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.legal-page h2 { font-family: var(--serif-display); font-weight: 500; font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--espresso); margin-top: 2.5rem; margin-bottom: 1rem; }
.legal-page h3 { font-family: var(--serif-display); font-weight: 600; font-style: normal; font-size: 1.25rem; color: var(--burgundy); margin-top: 2rem; margin-bottom: 0.8rem; }
.legal-page p { font-size: 1.1rem; line-height: 1.65; margin-bottom: 1.2rem; color: var(--espresso-soft); }
.legal-page p.lead { font-size: 1.3rem; font-style: normal; color: var(--espresso); margin-bottom: 2rem; font-family: var(--serif-display); font-weight: 500; line-height: 1.45; }
.legal-page ul, .legal-page ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
.legal-page li { font-size: 1.1rem; line-height: 1.65; margin-bottom: 0.6rem; color: var(--espresso-soft); }
.legal-page a { color: var(--burgundy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-page a:hover { color: var(--espresso); }
.legal-page .callout { background: var(--paper); border-left: 3px solid var(--gold); padding: 1.5rem 2rem; margin: 2rem 0; font-size: 1rem; line-height: 1.55; }
.legal-page .callout p { font-size: 1rem; margin-bottom: 0.5rem; }
.legal-page .callout p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .topbar { padding: 1.5rem 1.5rem; justify-content: center; }
  .topbar nav { display: none; }
  .topbar .brand { gap: 0.85rem; }
  .topbar .brand-mark { height: 68px; }
  .topbar .mark { font-size: 1.45rem; }
  .legal-page { padding: 3rem 1.5rem 4rem; }
  footer { padding: 2rem 1.5rem; }
  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { gap: 1rem; justify-content: center; }
  .footer-brand { align-items: center; text-align: center; }
}

/* ============ PAPER GRAIN OVERLAY ============ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ============ HERO ============ */
.hero { padding: 4rem 3rem 6rem; max-width: 1400px; margin: 0 auto; position: relative; }

.hero-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 5rem; align-items: center; }

/* Book card — cover + info + pre-order CTA bonded together */
.hero-book-card {
  opacity: 0;
  animation: fadeIn 1.2s ease 0.1s forwards;
}

.book-cover-link {
  display: block;
  text-decoration: none;
  margin-bottom: 1.75rem;
}

.book-cover {
  position: relative;
  background: #1a1a1a;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.5s ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    -8px 0 0 -4px #0a0a0a,
    -10px 0 0 -5px rgba(18, 32, 58, 0.4),
    24px 30px 60px -15px rgba(18, 32, 58, 0.45),
    8px 12px 25px -8px rgba(18, 32, 58, 0.3);
  border-radius: 1px 3px 3px 1px;
}

.book-cover::before {
  /* Spine highlight line on the left edge */
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
}

.book-cover::after {
  /* Subtle page-edge sheen on the right */
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: -2px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.book-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1px 3px 3px 1px;
}

.book-cover-link:hover .book-cover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    -8px 0 0 -4px #0a0a0a,
    -10px 0 0 -5px rgba(18, 32, 58, 0.4),
    30px 40px 70px -15px rgba(18, 32, 58, 0.5),
    10px 16px 30px -8px rgba(18, 32, 58, 0.35);
}

.book-info { padding-left: 0.25rem; }
.book-label { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.6rem; }
.book-title { font-family: var(--serif-display); font-size: 1.6rem; font-weight: 700; line-height: 1.05; color: var(--espresso); letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 0.3rem; display: block; }
.book-subtitle { display: block; font-family: var(--serif-display); font-size: 0.9rem; font-weight: 500; color: var(--burgundy); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 0.35rem; line-height: 1; }
.book-title em { font-style: normal; color: var(--burgundy); font-weight: 600; letter-spacing: 0; }
.book-author { font-family: var(--serif-display); font-style: normal; font-size: 1rem; color: var(--espresso-soft); margin-bottom: 1.2rem; }
.book-cta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--espresso);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--espresso);
  background: transparent;
  transition: all 0.35s ease;
}
.book-cta:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--cream);
  gap: 0.85rem;
}
.book-note { font-family: var(--serif-display); font-style: normal; font-size: 0.9rem; color: var(--espresso-soft); opacity: 0.85; margin: 0.85rem 0 0; max-width: 280px; }

/* Right-column content */
.hero-content { min-width: 0; }
.hero-meta { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 2rem; display: flex; align-items: center; gap: 1rem; opacity: 0; animation: fadeIn 0.9s ease 0.2s forwards; }
.hero-meta::before, .hero-meta::after { content: ''; flex: 0 0 2rem; height: 1px; background: var(--gold); }
.hero-meta em { font-family: var(--serif-display); font-style: normal; font-size: 0.95rem; letter-spacing: 0; text-transform: none; color: var(--burgundy); margin-left: 0.3em; }
.hero h1 { font-family: var(--serif-display); font-weight: 700; font-size: clamp(3rem, 7vw, 6.5rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--espresso); margin-bottom: 2rem; }
.hero h1 .line { display: block; opacity: 0; animation: riseIn 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards; }
.hero h1 .line:nth-child(1) { animation-delay: 0.3s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.45s; font-style: normal; color: var(--burgundy); font-weight: 700; }
.hero-sub { max-width: 620px; font-size: 1.35rem; line-height: 1.45; font-weight: 400; color: var(--espresso-soft); margin-bottom: 2.5rem; opacity: 0; animation: fadeIn 1s ease 0.8s forwards; }
.hero-sub em { font-family: var(--serif-display); font-style: normal; color: var(--burgundy); font-weight: 600; }
.hero-actions { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; opacity: 0; animation: fadeIn 1s ease 1.05s forwards; }


/* ============ ANIMATIONS ============ */
@keyframes riseIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s cubic-bezier(0.19, 1, 0.22, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ SECTION LABEL ============ */
.section-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.8rem; }
.section-label::before { content: ''; width: 2.5rem; height: 1px; background: var(--gold); }

/* ============ MEMORIAL BAND ============ */
.memorial-band { background: var(--espresso); color: var(--cream); padding: 5rem 3rem; position: relative; overflow: hidden; }
.memorial-band::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 30% 50%, rgba(138, 109, 74, 0.16), transparent 60%); pointer-events: none; }
.memorial-inner { max-width: 900px; margin: 0 auto; text-align: center; position: relative; }
.memorial-dates { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 2rem; }
.memorial-quote { font-family: var(--serif-display); font-weight: 400; font-style: normal; font-size: clamp(1.6rem, 3.5vw, 2.6rem); line-height: 1.35; letter-spacing: -0.005em; color: var(--cream); }
.memorial-quote::before, .memorial-quote::after { font-family: var(--serif-display); color: var(--gold); font-size: 1.5em; line-height: 0; vertical-align: -0.3em; opacity: 0.6; }
.memorial-quote::before { content: '\201C'; margin-right: 0.1em; }
.memorial-quote::after { content: '\201D'; margin-left: 0.05em; }

/* ============ MISSION ============ */
.mission { padding: 8rem 3rem; max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: 6rem; align-items: start; }
.mission h2 { font-family: var(--serif-display); font-weight: 600; font-size: clamp(2.4rem, 4.5vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--espresso); }
.mission h2 em { font-style: normal; color: var(--burgundy); font-weight: 600; }
.mission-body p { font-size: 1.2rem; line-height: 1.65; margin-bottom: 1.5rem; color: var(--espresso-soft); }
.mission-body p.lead { font-size: 1.45rem; font-family: var(--serif-display); font-weight: 400; color: var(--espresso); line-height: 1.45; }
.mission-body p.lead::first-letter { font-family: var(--serif-display); font-size: 4.5rem; float: left; line-height: 0.85; padding: 0.3rem 0.7rem 0 0; font-weight: 500; color: var(--burgundy); }

/* ============ NEXT 100 ============ */
.next-hundred { background: var(--paper); padding: 8rem 3rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-align: center; position: relative; }
.next-hundred-inner { max-width: 900px; margin: 0 auto; }
.big-number { font-family: var(--serif-display); font-weight: 700; font-size: clamp(8rem, 22vw, 18rem); line-height: 0.95; letter-spacing: -0.04em; color: var(--espresso); display: block; margin-bottom: 1rem; position: relative; }
.big-number::after { content: 'THE NEXT'; position: absolute; top: -0.5rem; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.3em; color: var(--gold-deep); white-space: nowrap; }
.next-hundred h3 { font-family: var(--serif-display); font-weight: 500; font-style: normal; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.3; color: var(--espresso); margin-bottom: 1.5rem; }
.next-hundred p { max-width: 640px; margin: 0 auto; font-size: 1.2rem; line-height: 1.6; color: var(--espresso-soft); }

/* ============ TIERS ============ */
.tiers { padding: 8rem 3rem; max-width: 1400px; margin: 0 auto; }
.tiers-header { text-align: center; margin-bottom: 5rem; }
.tiers-header h2 { font-family: var(--serif-display); font-weight: 600; font-size: clamp(2.4rem, 4.5vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--espresso); margin-bottom: 1.5rem; }
.tiers-header h2 em { font-style: normal; color: var(--burgundy); }
.tiers-header p { max-width: 620px; margin: 0 auto; font-size: 1.2rem; color: var(--espresso-soft); }
.tiers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tier { padding: 3.5rem 2rem; border-right: 1px solid var(--rule); text-align: left; background: transparent; transition: background 0.5s ease, transform 0.5s ease; position: relative; cursor: pointer; display: flex; flex-direction: column; min-height: 420px; }
.tier:last-child { border-right: none; }
.tier:hover { background: var(--paper); }
.tier:hover .tier-amount { color: var(--burgundy); }
.tier-index { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.25em; color: var(--gold-deep); margin-bottom: 2rem; }
.tier-amount { font-family: var(--serif-display); font-weight: 600; font-size: 4.2rem; line-height: 1; letter-spacing: -0.025em; color: var(--espresso); margin-bottom: 0.3rem; transition: color 0.4s ease; }
.tier-amount .dollar { font-size: 0.6em; vertical-align: 0.35em; color: var(--gold-deep); margin-right: 0.05em; font-weight: 400; }
.tier-name { font-family: var(--serif-display); font-style: normal; font-size: 1.25rem; color: var(--burgundy); margin-bottom: 1.5rem; font-weight: 600; }
.tier-desc { font-size: 1rem; line-height: 1.55; color: var(--espresso-soft); margin-bottom: 2rem; flex-grow: 1; }
.tier-cta { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--espresso); text-decoration: none; padding-bottom: 0.5rem; border-bottom: 1px solid var(--espresso); align-self: flex-start; transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease; display: inline-flex; gap: 0.5rem; align-items: center; }
.tier-cta:hover { color: var(--burgundy); border-color: var(--burgundy); gap: 0.9rem; }

.tiers-disclosure { max-width: 760px; margin: 3rem auto 0; text-align: center; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; line-height: 1.7; color: var(--espresso-soft); opacity: 0.7; text-transform: uppercase; }
.tiers-disclosure a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; }
.tiers-disclosure a:hover { color: var(--espresso); }

/* ============ NEWSLETTER ============ */
.newsletter { background: var(--espresso); color: var(--cream); padding: 7rem 3rem; position: relative; overflow: hidden; }
.newsletter::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 20%, rgba(138, 109, 74, 0.14), transparent 55%), radial-gradient(circle at 10% 80%, rgba(122, 30, 37, 0.22), transparent 55%); }
.newsletter-inner { max-width: 900px; margin: 0 auto; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.newsletter-inner .section-label { color: var(--gold); }
.newsletter-inner .section-label::before { background: var(--gold); }
.newsletter h2 { font-family: var(--serif-display); font-weight: 600; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.05; letter-spacing: -0.015em; color: var(--cream); }
.newsletter h2 em { font-style: normal; color: var(--gold); }
.newsletter p { margin-top: 1.5rem; font-size: 1.1rem; line-height: 1.5; color: rgba(244, 237, 224, 0.75); }
.newsletter-form { display: flex; flex-direction: column; gap: 1rem; }
.newsletter-form input { background: transparent; border: none; border-bottom: 1px solid rgba(244, 237, 224, 0.3); padding: 1rem 0; color: var(--cream); font-family: var(--serif-display); font-size: 1.1rem; font-style: normal; transition: border-color 0.3s ease; outline: none; }
.newsletter-form input:focus { border-bottom-color: var(--gold); }
.newsletter-form input::placeholder { color: rgba(244, 237, 224, 0.4); }
.newsletter-form button { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 1.1rem 2rem; background: var(--cream); color: var(--espresso); border: 1px solid var(--cream); cursor: pointer; transition: all 0.4s ease; margin-top: 0.5rem; align-self: flex-start; }
.newsletter-form button:hover { background: var(--gold); border-color: var(--gold); color: var(--espresso); }
.newsletter-note { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(244, 237, 224, 0.4); margin-top: 1rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero { padding: 2.5rem 1.5rem 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-book-card { max-width: 360px; margin: 0 auto; text-align: center; }
  .book-info { padding-left: 0; }
  .book-note { margin-left: auto; margin-right: auto; }
  .memorial-band, .next-hundred, .tiers, .newsletter { padding-left: 1.5rem; padding-right: 1.5rem; }
  .mission { padding: 5rem 1.5rem; grid-template-columns: 1fr; gap: 2.5rem; }
  .tiers-grid { grid-template-columns: 1fr; }
  .tier { border-right: none; border-bottom: 1px solid var(--rule); min-height: auto; }
  .tier:last-child { border-bottom: none; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 2rem; }
}
