/* The Wizard Verse - bedtime stories */
:root {
  --green: #173325;
  --green-deep: #0e2118;
  --green-soft: #21422f;
  --ivory: #f3e8cf;
  --ivory-dim: #d9ccb0;
  --gold: #d8b664;
  --gold-bright: #f0d48a;
  --wine: #7d1a28;
  --wine-deep: #5a0f1b;
  --ink: #1d1a14;
  --head: "IM Fell English", Georgia, serif;
  --head-sc: "IM Fell English SC", Georgia, serif;
  --read: "Literata", Georgia, serif;
  --ui: "Hanken Grotesk", system-ui, sans-serif;
  --frame: 0 0 0 1px var(--gold), 0 0 0 7px var(--wine), 0 0 0 8px var(--gold);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 70px; }
body {
  background: var(--green-deep);
  color: var(--ivory);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }

/* faint woven texture over every green surface */
.woven {
  background-color: var(--green);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(240,212,138,.08), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- the two doors ---------- */
.doors { position: fixed; inset: 0; z-index: 50; perspective: 2200px; }
.door {
  position: absolute; top: 0; width: 50%; height: 100%; overflow: hidden;
  background: url(img/cover-1440.webp) no-repeat; background-size: auto 100%;
  transition: transform 2.4s cubic-bezier(.65,.02,.25,1), filter 2.4s ease;
  backface-visibility: hidden; cursor: pointer;
}
.door video { position: absolute; top: 0; height: 100%; width: 200%; object-fit: cover; }
.door.left { left: 0; transform-origin: left center; }
.door.right { right: 0; transform-origin: right center; }
.door.left video { left: 0; }
.door.right video { right: 0; }
.door::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 140px rgba(0,0,0,.4); }
.doors.open .left { transform: rotateY(-100deg); filter: brightness(.5); }
.doors.open .right { transform: rotateY(100deg); filter: brightness(.5); }
.doors.gone { display: none; }
.open-btn {
  position: absolute; left: 50%; bottom: 8vh; transform: translateX(-50%); z-index: 2;
  font-family: var(--head-sc); font-size: clamp(19px, 2.2vw, 28px); letter-spacing: .08em;
  color: var(--ivory); background: var(--wine); border: 2px solid var(--gold);
  padding: .55em 1.8em; border-radius: 40px; cursor: pointer;
  animation: glow 2.6s ease-in-out infinite; transition: opacity .6s ease;
}
.open-btn:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 4px; }
.doors.open .open-btn { opacity: 0; pointer-events: none; }
@keyframes glow {
  0%,100% { box-shadow: 0 0 0 6px rgba(216,182,100,.15), 0 10px 40px rgba(0,0,0,.5); }
  50% { box-shadow: 0 0 0 13px rgba(216,182,100,.3), 0 10px 40px rgba(0,0,0,.5); }
}
.spark-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

