/* Kronkle website. Colours and shapes follow the app: warm paper, Kronkel's
   coral, rounded type for the interface and a serif for the stories. */

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-wght-normal.woff2?76388dbf") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-ext-wght-normal.woff2?4fcdc09b") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+201E;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-opsz-normal.woff2?48642176") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #fff7ea;
  --card: #ffffff;
  --ink: #25233b;
  --ink-soft: #6e6a80;
  --brand: #f4674a;
  --brand-deep: #d94f33;
  /* Coral as text: on paper the deep one reads, on a dark page a lighter one does. */
  --brand-ink: #d94f33;
  --sun: #ffc83d;
  --sky: #2f6fd0;
  --night: #171a33;
  --night-card: #23274a;
  --night-lit: #2e3360;
  --foot: #171a33;
  --line: #eadfcb;
  /* Running text on the plain pages, a shade softer than headings. */
  --ink-body: #45425c;
  /* The case of a phone or tablet, the edge of the book's pages, a picture not yet loaded. */
  --frame: #25233b;
  --frame-ring: transparent;
  --edge: #e4d6bd;
  --blank: #f1e6d2;
  /* Shadows take the colour of the ink on paper and plain black at night. */
  --shadow: 37 35 59;
  --glow: none;
  --wide: 1180px;
  --ui: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --story: "Fraunces", "New York", Georgia, serif;
  color-scheme: light;
}

/* A screen of the app comes in both looks; only the one that matches is shown and fetched. */
.only-dark { display: none; }

/* The dark page follows the app at night: deep blue with a little light in it.
   The site is light for everyone, whatever the device is set to; the dark page
   is only for a visitor who chose it with the switch. */
:root[data-theme="dark"] {
  --paper: #13152b; --card: #1e2242; --ink: #f6efe2; --ink-soft: #a9a6bd; --brand-ink: #ff8f76; --sky: #7fa9ee;
  --night: #1d2150; --night-card: #2b3062; --night-lit: #383e78; --foot: #0b0c1a; --line: #30355a; --ink-body: #cdc9da;
  --frame: #07080f; --frame-ring: rgb(255 255 255 / 0.14); --edge: #0c0e1f; --blank: #262a4d; --shadow: 0 0 0;
  --glow: radial-gradient(60rem 44rem at 8% -12rem, rgb(72 80 184 / 0.3), transparent 70%), radial-gradient(48rem 40rem at 104% 6rem, rgb(138 63 106 / 0.2), transparent 70%);
  color-scheme: dark;
}
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--glow) no-repeat, var(--paper);
  color: var(--ink);
  font: 500 18px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
