:root {
  --cream: #fff3df;
  --paper: #f7dfc1;
  --ink: #2f2422;
  --cocoa: #4a302d;
  --coral: #df684f;
  --coral-dark: #a94735;
  --mint: #9dd8cd;
  --mint-dark: #437d75;
  --white: #fffaf1;
  --shadow: 0 14px 0 rgba(82, 45, 36, .2), 0 28px 55px rgba(62, 35, 28, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  width: min(1120px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(81, 49, 42, .18);
  border-radius: 28px;
  background: rgba(255, 248, 235, .84);
  box-shadow: 0 12px 36px rgba(54, 31, 25, .14);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand-mark {
  width: 34px;
  height: 30px;
  border-radius: 48% 52% 44% 56%;
  background: #e7ae70;
  box-shadow: inset -5px -5px 0 rgba(118, 68, 42, .15), 0 4px 0 rgba(74, 48, 45, .2);
  position: relative;
}

.brand-mark::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 10px;
  left: -5px;
  top: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.header-nav { display: flex; gap: 6px; align-items: center; }
.header-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 800;
}
.header-nav a:hover, .header-nav a:focus-visible { background: var(--paper); outline: none; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #dfb885 url("assets/backgrounds/hero-book-nook.png") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(46, 29, 26, .88) 0%, rgba(46, 29, 26, .64) 35%, rgba(46, 29, 26, .08) 68%, rgba(46, 29, 26, .18) 100%), linear-gradient(0deg, rgba(25, 18, 17, .34), transparent 40%);
}

.hero-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 140px 0 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #ffe3c4;
  font-size: .9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(223, 104, 79, .22);
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.4rem, 11vw, 9.5rem);
  line-height: .78;
  letter-spacing: -.085em;
  text-wrap: balance;
}

.title-accent { color: var(--mint); font-style: italic; }
.hero-copy {
  max-width: 580px;
  margin-bottom: 28px;
  color: #ffead4;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.plush-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border: 2px solid rgba(75, 41, 34, .2);
  border-radius: 22px 27px 20px 25px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 7px 0 #cbb299, 0 13px 24px rgba(40, 24, 20, .22), inset 0 0 0 4px rgba(255,255,255,.42);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transform: translateY(0) rotate(-.4deg);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.plush-button:nth-child(2) { transform: rotate(.5deg); }
.plush-button.coral { color: #fffaf2; background: var(--coral); box-shadow: 0 7px 0 var(--coral-dark), 0 13px 24px rgba(40, 24, 20, .24), inset 0 0 0 4px rgba(255,255,255,.15); }
.plush-button.mint { background: var(--mint); box-shadow: 0 7px 0 var(--mint-dark), 0 13px 24px rgba(40, 24, 20, .22), inset 0 0 0 4px rgba(255,255,255,.25); }
.plush-button:hover, .plush-button:focus-visible { transform: translateY(-4px) rotate(0); outline: 4px solid rgba(255, 243, 223, .35); }
.plush-button:active { transform: translateY(5px); box-shadow: 0 2px 0 #8f6852, 0 5px 8px rgba(40, 24, 20, .18); }

.scroll-note {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.82);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section { padding: clamp(80px, 10vw, 150px) 20px; }
.section-inner { width: min(1120px, 100%); margin: 0 auto; }
.intro { background: var(--cream); position: relative; }
.intro::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 70px;
  width: 360px;
  height: 360px;
  border-radius: 47% 53% 56% 44%;
  background: radial-gradient(circle at 34% 32%, rgba(255,255,255,.68) 0 3px, transparent 4px), var(--mint);
  background-size: 19px 19px, auto;
  opacity: .25;
  transform: rotate(14deg);
}

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr); gap: clamp(36px, 8vw, 110px); align-items: end; }
.kicker { color: var(--coral-dark); font-size: .82rem; font-weight: 900; text-transform: uppercase; letter-spacing: .16em; }
h2 {
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: .95;
  letter-spacing: -.06em;
}
.lead { font-size: clamp(1.15rem, 2vw, 1.45rem); max-width: 720px; }
.side-note { border-left: 8px solid var(--coral); padding: 16px 0 16px 24px; font-weight: 800; font-size: 1.05rem; }