/* ---------- page frame ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.band { height: 10px; background: var(--wine); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }

header.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(216,182,100,.45); }
header.top .page { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { font-family: var(--head); font-size: 27px; text-decoration: none; color: var(--ivory); white-space: nowrap; }
.brand span { color: var(--gold); }
nav.links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
nav.links a { text-decoration: none; font-size: 15px; color: var(--ivory-dim); letter-spacing: .02em; }
nav.links a:hover { color: var(--gold-bright); }
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: .5em; cursor: pointer; text-decoration: none;
  font-family: var(--ui); font-weight: 700; font-size: 16px; letter-spacing: .01em;
  border-radius: 999px; padding: .75em 1.5em; border: 2px solid var(--gold);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
.btn.wine { background: var(--wine); color: var(--ivory); }
.btn.wine:hover { background: #941f30; }
.btn.gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--wine-deep); border-color: #f6e2a8; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.btn.small { padding: .5em 1.15em; font-size: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .page { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; position: relative; z-index: 1; }
.eyebrow { font-family: var(--head-sc); color: var(--gold); letter-spacing: .14em; font-size: 16px; }
.hero h1 { font-family: var(--head); font-weight: 400; font-size: clamp(44px, 5.6vw, 76px); line-height: 1.02; margin: 10px 0 18px; color: var(--ivory); text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero h1 em { color: var(--gold-bright); font-style: italic; }
.hero p.lead { font-size: 19px; color: var(--ivory-dim); max-width: 30em; }
.name-card {
  margin-top: 28px; padding: 20px 22px; border-radius: 14px;
  background: rgba(14,33,24,.65); border: 1px solid rgba(216,182,100,.5);
}
.name-card label { display: block; font-family: var(--head); font-size: 21px; color: var(--ivory); margin-bottom: 10px; }
.name-row { display: flex; gap: 10px; flex-wrap: wrap; }
.name-row input {
  flex: 1 1 180px; min-width: 0; padding: .7em 1em; border-radius: 999px;
  background: var(--ivory); color: var(--ink); border: 2px solid var(--gold); font-size: 17px;
}
.name-row input:focus { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.hint { font-size: 14px; color: var(--ivory-dim); margin-top: 10px; opacity: .85; }
.hero-art { position: relative; border-radius: 6px; box-shadow: var(--frame), 0 30px 70px rgba(0,0,0,.55); }
.hero-art img { border-radius: 6px; width: 100%; height: auto; aspect-ratio: 1786/999; object-fit: cover; }
.twinkles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

/* ---------- section heads ---------- */
section.block { padding: 84px 0; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head h2 { font-family: var(--head); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; margin-top: 6px; }
.sec-head p { color: var(--ivory-dim); margin: 12px auto 0; max-width: 36em; }
.flourish { display: block; margin: 14px auto 0; width: 180px; height: 18px; color: var(--gold); }

/* ---------- the seven stories ---------- */
.shelf { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.book {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: var(--wine-deep); border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--gold), 0 14px 34px rgba(0,0,0,.45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.book:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--gold-bright), 0 22px 44px rgba(0,0,0,.55); }
.book:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 4px; }
.book img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.book .meta { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.book .day { font-family: var(--head-sc); color: var(--gold); letter-spacing: .12em; font-size: 14px; }
.book h3 { font-family: var(--head); font-weight: 400; font-size: 23px; line-height: 1.15; color: var(--ivory); }
.book .tag { font-size: 14.5px; color: var(--ivory-dim); }
.book .mins { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--gold); }
.book .ribbon {
  position: absolute; top: 12px; left: 12px; font-family: var(--ui); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold); color: var(--wine-deep); padding: 4px 10px; border-radius: 999px;
}
.book.tonight { box-shadow: 0 0 0 2px var(--gold-bright), 0 0 40px rgba(240,212,138,.25), 0 14px 34px rgba(0,0,0,.45); }
.book.feature { grid-column: span 2; grid-row: span 2; }
.book.feature img { flex: 1 1 auto; height: 0; min-height: 260px; aspect-ratio: auto; }
.book.feature .meta { flex: 0 0 auto; }
.book.feature h3 { font-size: 34px; }
.book.feature .tag { font-size: 16.5px; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.step { text-align: center; padding: 30px 24px; border-radius: 14px; border: 1px solid rgba(216,182,100,.4); background: rgba(14,33,24,.5); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%;
  font-family: var(--head); font-size: 28px; color: var(--wine-deep);
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold)); box-shadow: 0 0 0 4px rgba(216,182,100,.2);
}
.step h3 { font-family: var(--head); font-weight: 400; font-size: 26px; margin-bottom: 6px; }
.step p { color: var(--ivory-dim); }

