/* Olden Books funnel. Dark, painterly, bookish; built for phones first. */

@font-face { font-family: "Playfair Display"; src: url("fonts/playfair.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-italic.woff2") format("woff2"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/garamond.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/garamond-italic.woff2") format("woff2"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0f0d0b;
  --cream: #f5efe6;
  --cream-soft: rgba(245, 239, 230, .76);
  --cream-faint: rgba(245, 239, 230, .52);
  --line: rgba(245, 239, 230, .24);
  --gold: #e8c77a;
  --gold-hi: #f1d796;
  --gold-line: rgba(232, 199, 122, .28);
  --paper: #f2e9d8;
  --paper-2: #e6d7bb;
  --type: #2b2119;
  --type-soft: #74624c;
  --rule-red: rgba(170, 52, 40, .55);
  --rule-blue: rgba(64, 98, 148, .22);
  --oxblood: #a0302a;
  --violet: #4a3f93;

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --text: "EB Garamond", Garamond, Georgia, serif;
  --typewriter: "Courier Prime", "Courier New", monospace;
  --out: cubic-bezier(.16, 1, .3, 1);

  /* Paper fibres and the worn edge of rubber stamps, drawn as SVG noise (works as image everywhere) */
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .22 0 0 0 .55 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ink-wear: 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='.55' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.2 2.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ink); color: var(--cream); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font: 400 19px/1.5 var(--text);
  font-variant-numeric: lining-nums proportional-nums;
  font-kerning: normal; font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; text-decoration-color: rgba(245, 239, 230, .35); }
a:hover { text-decoration-color: currentColor; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
em { font-style: italic; }

/* ---------- the painting behind everything ---------- */

.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% 20%, #2a2219 0%, var(--ink) 70%); }
.backdrop__lqip, .backdrop__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.backdrop__lqip { filter: blur(22px) saturate(1.1); transform: scale(1.12); }
.backdrop__img { opacity: 0; transition: opacity 1.4s var(--out); transform-origin: 50% 35%; animation: drift 36s ease-in-out infinite alternate; }
.backdrop__img.is-loaded { opacity: 1; }
.backdrop__lqip:not([src]), .backdrop__img:not([src]) { display: none; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12) translate3d(0, -1.2%, 0); } }
.backdrop__shade {
  position: absolute; inset: 0; transition: opacity .9s var(--out);
  background:
    linear-gradient(180deg, rgba(15, 13, 11, .5) 0%, rgba(15, 13, 11, .1) 16%, rgba(15, 13, 11, .52) 30%, rgba(15, 13, 11, .82) 50%, rgba(15, 13, 11, .96) 100%);
}
.backdrop__shade--deep { opacity: 0; background: linear-gradient(180deg, rgba(15, 13, 11, .78), rgba(15, 13, 11, .9) 40%, rgba(15, 13, 11, .95)); }
body:not([data-step="join"]) .backdrop__shade--deep { opacity: 1; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: var(--paper-grain); opacity: .5; mix-blend-mode: overlay; }

/* ---------- page frame ---------- */

.page {
  position: relative; min-height: 100vh; min-height: 100dvh;
  max-width: 560px; margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  display: flex; flex-direction: column;
}
.stage { flex: 1; display: flex; flex-direction: column; }

.brand { padding: 4px 0 0; }
.brand__link { display: inline-flex; align-items: baseline; gap: .42em; text-decoration: none; }
.brand__olden { font: italic 500 27px/1 var(--display); letter-spacing: -.01em; color: var(--cream); }
.brand__books { font: 600 13px/1 var(--text); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }

/* ---------- steps ---------- */

.step { display: none; flex-direction: column; flex: 1; }
.step.is-active { display: flex; animation: step-in .55s var(--out) both; }
.step.is-leaving { display: flex; animation: step-out .22s ease-in both; }
@keyframes step-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
@keyframes step-out { to { opacity: 0; transform: translate3d(0, -10px, 0); } }
body.is-first-paint .step.is-active { animation: none; }

