/* Saltwhistle Harbor: the Black Friday preview.
   System fonts only. Nothing is loaded from outside this folder. */

:root {
  --ink: #0b1020;
  --night: #070b16;
  --dusk: #121a31;
  --dusk-2: #1a2745;
  --dusk-3: #25365c;
  --paper: #f3e8d2;
  --paper-2: #fbf4e4;
  --paper-dim: #cdc2aa;
  --paper-faint: rgba(243, 232, 210, .16);
  --paper-ink: #1c2136;
  --wool: #f6c21c;
  --wool-deep: #d9a40f;
  --toast: #f0ab6a;
  --kitchen: #ffb35a;
  --amber-night: #3a2610;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", "Nunito", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.1rem, 5vw, 4.5rem);
}

@supports (padding: max(0px)) {
  :root { --gutter: max(clamp(1.1rem, 5vw, 4.5rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--wool); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: .7rem 1rem;
  background: var(--wool); color: #1b1503; font-family: var(--sans); font-weight: 650; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
/* controls that need the script are not shown without it; the plain links that replace them are not shown with it */
.no-js .js-only { display: none !important; }
.js .no-js-only { display: none !important; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.1rem; padding: .7rem 1.35rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--sans); font-size: 1.02rem; font-weight: 650; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; line-height: 1.15; text-align: center;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--wool); color: #1b1503; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 22px rgba(0, 0, 0, .35); }
.btn--primary:hover { background: #ffd23f; }
.btn--quiet { background: rgba(11, 16, 32, .5); border-color: rgba(243, 232, 210, .55); color: var(--paper); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--quiet:hover { border-color: var(--paper); background: rgba(11, 16, 32, .7); }
.btn--ink { background: #16233f; color: var(--paper-2); box-shadow: 0 8px 20px rgba(22, 35, 63, .25); }
.btn--ink:hover { background: #22345c; }
.btn--small { min-height: 2.75rem; padding: .5rem 1.1rem; font-size: .98rem; }
.btn--big { min-height: 3.5rem; padding: .85rem 1.7rem; font-size: 1.1rem; }
.btn[disabled] { opacity: .55; cursor: default; }

.ctl {
  min-height: 2.75rem; padding: .45rem .95rem; border-radius: 999px; cursor: pointer;
  background: rgba(11, 16, 32, .6); border: 1px solid rgba(243, 232, 210, .42); color: var(--paper);
  font-family: var(--sans); font-size: .9rem; font-weight: 600; white-space: nowrap;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ctl:hover { border-color: var(--paper); }
.ctl--onpaper { background: transparent; }
.ctl--ink { background: transparent; border-color: rgba(28, 33, 54, .45); color: var(--paper-ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.ctl--ink:hover { border-color: var(--paper-ink); }
.ctl[disabled] { opacity: .35; cursor: default; }

.label, .eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wool);
}
.fineprint { font-family: var(--sans); font-size: .84rem; line-height: 1.45; color: var(--paper-dim); }

/* --------------------------------------------------------------------- hero
   Three layouts, chosen by the shape of the screen:
   stacked   (phones, upright tablets, small windows): the film is a stage at the top, every word sits below it on the dark;
   split     (landscape tablets and 4:3 windows): the words have their own panel on the left, the film fills the right;
   full      (16:10 and wider): the film fills the screen and the words sit on the dark kitchen wall, in the left 30%.
   In every layout the words are never laid over the bell, Maya or Crumpet. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  background: var(--night);
}
.hero__stage {
  position: relative; flex: 1 1 auto; overflow: hidden; background: var(--night);
  min-height: 11.5rem; max-height: 56.25vw;                 /* a short phone: the whole wide picture, uncropped */
  --focus: 78% 42%;
}
.hero__media { position: absolute; inset: 0; }
.hero__still, .hero__film { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__still img, .hero__film { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus); }
.hero__still { opacity: 0; }
.hero__still.is-shown { opacity: 1; }
.hero__film { opacity: .01; transition: opacity .5s ease; }
.hero.is-film .hero__film { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    /* a pool of dusk behind the name in one top corner and the link in the other; the sky between them, where the bell is, stays clear */
    radial-gradient(ellipse 12.5rem 5.2rem at 0 0, rgba(7, 11, 22, .95) 0, rgba(7, 11, 22, .8) 50%, rgba(7, 11, 22, 0) 100%),
    radial-gradient(ellipse 12.5rem 5.2rem at 100% 0, rgba(7, 11, 22, .95) 0, rgba(7, 11, 22, .8) 50%, rgba(7, 11, 22, 0) 100%),
    linear-gradient(0deg, var(--night) 0, rgba(7, 11, 22, 0) .8rem);
}

/* The film's caption and its one control. Stacked, they are a line of their own under the picture, the way a
   picture book sets a caption, so no word ever covers Maya, Crumpet or the bell. In the split and full layouts
   they sit low on the picture, over the table and the dark ground. */
.hero__stagefoot {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: .9rem;
  padding: .5rem var(--gutter) 0;
}
.captions { display: grid; flex: 1 1 auto; min-width: 0; max-width: 33rem; }
.caption {
  grid-area: 1 / 1; align-self: center; opacity: 0; transition: opacity .3s ease;
  font-size: clamp(1rem, .9rem + .45vw, 1.28rem); line-height: 1.3; font-style: italic; color: #fff8e6; text-wrap: balance;
}
.caption.is-on { opacity: 1; }
.hero__controls { flex: none; }

.topbar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: clamp(.75rem, 2.2vw, 1.5rem) var(--gutter);
}
.brand { font-size: 1.25rem; font-weight: 700; letter-spacing: .01em; text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; text-shadow: 0 1px 10px rgba(6, 9, 18, .8); }
.topbar__link {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-family: var(--sans); font-size: .86rem; font-weight: 600; color: var(--paper);
  text-underline-offset: .25em; text-decoration-color: rgba(243, 232, 210, .55); text-shadow: 0 1px 10px rgba(6, 9, 18, .9);
}
.topbar__link:hover { text-decoration-color: var(--wool); }

.hero__copy {
  flex: none; display: flex; flex-direction: column; gap: .62rem;
  padding: .6rem var(--gutter) 1rem;
}
.hero h1 {
  font-size: clamp(1.82rem, 8.1vw, 2.7rem); line-height: 1.07; font-weight: 600; letter-spacing: -.012em; text-wrap: balance;
}
.hero__sub { font-size: 1rem; line-height: 1.45; color: #f1e7d2; max-width: 35rem; }
.hero__facts {
  list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1rem;
  font-family: var(--sans); font-size: .84rem; font-weight: 600; color: var(--paper-dim);
}
.hero__facts li { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.hero__facts li::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: var(--wool); flex: none; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }
.hero__cta .btn { flex: 1 1 100%; }
.hero__grownups { display: none; font-family: var(--sans); font-size: .9rem; color: var(--paper-dim); }
.hero__grownups a { text-underline-offset: .25em; text-decoration-color: rgba(243, 232, 210, .45); display: inline-flex; align-items: center; min-height: 2.75rem; }
.hero__grownups a:hover { color: var(--paper); text-decoration-color: var(--wool); }

/* tall phones: the stage is near square, so it shows the middle of the portrait film, where the story happens */
@media (max-aspect-ratio: 1/1) and (max-width: 39.99em) and (min-height: 750px) {
  .hero__stage { min-height: 76vw; max-height: 31rem; --focus: 50% 40%; }
}

/* the smallest phones, inside a browser with its bars showing (about 375 x 548): a little tighter, so the main button is on the first screen */
@media (max-width: 39.99em) and (max-height: 600px) and (max-aspect-ratio: 1/1) {
  .hero__stage { min-height: 8.75rem; --focus: 78% 16%; }
  .hero__stagefoot { padding-top: .35rem; }
  .hero__copy { gap: .5rem; padding-top: .4rem; }
  .hero h1 { font-size: clamp(1.6rem, 7.2vw, 1.75rem); }
  .hero__sub { font-size: .96rem; line-height: 1.4; }
}

/* upright tablets and small windows: the whole wide picture, then the words */
@media (min-width: 40rem) {
  .hero { min-height: 0; }
  .hero__stage { flex: none; min-height: 0; max-height: 62svh; aspect-ratio: 16 / 9; --focus: 100% 50%; }
  .hero__copy { gap: .95rem; padding: 1.8rem var(--gutter) 2.6rem; max-width: 52rem; }
  .hero h1 { font-size: clamp(2.6rem, 5.6vw, 3.6rem); }
  .hero__sub { font-size: 1.2rem; }
  .hero__facts { font-size: .95rem; gap: .2rem 1.4rem; }
  .hero__cta { margin-top: .5rem; gap: .8rem; }
  .hero__cta .btn { flex: 0 1 auto; }
  .hero__cta .btn--quiet { min-height: 3.5rem; padding: .85rem 1.5rem; font-size: 1.05rem; }
  .hero__grownups { display: block; }
  .hero__stagefoot { padding-top: .9rem; max-width: 52rem; }
}

/* split: landscape tablets and 4:3 windows */
@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 1599/1000) and (min-width: 56em) {
  .hero { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); grid-template-rows: minmax(100vh, auto); }
  @supports (height: 1svh) { .hero { grid-template-rows: minmax(100svh, auto); } }
  .hero__stage { grid-column: 2; grid-row: 1; aspect-ratio: auto; max-height: none; height: 100%; --focus: 50% 36%; }
  .hero__scrim {
    background:
      linear-gradient(90deg, var(--night) 0, rgba(7, 11, 22, .55) 5%, rgba(7, 11, 22, 0) 15%),
      linear-gradient(180deg, rgba(7, 11, 22, .7) 0, rgba(7, 11, 22, 0) 16%),
      linear-gradient(0deg, rgba(7, 11, 22, .88) 0, rgba(7, 11, 22, .55) 10%, rgba(7, 11, 22, 0) 26%);
  }
  .hero__copy {
    grid-column: 1; grid-row: 1; align-self: center; max-width: none;
    padding: 5.2rem clamp(1rem, 2vw, 2rem) 2.4rem var(--gutter); gap: 1rem;
  }
  .hero h1 { font-size: clamp(2.2rem, 3.7vw, 3.4rem); }
  .hero__sub { font-size: clamp(1.05rem, 1.35vw, 1.22rem); }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__stagefoot { position: absolute; left: 47%; right: var(--gutter); bottom: clamp(1rem, 3.5vh, 2rem); padding: 0; max-width: none; align-items: flex-end; }
  .caption { align-self: end; font-style: normal; text-shadow: 0 0 2px rgba(6, 9, 18, .95), 0 1px 3px rgba(6, 9, 18, .9), 0 0 14px rgba(6, 9, 18, .85), 0 0 28px rgba(6, 9, 18, .6); }
}

/* full: 16:10 and wider. The left 30% of the wide picture is dark kitchen wall and curtain, and the words live there. */
@media (min-aspect-ratio: 16/10) and (min-width: 60rem), (max-height: 30rem) and (min-aspect-ratio: 5/4) and (min-width: 36rem) {
  .hero { display: flex; min-height: 100vh; min-height: 100svh; }
  .hero__stage { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; max-height: none; min-height: 0; --focus: 100% 50%; }
  .hero__scrim {
    background:
      radial-gradient(ellipse 46% 78% at 0% 76%, rgba(6, 9, 18, .9) 0%, rgba(6, 9, 18, .74) 46%, rgba(6, 9, 18, 0) 100%),
      linear-gradient(90deg, rgba(6, 9, 18, .82) 0%, rgba(6, 9, 18, .58) 18%, rgba(6, 9, 18, .14) 30%, rgba(6, 9, 18, 0) 38%),
      linear-gradient(180deg, rgba(6, 9, 18, .55) 0%, rgba(6, 9, 18, 0) 18%, rgba(6, 9, 18, 0) 76%, rgba(6, 9, 18, .62) 100%);
  }
  .hero__copy {
    flex: 1; justify-content: flex-end; gap: clamp(.7rem, 1.6vh, 1.05rem); max-width: none;
    width: clamp(22rem, 30%, 37rem); padding: 5rem 0 clamp(2.2rem, 7vh, 5rem) clamp(1.4rem, 3.6vw, 4.2rem);
    text-shadow: 0 1px 14px rgba(6, 9, 18, .7);
  }
  .hero h1 { font-size: clamp(2.05rem, 2.9vw, 3.5rem); }
  .hero__sub { font-size: clamp(1rem, 1.18vw, 1.3rem); }
  .hero__facts { font-size: clamp(.84rem, .92vw, 1rem); gap: .2rem 1rem; }
  .hero__cta { margin-top: .4rem; gap: .65rem; }
  .hero__cta .btn { flex: 1 1 auto; text-shadow: none; }
  .hero__cta .btn--big { padding-left: 1.3rem; padding-right: 1.3rem; }
  .hero__cta .btn--quiet { min-height: 3.5rem; }
  .hero__grownups { display: block; }
  .hero__stagefoot { position: absolute; left: max(34%, 25rem); right: var(--gutter); bottom: clamp(1.1rem, 3.6vh, 2.2rem); padding: 0; max-width: none; align-items: flex-end; }
  .caption { align-self: end; font-style: normal; text-shadow: 0 0 2px rgba(6, 9, 18, .95), 0 1px 3px rgba(6, 9, 18, .9), 0 0 14px rgba(6, 9, 18, .85), 0 0 28px rgba(6, 9, 18, .6); }
}

/* phones held sideways (and any short, wide window): the same full layout, set smaller */
@media (max-height: 30rem) and (min-aspect-ratio: 5/4) and (min-width: 36rem) {
  .topbar { padding-top: .35rem; padding-bottom: .2rem; }
  .hero__copy { width: min(21.5rem, 41%); gap: .4rem; padding: 3rem 0 .8rem var(--gutter); }
  .hero h1 { font-size: 1.55rem; }
  .hero__sub { font-size: .88rem; line-height: 1.36; }
  .hero__facts { font-size: .74rem; gap: .1rem .7rem; }
  .hero__cta { margin-top: .15rem; gap: .45rem; flex-wrap: nowrap; }
  .hero__cta .btn, .hero__cta .btn--big, .hero__cta .btn--quiet { min-height: 2.75rem; padding: .4rem .8rem; font-size: .86rem; white-space: nowrap; }
  .hero__grownups { display: none; }
  .hero__stagefoot { left: 45%; top: 3.5rem; bottom: auto; align-items: flex-start; }   /* up in the sky: the bottom of a short screen is the soup and the table */
  .caption { font-size: .95rem; align-self: start; }
}

/* ------------------------------------------------------------- how it works
   Three pictures pegged to a line of yellow wool, like the mitten on Maya's clothesline. */
.how { background: var(--paper); color: var(--paper-ink); padding: clamp(2.8rem, 7vw, 5.5rem) var(--gutter) clamp(2.8rem, 7vw, 5rem); }
.how :focus-visible { outline-color: #16233f; }
.how__inner { max-width: 74rem; margin: 0 auto; }
.how__head { text-align: center; max-width: 40rem; margin: 0 auto clamp(1.2rem, 3vw, 2.2rem); }
.how .label { color: #8a5a00; }
.how h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.1; font-weight: 600; margin-top: .5rem; text-wrap: balance; }
.how__line { list-style: none; padding: 0; display: grid; gap: 2.2rem 0; }
.how__step { position: relative; padding: 2.1rem clamp(.4rem, 2vw, 1.6rem) 0; text-align: center; }
.how__wool { position: absolute; left: 0; top: 0; width: 100%; height: 2.4rem; overflow: visible; }
.how__wool path { stroke: var(--wool-deep); stroke-width: 4; stroke-linecap: round; }
.how__plate {
  position: relative; max-width: 24rem; margin: 0 auto; padding: .55rem .55rem .6rem; background: #fffaf0; border-radius: 4px;
  box-shadow: 0 16px 34px rgba(28, 33, 54, .22), 0 1px 0 rgba(28, 33, 54, .08);
  transform: rotate(-1.4deg); transform-origin: 50% 0;
}
.how__step:nth-child(2) .how__plate { transform: rotate(1.1deg); }
.how__step:nth-child(3) .how__plate { transform: rotate(-.7deg); }
.how__peg {
  position: absolute; left: 50%; top: -1.25rem; width: .78rem; height: 2.1rem; margin-left: -.39rem; border-radius: 3px; z-index: 1;
  background: linear-gradient(90deg, #c98a4b, #e3aa6a 45%, #b87a3d); box-shadow: 0 2px 4px rgba(28, 33, 54, .3);
}
.how__peg::after { content: ""; position: absolute; left: 0; right: 0; top: 45%; height: 2px; background: rgba(60, 36, 12, .45); }
.how__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 50%; border-radius: 2px; background: #131d38; }
.how__img--top { object-position: 50% 0; }                 /* the tall letter picture: its top third is the envelope */
.how__step h3 { margin-top: 1.25rem; font-size: clamp(1.4rem, 2.4vw, 1.7rem); line-height: 1.2; font-weight: 600; }
.how__num {
  display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; margin-right: .35rem; border-radius: 50%; vertical-align: .12em;
  background: #16233f; color: var(--wool); font-family: var(--sans); font-size: .92rem; font-weight: 800;
}
.how__step p { margin: .45rem auto 0; max-width: 22rem; font-size: 1.1rem; line-height: 1.45; color: #343a52; }
.how__today { margin: clamp(1.8rem, 4vw, 2.8rem) auto 0; max-width: 34rem; text-align: center; font-family: var(--sans); font-size: .95rem; line-height: 1.5; color: #454b63; }
.how__go { margin-top: 1.3rem; text-align: center; }
@media (min-width: 48rem) {
  .how__line { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------- reader */
.reader {
  position: relative; background: var(--dusk); padding: clamp(2.4rem, 6vw, 4.6rem) var(--gutter) 0;
  scroll-margin-top: 0; transition: background-color 1.2s ease;
  --navgap: clamp(1.2rem, 3vw, 2.2rem);
}
/* The book is reached through the letter: it is not on the page until the family takes the case. */
.js .reader:not(.is-unlocked) { display: none; }
/* Open, the book is exactly one screen: its heading, the page, and the page-turning bar at the foot.
   Nothing from further down the site shows under a short page. */
.js .reader.is-unlocked { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.js .reader .reader__head, .js .reader .book { flex: none; width: 100%; }
.js .reader .book { flex: 1 0 auto; display: grid; }
.js .reader.is-running.is-quiet .reader__head { visibility: hidden; height: 0; min-height: 0; margin: 0; overflow: hidden; }
.js .reader.is-running.is-quiet { padding-top: clamp(1.6rem, 5vw, 3.2rem); }
/* After the first page the heading folds down to a running head: whose case it is, and who is in it. */
.js .reader.is-running { padding-top: .6rem; }
.js .reader.is-running .reader__head {
  position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 1rem;
  max-width: 84rem; min-height: 2.75rem; margin: 0 auto .7rem; text-align: left;
}
.js .reader.is-running .reader__head > .label, .js .reader.is-running .reader__head > h2, .js .reader.is-running .reader__meta {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.js .reader.is-running .reader__case { display: none; margin: 0 auto 0 0; font-size: 1.08rem; }
@media (min-width: 40rem) { .js .reader.is-running .reader__case:not(:empty) { display: block; } }
.js .reader.is-running .cast { margin: 0; max-width: none; }
.js .reader.is-running .cast summary { min-height: 2.5rem; font-size: .84rem; }
.js .reader.is-running .cast__list {
  position: absolute; z-index: 6; left: 0; right: 0; top: 100%; margin-top: .4rem;
  background: #1b2748; box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}
.reader.is-goodnight { background: #0a1124; }
.reader__head { max-width: 46rem; margin: 0 auto clamp(1.5rem, 4vw, 2.6rem); text-align: center; }
.reader__head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 600; margin: .5rem 0 .6rem; }
.reader__case { font-style: italic; font-size: 1.22rem; color: var(--wool); margin: -.1rem 0 .7rem; overflow-wrap: anywhere; }
.reader__case:empty { display: none; }
.reader__meta { font-family: var(--sans); font-size: .95rem; color: var(--paper-dim); max-width: 34rem; margin: 0 auto; }

/* who is in the story: closed until someone wants it */
.cast { margin: 1.1rem auto 0; max-width: 40rem; }
.cast summary {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .35rem 1.05rem; cursor: pointer; list-style: none;
  border: 1px solid rgba(246, 194, 28, .5); border-radius: 999px; color: var(--wool);
  font-family: var(--sans); font-size: .9rem; font-weight: 650;
}
.cast summary::-webkit-details-marker { display: none; }
.cast summary::after { content: "+"; font-weight: 700; font-size: 1.1rem; line-height: 1; }
.cast[open] summary::after { content: "\2212"; }
.cast summary:hover { border-color: var(--wool); }
.cast__list {
  list-style: none; margin: .9rem 0 0; padding: 1rem 1.1rem; display: grid; gap: .75rem 1.4rem; text-align: left;
  background: rgba(243, 232, 210, .06); border: 1px solid var(--paper-faint); border-radius: 16px;
}
@media (min-width: 40rem) { .cast__list { grid-template-columns: 1fr 1fr; } }
.cast__list li { display: grid; grid-template-columns: 2.3rem 1fr; gap: .7rem; align-items: center; font-size: 1.02rem; line-height: 1.35; color: var(--paper-dim); }
.cast__list b { color: var(--paper); font-weight: 600; }
.cast__dot {
  width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--round); font-size: 1.05rem; font-weight: 800; color: #1b1503; background: var(--wool);
}
.cast__dot--crumpet { background: var(--toast); }
.cast__dot--theo { background: #9cc3e6; }
.cast__dot--grandpa { background: #d8cdb4; }
.cast__dot--pickle { background: #b9a8dc; }

.book { max-width: 84rem; margin: 0 auto; }
.page { display: grid; gap: clamp(1.3rem, 3.5vw, 3.2rem); align-items: center; padding: 0 0 clamp(3rem, 8vw, 6rem); outline: none; }
.js .book.is-paged .page { padding-bottom: 0; align-content: start; animation: page-in .38s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(.45rem); } to { opacity: 1; transform: none; } }
/* sideways swipes turn pages, so the browser only keeps vertical scrolling and pinch zoom for itself */
.js .book.is-paged { touch-action: pan-y pinch-zoom; }
/* before the script has run, show only the first page so later pictures are not fetched early */
.js .book:not(.is-paged) .page:not(:first-of-type) { display: none; }
@media (min-width: 60rem) {
  .js .book.is-paged .page { align-content: center; }
  .page { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .page:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
  .page:nth-of-type(even) > figure { order: 2; }
  .page:nth-of-type(even) .page__text { justify-self: end; }
  .page__text--solo, .page--reveal > .reveal { grid-column: 1 / -1; }
}
/* the picture's place is kept, in the colour of its own sky, so a page never opens on a black box */
.plate { position: relative; border-radius: 14px; overflow: hidden; background: #131d38; box-shadow: 0 22px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(243, 232, 210, .08); }
.plate img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.page > * { min-width: 0; }
.page__text { max-width: 31rem; font-size: clamp(1.28rem, 1.12rem + .9vw, 1.85rem); line-height: 1.5; overflow-wrap: anywhere; }
.page__text > p + p { margin-top: .95em; }
.page__text--solo { max-width: 34rem; margin: 0 auto; padding: clamp(.4rem, 3vw, 2.4rem) 0; width: 100%; }
.page__text--center { text-align: center; }

.crumpet {
  font-family: var(--round); font-weight: 800; text-transform: uppercase; letter-spacing: .055em;
  font-size: 1.02em; line-height: 1.38; color: var(--toast);
}
.crumpet .said { font-family: var(--serif); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--paper); font-size: .98em; }
.aside { color: var(--paper-dim); font-style: italic; }
/* the line that answers the family's hunch is stitched in wool */
.adaptive { border-left: 3px solid var(--wool); padding-left: .8em; overflow-wrap: anywhere; }

.cue {
  margin-top: 1.5em !important; padding-top: 1em; border-top: 1px solid var(--paper-faint);
  font-family: var(--sans); font-size: .96rem; line-height: 1.45; color: var(--paper-dim);
}
.cue__tag { display: inline-block; margin-right: .5em; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--wool); }
.cue--result { border-top: 0; padding-top: 0; margin-top: .7em !important; color: var(--paper); font-weight: 600; min-height: 1.4em; overflow-wrap: anywhere; }
/* stays in the page while empty, so screen readers hear the message when it arrives */
.cue--result:empty { min-height: 0; margin: 0 !important; }
.recap { font-family: var(--sans); font-size: 1rem; line-height: 1.5; color: var(--paper-dim); padding: .8rem 1rem; background: rgba(243, 232, 210, .06); border-radius: 10px; overflow-wrap: anywhere; }
.label--peek { margin-bottom: .9em; line-height: 1.5; }

/* the thread you can pull: every picture of it lies in one stack, so changing picture never shows a gap */
.tug { touch-action: pan-y; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tug__frame { position: absolute; left: 0; top: 0; opacity: 0; }
.tug__frame:first-child { position: relative; }
.tug__frame.is-on { opacity: 1; }
.tug__handle {
  position: absolute; z-index: 40; left: 54.2%; top: 44.8%; width: 4.6rem; height: 4.6rem; margin: -2.3rem 0 0 -2.3rem;
  border: 0; border-radius: 50%; background: transparent; cursor: grab; touch-action: none; padding: 0;
}
.tug__handle:active { cursor: grabbing; }
.tug__ring { position: absolute; inset: 22%; border-radius: 50%; border: 2.5px solid #fff3c4; box-shadow: 0 0 0 4px rgba(11, 16, 32, .35), 0 0 22px rgba(246, 194, 28, .8); animation: tug-pulse 2.2s ease-in-out infinite; }
.tug.is-busy .tug__ring { animation: none; opacity: 0; }
.tug.is-busy { cursor: default; }
@keyframes tug-pulse { 0%, 100% { transform: scale(.82); opacity: .95; } 50% { transform: scale(1.12); opacity: .55; } }
.tugfig { display: grid; gap: .55rem; }
.tug__said { min-height: 2.9em; font-family: var(--sans); font-size: 1rem; line-height: 1.45; font-weight: 650; color: var(--paper); }
.tug__go { margin-top: .9rem !important; }

/* the hunch */
.hunch { margin-top: 1.4em; }
.hunch__choices { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.hunch__btn {
  display: grid; justify-items: center; align-content: center; gap: .5rem; padding: 1.1rem .7rem 1rem; min-height: 8.5rem; cursor: pointer;
  background: rgba(243, 232, 210, .05); border: 1.5px solid rgba(243, 232, 210, .28); border-radius: 16px;
  font-family: var(--sans); font-size: 1.02rem; font-weight: 650; line-height: 1.2;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.hunch__btn svg { width: 3.4rem; height: 3.4rem; fill: var(--paper-dim); stroke: var(--paper-dim); }
.hunch__btn:hover { border-color: var(--paper); }
.hunch__btn[aria-pressed="true"] { background: var(--wool); border-color: var(--wool); color: #1b1503; transform: scale(1.02); }
.hunch__btn[aria-pressed="true"] svg { fill: #1b1503; stroke: #1b1503; }
.hunch .fineprint { margin-top: 1rem; }
.no-js .hunch__choices, .no-js [data-hunch-box] .fineprint { display: none; }

/* goodnight: a calm last page for the child, with tonight's case written down */
.page--night { justify-items: center; }
.goodnight { font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.15; }
.goodnight__you { margin-top: .35em !important; font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.25; font-style: italic; color: var(--wool); overflow-wrap: anywhere; }
.goodnight__you:empty { display: none; }
/* seven low notes, the way Grandpa hums them */
.seven { display: flex; justify-content: center; gap: .7rem; margin-top: 1.4rem !important; }
.seven i { width: .62rem; height: .62rem; border-radius: 50%; background: var(--kitchen); opacity: .22; animation: seven-notes 9s ease-in-out infinite; }
.seven i:nth-child(2) { animation-delay: .75s; }
.seven i:nth-child(3) { animation-delay: 1.5s; }
.seven i:nth-child(4) { animation-delay: 2.25s; }
.seven i:nth-child(5) { animation-delay: 3s; }
.seven i:nth-child(6) { animation-delay: 3.75s; }
.seven i:nth-child(7) { animation-delay: 4.5s; }
@keyframes seven-notes { 0% { opacity: .22; transform: none; } 5% { opacity: 1; transform: scale(1.25); } 16% { opacity: .22; transform: none; } 100% { opacity: .22; transform: none; } }
.casenotes {
  position: relative; max-width: 25rem; margin: 1.7rem auto 0; padding: 1.5rem 1.4rem 1.2rem; text-align: left;
  background: var(--paper); color: #1f2238; border-radius: 5px; transform: rotate(-1.1deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
  font-size: 1.1rem; line-height: 1.4;
}
.casenotes::before {                                     /* a line of wool stitches along the top edge */
  content: ""; position: absolute; left: 1.1rem; right: 1.1rem; top: .6rem; height: 3px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--wool-deep) 0 11px, transparent 11px 19px);
}
.casenotes h3 { font-family: var(--sans); font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #8a5a00; }
.casenotes ul { list-style: none; padding: 0; margin: .7rem 0 0; display: grid; gap: .5rem; }
.casenotes li { position: relative; padding-left: 1.25rem; overflow-wrap: anywhere; }
.casenotes li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .5rem; height: .5rem; border-radius: 50%; border: 2px solid var(--wool-deep); }
.casenotes__rest { margin-top: .85rem; padding-top: .7rem; border-top: 1px solid rgba(31, 34, 56, .16); font-style: italic; }
.peek-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem !important; justify-content: inherit; }
.page__text--center .peek-row { justify-content: center; }
.night__grownups { margin-top: .7rem !important; font-family: var(--sans); font-size: .9rem; color: var(--paper-dim); }
.night__grownups a { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .25em; }
.night__grownups a:hover { color: var(--paper); }
.reader.is-goodnight .page--night { animation: goodnight 5s ease both; border-radius: 22px; }
@keyframes goodnight { 0% { background: var(--amber-night); } 100% { background: transparent; } }

/* tonight against last night: the button sits under the picture, never on the mitten */
.compare { display: grid; gap: .6rem; }
.compare__plate { display: grid; }
.compare__img { grid-area: 1 / 1; opacity: 0; transition: opacity .45s ease; }
.compare__img.is-on { opacity: 1; }
.compare figcaption { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.compare__state { font-family: var(--sans); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--wool); }
.peek__stop { font-family: var(--sans); font-size: .98rem; color: var(--paper-dim); padding-top: 1em; border-top: 1px solid var(--paper-faint); margin-top: 1.5em !important; }

/* the note for the grown-up: on paper, so it is plainly not part of the story */
.page--reveal { display: block; }
.reveal {
  position: relative; max-width: 46rem; margin: 0 auto; padding: clamp(1.5rem, 4.5vw, 2.8rem); border-radius: 18px;
  background: var(--paper); color: var(--paper-ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  font-size: 1.1rem; line-height: 1.5;
}
.reveal::before {                                         /* stitched round in wool */
  content: ""; position: absolute; inset: .55rem; border: 2px dashed rgba(217, 164, 15, .75); border-radius: 12px; pointer-events: none;
}
.reveal :focus-visible { outline-color: #16233f; }
.reveal .label { color: #8a5a00; }
.reveal__title { font-size: clamp(1.75rem, 4.4vw, 2.7rem); line-height: 1.1; font-weight: 600; margin: .5rem 0 .8rem; text-wrap: balance; }
.reveal__lead { font-size: 1.18rem; overflow-wrap: anywhere; }
.reveal__picks { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.pick {
  min-height: 2.9rem; padding: .4rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(28, 33, 54, .4); background: transparent; color: var(--paper-ink);
  font-family: var(--sans); font-size: .98rem; font-weight: 650;
}
.pick[aria-pressed="true"] { background: #16233f; border-color: #16233f; color: var(--wool); }
.reveal__clips { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: .9rem; }
@media (min-width: 44rem) { .reveal__clips { grid-template-columns: 1fr 1fr; } }
/* each line is shown as it stands in the book: a strip of the story's own page */
.reveal__clips li { padding: 1rem 1.1rem 1.1rem; border-radius: 12px; background: var(--dusk); color: var(--paper); box-shadow: 0 10px 24px rgba(22, 35, 63, .28); }
.reveal__when { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--wool); margin-bottom: .55rem; }
.reveal__clips blockquote { border-left: 3px solid var(--wool); padding-left: .75em; font-size: 1.16rem; line-height: 1.42; overflow-wrap: anywhere; }
.reveal__other { margin-top: 1.2rem; color: #343a52; }
.reveal__switch { margin-top: .8rem; }
.reveal__honest { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid rgba(28, 33, 54, .18); font-family: var(--sans); font-size: .95rem; line-height: 1.5; color: #454b63; }
.reveal__go { margin-top: 1.4rem; }
.reveal__go .btn { width: 100%; }
@media (min-width: 40rem) { .reveal__go .btn { width: auto; } }

/* turning pages: always at the bottom of the screen while the book is open */
.book__nav {
  position: sticky; bottom: 0; z-index: 5;
  margin: var(--navgap) calc(var(--gutter) * -1) 0; padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(13, 19, 38, .93); border-top: 1px solid rgba(243, 232, 210, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.reader.is-goodnight .book__nav { background: rgba(8, 13, 28, .93); }
.book__navin { max-width: 84rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.book__mid { display: grid; justify-items: center; gap: .32rem; min-width: 0; text-align: center; }
.book__navin .btn, .book__navin .ctl { flex: none; white-space: nowrap; }
.book__dots { display: flex; gap: .42rem; }
.book__dots i { width: .42rem; height: .42rem; border-radius: 50%; background: rgba(243, 232, 210, .26); }
.book__dots i.is-on { background: var(--wool); }
.book__count { font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dim); white-space: nowrap; }
.book__count:empty { display: none; }
.book__nudge { max-width: 84rem; margin: .5rem auto 0; font-family: var(--sans); font-size: .92rem; font-weight: 600; color: var(--wool); text-align: right; }
.book__nudge:empty { display: none; }
.no-js .book__nav { display: none; }

/* --------------------------------------------------- the founding invitation */
.founding { background: var(--paper); color: var(--paper-ink); padding: clamp(3rem, 8vw, 6.5rem) var(--gutter); scroll-margin-top: 0; color-scheme: light; }   /* form controls drawn for paper, not for the dark page */
.founding :focus-visible { outline-color: #16233f; }
.founding__inner { max-width: 72rem; margin: 0 auto; display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
.founding .label { color: #8a5a00; }
.founding h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.08; margin: .5rem 0 1rem; font-weight: 600; text-wrap: balance; outline: none; }
.founding h3 { font-family: var(--sans); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8a5a00; margin-bottom: .7rem; }
.founding__lead { font-size: 1.2rem; line-height: 1.5; max-width: 36rem; }
.founding__offer > div { margin-top: 1.9rem; max-width: 38rem; }
.founding .fineprint { color: #5c6178; margin-top: .8rem; }

/* the family's own book, with their detective's name on the cover, beside the offer */
.bookfig { display: grid; justify-items: center; gap: 1rem; }
.bookfig__book { width: min(64vw, 17rem); aspect-ratio: 2 / 3; container-type: inline-size; transform: rotate(-2.2deg); --u: min(.64vw, .17rem); }
/* The words on a cover are sized from the cover's own width (--u is one hundredth of it), so they sit the same at any size.
   Browsers that know container units measure it exactly; older ones (an iPad that stopped at iPadOS 15) use the sums above and below. */
@supports (width: 1cqw) { .bookfig__book, .cover__book { --u: 1cqw !important; } }
.bookfig figcaption { font-family: var(--sans); font-size: .95rem; color: #454b63; text-align: center; max-width: 20rem; overflow-wrap: anywhere; }
.board {
  position: absolute; inset: 0; overflow: hidden; border-radius: 5px 12px 12px 5px;
  background: #17244a; box-shadow: 0 30px 70px rgba(22, 35, 63, .42), 0 0 0 1px rgba(28, 33, 54, .18);
  color: var(--paper); text-align: center; font-family: var(--serif);
}
.bookfig__book .board { position: relative; height: 100%; }
.board__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.board p { position: absolute; left: 21%; right: 9%; margin: 0; text-shadow: 0 1px 8px rgba(5, 8, 16, .6); }
.cover__eyebrow { top: 8.8%; font-family: var(--sans); font-size: calc(var(--u) * 2.5); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wool); white-space: nowrap; }
.cover__title { top: 12.6%; font-size: calc(var(--u) * 9.4); font-weight: 600; line-height: 1.08; text-wrap: balance; }
.cover__night { top: 73.5%; font-family: var(--sans); font-size: calc(var(--u) * 2.9); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-dim); }
.cover__night span { display: block; margin-top: .18em; font-family: var(--serif); font-size: 2.2em; font-weight: 600; font-style: italic; letter-spacing: 0; text-transform: none; color: var(--paper); }
.board .cover__case { top: 85.6%; left: 24%; right: 16%; font-size: calc(var(--u) * 4.5 * var(--cfit, 1)); font-style: italic; line-height: 1.16; color: var(--wool); text-wrap: balance; overflow-wrap: anywhere; }

@media (min-width: 60rem) {
  .founding__inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
  .bookfig { position: sticky; top: 2.5rem; }
  .bookfig__book { width: min(100%, 21rem); --u: .19rem; }
  .plain { grid-column: 1 / -1; }
}

.terms ul { list-style: none; padding: 0; display: grid; gap: .85rem; font-size: 1.1rem; line-height: 1.45; color: #2a3048; }
.terms li { position: relative; padding-left: 1.5rem; }
.terms li::before { content: ""; position: absolute; left: .1rem; top: .48em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--wool-deep); box-shadow: 0 0 0 3px rgba(217, 164, 15, .22); }
.terms b { color: var(--paper-ink); font-weight: 650; }
/* The founding-family list: a sheet of letter paper with a wool-stitched top edge, like the book's spine. */
.signup {
  position: relative; padding: 1.55rem 1.3rem 1.35rem; background: #fffaf0; border-radius: 14px;
  box-shadow: 0 10px 26px rgba(22, 35, 63, .12), 0 0 0 1px rgba(28, 33, 54, .08);
}
.signup::before {
  content: ""; position: absolute; left: 1.1rem; right: 1.1rem; top: .6rem; height: 3px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--wool-deep) 0 11px, transparent 11px 19px);
}
.founding .signup h3 { outline: none; }
.signup__lede { font-size: 1.08rem; line-height: 1.5; color: #2a3048; margin-bottom: 1.05rem; }
.signup__label { display: block; font-family: var(--sans); font-size: .98rem; font-weight: 700; margin-bottom: .45rem; color: var(--paper-ink); }
.signup__email, .share__manual input {
  width: 100%; min-height: 3.1rem; padding: .5rem .9rem; border-radius: 12px; border: 1.5px solid rgba(28, 33, 54, .4);
  background: #fff; color: var(--paper-ink); font-family: var(--sans); font-size: 1.05rem;
}
.signup__email { font-size: max(16px, 1.05rem); }                /* 16px or more, so a phone does not zoom in on it */
.signup__email:focus-visible { outline-offset: 1px; }
.signup__email[aria-invalid="true"] { border-color: #a3271a; box-shadow: 0 0 0 1px #a3271a; }
.signup__gift {
  display: flex; align-items: flex-start; gap: .7rem; min-height: 2.75rem; margin-top: .85rem; padding: .55rem .2rem;
  font-family: var(--sans); font-size: 1rem; line-height: 1.4; color: #2a3048; cursor: pointer;
}
.signup__gift input { flex: none; width: 1.35rem; height: 1.35rem; margin: .02rem 0 0; accent-color: #16233f; cursor: pointer; }
/* the honeypot: off the page for people and screen readers; a bot that fills every box fills this one too */
.signup__hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.signup__go { width: 100%; margin-top: .7rem; }
@media (min-width: 34rem) { .signup__go { width: auto; } }
.signup__go[aria-busy="true"] { opacity: .8; cursor: progress; }
.signup__msg { margin-top: .8rem; padding: .7rem .9rem; border-radius: 10px; font-family: var(--sans); font-size: 1rem; line-height: 1.45; font-weight: 600; background: #f8e9e4; color: #7c1d12; border-left: 4px solid #a3271a; }
/* Empty, the status line takes no room but stays in the page, so a screen reader still hears it when words arrive.
   While sending it is read out but not shown: the button already says "Sending to the Harbor Post…". */
.signup__msg:empty { margin: 0; padding: 0; border: 0; background: none; }
.signup[data-state="sending"] .signup__msg {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.signup[data-state="unconfigured"] .signup__msg { background: #eef0f5; color: #1c2136; border-left-color: #16233f; }
.signup__privacy { font-size: .92rem; }
.signup__done {
  position: relative; margin-top: .2rem; padding: 1.15rem 1.2rem 1.2rem; border-radius: 12px; outline: none;
  background: #f1f6ea; border: 1.5px dashed #5f8a3e; color: #20361a; font-size: 1.15rem; line-height: 1.5;
}
.signup__stamp {
  display: inline-block; margin-bottom: .55rem; padding: .18rem .65rem; border: 2px solid #5f8a3e; border-radius: 999px; transform: rotate(-3deg);
  font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #3f6b26;
}
.signup__nojs { font-family: var(--sans); font-size: .98rem; color: #454b63; }
.giftnote p { font-size: 1.08rem; line-height: 1.5; color: #2a3048; }
.giftnote__go { margin-top: .9rem; }
.giftnote__go .btn { width: 100%; }
@media (min-width: 34rem) { .giftnote__go .btn { width: auto; } }
.giftnote .fineprint { margin-top: .5rem; }
.share { padding-top: 1.7rem; border-top: 1px solid rgba(28, 33, 54, .18); }
.share__go .btn { width: 100%; }
@media (min-width: 34rem) { .share__go .btn { width: auto; } }
.share__note { margin-top: .7rem; font-family: var(--sans); font-size: .98rem; font-weight: 650; color: #1f5a2e; }
.share__note:empty { display: none; }
.share__manual { margin-top: .7rem; }
.share__manual label { display: block; font-family: var(--sans); font-size: .9rem; font-weight: 650; margin-bottom: .35rem; }

.plain { border-top: 1px solid rgba(28, 33, 54, .18); padding-top: 1.8rem; }
.plain ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .55rem; font-size: 1.02rem; color: #2a3048; }
@media (min-width: 60rem) { .plain ul { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.plain__note { font-family: var(--sans); font-weight: 650; color: #1f5a2e; }

.foot { padding: 2rem var(--gutter) 3rem; font-family: var(--sans); font-size: .84rem; color: var(--paper-dim); display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; }
.foot a { text-underline-offset: .2em; display: inline-block; padding: .6rem 0; }

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .seven i { opacity: .6; }
}
html.reduce-motion { scroll-behavior: auto; }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation: none !important; transition: none !important; }
html.reduce-motion .seven i { opacity: .6; }

/* --------------------------------------------------------------- the letter */
.post { position: relative; background: linear-gradient(180deg, var(--night), #0d1528 30%, var(--ink)); padding: 0 var(--gutter) clamp(2.4rem, 6vw, 4.5rem); scroll-margin-top: 0; }
.post__thread { display: grid; justify-items: center; padding-bottom: clamp(1rem, 3vw, 2rem); }
.thread__line, .thread__knot { stroke: var(--wool); stroke-width: 5; stroke-linecap: round; }
.thread__knot { stroke-width: 4.5; }
.post__inner { max-width: 44rem; margin: 0 auto; }
.js .post[data-state="ask"] .post__letter,
.js .post[data-state="sealed"] .post__ask,
.js .post[data-state="open"] .post__ask { display: none; }
.no-js .post__ask { display: none; }                 /* without the script the letter is simply shown, already open */
.post h2 { font-size: clamp(1.9rem, 6.4vw, 3rem); line-height: 1.1; font-weight: 600; text-wrap: balance; margin-top: .5rem; outline: none; }
.post__lede { margin-top: .7rem; color: var(--paper-dim); font-size: 1.14rem; max-width: 34rem; }
.post__field { display: grid; gap: .8rem; margin-top: 1.4rem; }
@media (min-width: 40rem) { .post__field { grid-template-columns: 1fr auto; } }
.post__field input {
  width: 100%; min-height: 3.6rem; padding: .6rem 1.1rem; border-radius: 14px;
  border: 2px solid rgba(243, 232, 210, .5); background: rgba(243, 232, 210, .08); color: var(--paper);
  font-family: var(--serif); font-size: 1.4rem;
}
.post__field input::placeholder { color: var(--paper-dim); opacity: .8; }
.post__field input:focus { outline: 3px solid var(--wool); outline-offset: 2px; border-color: var(--wool); }
.post__error { min-height: 1.4em; margin-top: .5rem; font-family: var(--sans); font-size: .98rem; color: #ffbfa6; }
.post__error:empty { min-height: 0; margin: 0; }
.post__samples { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.1rem; }
.post__or { font-family: var(--sans); font-size: .92rem; color: var(--paper-dim); margin-right: .2rem; }
.chipbtn {
  min-height: 2.9rem; padding: .4rem 1.05rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(243, 232, 210, .42); background: transparent; color: var(--paper);
  font-family: var(--serif); font-size: 1.08rem; font-style: italic;
}
.chipbtn:hover { border-color: var(--wool); color: var(--wool); }
.post .fineprint { margin-top: 1.2rem; max-width: 36rem; }

/* The letter is one tall picture of one table. Sealed, only its top third shows: the envelope.
   Opened, the whole of it shows: the letter has come out from under the envelope and been unfolded. */
.post__letter { max-width: 27rem; margin: 0 auto; }
.envelope2 {
  position: relative; width: 100%; container-type: inline-size; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden;
  background: #14203d; box-shadow: 0 22px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(243, 232, 210, .08);
}
.post[data-state="open"] .envelope2, .no-js .envelope2 { aspect-ratio: 1200 / 2320; }
.envelope2__img { position: absolute; left: 0; top: 0; width: 100%; height: auto; opacity: 0; }
.envelope2__img.is-on { opacity: 1; }
.no-js .envelope2__img[data-f="6"] { opacity: 1; }
.envelope2.is-fading .envelope2__img { transition: opacity .5s ease; }
/* the envelope's own picture: the address and the seal are placed inside it */
.envelope2__top { position: absolute; z-index: 10; left: 0; top: 0; width: 100%; aspect-ratio: 3 / 2; pointer-events: none; }
/* the address is real text, written where the paper is clear: right of the wool, above it, left of the stamp */
.envelope2__address {
  position: absolute; left: 38.5%; top: 37%; width: 40%; transform: rotate(-1.2deg);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .08em; justify-items: start;
  color: #2b2843; font-family: var(--serif); font-style: italic; line-height: 1.12; text-align: left;
}
.envelope2__to { font-size: min(4vw, 1.16rem); opacity: .82; white-space: nowrap; }
.envelope2__name { font-size: calc(min(7.4vw, 2.05rem) * var(--fit, 1)); font-weight: 600; overflow-wrap: anywhere; text-wrap: balance; max-width: 100%; }
@supports (font-size: 1cqw) {
  .envelope2__to { font-size: 4.3cqw; }
  .envelope2__name { font-size: calc(7.6cqw * var(--fit, 1)); }
}
.envelope2.is-long .envelope2__address { top: 33.5%; }
/* the seal can be pressed too: a quiet ring shows where */
.js .post[data-state="sealed"] .envelope2 { cursor: pointer; }
.envelope2__seal {
  position: absolute; left: 25%; top: 51.8%; width: 14%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid #fff3c4; box-shadow: 0 0 0 3px rgba(11, 16, 32, .25), 0 0 18px rgba(246, 194, 28, .75);
  animation: tug-pulse 2.4s ease-in-out infinite;
}
.post:not([data-state="sealed"]) .envelope2__seal { display: none; }
/* The letter arrives, once, when the name has just been sent: the envelope lands and the address is written.
   The line and the button are there from the start, at full strength, so nothing looks switched off. */
.js .post.is-arriving[data-state="sealed"] .envelope2 { animation: letter-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.js .post.is-arriving[data-state="sealed"] .envelope2__to { animation: ink .35s .4s ease-out both; }
.js .post.is-arriving[data-state="sealed"] .envelope2__name { animation: ink .6s .65s ease-out both; }
.js .post.is-arriving[data-state="sealed"] .post__sealed { animation: rise-in .4s .15s ease both; }
@keyframes letter-in { from { opacity: 0; transform: translateY(1.1rem) rotate(-1.4deg) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes ink { from { clip-path: inset(-12% 100% -12% -4%); } to { clip-path: inset(-12% -4% -12% -4%); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: none; } }

.post__sealed { display: grid; justify-items: center; gap: 1rem; margin-top: 1.5rem; text-align: center; }
.post__line { font-size: 1.25rem; line-height: 1.35; }
.js .post[data-state="open"] .post__sealed, .no-js .post__sealed { display: none; }
.js .post:not([data-state="open"]) .note { display: none; }
/* The words of the letter are set on the rendered sheet: the box below is the sheet's own writing area,
   in the picture's proportions, and the type is sized from the picture's width so it sits the same at any size. */
.note {
  position: absolute; z-index: 10; left: 15.4%; width: 70.8%; top: 33.2%; height: 60.6%; outline: none;
  display: flex; flex-direction: column;
  transform: rotate(-1deg); transform-origin: 50% 0;
  color: #1f2238; line-height: 1.38;
  font-size: calc(min(5.1vw, 1.46rem) * var(--nfit, 1));
  transition: opacity .14s ease;
}
@supports (font-size: 1cqw) { .note { font-size: calc(5.5cqw * var(--nfit, 1)); } }
.envelope2.is-opening .note { opacity: 0; transition: none; }
.note p + p { margin-top: .55em; }
.note__to { font-style: italic; color: #4d4862; padding-right: 9%; overflow-wrap: anywhere; }
.note__ask { font-weight: 600; }
.note__foot { margin-top: auto; padding-top: .45em; }
.note__from { font-style: italic; font-size: 1.12em; line-height: 1.2; }
.note__from span { display: block; margin-top: .25em; font-family: var(--sans); font-style: normal; font-size: .56em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6c6679; }
.note__ps { margin-top: .5em !important; font-size: .88em; line-height: 1.3; font-style: italic; color: #4d4862; padding-right: 14%; }
.note__go { margin-top: .6em !important; }
.note .btn { width: 100%; min-height: 3.1rem; box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 5px 12px rgba(60, 40, 0, .28); }
.note :focus-visible { outline-color: #16233f; }

.post__manage { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.6rem; margin-top: 1.3rem; }
.linkbtn {
  min-height: 2.9rem; padding: .3rem .5rem; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: .96rem; color: var(--paper-dim); text-decoration: underline; text-underline-offset: .22em;
}
.linkbtn:hover { color: var(--paper); }
.linkbtn.is-asking { color: var(--wool); font-weight: 700; }
.linkbtn--onpaper { min-height: 0; padding: 0; color: #5c4300; font-size: 1em; font-weight: 650; }
.linkbtn--onpaper:hover { color: #1c2136; }
.linkbtn--onpaper.is-asking { color: #8a2a12; }

/* The cover of the book: set down when the family takes the case. It stays until they open it themselves. */
.cover {
  position: fixed; inset: 0; z-index: 60; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(.7rem, 2.4vh, 1.4rem);
  padding: clamp(.8rem, 3vh, 1.8rem) 1rem calc(clamp(.9rem, 3vh, 1.8rem) + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 8, 16, 0); perspective: 1700px;
  transition: background .35s ease;
}
.cover[hidden] { display: none; }
/* the book is as tall as the screen allows once the button and its line have their room, and never wider than the screen */
.cover { --book-h: min(calc(100vh - 10.5rem), 138vw); }
@supports (height: 1svh) { .cover { --book-h: min(calc(100svh - 10.5rem), 138vw); } }
.cover.is-in { background: rgba(5, 8, 16, 1); }
.cover.is-open { background: rgba(5, 8, 16, 0); transition: background .75s ease .25s; }
.cover__book { position: relative; flex: none; height: var(--book-h); width: calc(var(--book-h) * 2 / 3); container-type: inline-size; --u: calc(var(--book-h) / 150); }
.cover__board {
  transform-origin: 0 50%; backface-visibility: hidden;
  opacity: 0; transform: translateY(1.2rem) scale(.96);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(243, 232, 210, .1);
}
.cover.is-in .cover__board { opacity: 1; transform: none; }
.cover.is-open .cover__board { transform: rotateY(-112deg); opacity: 0; transition: transform .95s cubic-bezier(.55, .05, .3, 1), opacity .3s ease .6s; }
.cover__actions { flex: none; display: grid; justify-items: center; gap: .5rem; opacity: 0; transform: translateY(.4rem); transition: opacity .35s ease .2s, transform .35s ease .2s; }
.cover.is-in .cover__actions { opacity: 1; transform: none; }
.cover.is-open .cover__actions { opacity: 0; transition: opacity .2s ease; }
.cover__actions .btn { min-width: min(18rem, 78vw); }
.cover__meta { font-family: var(--sans); font-size: .86rem; color: var(--paper-dim); }
@media (prefers-reduced-motion: reduce) {
  .cover, .cover__board, .cover__actions { transition: opacity .3s ease !important; }
  .cover.is-in .cover__board, .cover.is-open .cover__board, .cover__actions { transform: none; }
}
html.reduce-motion .cover, html.reduce-motion .cover__board, html.reduce-motion .cover__actions { transition: opacity .3s ease !important; }
html.reduce-motion .cover.is-in .cover__board, html.reduce-motion .cover.is-open .cover__board, html.reduce-motion .cover__actions { transform: none; }

/* ------------------------------------------------------- the hero's immersion layer
   Blueprint v4.1, Scene 2 (P1-9, P1-10, P1-11). Every rule here styles something that assets/hero-layer.js makes;
   without that script none of these elements exist and the hero is exactly as built. */

/* P1-10 the air over the film: never takes a click, never covers a word (the script leaves a margin round each) */
.hero__air { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* P1-11 the bell rope, at the right-hand edge of the picture. The script sets its top and height to the room that
   is free of the top bar, the captions, the film control and the hero's words. */
.bellpull {
  position: absolute; right: var(--gutter); top: 4.5rem; z-index: 2; width: 2.75rem; height: 8rem;
  display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; pointer-events: none;
}
.bellpull[hidden] { display: none; }
.bellpull__cord {
  flex: 1 1 auto; min-height: 0; width: 5px; margin-bottom: -2px; border-radius: 3px;
  background: repeating-linear-gradient(160deg, #e0cb9c 0 3px, #9c7f4e 3px 5px);           /* twisted hemp, the film's own rope */
  box-shadow: 0 0 6px rgba(6, 9, 18, .55);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 1.2rem); mask-image: linear-gradient(180deg, transparent 0, #000 1.2rem);
}
.bellpull__btn {
  flex: none; position: relative; width: 2.75rem; height: 4.4rem; margin: 0; padding: 0; border: 0; border-radius: 12px;
  display: grid; justify-items: center; align-content: start; gap: .05rem;
  background: none; color: var(--paper); cursor: grab; pointer-events: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.bellpull__btn:active { cursor: grabbing; }
.bellpull__btn:focus-visible { outline: 3px solid var(--wool); outline-offset: 2px; }
.bellpull__end { display: block; width: 2.2rem; height: 3.1rem; filter: drop-shadow(0 2px 4px rgba(6, 9, 18, .75)); }
.bellpull__tag {
  font-family: var(--sans); font-size: .66rem; font-weight: 700; line-height: 1; letter-spacing: .12em; text-transform: uppercase;
  padding: .2rem .4rem; border-radius: 999px; background: rgba(11, 16, 32, .7); border: 1px solid rgba(243, 232, 210, .45);
}
.bellpull.is-in { animation: bellpull-in .8s cubic-bezier(.25, .8, .3, 1) both; }
.bellpull.is-tugged { animation: bellpull-tug 1.2s cubic-bezier(.3, .7, .25, 1); }
.bellpull.is-down { transform: translateY(.9rem); }                    /* reduced motion: down, then back, with nothing in between */
@keyframes bellpull-in {
  from { opacity: 0; transform: translateY(-.4rem) rotate(2deg); }
  60% { opacity: 1; transform: translateY(.15rem) rotate(-1deg); }
  to { opacity: 1; transform: none; }
}
@keyframes bellpull-tug {
  0% { transform: none; }
  16% { transform: translateY(1rem); }
  34% { transform: translateY(-.2rem) rotate(-1.6deg); }
  52% { transform: translateY(.1rem) rotate(1.1deg); }
  72% { transform: rotate(-.5deg); }
  100% { transform: none; }
}
/* the payoff takes the caption's own place under (or on) the film, once the film has settled */
.captions.is-tugged [data-caption] { opacity: 0; }
.tugline { font-size: clamp(.98rem, .88rem + .4vw, 1.2rem); }

/* P1-9 the sound control: made only when a real soundscape file is named in the page. Small, in the top corner of
   the picture, with a finger-sized target round it. */
.soundpill { position: absolute; right: var(--gutter); top: 4.5rem; z-index: 2; min-height: 0; height: 1.9rem; padding: 0 .75rem; font-size: .76rem; }
.soundpill::before { content: ""; position: absolute; inset: -.45rem -.25rem; }
.soundpill[hidden] { display: none; }

/* the thread: a press that lands while the wool is still moving is answered at once (blueprint v4.1, P1-1) */
.tug.is-busy.is-again .tug__ring { opacity: 1; animation: tug-again .3s ease-out forwards; }
@keyframes tug-again { from { transform: scale(.75); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.btn.is-again { box-shadow: 0 0 0 3px rgba(246, 194, 28, .65); }

/* ------------------------------------------------ v4.1 rebrand pass
   The no-name skip link, the payoff's held room on the narrowest phones, and the Privacy & Family Safety note. */
.post__skip { margin-top: .35rem; }
.post__skip .linkbtn { padding-left: 0; }
.tugline--sizer { display: none; visibility: hidden; pointer-events: none; }
@media (max-width: 389.98px) and (min-height: 601px) { .captions .tugline--sizer { display: block; } }
.safety { margin-top: .9rem; font-family: var(--sans); font-size: .95rem; color: #2a3048; }
.safety summary { display: inline-flex; align-items: center; min-height: 2.75rem; cursor: pointer; font-weight: 700; color: #16233f; text-decoration: underline; text-underline-offset: .22em; }
.safety ul { margin: .2rem 0 0; padding-left: 1.2rem; display: grid; gap: .45rem; line-height: 1.45; }
.safety a { color: #16233f; font-weight: 650; text-underline-offset: .2em; overflow-wrap: anywhere; }
/* WCAG AA over the film on a phone held sideways (P2-2): the hero's words get the captions' own dark halo, so the
   bright bokeh of the bell-rope shot can never sit right behind a letter. The picture itself is not darkened. */
@media (max-height: 30rem) and (min-aspect-ratio: 5/4) and (min-width: 36rem) {
  .hero__copy { text-shadow: 0 0 2px rgba(6, 9, 18, .95), 0 1px 3px rgba(6, 9, 18, .9), 0 0 14px rgba(6, 9, 18, .85), 0 0 28px rgba(6, 9, 18, .6); }
  .hero__cta .btn { text-shadow: none; }
}
/* "Continue Detective [Name]'s Case": a long unbroken name breaks inside the word rather than push the page sideways */
.founding h2 { overflow-wrap: anywhere; }