.rules { background: var(--cocoa); color: var(--white); overflow: hidden; }
.rules h2 { max-width: 850px; }
.rule-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 52px; counter-reset: rules; }
.rule { counter-increment: rules; padding-top: 22px; border-top: 2px solid rgba(255,255,255,.2); }
.rule::before { content: "0" counter(rules); display: block; margin-bottom: 28px; color: var(--mint); font: italic 900 2.4rem Georgia, serif; }
.rule h3 { font-size: 1.25rem; margin-bottom: 10px; }
.rule p { color: #f2d9c6; }

.quote-band { background: var(--coral); color: var(--white); text-align: center; padding: 54px 20px; }
.quote-band p { max-width: 950px; margin: 0 auto; font: italic 800 clamp(1.7rem, 4vw, 3.5rem)/1.08 Georgia, serif; }

.cta { background: var(--mint); position: relative; }
.cta .section-inner { display: flex; gap: 36px; align-items: center; justify-content: space-between; }
.cta h2 { max-width: 680px; margin-bottom: 12px; }
.cta p { max-width: 630px; margin-bottom: 0; }
.cta .button-row { justify-content: flex-end; min-width: 280px; }

.page-hero {
  min-height: 82svh;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  color: var(--white);
  background: #352724 url("assets/backgrounds/lore-laundromat.png") center / cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(31,22,21,.18), rgba(31,22,21,.88)), linear-gradient(0deg, rgba(31,22,21,.82), transparent 62%); }
.page-hero .section-inner { padding: 150px 20px 80px; }
.page-hero h1 { max-width: 980px; font-size: clamp(4rem, 10vw, 9rem); }
.page-hero p { margin-left: auto; max-width: 540px; color: #fbe2cc; font-size: 1.2rem; }

.story { background: var(--cream); }
.story-grid { display: grid; grid-template-columns: .55fr 1.3fr; gap: clamp(40px, 10vw, 140px); }
.chapter-no { color: var(--coral); font: italic 900 clamp(4rem, 11vw, 9rem)/.8 Georgia, serif; }
.story-copy p { font-size: clamp(1.12rem, 2vw, 1.35rem); }
.story-copy p:first-of-type::first-letter { float: left; padding: 7px 10px 0 0; color: var(--coral-dark); font: 900 5rem/.75 Georgia, serif; }

.footer { padding: 28px 20px 36px; background: var(--ink); color: #f7dfc1; }
.footer-inner { width: min(1120px, 100%); margin: 0 auto; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer a { color: inherit; text-underline-offset: 4px; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .site-header { top: 10px; }
  .header-nav a:not(.nav-cta) { display: none; }
  .header-nav a { min-height: 38px; padding: 0 12px; font-size: .9rem; }
  .hero { background-position: 60% center; }
  .hero::before { background: linear-gradient(90deg, rgba(42,27,24,.9), rgba(42,27,24,.48)), linear-gradient(0deg, rgba(25,18,17,.55), transparent); }
  .hero-content { padding-top: 130px; align-self: end; padding-bottom: 110px; }
  h1 { font-size: clamp(4rem, 21vw, 6.2rem); }
  .split, .story-grid { grid-template-columns: 1fr; }
  .rule-list { grid-template-columns: 1fr; }
  .rule { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; }
  .rule::before { grid-row: span 2; margin: 0; }
  .cta .section-inner { display: block; }
  .cta .button-row { justify-content: flex-start; margin-top: 30px; }
  .page-hero { background-position: 42% center; }
  .page-hero::before { background: linear-gradient(0deg, rgba(31,22,21,.9), rgba(31,22,21,.2) 80%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