.rise { animation: rise .9s var(--out) both; }
.rise--1 { animation-delay: .05s; } .rise--2 { animation-delay: .16s; } .rise--3 { animation-delay: .26s; }
.rise--4 { animation-delay: .36s; } .rise--5 { animation-delay: .46s; } .rise--6 { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

/* ---------- 1. join ---------- */

.step[data-step="join"] { justify-content: flex-end; padding-bottom: 6px; }

.display {
  margin: 0; font: 600 38px/1.06 var(--display); letter-spacing: -.015em; color: var(--cream);
  text-wrap: balance; outline: none;
}
.display em { font-style: italic; font-weight: 500; color: var(--gold); }
.lede { margin: 16px 0 0; font-size: 19px; line-height: 1.45; color: var(--cream-soft); text-wrap: pretty; }

.join { margin-top: 26px; }
.join__fields { display: grid; gap: 10px; }
.field {
  width: 100%; height: 56px; padding: 0 16px; border-radius: 3px;
  border: 1px solid rgba(245, 239, 230, .3); background: rgba(15, 13, 11, .42);
  font: 400 19px/1 var(--text); color: var(--cream); caret-color: var(--gold);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field::placeholder { color: rgba(245, 239, 230, .5); }
.field:focus { outline: none; border-color: var(--gold); background: rgba(15, 13, 11, .6); box-shadow: 0 0 0 3px rgba(232, 199, 122, .18); }
.field[aria-invalid="true"] { border-color: #e39a86; animation: nudge .35s ease-in-out; }
@keyframes nudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(4px); } }
.field--area { height: auto; min-height: 128px; padding: 14px 16px; line-height: 1.45; resize: vertical; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.join__error { margin: 10px 0 0; font-size: 16px; color: #efb3a3; }
.fineprint { margin: 12px 0 0; font-size: 15px; line-height: 1.4; color: var(--cream-faint); }
.fineprint--center { text-align: center; }
.authors { margin: 30px 0 0; padding-top: 14px; border-top: 1px solid var(--gold-line); font: 500 13px/1.6 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-faint); }
.authors span { text-transform: none; letter-spacing: .02em; font-style: italic; font-size: 15px; }

/* ---------- buttons ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 22px; border: 0; border-radius: 3px; cursor: pointer;
  font: 600 18px/1.15 var(--text); letter-spacing: .02em; text-align: center; font-variant-numeric: lining-nums;
  transition: transform .15s ease, background-color .2s, color .2s, opacity .25s, box-shadow .25s;
  touch-action: manipulation;
}
.btn:active:not([disabled]) { transform: translateY(1px) scale(.992); }
.btn[disabled] { cursor: default; opacity: .38; }
.btn--gold {
  background: var(--gold); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 14px 34px -16px rgba(232, 199, 122, .7);
}
.btn--gold .btn__text { font-variant-caps: all-small-caps; font-size: 21px; letter-spacing: .07em; }
.btn--gold:hover:not([disabled]) { background: var(--gold-hi); }
.btn--gold[disabled] { opacity: 1; background: transparent; color: rgba(232, 199, 122, .55); box-shadow: inset 0 0 0 1px rgba(232, 199, 122, .3); }
.btn__arrow { width: 20px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .25s var(--out); }
.btn--gold:hover .btn__arrow { transform: translateX(3px); }
.btn.is-busy { pointer-events: none; }
.btn.is-busy .btn__arrow { animation: nib 0.9s ease-in-out infinite; }
@keyframes nib { 50% { transform: translateX(6px); } }
.btn--line { background: rgba(15, 13, 11, .3); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(245, 239, 230, .34); }
.btn--line:hover { box-shadow: inset 0 0 0 1px rgba(245, 239, 230, .6); }
.btn--text {
  min-height: 44px; padding: 0 10px; background: none; color: var(--cream-faint); font-weight: 500;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(245, 239, 230, .22);
}
.btn--text:hover { color: var(--cream); }
.btn--tall { min-height: 64px; width: 100%; font-size: 19px; }
.btn--tall .btn__text { font-variant-caps: normal; font-size: 19px; letter-spacing: .01em; }

/* ---------- the reader card, small (during the questions) ---------- */

.ticket {
  display: none; position: relative; margin: 14px 0 26px; padding: 11px 14px 10px;
  border-radius: 4px; color: var(--type);
  background: var(--paper-grain), linear-gradient(180deg, #f6eedf, var(--paper) 60%, #eadfc9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 18px 40px -18px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .35);
  transform-origin: 50% 0;
}
.ticket::before { content: ""; position: absolute; left: 14px; right: 14px; top: 30px; height: 0; border-top: 1px solid var(--rule-red); }
body[data-step="wish"] .ticket, body[data-step="book"] .ticket { display: block; }
.ticket.is-arriving { animation: ticket-in .8s var(--out) both; }
@keyframes ticket-in { from { opacity: 0; transform: translate3d(0, -18px, 0) rotate(-1.5deg); } }
.ticket.is-bumped { animation: bump .45s var(--out); }
@keyframes bump { 30% { transform: translate3d(0, 3px, 0) scale(.994); } }
.ticket__head { display: flex; align-items: baseline; gap: 10px; padding-right: 104px; white-space: nowrap; }
.ticket__title { font: 700 11px/1 var(--typewriter); letter-spacing: .12em; text-transform: uppercase; }
.ticket__no { font: 400 11px/1 var(--typewriter); letter-spacing: .04em; color: var(--type-soft); }
.ticket__slots { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.slot__mark {
  position: relative; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px dashed rgba(43, 33, 25, .32);
}
.slot__label { font: 600 12px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--type-soft); }
.slot.is-stamped .slot__mark {
  border: 2.5px solid var(--oxblood); color: var(--oxblood);
  transform: rotate(var(--tilt, -8deg));
  -webkit-mask-image: var(--ink-wear); mask-image: var(--ink-wear);
  -webkit-mask-size: 90px; mask-size: 90px;
  mix-blend-mode: multiply;
}
.slot.is-stamped .slot__mark::after {
  content: ""; position: absolute; inset: 6px 5px 7px 6px;
  border: solid var(--oxblood); border-width: 0 0 3px 3px;
  transform: rotate(-48deg) scale(.9, .55) translate(1px, -2px);
}
.slot.is-stamped .slot__label { color: var(--type); }
.slot.is-skipped .slot__mark { border-style: solid; border-color: rgba(43, 33, 25, .18); }
.slot.is-skipped .slot__mark::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; border-top: 1.5px solid rgba(43, 33, 25, .3); }
.slot.is-thunk .slot__mark { animation: thunk .42s var(--out); }
.ticket__date { position: absolute; right: 10px; top: 5px; font-size: 10px; letter-spacing: .1em; }

/* ---------- stamps ---------- */

.stamp {
  --stamp-ink: var(--oxblood);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--stamp-ink); border: 2px solid currentColor; border-radius: 3px; padding: 5px 8px 4px;
  font: 700 12px/1 var(--typewriter); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  transform: rotate(var(--tilt, -6deg)); opacity: .9; mix-blend-mode: multiply;
  -webkit-mask-image: var(--ink-wear); mask-image: var(--ink-wear);
  -webkit-mask-size: 130px; mask-size: 130px;
}
.stamp--date { --stamp-ink: var(--violet); --tilt: 5deg; font-size: 11px; padding: 4px 7px 3px; border-width: 1.5px; }
.stamp--date:empty { display: none; }
.stamp--round {
  width: 104px; height: 104px; padding: 0; border-radius: 50%; border-width: 3px; flex-direction: column; gap: 5px;
  outline: 1.5px solid currentColor; outline-offset: -9px; --tilt: -14deg;
}
.stamp__small { font-size: 8.5px; letter-spacing: .2em; }
.stamp__big { font-size: 17px; letter-spacing: .08em; }
.stamp--box { --tilt: -4deg; font-size: 14px; padding: 7px 10px 6px; border-width: 2.5px; }
.stamp.is-thunk { animation: thunk .5s var(--out) both; }
@keyframes thunk {
  0% { opacity: 0; transform: rotate(var(--tilt, -6deg)) scale(1.9); filter: blur(2px); }
  55% { opacity: .95; transform: rotate(var(--tilt, -6deg)) scale(.94); filter: blur(0); }
  100% { opacity: .9; transform: rotate(var(--tilt, -6deg)) scale(1); }
}

/* ---------- 2-5. questions ---------- */

.eyebrow { margin: 0 0 10px; font: 600 14px/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.eyebrow__ok::before {
  content: ""; display: inline-block; width: 9px; height: 5px; margin: 0 8px 3px 1px;
  border: solid var(--gold); border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.q-title { margin: 0; font: 600 31px/1.12 var(--display); letter-spacing: -.012em; text-wrap: balance; outline: none; }
.q-help { margin: 10px 0 0; font-style: italic; font-size: 19px; color: var(--cream-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 0; min-height: 46px; padding: 0 17px;
  border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(245, 239, 230, .05); box-shadow: inset 0 0 0 1px rgba(245, 239, 230, .28);
  font: 500 18px/1 var(--text); color: var(--cream);
  transition: background-color .2s, color .2s, box-shadow .2s, transform .15s;
  touch-action: manipulation;
}
.chip:active { transform: scale(.97); }
.chip__tick { width: 0; height: 12px; overflow: hidden; transition: width .25s var(--out), margin .25s var(--out); }
.chip__tick::before { content: ""; display: block; width: 9px; height: 5px; margin: 2px 0 0 1px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--paper); color: var(--type); box-shadow: inset 0 0 0 1px var(--paper), 0 8px 20px -10px rgba(0, 0, 0, .6); }
.chip[aria-pressed="true"] .chip__tick, .chip[aria-checked="true"] .chip__tick { width: 13px; margin-right: 8px; }

.q-actions { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.q-actions .btn--gold { flex: 1; }
.q-actions--quiet { justify-content: center; margin-top: 8px; }

.options { margin-top: 18px; border-top: 1px solid var(--gold-line); }
.option {
  width: 100%; display: grid; grid-template-columns: 30px 1fr 18px; align-items: start; column-gap: 12px;
  padding: 14px 6px 15px 2px; border: 0; border-bottom: 1px solid var(--gold-line); cursor: pointer;
  background: none; text-align: left; color: var(--cream);
  transition: background-color .25s;
  touch-action: manipulation;
}
.option:hover { background: rgba(245, 239, 230, .04); }
.option__num { font: italic 500 19px/1.25 var(--display); color: var(--gold); text-align: center; }
.option__title { display: block; font: 600 19px/1.25 var(--display); letter-spacing: -.005em; }
.option__desc { display: block; margin-top: 3px; font-style: italic; font-size: 16.5px; line-height: 1.35; color: var(--cream-soft); }
.option__go { align-self: center; width: 8px; height: 8px; border: solid rgba(245, 239, 230, .4); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); transition: transform .25s var(--out), border-color .2s; }
.option:hover .option__go { transform: translateX(3px) rotate(45deg); border-color: var(--gold); }
.option.is-picked { background: linear-gradient(90deg, rgba(232, 199, 122, .2), rgba(232, 199, 122, 0) 85%); }
.option.is-picked .option__go { border-color: var(--gold); }
.option--skip { min-height: 78px; align-items: center; }

/* ---------- 6. done: the card leaves its pocket ---------- */

.display--done { font-size: 46px; }
.eyebrow--welcome { margin-bottom: 6px; }
.step--done .lede { margin-top: 10px; }

.inbox {
  position: relative; margin-top: 22px; padding: 20px 18px 16px; border-radius: 4px; text-align: center;
  background: rgba(15, 13, 11, .45); box-shadow: inset 0 0 0 1px var(--gold-line);
}
.inbox__icon { width: 44px; height: 32px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; }
.inbox__lead { margin: 10px 0 0; font-size: 20px; line-height: 1.4; color: var(--cream); text-wrap: pretty; }
.inbox__lead b { font-weight: 600; color: var(--gold); overflow-wrap: anywhere; }
.inbox__open { width: 100%; margin-top: 16px; text-decoration: none; }
.inbox__help { margin: 14px 0 0; font-size: 16px; line-height: 1.45; color: var(--cream-faint); }
.btn--inline {
  padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--cream-soft);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(245, 239, 230, .3);
}
.inbox + .lede { margin-top: 24px; }

.library { position: relative; margin: 28px 2px 0; padding-bottom: 44px; clip-path: inset(-200px -60px 0 -60px); }
.card {
  position: relative; z-index: 1; padding: 18px 18px 52px; border-radius: 5px; color: var(--type);
  background: var(--paper-grain), linear-gradient(175deg, #f7f0e2, var(--paper) 55%, #e9dcc3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 30px 60px -28px rgba(0, 0, 0, .9), 0 3px 10px rgba(0, 0, 0, .35);
  transform: translate3d(0, 0, 0) rotate(-.6deg);
  transition: transform 1.25s var(--out);
}
.library.is-tucked .card { transform: translate3d(0, calc(100% - 118px), 0) rotate(0deg); transition: none; }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 3px double var(--rule-red); }
.card__org { margin: 0; font: 600 12px/1 var(--text); letter-spacing: .3em; text-transform: uppercase; color: var(--type-soft); }
.card__title { margin: 7px 0 0; font: 600 21px/1.1 var(--display); letter-spacing: -.005em; }
.card__no { margin: 0; font: 400 12px/1 var(--typewriter); color: var(--type-soft); text-align: right; white-space: nowrap; }
.card__no b { display: block; margin-top: 6px; font-size: 16px; font-weight: 700; color: var(--type); letter-spacing: .06em; }
.card__rows { margin: 4px 0 0; }
.row { display: grid; grid-template-columns: 100px 1fr; gap: 8px; align-items: baseline; padding: 9px 0 8px; border-bottom: 1px solid var(--rule-blue); }
.row dt { white-space: nowrap; }
.row dt { font: 600 12px/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--type-soft); }
.row dd { margin: 0; min-height: 1.3em; font: 400 15px/1.35 var(--typewriter); overflow-wrap: anywhere; }
.row dd.is-typing::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: rgba(43, 33, 25, .6); animation: caret .6s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.row dd.is-empty { color: rgba(43, 33, 25, .35); }
.card__zone { position: relative; height: 92px; margin-top: 14px; border-top: 1px dashed rgba(43, 33, 25, .28); }
.card__zone span { position: absolute; left: 0; top: 8px; font: 600 11px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: rgba(43, 33, 25, .4); }
.card__stamps { position: absolute; inset: 0; pointer-events: none; }
.card__stamps [data-stamp="priority"] { position: absolute; right: 8px; top: 90px; }
.card__stamps [data-stamp="date"] { position: absolute; right: 22px; bottom: 76px; font-size: 13px; padding: 6px 9px 5px; border-width: 2px; }
.card__stamps [data-stamp="status"] { position: absolute; left: 22px; bottom: 68px; }
.stamp--pending { --stamp-ink: var(--violet); --tilt: -5deg; font-size: 15px; letter-spacing: .22em; border-style: dashed; }
.stamp--confirmed { --stamp-ink: var(--oxblood); --tilt: -7deg; font-size: 16px; letter-spacing: .2em; border-width: 3px; }
.card__stamps .stamp.is-waiting { opacity: 0; }

.pocket {
  position: absolute; z-index: 2; left: -2px; right: -2px; bottom: 0; height: 88px; border-radius: 3px 3px 6px 6px;
  background: var(--paper-grain), linear-gradient(180deg, #d9c7a6, #cbb690);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .35) inset, 0 -10px 24px -14px rgba(0, 0, 0, .7), 0 12px 30px -12px rgba(0, 0, 0, .8);
  -webkit-mask: radial-gradient(38px 22px at 50% 0, transparent 97%, #000 100%);
  mask: radial-gradient(38px 22px at 50% 0, transparent 97%, #000 100%);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px;
}
.pocket__label { font: 700 10.5px/1 var(--typewriter); letter-spacing: .2em; text-transform: uppercase; color: rgba(43, 33, 25, .55); }

.after { margin-top: 30px; }
.after.is-waiting { opacity: 0; transform: translate3d(0, 12px, 0); }
.after.is-shown { opacity: 1; transform: none; transition: opacity .8s var(--out), transform .8s var(--out); }

.share--first { margin-top: 0; padding-top: 0; border-top: 0; }
.share--first + .note { margin-top: 28px; }
.note { margin: 0; padding: 20px 0 0; border-top: 1px solid var(--gold-line); }
.note p { margin: 0; font: italic 400 20px/1.5 var(--text); color: var(--cream); text-wrap: pretty; }
.note footer { margin-top: 10px; font: 500 14px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.note footer::before { content: "— "; }

.next { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.next li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-size: 18px; line-height: 1.45; color: var(--cream-soft); }
.next b { font-weight: 600; color: var(--cream); }
.next__n { font: italic 500 19px/1.4 var(--display); color: var(--gold); text-align: center; }

.share { margin-top: 30px; padding: 22px 0 6px; border-top: 1px solid var(--gold-line); text-align: center; }
.share__lead { margin: 0 0 12px; font: italic 400 20px/1.3 var(--text); color: var(--cream); }
.share .btn { width: 100%; }
.share__fallback { display: block; margin-top: 10px; }

/* ---------- footer, toast ---------- */

.legal { display: flex; justify-content: center; gap: 22px; padding: 26px 0 4px; font-size: 14px; color: var(--cream-faint); }
.legal a { text-decoration-color: rgba(245, 239, 230, .2); }

.toast {
  position: fixed; z-index: 10; top: max(14px, env(safe-area-inset-top)); left: 50%; width: max-content; max-width: calc(100% - 32px);
  margin: 0; padding: 12px 18px; border-radius: 4px; transform: translateX(-50%);
  background: var(--paper-grain), var(--paper); color: var(--type); font-size: 17px; line-height: 1.35;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .9); animation: toast-in .6s var(--out) both;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -12px); } }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; padding: 12px; background: var(--paper); color: var(--type); text-align: center; }

/* ---------- larger screens ---------- */

@media (min-width: 720px) {
  body { font-size: 20px; }
  .page { max-width: 600px; padding-top: 28px; }
  .brand__olden { font-size: 30px; }
  .step[data-step="join"] { justify-content: center; padding-bottom: 8vh; }
  .display { font-size: 54px; }
  .display--done { font-size: 60px; }
  .q-title { font-size: 40px; }
  .card { padding: 22px 24px 66px; }
  .row { grid-template-columns: 96px 1fr; }
  .backdrop__shade {
    background: linear-gradient(90deg, rgba(15, 13, 11, .35), rgba(15, 13, 11, .82) 30%, rgba(15, 13, 11, .82) 70%, rgba(15, 13, 11, .35));
  }
}
@media (max-width: 380px) {
  .ticket__no { display: none; }
}
@media (max-width: 360px) {
  .page { padding-left: 16px; padding-right: 16px; }
  .display { font-size: 33px; }
  .q-title { font-size: 27px; }
  .slot__label { font-size: 10.5px; letter-spacing: .08em; }
}

.portrait { display: none; }
@media (min-width: 1024px) {
  .page {
    max-width: 1180px; display: grid; column-gap: clamp(48px, 7vw, 120px);
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto;
    padding-left: 48px; padding-right: 48px;
  }
  .brand, .ticket, .stage, .legal { grid-column: 1; }
  .brand { grid-row: 1; } .ticket { grid-row: 2; } .stage { grid-row: 3; } .legal { grid-row: 4; }
  .legal { justify-content: flex-start; }
  .portrait {
    display: block; grid-column: 2; grid-row: 1 / -1; align-self: start; justify-self: center;
    position: sticky; top: max(6vh, 32px); margin: 0; height: min(86vh, 900px); aspect-ratio: 9 / 16;
    overflow: hidden; border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(232, 199, 122, .4), 0 0 0 12px rgba(15, 13, 11, .55), 0 0 0 13px rgba(232, 199, 122, .16), 0 50px 90px -30px rgba(0, 0, 0, .95);
    animation: rise 1.2s var(--out) .2s both;
  }
  .portrait__img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 35%; animation: drift 36s ease-in-out infinite alternate; }
  .portrait__img:not([src]) { visibility: hidden; }
  .backdrop__img, .backdrop__lqip { filter: blur(34px) saturate(.9) brightness(.8); transform: scale(1.2); animation: none; }
  .backdrop__shade { background: linear-gradient(90deg, rgba(15, 13, 11, .9), rgba(15, 13, 11, .72) 55%, rgba(15, 13, 11, .5)); }
  .step[data-step="join"] { justify-content: center; padding-bottom: 6vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .backdrop__img { animation: none; }
}

/* ---------- 3. free book (a long shelf to scroll), language, genres ---------- */

.shelf {
  position: relative; margin-top: 16px; max-height: min(58vh, 520px); overflow-y: auto; overscroll-behavior: contain;
  border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line);
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--gold-line) transparent;
  --fade-top: #000; --fade-end: transparent;
  -webkit-mask-image: linear-gradient(180deg, var(--fade-top), #000 36px, #000 calc(100% - 56px), var(--fade-end));
  mask-image: linear-gradient(180deg, var(--fade-top), #000 36px, #000 calc(100% - 56px), var(--fade-end));
}
.shelf.is-scrolled { --fade-top: transparent; }
.shelf.is-end { --fade-end: #000; }
.picks { position: relative; }
.picks__group { margin: 0; padding: 20px 4px 8px; font: 600 13px/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold-line); }
.pick--later .pick__title { font-style: italic; font-weight: 500; }
.pick {
  width: 100%; display: grid; grid-template-columns: 26px 1fr; align-items: center; column-gap: 12px;
  padding: 13px 4px; border: 0; border-bottom: 1px solid var(--gold-line); cursor: pointer;
  background: none; color: var(--cream); text-align: left; transition: background-color .25s; touch-action: manipulation;
}
.pick:last-child { border-bottom: 0; }
.pick[aria-checked="true"] { background: linear-gradient(90deg, rgba(232, 199, 122, .18), rgba(232, 199, 122, 0) 85%); }
.pick__dot { position: relative; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(245, 239, 230, .45); }
.pick[aria-checked="true"] .pick__dot { box-shadow: inset 0 0 0 1.5px var(--gold); }
.pick[aria-checked="true"] .pick__dot::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--gold); }
.pick__title { display: block; font: 600 19px/1.25 var(--display); }
.pick__author { display: block; margin-top: 2px; font-style: italic; font-size: 16.5px; color: var(--cream-soft); }
.q-sub { margin: 30px 0 0; font: 600 22px/1.2 var(--display); }
.q-optional { margin-left: 6px; font: italic 400 16px/1 var(--text); color: var(--cream-faint); }
.q-sub + .chips { margin-top: 12px; }
.step[data-step="book"] .q-actions .btn--gold { flex: 1; }