/* ---------- gift + waitlist ---------- */
.gift { background: linear-gradient(180deg, var(--wine-deep), #430b15); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.gift .page { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.gift h2 { font-family: var(--head); font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; margin: 6px 0 14px; }
.gift p { color: var(--ivory-dim); }
.gift img { border-radius: 6px; box-shadow: 0 0 0 1px var(--gold), 0 24px 60px rgba(0,0,0,.5); }

.waitlist { max-width: 640px; margin: 0 auto; text-align: center; padding: 40px 32px; border-radius: 18px; background: rgba(14,33,24,.7); box-shadow: var(--frame), 0 30px 70px rgba(0,0,0,.45); }
.waitlist form { display: grid; gap: 12px; margin-top: 22px; text-align: left; }
.waitlist label { font-size: 14px; color: var(--ivory-dim); }
.waitlist input[type=email], .waitlist input[type=text] {
  width: 100%; padding: .75em 1em; border-radius: 10px; border: 2px solid var(--gold); background: var(--ivory); color: var(--ink); font-size: 17px;
}
.waitlist input:focus { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.waitlist .btn { justify-content: center; margin-top: 6px; }
.small-print { font-size: 13px; color: var(--ivory-dim); opacity: .8; margin-top: 8px; text-align: center; }
.done-msg { font-family: var(--head); font-size: 26px; color: var(--gold-bright); padding: 20px 0 4px; text-align: center; }
.err-msg { color: #ffb3b3; font-size: 14px; text-align: center; }
.hp { position: absolute; left: -5000px; }

footer.foot { border-top: 1px solid rgba(216,182,100,.4); padding: 34px 0 44px; color: var(--ivory-dim); font-size: 14px; }
footer.foot .page { display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; }
footer.foot a { color: var(--gold); text-decoration: none; }


/* ---------- framed first screen (the tapestry border from the homepage design) ---------- */
.hero-frame {
  --fb: 22px; --medal: 66px; --pad: 58px;
  position: relative; height: 100vh; height: 100dvh; min-height: 560px; padding: var(--fb);
  display: flex;
  background-color: var(--wine);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Cg fill='%23e2c06e'%3E%3Cpath d='M9 4l1.2 3.3L13.5 8.5l-3.3 1.2L9 13l-1.2-3.3L4.5 8.5l3.3-1.2z'/%3E%3Cpath d='M33 27l.9 2.4 2.4.9-2.4.9-.9 2.4-.9-2.4-2.4-.9 2.4-.9z'/%3E%3Ccircle cx='27' cy='9' r='1'/%3E%3Ccircle cx='11' cy='34' r='1.1'/%3E%3Ccircle cx='41' cy='42' r='.8'/%3E%3C/g%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 5px var(--wine), inset 0 0 0 6px rgba(216,182,100,.7);
}
.tap-inner {
  position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden;
  border: 2px solid var(--gold); border-radius: 3px;
  box-shadow: 0 0 0 4px var(--wine), 0 0 0 5px rgba(216,182,100,.75);
  background-color: #0a291c;
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(240,212,138,.07), transparent 55%),
    radial-gradient(ellipse at 50% 120%, rgba(0,0,0,.35), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.medal { position: absolute; z-index: 3; width: var(--medal); height: var(--medal); filter: drop-shadow(0 2px 4px rgba(0,0,0,.45)); pointer-events: none; }
.medal.tl { left: calc(var(--fb) / 2 - var(--medal) / 2 + 6px); top: calc(var(--fb) / 2 - var(--medal) / 2 + 6px); }
.medal.tr { right: calc(var(--fb) / 2 - var(--medal) / 2 + 6px); top: calc(var(--fb) / 2 - var(--medal) / 2 + 6px); }
.medal.bl { left: calc(var(--fb) / 2 - var(--medal) / 2 + 6px); bottom: calc(var(--fb) / 2 - var(--medal) / 2 + 6px); }
.medal.br { right: calc(var(--fb) / 2 - var(--medal) / 2 + 6px); bottom: calc(var(--fb) / 2 - var(--medal) / 2 + 6px); }
.medal.bc { left: 50%; transform: translateX(-50%); bottom: calc(var(--fb) / 2 - var(--medal) * .35 / 2); width: calc(var(--medal) * .6); height: calc(var(--medal) * .6); }

.in-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; padding: clamp(8px, 1.4vh, 14px) var(--pad) clamp(8px, 1.2vh, 12px); border-bottom: 1px solid rgba(216,182,100,.35); }
.in-head .brand { font-size: clamp(24px, 2.2vw, 32px); }

.hero-main {
  position: relative; z-index: 2; flex: 1; min-height: 0; min-width: 0;
  display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(24px, 3.5vw, 56px); align-items: center;
  padding: clamp(8px, 1.6vh, 26px) var(--pad);
}
.hero-copy h1 { font-family: var(--head); font-weight: 400; font-size: clamp(34px, min(5vw, 6.8vh), 80px); line-height: 1.02; margin: 6px 0 12px; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.hero-copy h1 em { color: var(--gold-bright); }
.hero-copy .lead { font-size: clamp(15px, min(1.3vw, 2.1vh), 19px); color: var(--ivory-dim); max-width: 31em; }
.lead-short, .lbl-short { display: none; }
.hero-copy .name-card { margin-top: clamp(10px, 2vh, 24px); padding: clamp(12px, 1.8vh, 20px) 20px; }
.hero-copy .name-card label { font-size: clamp(17px, 2.3vh, 21px); margin-bottom: clamp(6px, 1vh, 10px); }
.hero-frame .hero-art { box-shadow: var(--frame), 0 24px 60px rgba(0,0,0,.55); border-radius: 6px; align-self: center; }
.hero-frame .hero-art img { width: 100%; max-height: min(46vh, 520px); object-fit: cover; border-radius: 6px; }

.hero-books {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(7, auto); justify-content: center; gap: clamp(6px, .9vw, 14px); align-items: end; min-width: 0;
  padding: clamp(6px, 1vh, 10px) var(--pad) clamp(16px, 3vh, 34px); border-top: 1px solid rgba(216,182,100,.35);
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.18));
}
.hb { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.hb-day { font-family: var(--head); font-size: clamp(14px, min(1.3vw, 2.2vh), 19px); color: var(--ivory); white-space: nowrap; }
.hb-day::before, .hb-day::after { content: "\2726"; color: var(--gold); font-size: .6em; margin: 0 .55em; vertical-align: .25em; opacity: .85; }
@media (max-height: 900px) and (min-width: 601px) { .hero-copy .hint { display: none; } }
.hb img { height: clamp(90px, 22vh, 250px); width: auto; max-width: 100%; object-fit: contain; border-radius: 3px; box-shadow: 0 10px 24px rgba(0,0,0,.5); transition: transform .25s ease, box-shadow .25s ease; }
.hb:hover img { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 18px 34px rgba(0,0,0,.6); }
.hb:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 4px; border-radius: 4px; }
.hb.tonight .hb-day { color: var(--gold-bright); font-family: var(--head-sc); letter-spacing: .08em; }
.hb.tonight img { box-shadow: 0 0 0 2px var(--gold-bright), 0 0 28px rgba(240,212,138,.45), 0 10px 24px rgba(0,0,0,.5); }


/* slim bar once the first screen has gone */
header.top.slim { position: fixed; left: 0; right: 0; top: 0; transform: translateY(-105%); transition: transform .35s ease; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
header.top.slim.show { transform: none; }

@media (max-width: 980px) {
  .hero-frame { --pad: 34px; }
  .hero-main { grid-template-columns: 1fr; }
  .hero-frame .hero-art { display: none; }
}
@media (max-width: 600px) {
  .hero-frame { --fb: 10px; --medal: 34px; --pad: 18px; }
  .medal.tl, .medal.tr { top: 2px; } .medal.tl, .medal.bl { left: 2px; } .medal.tr, .medal.br { right: 2px; } .medal.bl, .medal.br { bottom: 2px; }
  .medal.bc { display: none; }
  .in-head { padding: 10px var(--pad) 9px 30px; gap: 10px; }
  .in-head .brand { font-size: 20px; }
  .hero-main { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 12px var(--pad) 8px; }
  .hero-frame .hero-art { display: block; order: -1; width: 100%; }
  .hero-frame .hero-art img { max-height: 25dvh; aspect-ratio: 16/9; }
  .hero-copy .eyebrow { display: none; }
  .hero-copy h1 { font-size: clamp(30px, 9vw, 38px); margin: 0 0 6px; }
  .lead-long, .lbl-long, .hero-copy .hint { display: none; }
  .lead-short, .lbl-short { display: inline; }
  .hero-copy .lead { font-size: 15px; }
  .hero-copy .name-card { margin-top: 12px; padding: 12px; }
  .hero-copy .name-card label { font-size: 16px; margin-bottom: 8px; }
  .hero-copy .name-row { flex-direction: row; flex-wrap: nowrap; }
  .hero-copy .name-row input { flex: 1 1 auto; width: auto; padding: .6em .9em; font-size: 16px; }
  .hero-copy .name-row .btn { width: auto; flex: 0 0 auto; padding: .6em 1.1em; }
  .hero-books {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    padding: 8px var(--pad) 14px; align-items: flex-end;
  }
  .hero-books::-webkit-scrollbar { display: none; }
  .hb { flex: 0 0 auto; scroll-snap-align: start; gap: 4px; }
  .hb-day { font-size: 13px; }
  .hb img { height: clamp(96px, 17dvh, 140px); }
}

/* ---------- story reader ---------- */
.reader-top { position: relative; }
.reader-top .art { max-width: 1100px; margin: 34px auto 0; padding: 0 20px; }
.reader-top .art img { width: 100%; border-radius: 6px; box-shadow: var(--frame), 0 30px 70px rgba(0,0,0,.5); }
.reader-head { text-align: center; padding: 40px 20px 8px; }
.reader-head h1 { font-family: var(--head); font-weight: 400; font-size: clamp(38px, 5vw, 62px); line-height: 1.05; margin-top: 6px; }
.reader-head .by { color: var(--ivory-dim); margin-top: 10px; }
.listen {
  max-width: 680px; margin: 22px auto 0; display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 14px 18px; border-radius: 999px; border: 1px dashed rgba(216,182,100,.6); color: var(--ivory-dim); font-size: 15px;
}
.paper {
  max-width: 720px; margin: 34px auto 0; padding: 56px clamp(22px, 6vw, 70px) 64px; border-radius: 6px;
  background: #f4ead2; color: #2a2419;
  background-image: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.45), transparent 70%), radial-gradient(ellipse at 50% 120%, rgba(120,80,30,.18), transparent 60%);
  box-shadow: var(--frame), 0 30px 80px rgba(0,0,0,.55);
  font-family: var(--read); font-size: clamp(18px, 2.1vw, 21px); line-height: 1.75;
}
.paper p + p { margin-top: 1em; }
.paper p:first-child::first-letter { font-family: var(--head); float: left; font-size: 3.6em; line-height: .82; padding: 6px 10px 0 0; color: var(--wine); }
.paper .name { color: var(--wine); font-weight: 600; }
.paper .the-end { text-align: center; font-family: var(--head); font-size: 28px; color: var(--wine); margin-top: 1.6em; }
.paper .fade { position: relative; max-height: 30em; overflow: hidden; }
.paper .fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12em; background: linear-gradient(180deg, rgba(244,234,210,0), #f4ead2 85%); }
.locked { text-align: center; margin-top: 10px; font-family: var(--ui); }
.locked h3 { font-family: var(--head); font-weight: 400; font-size: 28px; color: var(--wine); }
.locked p { font-size: 16px; margin: 6px 0 16px; color: #4a3f2e; }
.next-nav { max-width: 720px; margin: 30px auto 0; padding: 0 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.next-nav a { color: var(--gold); text-decoration: none; font-family: var(--head); font-size: 20px; }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .hero .page { grid-template-columns: 1fr; padding-top: 40px; gap: 34px; }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .book.feature { grid-row: auto; }
  .book.feature img { height: auto; min-height: 0; aspect-ratio: 3/2; flex: none; }
  .gift .page { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  nav.links a.hide-sm { display: none; }
  header.top .page { gap: 12px; height: 60px; }
  .brand { font-size: 22px; }
  .steps { grid-template-columns: 1fr; }
  section.block { padding: 60px 0; }
  .waitlist { padding: 30px 20px; }
  .paper, .listen { margin-left: 16px; margin-right: 16px; }
  .listen { border-radius: 16px; }
}
@media (max-width: 520px) {
  .page { padding: 0 16px; }
  .shelf { grid-template-columns: 1fr; gap: 20px; }
  .book.feature { grid-column: auto; grid-row: auto; }
  .book.feature h3 { font-size: 27px; }
  nav.links { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.swipe-hint { display: none; }

/* ---------- phones: most visitors arrive from Instagram / TikTok ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  header.top .page { height: 56px; gap: 10px; }
  .brand { font-size: 21px; }
  nav.links a:not(.btn) { display: none; }
  nav.links .btn.small { padding: .45em 1em; font-size: 14px; }

  .hero .page { display: flex; flex-direction: column-reverse; gap: 22px; padding-top: 18px; padding-bottom: 40px; }
  .hero-art { margin: 0 2px; }
  .eyebrow { font-size: 13px; letter-spacing: .1em; }
  .hero h1 { font-size: 42px; margin: 6px 0 12px; }
  .hero p.lead { font-size: 16.5px; }
  .name-card { margin-top: 20px; padding: 16px; }
  .name-card label { font-size: 19px; }
  .name-row { flex-direction: column; }
  .name-row input, .name-row .btn { width: 100%; justify-content: center; flex: none; }
  .hint { font-size: 13px; }
  .twinkles { opacity: .45; }

  section.block { padding: 48px 0; }
  .sec-head { margin-bottom: 26px; }
  .sec-head h2 { font-size: 32px; }
  .sec-head p { font-size: 15px; }

  /* the seven stories become a swipeable row */
  .shelf {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 4px 16px 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .shelf::-webkit-scrollbar { display: none; }
  .book, .book.feature { flex: 0 0 82%; scroll-snap-align: center; }
  .book.feature img { height: auto; min-height: 0; aspect-ratio: 3/2; flex: none; }
  .book.feature h3, .book h3 { font-size: 25px; }
  .book.feature .tag, .book .tag { font-size: 15px; }
  .swipe-hint { display: block; text-align: center; font-size: 13px; color: var(--gold); margin-top: 2px; }

  .steps { gap: 12px; }
  .step { padding: 20px 18px; text-align: left; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
  .step::before { width: 40px; height: 40px; font-size: 21px; margin: 2px 0 0; grid-row: span 2; }
  .step h3 { font-size: 22px; margin-bottom: 2px; }
  .step p { font-size: 15px; }

  .gift .page { gap: 24px; }
  .gift img { order: -1; }
  .gift h2 { font-size: 32px; }

  .waitlist { padding: 26px 18px; }

  .reader-top .art { margin-top: 14px; padding: 0 14px; }
  .reader-head { padding: 26px 18px 4px; }
  .reader-head h1 { font-size: 38px; }
  .reader-head .by { font-size: 15px; }
  .listen { font-size: 14px; text-align: center; margin: 18px 14px 0; }
  .paper { margin: 24px 10px 0; padding: 34px 20px 44px; font-size: 18.5px; line-height: 1.7; }
  .next-nav { flex-direction: column; gap: 10px; }
  .next-nav a { font-size: 18px; }
  footer.foot .page { flex-direction: column; gap: 8px; }
}

/* ---------- plans and free trial ---------- */
.plan-box { max-width: 760px; margin: 0 auto; padding: clamp(22px, 4vw, 40px); border-radius: 18px; background: rgba(10,30,21,.75); box-shadow: var(--frame), 0 30px 70px rgba(0,0,0,.45); }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 20px 18px 16px; border-radius: 14px; cursor: pointer;
  border: 2px solid rgba(216,182,100,.35); background: rgba(255,255,255,.03); transition: border-color .2s, background .2s, transform .2s; }
.plan-card:hover { transform: translateY(-1px); }
.plan-card.on { border-color: var(--gold-bright); background: rgba(240,212,138,.08); box-shadow: 0 0 0 4px rgba(240,212,138,.12); }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card:focus-within { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
.plan-badge { position: absolute; top: -11px; right: 14px; background: var(--gold); color: var(--wine-deep); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.plan-name { font-family: var(--head-sc); color: var(--gold); letter-spacing: .1em; font-size: 15px; }
.plan-price { font-family: var(--head); font-size: 34px; line-height: 1.1; color: var(--ivory); }
.plan-price small { font-family: var(--ui); font-size: 15px; color: var(--ivory-dim); }
.plan-note { font-size: 14px; color: var(--ivory-dim); }

.timeline { list-style: none; margin: 26px 0 8px; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold-bright), rgba(216,182,100,.25)); }
.timeline li { position: relative; padding: 0 0 16px 40px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-deep); border: 2px solid var(--gold); }
.timeline li:first-child::before { background: var(--gold-bright); box-shadow: 0 0 14px rgba(240,212,138,.6); }
.timeline b { display: block; font-family: var(--head); font-size: 20px; font-weight: 400; color: var(--ivory); }
.timeline span { color: var(--ivory-dim); font-size: 15.5px; }
.timeline em { font-style: normal; color: var(--gold-bright); }

.plan-fields { display: grid; gap: 8px; margin-top: 8px; }
.plan-fields > label { font-size: 15px; color: var(--ivory); }
.plan-fields small { color: var(--ivory-dim); font-size: 13px; }
.plan-fields input[type=text] { width: 100%; padding: .75em 1em; border-radius: 10px; border: 2px solid var(--gold); background: var(--ivory); color: var(--ink); font-size: 17px; }
.plan-fields input[type=text]:focus { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: 13.5px; color: var(--ivory-dim); line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--gold); }

.plan-go { text-align: center; margin-top: 22px; }
.today { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 10px; }
.today span { font-family: var(--head-sc); color: var(--gold); letter-spacing: .12em; }
.today b { font-family: var(--head); font-weight: 400; font-size: 44px; color: var(--gold-bright); line-height: 1; }
.btn.big { font-size: 18px; padding: .9em 2.2em; width: min(100%, 420px); justify-content: center; }
.trust { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13.5px; color: var(--ivory-dim); }
.trust li::before { content: "\2713"; color: var(--gold); margin-right: 6px; }
.inapp-tip { margin-top: 12px; font-size: 13px; color: var(--gold); }

.included, .faq { max-width: 760px; margin: 40px auto 0; }
.included h3, .faq h3 { font-family: var(--head); font-weight: 400; font-size: 28px; text-align: center; margin-bottom: 14px; }
.included ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.included li { padding-left: 30px; position: relative; color: var(--ivory-dim); }
.included li::before { content: "\2726"; position: absolute; left: 4px; color: var(--gold); }
.faq details { border-bottom: 1px solid rgba(216,182,100,.3); padding: 14px 4px; }
.faq summary { cursor: pointer; font-family: var(--head); font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--ui); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ivory-dim); margin-top: 8px; font-size: 15.5px; }
@media (max-width: 600px) {
  .plan-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .plan-card { padding: 16px 12px 12px; }
  .plan-price { font-size: 26px; }
  .plan-note { font-size: 12.5px; }
  .included ul { grid-template-columns: 1fr; }
  .today b { font-size: 38px; }
}

/* ---------- my account ---------- */
.acct { padding-top: 40px; }
.acct-card { background: rgba(10,30,21,.72); border: 1px solid rgba(216,182,100,.4); border-radius: 16px; padding: 26px; }
.acct-card.narrow { max-width: 480px; margin: 20px auto; }
.acct-card.center { text-align: center; max-width: 480px; margin: 40px auto; }
.acct-card h1 { font-family: var(--head); font-weight: 400; font-size: 40px; margin: 4px 0 8px; }
.acct-card h2 { font-family: var(--head); font-weight: 400; font-size: 28px; margin: 2px 0 8px; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.muted { color: var(--ivory-dim); }
.stack { display: grid; gap: 10px; margin-top: 18px; }
.stack label { font-size: 14px; color: var(--ivory-dim); }
.stack input { width: 100%; padding: .75em 1em; border-radius: 10px; border: 2px solid var(--gold); background: var(--ivory); color: var(--ink); font-size: 17px; }
.code-input { font-size: 28px !important; letter-spacing: .4em; text-align: center; font-family: var(--ui); }
.stack .btn { justify-content: center; }
.small-print.left { text-align: left; }
.small-print a { color: var(--gold); }
.welcome-banner { text-align: center; padding: 30px 20px 34px; margin-bottom: 22px; border-radius: 18px; background: radial-gradient(ellipse at 50% 0%, rgba(240,212,138,.18), transparent 70%), rgba(10,30,21,.6); box-shadow: var(--frame); }
.welcome-banner h1 { font-family: var(--head); font-weight: 400; font-size: clamp(32px, 5vw, 50px); margin: 6px 0; }
.welcome-banner p { color: var(--ivory-dim); }
.acct-card .btn.big { margin-top: 14px; width: 100%; }
.kids { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 14px; }
.kids li { display: flex; align-items: center; border: 2px solid rgba(216,182,100,.45); border-radius: 999px; overflow: hidden; }
.kids li.on { border-color: var(--gold-bright); background: rgba(240,212,138,.12); }
.kid { background: none; border: 0; color: var(--ivory); font-family: var(--head); font-size: 20px; padding: 6px 6px 6px 16px; cursor: pointer; }
.kid-x { background: none; border: 0; color: var(--ivory-dim); font-size: 20px; padding: 4px 12px 6px 6px; cursor: pointer; }
.kid-x:hover { color: #ffb3b3; }
.kid-add { display: flex; gap: 8px; }
.kid-add input { flex: 1; min-width: 0; padding: .6em .9em; border-radius: 999px; border: 2px solid var(--gold); background: var(--ivory); color: var(--ink); font-size: 16px; }
.btn.ghost { background: transparent; color: var(--ivory); border-color: rgba(216,182,100,.6); margin-top: 8px; }
.timeline.small { margin: 16px 0 14px; }
.timeline.small b { font-size: 17px; }
.timeline.small span { font-size: 14px; }
@media (max-width: 760px) { .acct-grid { grid-template-columns: 1fr; } .acct { padding-top: 20px; } .acct-card { padding: 20px; } }

/* ---------- Darius's player ---------- */
.player { max-width: 720px; margin: 22px auto 0; display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 18px;
  background: rgba(10,30,21,.8); box-shadow: var(--frame), 0 18px 40px rgba(0,0,0,.4); }
.play, .dark-play { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 2px solid #f6e2a8; cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold)); box-shadow: 0 0 0 6px rgba(216,182,100,.18), 0 8px 24px rgba(0,0,0,.4); }
.play svg, .dark-play svg { width: 30px; height: 30px; fill: var(--wine-deep); }
.i-pause { display: none; }
body.playing .i-play { display: none; } body.playing .i-pause { display: block; }
.p-mid { flex: 1; min-width: 0; }
.p-label { font-family: var(--head); font-size: 19px; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); margin: 8px 0 4px; overflow: hidden; }
.p-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); transition: width .3s linear; }
.p-time { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ivory-dim); }
.p-side { display: flex; flex-direction: column; gap: 6px; }
.p-btn { background: transparent; border: 1px solid rgba(216,182,100,.55); color: var(--ivory); border-radius: 999px; padding: 6px 12px; font: 500 13px var(--ui); cursor: pointer; white-space: nowrap; }
.p-btn:hover { border-color: var(--gold-bright); }
.kid-pick { max-width: 720px; margin: 14px auto 0; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; color: var(--ivory-dim); font-size: 14px; }
.kid-pick button { background: none; border: 2px solid rgba(216,182,100,.45); color: var(--ivory); border-radius: 999px; padding: 4px 14px; font-family: var(--head); font-size: 18px; cursor: pointer; }
.kid-pick button.on { border-color: var(--gold-bright); background: rgba(240,212,138,.14); }
.dark { position: fixed; inset: 0; z-index: 80; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.dark-play { opacity: .35; width: 84px; height: 84px; }
.dark-note { color: rgba(255,255,255,.22); font-size: 13px; }
@media (max-width: 600px) {
  .player { margin: 18px 12px 0; flex-wrap: wrap; gap: 12px; }
  .p-side { flex-direction: row; width: 100%; }
  .p-btn { flex: 1; }
  .p-label { font-size: 17px; }
}

/* ---------- privacy and terms ---------- */
.legal { max-width: 760px; padding-top: 44px; }
.legal h1 { font-family: var(--head); font-weight: 400; font-size: clamp(36px, 5vw, 52px); margin: 6px 0 4px; }
.legal h2 { font-family: var(--head); font-weight: 400; font-size: 26px; margin: 30px 0 8px; color: var(--gold-bright); }
.legal p, .legal li { color: var(--ivory-dim); }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--gold); }

/* free sample link under the name box */
.hero-sample { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; text-decoration: none; color: var(--ivory); }
.hero-sample b { display: block; font-family: var(--head); font-weight: 400; font-size: 19px; }
.hero-sample small { display: block; font-size: 13px; color: var(--ivory-dim); }
.hs-play { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--gold); background: rgba(240,212,138,.12); animation: glow 2.6s ease-in-out infinite; }
.hs-play svg { width: 18px; height: 18px; fill: var(--gold-bright); margin-left: 2px; }
.hero-sample:hover b { color: var(--gold-bright); }
@media (max-width: 600px) {
  .hero-sample { margin-top: 8px; gap: 10px; } .hero-sample b { font-size: 16px; } .hero-sample small { display: none; } .hs-play { width: 30px; height: 30px; } .hs-play svg { width: 14px; height: 14px; }
  /* make room for the sample link on short phones */
  body:has(.hero-sample:not([hidden])) .hero-frame .hero-art img { max-height: 20dvh; }
  body:has(.hero-sample:not([hidden])) .hero-copy .name-card { margin-top: 8px; }
}