/* Short texts break into lines of even length; long ones only avoid a lone last word. */
h1, h2, h3, p, summary, figcaption, label { text-wrap: balance; }
h1, h2 { font-weight: 900; letter-spacing: -0.025em; line-height: 1.04; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink-soft); max-width: 34em; }
.wrap { width: min(var(--wide), 100% - 48px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

/* ── Top bar ─────────────────────────────────────────────── */
.top { display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; font-size: 1.5rem; letter-spacing: -0.03em; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 11px; }
.top nav { display: flex; gap: 26px; margin-left: auto; }
.top nav a, .lang { font-weight: 700; font-size: 1rem; text-decoration: none; color: var(--ink-soft); }
.top nav a:hover, .lang:hover { color: var(--ink); }
.lang { border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; letter-spacing: 0.04em; }
/* The switch between the light and the dark page: it shows what a press brings. */
.theme { display: grid; place-items: center; width: 36px; height: 36px; margin-left: -14px; padding: 0; border: 2px solid var(--line); border-radius: 50%; background: none; color: var(--ink-soft); transition: color 0.15s, border-color 0.15s; }
.theme[hidden] { display: none; }
.theme:hover { color: var(--ink); border-color: var(--ink-soft); }
.theme svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 30px; border: 0; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 1.08rem; text-decoration: none;
  box-shadow: 0 10px 24px -8px rgb(244 103 74 / 0.6);
  transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover { background: var(--brand-deep); transform: translateY(-1px); }
.button.quiet { background: var(--ink); color: var(--paper); box-shadow: none; }
.button.small { min-height: 44px; padding: 0 20px; font-size: 0.95rem; box-shadow: none; }
.button[aria-disabled="true"] { cursor: default; }
.button[aria-disabled="true"]:hover { transform: none; background: var(--ink); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(24px, 5vw, 64px) clamp(56px, 8vw, 104px); }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-note { font-size: 0.98rem; font-weight: 700; color: var(--ink-soft); }

/* The open book: picture on the left page, words on the right. */
.book {
  display: grid; grid-template-columns: 1fr 1fr; position: relative;
  aspect-ratio: 8 / 5; border-radius: 22px; background: var(--card);
  box-shadow: 0 2px 0 var(--edge), 0 40px 70px -30px rgb(var(--shadow) / 0.45), 0 12px 24px -12px rgb(var(--shadow) / 0.2);
  transform: rotate(-1.4deg);
}
.book::after { /* the fold */
  content: ""; position: absolute; inset: 0 auto 0 50%; width: 34px; pointer-events: none;
  background: linear-gradient(90deg, rgb(var(--shadow) / 0.16), transparent);
}
.book-picture { position: relative; border-radius: 22px 0 0 22px; overflow: hidden; background: var(--blank); }
.book-picture img { width: 100%; height: 100%; object-fit: cover; }
.book-words { display: flex; flex-direction: column; padding: clamp(18px, 2.6vw, 34px) clamp(18px, 2.4vw, 32px) 18px clamp(26px, 3.2vw, 44px); min-width: 0; }
.story { font: 400 clamp(0.98rem, 1.32vw, 1.2rem)/1.55 var(--story); margin-block: auto; text-wrap: pretty; }
.story span { border-radius: 5px; padding: 1px 2px; margin: -1px -2px; transition: background 0.12s, color 0.12s; }
.story span.now { background: rgb(244 103 74 / 0.16); color: var(--brand-ink); }
/* Turning a page: a leaf swings over the spine with the old page on its front
   and the new one on its back, while a copy holds the page it will land on. */
.held, .leaf, .shade { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.held.left, .leaf.left, .shade.left { left: 0; right: 50%; }
.held.right, .leaf.right, .shade.right { left: 50%; right: 0; }
.held { z-index: 1; }
.shade { z-index: 2; }
.shade.left { border-radius: 22px 0 0 22px; background: linear-gradient(270deg, rgb(var(--shadow) / 0.34), transparent 80%); }
.shade.right { border-radius: 0 22px 22px 0; background: linear-gradient(90deg, rgb(var(--shadow) / 0.34), transparent 80%); }
.leaf { z-index: 3; }
.leaf.left { transform-origin: 100% 50%; }
.leaf.right { transform-origin: 0 50%; }
.leaf > * { position: absolute; inset: 0; }
/* Drawn mirrored, so it reads the right way round once the leaf has turned over. */
.leaf > .back { transform: scaleX(-1); }
/* A copied page of words brings its own paper and the shadow of the fold. */
.held.book-words, .leaf > .book-words { border-radius: 0 22px 22px 0; background: linear-gradient(90deg, rgb(var(--shadow) / 0.16), transparent 34px), var(--card); }
.dim { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgb(var(--shadow) / 0.35), rgb(var(--shadow) / 0.85)); }
.leaf > .book-picture .dim { background: linear-gradient(270deg, rgb(var(--shadow) / 0.35), rgb(var(--shadow) / 0.85)); }
.book-picture .fading { position: absolute; inset: 0; }
.book-controls { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 12px; }
.round { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; }
.round:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.round.play { width: 58px; height: 58px; background: var(--brand); color: #fff; box-shadow: 0 8px 18px -6px rgb(244 103 74 / 0.7); }
.round.play:hover { background: var(--brand-deep); }
.round svg { width: 22px; height: 22px; fill: currentColor; }
.book-count { position: absolute; right: 22px; top: 16px; font-size: 0.8rem; font-weight: 800; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.book-hint { text-align: center; font-size: 0.92rem; font-weight: 700; color: var(--ink-soft); margin-top: 22px; }

/* ── Sections ────────────────────────────────────────────── */
section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { justify-items: center; text-align: center; }

/* The shelf: real covers, each a different style. */
.shelf { padding-top: 0; }
.covers { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: clamp(12px, 2vw, 26px); align-items: end; }
.covers img { border-radius: clamp(10px, 1.4vw, 18px); box-shadow: 0 26px 40px -24px rgb(var(--shadow) / 0.55), inset 6px 0 8px -6px rgb(0 0 0 / 0.35); transition: transform 0.2s ease; }
.covers img:nth-child(odd) { transform: translateY(14px) rotate(-1.2deg); }
.covers img:nth-child(even) { transform: translateY(-6px) rotate(1deg); }
.covers img:hover { transform: translateY(-10px) rotate(0); }

/* How it works: three real screens. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3.5vw, 48px); }
.step { display: grid; gap: 22px; justify-items: center; align-content: start; text-align: center; }
.step p { color: var(--ink-soft); max-width: 22em; }
.phone { width: min(100%, 300px); border-radius: 42px; border: 9px solid var(--frame); background: var(--frame); overflow: hidden; box-shadow: 0 0 0 1px var(--frame-ring), 0 30px 50px -28px rgb(var(--shadow) / 0.55); }
.phone img { width: 100%; border-radius: 33px; }

/* Art styles: one scene, eight ways. */
.styles-stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.styles-picture { border-radius: 28px; overflow: hidden; aspect-ratio: 1; background: var(--blank); box-shadow: 0 34px 60px -34px rgb(var(--shadow) / 0.5); }
.styles-picture img { width: 100%; height: 100%; object-fit: cover; }
/* The public library: one shelf to leaf through sideways, five covers in view. */
.carousel { position: relative; margin-bottom: clamp(36px, 5vw, 60px); }
.carousel-track { --gap: clamp(12px, 1.8vw, 24px); display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 0 26px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track figure { flex: 0 0 calc((100% - 4 * var(--gap)) / 5); display: grid; gap: 12px; margin: 0; scroll-snap-align: start; }
.carousel-track img { border-radius: clamp(8px, 1.2vw, 14px); box-shadow: 0 20px 30px -20px rgb(var(--shadow) / 0.5), inset 5px 0 7px -5px rgb(0 0 0 / 0.3); }
.carousel-track figcaption { font-weight: 800; font-size: 0.95rem; color: var(--brand-ink); }
.carousel .round { position: absolute; z-index: 1; top: calc(50% - 44px); background: var(--card); color: var(--ink); box-shadow: 0 8px 20px -8px rgb(var(--shadow) / 0.45); transition: opacity 0.2s; }
.carousel .round:hover { background: var(--card); color: var(--brand-ink); }
.carousel .round:disabled { opacity: 0; pointer-events: none; }
.carousel [data-shelf-prev] { left: -22px; }
.carousel [data-shelf-next] { right: -22px; }
.library-note { margin-top: clamp(28px, 4vw, 44px); text-align: center; color: var(--ink-soft); text-wrap: balance; }

.styles-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.styles-list button { display: grid; gap: 8px; padding: 0; border: 0; background: none; text-align: center; font-weight: 700; font-size: 0.88rem; color: var(--ink-soft); }
.styles-list img { border-radius: 16px; aspect-ratio: 1; object-fit: cover; outline: 4px solid transparent; outline-offset: -4px; transition: outline-color 0.15s; }
.styles-list button[aria-pressed="true"] { color: var(--brand-ink); }
.styles-list button[aria-pressed="true"] img { outline-color: var(--brand); }

/* Voices: a quieter, bedtime band. */
/* The colour stops 2px short of the band's own edges, so the waves overlap it:
   painted to the edge, a hairline of night shows when the page is zoomed. */
.night { background: linear-gradient(var(--night), var(--night)) center / 100% calc(100% - 4px) no-repeat; color: #f6efe2; position: relative; }
.night .lede { color: #b9b6d0; }
.night { padding-block: clamp(96px, 12vw, 170px) clamp(210px, 22vw, 300px); overflow: hidden; }
.wave { position: absolute; left: 0; width: 100%; height: clamp(28px, 4.4vw, 60px); fill: var(--paper); }
/* Named upper and lower: `.top` is the page header. */
.wave.upper { top: -1px; }
.wave.lower { bottom: -1px; transform: scaleY(-1); }
.sleeper { position: absolute; left: max(24px, calc((100vw - var(--wide)) / 2)); bottom: clamp(18px, 3vw, 46px); width: clamp(130px, 15vw, 200px); }
.voices-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.voices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.voices button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 20px; background: var(--night-card); color: inherit; text-align: left; transition: background 0.15s; }
.voices button:hover, .voices button.playing { background: var(--night-lit); }
.voices .dot { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; }
.voices .dot svg { width: 18px; height: 18px; fill: currentColor; }
.voices strong { display: block; font-weight: 800; line-height: 1.2; }
.voices small { color: #b9b6d0; font-size: 0.86rem; font-weight: 600; }

/* Characters and tablet. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.cast-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.cast-row figure { margin: 0; display: grid; gap: 10px; justify-items: center; font-weight: 800; font-size: 0.95rem; }
.cast-row img { width: 100%; max-width: 128px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 16px 28px -16px rgb(var(--shadow) / 0.5); }
.tablet { border-radius: 30px; border: 12px solid var(--frame); background: var(--frame); overflow: hidden; box-shadow: 0 0 0 1px var(--frame-ring), 0 40px 70px -36px rgb(var(--shadow) / 0.6); }
.tablet img { width: 100%; border-radius: 18px; }

/* From photo to character: two snapshots, what Kronkel drew from them, and both in a story. */
.likeness { display: grid; grid-template-columns: minmax(0, 1.08fr) auto minmax(0, 0.92fr); gap: clamp(16px, 3vw, 44px); align-items: center; max-width: 1040px; margin-inline: auto; }
.likeness-pairs { display: grid; gap: clamp(22px, 3.4vw, 44px); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(10px, 2vw, 26px); align-items: center; }
.likeness figure { display: grid; gap: 12px; justify-items: center; margin: 0; font-weight: 800; font-size: 0.95rem; }
.likeness img { width: 100%; }
/* A print of a photo, laid down a little askew. */
.snap img { border: clamp(6px, 0.8vw, 10px) solid #fff; border-radius: 6px; rotate: -2.5deg; box-shadow: 0 18px 30px -18px rgb(var(--shadow) / 0.55), 0 2px 6px rgb(var(--shadow) / 0.12); }
.pair:nth-child(2) .snap img { rotate: 2deg; }
.snap figcaption { color: var(--ink-soft); font-weight: 700; }
.drawn img { border-radius: 22%; box-shadow: 0 22px 36px -22px rgb(var(--shadow) / 0.55); }
.likeness-story img { border-radius: 22px; box-shadow: 0 34px 60px -34px rgb(var(--shadow) / 0.5); }
.becomes { width: clamp(26px, 3.6vw, 50px); color: var(--brand); margin-bottom: 30px; }
.likeness-note { margin-top: clamp(24px, 3vw, 40px); text-align: center; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }

/* Three plain promises. */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.promises div { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 4px solid var(--ink); }
.promises p { color: var(--ink-soft); }

/* Questions and answers. */
.questions { max-width: 820px; margin-inline: auto; }
.questions details { border-top: 2px solid var(--line); }
.questions details:last-child { border-bottom: 2px solid var(--line); }
.questions summary { position: relative; padding: 20px 48px 20px 0; font-weight: 800; font-size: 1.15rem; line-height: 1.3; cursor: pointer; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font-size: 1.7rem; font-weight: 700; color: var(--brand); }
.questions details[open] summary::after { content: "\2013"; }
.questions p { padding: 0 48px 22px 0; color: var(--ink-soft); text-wrap: pretty; }

/* Closing band. Like the night band, its colour stops short of its edges so the
   waves overlap it. Kronkel and the words sit together in the middle. */
.cta { position: relative; background: linear-gradient(var(--brand), var(--brand)) center / 100% calc(100% - 4px) no-repeat; color: #fff; padding-block: 0; }
.cta-inner { display: grid; grid-template-columns: auto minmax(0, 33rem); justify-content: center; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(92px, 11vw, 148px) clamp(100px, 12vw, 164px); }
/* A soft light behind Kronkel, who is nearly the colour of the band himself. */
.cta-figure { position: relative; width: clamp(170px, 21vw, 270px); }
.cta-figure::before { content: ""; position: absolute; inset: 4% -14% 0; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 255 255 / 0.3), rgb(255 255 255 / 0.12) 62%, transparent); }
.cta-figure img { position: relative; width: 100%; }
.cta-copy { display: grid; gap: 22px; justify-items: start; }
.cta .lede { color: rgb(255 255 255 / 0.86); }
.cta .button { background: #fff; color: var(--brand-deep); box-shadow: none; }
.cta .button:hover { background: #fff3ea; }

/* The foot of every page: the night colour again, rising in a wave out of
   whatever comes before it. */
footer { position: relative; background: var(--foot); color: #b9b6d0; font-size: 0.98rem; font-weight: 600; }
footer .wave { top: auto; bottom: calc(100% - 2px); fill: var(--foot); transform: scaleY(-1); }
footer a { color: inherit; text-decoration: none; transition: color 0.15s; }
footer a:hover { color: #fff; }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; padding-block: clamp(40px, 5vw, 60px) clamp(36px, 4.5vw, 52px); }
.footer-brand { display: grid; gap: 14px; align-content: start; max-width: 21em; }
.footer-brand .brand { color: #f6efe2; }
.footer-links { display: flex; gap: clamp(44px, 8vw, 104px); }
.footer-links ul { display: grid; gap: 12px; align-content: start; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #e4e0f1; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px 30px; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.9rem; }

/* Legal and plain text pages. */
.prose { max-width: 720px; padding-block: 24px 96px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 12px; }
.prose h2 { font-size: 1.45rem; letter-spacing: -0.01em; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--ink-body); text-wrap: pretty; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose .date { color: var(--ink-soft); font-weight: 700; margin-bottom: 28px; }
.lost { display: grid; justify-items: center; gap: 20px; text-align: center; padding-block: 48px 120px; }
.lost img { width: 220px; }

/* Contact form. */
.prose .lede { margin-bottom: 8px; }
.contact { display: grid; gap: 16px; margin-top: 28px; }
.contact label { display: grid; gap: 6px; font-weight: 800; font-size: 0.95rem; }
.contact input, .contact textarea { font: inherit; font-weight: 500; padding: 14px 16px; border: 2px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); resize: vertical; }
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--brand); }
.contact .trap { position: absolute; left: -9999px; }
.contact .button { justify-self: start; }
.contact .status { font-weight: 700; min-height: 1.5em; color: var(--ink); }
.mail { margin-top: 24px; }

/* ── Narrower screens ────────────────────────────────────── */
@media (max-width: 900px) {
  .top nav { display: none; }
  .lang { margin-left: auto; }
  .hero, .styles-stage, .voices-grid, .split, .cta-inner, .likeness { grid-template-columns: 1fr; }
  .likeness { max-width: 520px; }
  .likeness > .becomes { justify-self: center; rotate: 90deg; margin: 0; }
  .likeness-story { max-width: 380px; justify-self: center; }
  .hero { padding-top: 12px; }
  .book { transform: none; }
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .promises { grid-template-columns: 1fr; }
  .carousel [data-shelf-prev] { left: 6px; }
  .carousel [data-shelf-next] { right: 6px; }
  .cta-inner { justify-items: center; text-align: center; }
  .cta-copy { justify-items: center; }
  .split .order-first { order: -1; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .wrap { width: min(var(--wide), 100% - 44px); }
  /* On a phone the book reads the way the app does: picture above the words. */
  .book { grid-template-columns: 1fr; aspect-ratio: auto; }
  .book::after { display: none; }
  .book-picture { border-radius: 22px 22px 0 0; aspect-ratio: 5 / 4; }
  .book-words { padding: 22px 22px 16px; }
  .story { font-size: 1.12rem; }
  .book-count { top: auto; bottom: 30px; right: 20px; }
  .styles-list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  /* On a phone the shelf is swiped; the next cover peeks in from the edge. */
  .carousel-track { margin-inline: -22px; padding-inline: 22px; scroll-padding-inline: 22px; }
  .carousel-track figure { flex-basis: 40%; }
  .carousel .round { display: none; }
  .covers { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .night { padding-bottom: clamp(96px, 12vw, 170px); }
  .sleeper { position: static; display: block; margin: 36px auto 0; }
  .styles-list button { font-size: 0.72rem; }
  .voices { grid-template-columns: 1fr; }
  .top .button { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