/* ---------- numerals ---------- */

/* Regular numerals everywhere: in these fonts an old-style 1 reads like "ı" ("€ı a month").
   Last in the file on purpose: every "font:" shorthand above resets the numeral style. */
[class], [class] * { font-variant-numeric: lining-nums; }

/* ---------- imprint and privacy ---------- */

.legal-page { background: radial-gradient(120% 60% at 50% 0%, #241d16, var(--ink) 70%); }
.doc { max-width: 640px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 22px 64px; }
.doc h1 { margin: 34px 0 6px; font: 600 40px/1.1 var(--display); }
.doc h2 { margin: 30px 0 6px; font: 600 14px/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.doc p, .doc li { font-size: 18px; line-height: 1.55; color: var(--cream-soft); }
.doc p { margin: 0; }
.doc ul { margin: 0; padding-left: 1.1em; }
.doc li + li { margin-top: 6px; }
.doc b { color: var(--cream); font-weight: 600; }
.doc__lead { font-style: italic; font-size: 20px !important; }
.doc__back { margin-top: 40px !important; }

/* Acknowledged saves and recovery stay visible without changing the card layout. */
.sync-notice { margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--cream-faint); font-size: 16px; line-height: 1.4; }
.sync-notice button { margin-left: 8px; }


/* Three listening samples, alongside the signup on desktop and below it on phones. */
.samples { margin: 26px 0 8px; padding: 24px 22px 6px; border: 1px solid var(--gold-line); border-radius: 3px; background: rgba(15, 13, 11, .74); }
body:not([data-step="join"]) .samples { display: none; }
.samples__title { margin: 0; color: var(--gold); font: italic 500 26px/1.25 var(--display); }
.samples__intro { margin: 9px 0 20px; color: var(--cream-soft); font-size: 17px; line-height: 1.4; }
.sample { padding: 17px 0; border-top: 1px solid var(--gold-line); }
.sample__heading { display: flex; align-items: baseline; gap: 13px; }
.sample__number { width: 22px; flex: 0 0 22px; color: var(--gold); font: 12px/1.4 var(--typewriter); }
.sample__book { margin: 0; font: 500 20px/1.25 var(--display); overflow-wrap: anywhere; }
.sample__author { margin: 4px 0 0; font-size: 15px; line-height: 1.3; color: var(--cream-soft); }
.sample__line { margin: 9px 0 12px 35px; font-size: 16px; line-height: 1.35; color: var(--cream-soft); }
.sample__line:empty { display: none; }
.sample__controls { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.sample__toggle { display: grid; place-items: center; flex: 0 0 44px; min-height: 44px; padding: 0; border: 1px solid var(--gold-line); border-radius: 50%; color: var(--gold); background: rgba(232, 199, 122, .06); cursor: pointer; font: 16px/1 var(--text); }
.sample__toggle:hover { border-color: var(--gold); background: rgba(232, 199, 122, .13); }
.sample__toggle[aria-pressed="true"] { background: rgba(232, 199, 122, .15); }
.sample__seek { flex: 1; width: 100%; min-width: 24px; min-height: 44px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.sample__seek:disabled { cursor: default; opacity: .5; }
.sample__time { flex-shrink: 0; font: 11px/1.3 var(--typewriter); color: var(--cream-soft); white-space: nowrap; }
.sample__status { margin: 9px 0 0; color: var(--gold); font-size: 15px; line-height: 1.35; }
.sample__toggle:focus-visible, .sample__seek:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; }
@media (min-width: 1024px) {
  .samples { grid-column: 2; grid-row: 1 / -1; align-self: center; margin: 36px 0; padding: 28px 24px 10px; }
  body.has-samples[data-step="join"] .portrait { display: none; }
}
