@charset "utf-8";
/* ==========================================================================
   Pass the Ink — site styles
   Glixen Technologies

   Built from design/tokens.json. Deep space on the site; the app itself is
   a tree, and the copy says so. The space here is the ATMOSPHERE of sending
   a drawing out to a stranger, borrowed from the app's own rockets, stars
   and globes (design/space.mjs, design/rocket.mjs).

   Dark-first. Light is a true second design, not an inversion: the glow
   that carries a stroke on near-black turns to muddy haze on paper, so the
   light theme uses deeper ink and shadow instead of light.

   No JavaScript anywhere. Every motion is CSS and every motion is disabled
   under prefers-reduced-motion.

   CONTRAST: three token values were substituted to clear WCAG AA at body
   size. Each is marked AA-FIX with the ratio it replaced.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* -- space scale: 8pt grid, from tokens.json ------------------------- */
  --s-1: 2px;
  --s-2: 4px;
  --s-3: 8px;
  --s-4: 12px;
  --s-5: 16px;
  --s-6: 20px;
  --s-7: 24px;
  --s-8: 32px;
  --s-9: 40px;
  --s-10: 48px;
  --s-11: 64px;
  --s-12: 80px;
  --s-13: 112px;
  --gutter: 20px;

  /* -- radius ---------------------------------------------------------- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  /* -- type ------------------------------------------------------------ */
  --font-body: "Nunito Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Fluid display sizes. The app's scale tops out at 34px because it is a
     390pt phone; a browser is not, so the display steps scale up while the
     body text stays at the app's own reading sizes. */
  --t-hero: clamp(2.75rem, 1.4rem + 6.2vw, 6rem);
  --t-xl: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  --t-l: clamp(1.5rem, 1.2rem + 1.5vw, 2.125rem);
  --t-m: clamp(1.25rem, 1.1rem + 0.7vw, 1.4375rem);
  --t-title: 1.25rem;
  --t-body: 1.0625rem;
  --t-body-s: 0.9375rem;
  --t-label: 0.875rem;
  --t-over: 0.6875rem;

  --lh-tight: 1.04;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* -- ink palette: the eight inks, dark theme ------------------------- */
  --ink-violet: #8b7bff;
  --ink-violet-glow: #b4a8ff;
  --ink-violet-deep: #5a4bc4;
  --ink-mint: #4ee8c8;
  --ink-mint-glow: #86f5dd;
  --ink-rose: #ff6b9d;
  --ink-rose-glow: #ff9cbe;
  --ink-amber: #ffb84e;
  --ink-cyan: #4ec3ff;
  --ink-lime: #a8e84e;

  /* -- dark theme ------------------------------------------------------ */
  --bg-void: #07060b;
  --bg-base: #0d0b14;
  --bg-raised: #15121f;
  --bg-canvas: #0a0810;
  --bg-sunken: #070610;

  --surface-card: #15121f;
  --surface-card-hi: #1c1829;
  --surface-glass: rgb(28 24 41 / 58%);
  --surface-stroke: #2a2438;

  --border-subtle: #1e1a2b;
  --border-default: #2a2438;
  --border-strong: #3a3250;

  --text-primary: #f2effa;
  --text-secondary: #a79dc4;
  --text-tertiary: #8a83a1; /* AA-FIX: token #6E6588 was 3.4:1 on cards */
  --text-on-accent: #0a0810;

  --accent: var(--ink-violet);
  --accent-soft: #1e1933;
  --focus: #8b7bff;

  /* -- effects --------------------------------------------------------- */
  --shadow-card: 0 8px 24px -8px rgb(0 0 0 / 45%);
  --shadow-lg: 0 20px 48px -10px rgb(0 0 0 / 65%);
  --glow-violet: 0 0 28px -2px rgb(139 123 255 / 35%);

  --star-dust: rgb(242 239 250 / 85%);
  --nebula-a: rgb(139 123 255 / 16%);
  --nebula-b: rgb(78 232 200 / 9%);
  --nebula-c: rgb(255 107 157 / 11%);
  --rocket-body: #f4f2fa;
  --rocket-line: #16122b;

  --maxw: 68rem;
  --maxw-prose: 46rem;

  color-scheme: dark light;
}

/* -- light: a second design, not an inversion -------------------------- */
@media (prefers-color-scheme: light) {
  :root {
    --bg-void: #e8e4f2;
    --bg-base: #f6f4fb;
    --bg-raised: #ffffff;
    --bg-canvas: #fcfbfe;
    --bg-sunken: #efecf7;

    --surface-card: #ffffff;
    --surface-card-hi: #f6f4fb;
    --surface-glass: rgb(255 255 255 / 72%);
    --surface-stroke: #e3def0;

    --border-subtle: #ece8f6;
    --border-default: #e3def0;
    --border-strong: #cdc5e2;

    --text-primary: #1a1528;
    --text-secondary: #4a4360;
    --text-tertiary: #6b6377; /* AA-FIX: token #8A8199 was 3.4:1 */
    --text-on-accent: #ffffff;

    /* Deeper inks: the dark-theme values go muddy or illegible on paper. */
    --ink-violet: #6e5ce0;
    --ink-violet-glow: #5a4bc4;
    --ink-violet-deep: #4a3ba8;
    --ink-mint: #146b59; /* AA-FIX: #1F9179 was ~3.6:1 */
    --ink-mint-glow: #1a7a66;
    --ink-rose: #ab355f; /* AA-FIX: #D94A7E was ~4.0:1 */
    --ink-rose-glow: #c43a62;
    --ink-amber: #8a5a10;
    --ink-cyan: #1f6f9c;
    --ink-lime: #4e6b16;

    --accent: var(--ink-violet);
    --accent-soft: #efecfd;
    --focus: #5a4bc4;

    --shadow-card: 0 6px 16px -6px rgb(42 31 74 / 10%);
    --shadow-lg: 0 18px 40px -10px rgb(42 31 74 / 17%);
    --glow-violet: 0 6px 18px -4px rgb(90 75 196 / 22%);

    --star-dust: rgb(42 31 74 / 34%);
    --nebula-a: rgb(110 92 224 / 9%);
    --nebula-b: rgb(20 107 89 / 6%);
    --nebula-c: rgb(171 53 95 / 7%);
    --rocket-body: #ffffff;
    --rocket-line: #141020;
  }
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--s-12);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: var(--lh-snug);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

::selection {
  background: var(--ink-violet);
  color: var(--text-on-accent);
}

/* --------------------------------------------------------------------------
   3. The sky
   A fixed starfield behind everything. Positions are HARD-CODED, never
   random and never re-rolled: design/space.mjs notes that a re-rolled
   starfield reads as a glitch, and the same is true here between loads.
   -------------------------------------------------------------------------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 18% 8%, var(--nebula-a), transparent 70%),
    radial-gradient(ellipse 65% 45% at 85% 22%, var(--nebula-c), transparent 68%),
    radial-gradient(ellipse 90% 50% at 50% 92%, var(--nebula-b), transparent 72%),
    linear-gradient(170deg, var(--bg-base) 0%, var(--bg-void) 58%, var(--bg-sunken) 100%);
}

/* Three dust layers at different speeds. Parallax without JS: each layer is
   twice the viewport height and drifts, so the far one appears to lag. */
.sky__dust {
  position: absolute;
  inset: -50% -10%;
  background-repeat: repeat;
  will-change: transform;
}

.sky__dust--far {
  background-image:
    radial-gradient(1.2px 1.2px at 6% 8%, var(--star-dust), transparent 100%),
    radial-gradient(1px 1px at 17% 21%, var(--star-dust), transparent 100%),
    radial-gradient(1.6px 1.6px at 29% 5%, var(--star-dust), transparent 100%),
    radial-gradient(1.1px 1.1px at 41% 16%, var(--star-dust), transparent 100%),
    radial-gradient(1.3px 1.3px at 53% 9%, var(--star-dust), transparent 100%),
    radial-gradient(1px 1px at 64% 23%, var(--star-dust), transparent 100%),
    radial-gradient(1.5px 1.5px at 76% 12%, var(--star-dust), transparent 100%),
    radial-gradient(1.1px 1.1px at 88% 19%, var(--star-dust), transparent 100%),
    radial-gradient(1px 1px at 11% 34%, var(--star-dust), transparent 100%),
    radial-gradient(1.2px 1.2px at 35% 41%, var(--star-dust), transparent 100%),
    radial-gradient(1px 1px at 58% 37%, var(--star-dust), transparent 100%),
    radial-gradient(1.4px 1.4px at 81% 44%, var(--star-dust), transparent 100%);
  background-size: 50% 50%;
  opacity: 0.55;
  animation: drift-far 240s linear infinite;
}

.sky__dust--mid {
  background-image:
    radial-gradient(1.4px 1.4px at 22% 52%, var(--star-dust), transparent 100%),
    radial-gradient(1px 1px at 47% 58%, var(--star-dust), transparent 100%),
    radial-gradient(1.5px 1.5px at 69% 55%, var(--star-dust), transparent 100%),
    radial-gradient(1.1px 1.1px at 93% 63%, var(--star-dust), transparent 100%),
    radial-gradient(1.3px 1.3px at 4% 67%, var(--star-dust), transparent 100%),
    radial-gradient(1px 1px at 31% 71%, var(--star-dust), transparent 100%),
    radial-gradient(1.2px 1.2px at 56% 76%, var(--star-dust), transparent 100%),
    radial-gradient(1.4px 1.4px at 84% 80%, var(--star-dust), transparent 100%);
  background-size: 62% 62%;
  opacity: 0.75;
  animation: drift-mid 160s linear infinite;
}

.sky__dust--near {
  background-image:
    radial-gradient(1.8px 1.8px at 14% 88%, var(--star-dust), transparent 100%),
    radial-gradient(2px 2px at 72% 92%, var(--star-dust), transparent 100%),
    radial-gradient(1.6px 1.6px at 44% 29%, var(--star-dust), transparent 100%),
    radial-gradient(1.8px 1.8px at 90% 48%, var(--star-dust), transparent 100%);
  background-size: 80% 80%;
  opacity: 0.9;
  animation: drift-near 100s linear infinite;
}

@keyframes drift-far {
  to {
    transform: translate3d(-12%, 6%, 0);
  }
}

@keyframes drift-mid {
  to {
    transform: translate3d(9%, -7%, 0);
  }
}

@keyframes drift-near {
  to {
    transform: translate3d(-6%, -4%, 0);
  }
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--prose {
  max-width: var(--maxw-prose);
}

.skip {
  position: absolute;
  left: var(--s-5);
  top: var(--s-5);
  z-index: 100;
  padding: var(--s-4) var(--s-6);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-250%);
  transition: transform 160ms ease;
}

.skip:focus-visible {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   5. Masthead
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-base) 72%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
}

.masthead__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  font-weight: 800;
  font-size: var(--t-title);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand:hover .brand__mark {
  animation: blot-pulse 1.6s ease-in-out infinite;
}

@keyframes blot-pulse {
  50% {
    transform: scale(1.08) rotate(-4deg);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  list-style: none;
}

.nav a {
  display: block;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  font-size: var(--t-label);
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav a:hover {
  color: var(--text-primary);
  background: var(--surface-card-hi);
}

.nav a[aria-current="page"] {
  color: var(--text-primary);
  background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: var(--s-13) var(--s-12);
}

.hero__grid {
  display: grid;
  gap: var(--s-11);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--s-9);
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-5) var(--s-2) var(--s-3);
  margin-bottom: var(--s-7);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface-glass);
  font-size: var(--t-label);
  font-weight: 700;
  color: var(--text-secondary);
}

.status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-amber);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink-amber) 22%, transparent);
  animation: beacon 2.4s ease-in-out infinite;
}

@keyframes beacon {
  50% {
    opacity: 0.35;
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--ink-amber) 0%, transparent);
  }
}

.hero h1 {
  font-size: var(--t-hero);
  line-height: var(--lh-tight);
  letter-spacing: -0.045em;
  margin-bottom: var(--s-7);
}

/* "colours it in" fills with ink as the page loads: the product's own
   gesture, performed by the headline. */
.fill-ink {
  background: linear-gradient(
    100deg,
    var(--ink-violet) 0%,
    var(--ink-rose) 38%,
    var(--ink-amber) 62%,
    var(--ink-mint) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ink-shift 14s ease-in-out infinite;
}

@keyframes ink-shift {
  50% {
    background-position: 100% 0;
  }
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 34rem;
  margin-bottom: var(--s-6);
}

.lede strong {
  color: var(--text-primary);
  font-weight: 700;
}

.hero__note {
  font-size: var(--t-body-s);
  color: var(--text-tertiary);
  max-width: 30rem;
  margin-top: var(--s-6);
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-8);
}

.btn {
  --btn-bg: var(--surface-card-hi);
  --btn-fg: var(--text-primary);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 54px;
  padding: 0 var(--s-8);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: var(--t-body);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 240ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  /* The gradient starts at #6E5CE0, not the lighter --ink-violet: white on
     #8B7BFF measures 3.29:1, which fails AA for a button label. #6E5CE0 is
     4.92:1 and is already the light theme's violet, so it stays in-system. */
  --btn-bg: linear-gradient(135deg, #6e5ce0 0%, var(--ink-violet-deep) 100%);
  --btn-fg: #fff;
  border-color: transparent;
  box-shadow: var(--glow-violet);
}

.btn--primary:hover {
  box-shadow: 0 0 36px -2px rgb(139 123 255 / 50%);
}

/* A light sweep crossing the primary button, like a pass of the nib.
   The label is a bare text node, so there is no element to raise above the
   sweep. Instead the sweep is kept faint: at 26% alpha it lifted the fill
   to #9486E8, where white text measures 3.07:1 and fails AA for as long as
   the highlight is under it. At 10% the worst case is #7C6CE3 (4.11:1) in a
   thin moving band, against 4.92:1 for the unswept fill. Measured, not
   assumed: if the sweep is ever brightened, re-check this. */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 10%), transparent);
  transform: skewX(-18deg);
  animation: sweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sweep {
  0%,
  62% {
    left: -60%;
  }
  88%,
  100% {
    left: 130%;
  }
}

/* --------------------------------------------------------------------------
   8. The wall: the hero's centrepiece

   WHAT THIS REPLACED, AND WHY

     A globe with three rockets orbiting it. It was carefully drawn and it
     showed the wrong thing. The product has two verbs — draw, and colour
     somebody else's — and a rocket performs neither. A visitor who looked
     only at the picture learned that the app involved space.

     The README names the one image that sells this app in a glance: "a
     wall of pencil drawings, every one of them waiting for colour." So
     that is the hero. Bare pencil drawings, and scattered among them a few
     that a stranger has already filled in.

   WHY THE COLOURED ONES ARE THE MINORITY

     Three of nine. A wall that was mostly coloured would read as a gallery
     of finished work, which is the opposite of the invitation. Mostly bare
     says there is something here for you to do.

   ON THE DRAWINGS THEMSELVES

     Deliberately childlike and a little wobbly. A wall of competent
     illustration would tell the visitor that this app is for people who
     can draw, and the whole premise is that it is not.
   -------------------------------------------------------------------------- */

.wall {
  position: relative;
  display: grid;
  gap: var(--s-7);
  justify-items: center;
}

/* ---- the half-and-half drawing ---- */

.wall__hero {
  position: relative;
  margin: 0;
  width: min(100%, 20rem);
}

.wall__hero img {
  display: block;
  width: 100%;
  height: auto;
  /* The drawing is a PNG cut from black, so a glow sits behind it rather
     than on it: a drop-shadow follows the alpha and lights the strokes
     themselves, which is what the app does to a coloured drawing. */
  filter:
    drop-shadow(0 0 18px rgb(139 123 255 / 22%))
    drop-shadow(0 0 48px rgb(255 107 157 / 14%));
}

/* The two hands, named under the picture they explain. */
.wall__hero figcaption {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-5);
  font-size: var(--t-over);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wall__side {
  color: var(--text-tertiary);
}

.wall__side--done {
  color: var(--ink-violet-glow);
}

/* ---- the wall of smaller drawings ---- */

.wall__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  width: min(100%, 24rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.wall__tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: var(--s-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  background: var(--bg-raised);
}

.wall__tile img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  /* A bare pencil drawing is waiting, not finished, so it sits back. */
  opacity: 0.5;
  transition: opacity var(--t-base, 240ms) ease;
}

/* The ones a stranger has already coloured: lit, and sitting forward. */
.wall__tile.is-done {
  border-color: color-mix(in srgb, var(--ink-violet) 28%, transparent);
  background: color-mix(in srgb, var(--ink-violet) 7%, var(--bg-raised));
}

.wall__tile.is-done img {
  opacity: 1;
  filter: drop-shadow(0 0 14px rgb(139 123 255 / 30%));
}

/* Hovering a bare drawing brings it up, which is the gesture the app
   itself asks for: you are choosing one to colour. */
@media (hover: hover) {
  .wall__tile:hover img { opacity: 0.85; }
}

/* On a phone the wall sits under the words and nine tiles is too many
   rows; six reads as "lots of them" just as well and costs less scrolling. */
@media (max-width: 38rem) {
  .wall__grid { width: min(100%, 20rem); gap: var(--s-4); }
  .wall__tile:nth-child(n + 7) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wall__tile img { transition: none; }
}

/* --------------------------------------------------------------------------
   9. Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--s-12);
}

.section--tight {
  padding-block: var(--s-11);
}

.section__head {
  max-width: 40rem;
  margin-bottom: var(--s-10);
}

.eyebrow {
  display: block;
  margin-bottom: var(--s-4);
  font-size: var(--t-over);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  font-size: var(--t-xl);
  letter-spacing: -0.035em;
  margin-bottom: var(--s-5);
}

.section__head p {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   10. Panels and cards
   -------------------------------------------------------------------------- */

.panel {
  padding: var(--s-8);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.grid {
  display: grid;
  gap: var(--s-5);
}


/* A step in the loop. The number is a big ghosted figure behind it. */











/* --------------------------------------------------------------------------
   11. Split feature
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: var(--s-9);
  align-items: center;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--flip > :first-child {
    order: 2;
  }
}

.split h2 {
  font-size: var(--t-l);
  margin-bottom: var(--s-5);
}

.split p + p {
  margin-top: var(--s-5);
}

.split p {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   THE TREE

   WHAT THIS REPLACED

     An inline SVG whose leaves were plain coloured ovals and whose
     returned drawings were 26px rectangles with a squiggle inside. The
     section's claim is that a leaf IS a drawing somebody coloured for a
     stranger, so an oval actively contradicted the sentence beside it.

   WHY THE RETURNED DRAWINGS OVERLAP THE TREE

     The README is firm that the two halves are kept apart: leaves are what
     you gave, the foot holds what you were given. But kept apart is not
     the same as kept distant — on the page they must read as one scene or
     the section becomes two pictures with no relationship.

     So the foot sits low and overlaps the canopy slightly, and carries its
     own label. Near enough to be the same tree, labelled enough to never
     be confused with the leaves.
   -------------------------------------------------------------------------- */

.tree {
  position: relative;
  margin: 0;
  padding: var(--s-8) var(--s-8) var(--s-10);
  border: 1px solid var(--border-default);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(ellipse at 50% 0%, var(--nebula-a), transparent 70%),
    var(--bg-canvas);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.tree__canopy {
  display: block;
  width: 100%;
  max-width: 24rem;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 0 30px rgb(139 123 255 / 20%));
}

/* The ground the returned drawings rest on. A hairline rather than a
   drawn line, so it reads as a surface and not as another doodle. */
.tree__foot {
  position: relative;
  margin-top: calc(var(--s-7) * -1);
  padding-top: var(--s-6);
  text-align: center;
}

.tree__foot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--border-strong) 18%,
    var(--border-strong) 82%,
    transparent);
}

.tree__foot img {
  display: block;
  width: 100%;
  max-width: 17rem;
  height: auto;
  margin: 0 auto var(--s-4);
  filter: drop-shadow(0 0 20px rgb(139 123 255 / 24%));
}

.tree__foot figcaption {
  font-size: var(--t-over);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   12. What this app will not have

   WHAT THIS REPLACED

     Six identical bordered boxes, each opening with the same pink cross.
     Six copies of one icon is not emphasis, it is wallpaper — the eye
     stops seeing the cross by the third box, and what is left is a spec
     table. Wrong register for the most opinionated thing on the page.

   WHAT IT IS NOW

     The thing being refused is struck through, and the reason sits under
     it in plain text. The strike does what the cross was doing, except it
     does it ON the words, so the refusal is the thing you read rather
     than an ornament beside it.

     No boxes. A refusal does not need a container; the list reads as
     somebody stating what they have decided, which is what it is.
   -------------------------------------------------------------------------- */

.nope {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-8) var(--s-10);
}

@media (min-width: 44rem) {
  .nope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 72rem) {
  .nope { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.nope li {
  border-top: 1px solid var(--border-default);
  padding-top: var(--s-5);
}

.nope__what {
  margin: 0 0 var(--s-3);
  font-size: var(--t-title);
  font-weight: 700;
  line-height: var(--lh-snug);
  color: var(--text-primary);
}

/*
  The strike is drawn in rose rather than in the text colour, so the line
  reads as something done TO the words by somebody who decided, rather
  than as the text merely being disabled.

  `text-decoration-skip-ink: none` keeps the line unbroken through
  descenders; a strike that dodges every 'y' looks like a rendering fault.
*/
.nope__what s {
  text-decoration: line-through;
  text-decoration-color: var(--ink-rose);
  text-decoration-thickness: 2px;
  text-decoration-skip-ink: none;
}

.nope__why {
  margin: 0;
  font-size: var(--t-body-s);
  line-height: var(--lh-body);
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   13. Cast
   -------------------------------------------------------------------------- */

.cast {
  list-style: none;
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.cast li {
  padding: var(--s-7) var(--s-5);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  background: var(--surface-card);
  text-align: center;
  transition: transform 240ms ease;
}

.cast li:hover {
  transform: translateY(-5px);
}

.cast__orb {
  width: 76px;
  height: 76px;
  margin: 0 auto var(--s-5);
  animation: bob 6s ease-in-out infinite;
}

.cast li:nth-child(2) .cast__orb {
  animation-delay: -1.2s;
}

.cast li:nth-child(3) .cast__orb {
  animation-delay: -2.4s;
}

.cast li:nth-child(4) .cast__orb {
  animation-delay: -3.6s;
}

.cast__name {
  font-weight: 800;
  font-size: var(--t-body);
}

.cast__price {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--t-label);
  font-weight: 700;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   14. Scroll reveal
   Entry animations driven by the scroll position, no JS. Browsers without
   animation-timeline simply show the content: the @supports guard means
   the start state is never applied unless it can be animated away.
   -------------------------------------------------------------------------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 62%;
    }
  }
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   15. Callouts and notices
   -------------------------------------------------------------------------- */

.notice {
  padding: var(--s-6) var(--s-7);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--surface-card);
  font-size: var(--t-body-s);
}

.notice h2,
.notice h3 {
  font-size: var(--t-body);
  margin-bottom: var(--s-3);
}

.notice p + p,
.notice ul {
  margin-top: var(--s-4);
}

.notice--draft {
  border-left-color: var(--ink-amber);
}

.notice--limit {
  border-left-color: var(--ink-rose);
}

/* --------------------------------------------------------------------------
   16. Legal pages
   -------------------------------------------------------------------------- */

.doc-head {
  padding-block: var(--s-11) var(--s-9);
  border-bottom: 1px solid var(--border-subtle);
}

.doc-head h1 {
  font-size: var(--t-xl);
  letter-spacing: -0.04em;
  margin-bottom: var(--s-5);
}

.doc-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  font-size: var(--t-label);
  color: var(--text-tertiary);
}

.doc-head__meta strong {
  color: var(--text-secondary);
}

.toc {
  padding: var(--s-7);
  margin-block: var(--s-9);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  background: var(--surface-card);
}

.toc h2 {
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  margin-bottom: var(--s-5);
}

.toc ol {
  columns: 2 14rem;
  column-gap: var(--s-8);
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin-bottom: var(--s-3);
  font-size: var(--t-body-s);
  break-inside: avoid;
}

.toc li::before {
  content: counter(toc) ".";
  display: inline-block;
  width: 1.75em;
  color: var(--text-tertiary);
  font-weight: 700;
}

.toc a {
  color: var(--text-secondary);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.doc {
  padding-bottom: var(--s-12);
  counter-reset: sec;
}

.doc section {
  padding-top: var(--s-10);
  counter-increment: sec;
}

.doc section > h2 {
  font-size: var(--t-m);
  letter-spacing: -0.025em;
  margin-bottom: var(--s-5);
  scroll-margin-top: var(--s-11);
}

.doc section > h2::before {
  content: counter(sec) ". ";
  color: var(--accent);
}

.doc h3 {
  font-size: var(--t-body);
  margin-block: var(--s-7) var(--s-4);
}

.doc p,
.doc li {
  color: var(--text-secondary);
}

.doc p + p {
  margin-top: var(--s-5);
}

.doc strong {
  color: var(--text-primary);
  font-weight: 700;
}

.doc ul,
.doc ol {
  margin-top: var(--s-5);
  padding-left: var(--s-7);
}

.doc li + li {
  margin-top: var(--s-3);
}

.doc ul li::marker {
  color: var(--accent);
}

/* Placeholders the developer must replace before publishing. */
.ph {
  padding: 2px 7px;
  border: 1px dashed var(--ink-amber);
  border-radius: var(--r-xs);
  background: color-mix(in srgb, var(--ink-amber) 12%, transparent);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.9em;
  white-space: nowrap;
}

/* Contact blocks: a definition list of who to email about what. */
.contact {
  margin-top: var(--s-6);
  padding: var(--s-6) var(--s-7);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  background: var(--surface-card);
}

.contact dl {
  display: grid;
  gap: var(--s-2) var(--s-6);
  margin: 0;
}

@media (min-width: 30rem) {
  .contact dl {
    grid-template-columns: auto 1fr;
  }
}

.contact dt {
  font-size: var(--t-label);
  font-weight: 800;
  color: var(--text-tertiary);
}

.contact dd {
  margin: 0 0 var(--s-3);
  font-size: var(--t-body-s);
  color: var(--text-secondary);
}

.contact dd:last-child {
  margin-bottom: 0;
}

/* Data tables in the privacy policy. */
.table-wrap {
  margin-top: var(--s-6);
  overflow-x: auto;
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-body-s);
}

caption {
  padding: var(--s-5) var(--s-6);
  text-align: left;
  font-size: var(--t-label);
  font-weight: 700;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-default);
}

th,
td {
  padding: var(--s-5) var(--s-6);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  font-weight: 800;
  color: var(--text-primary);
  background: var(--surface-card-hi);
  white-space: nowrap;
}

td {
  color: var(--text-secondary);
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.footer {
  padding-block: var(--s-10);
  border-top: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-void) 55%, transparent);
}

.footer__in {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-7);
  justify-content: space-between;
  align-items: flex-start;
}

.footer__line {
  font-size: var(--t-body-s);
  color: var(--text-tertiary);
  max-width: 28rem;
}

.footer__line strong {
  display: block;
  color: var(--text-primary);
  font-size: var(--t-body);
  margin-bottom: var(--s-2);
}

.footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
}

.footer nav a {
  font-size: var(--t-body-s);
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   18. Reduced motion
   Everything ambient stops. Nothing is left mid-animation, and nothing
   that was faded in by an animation stays hidden.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .fill-ink {
    animation: none;
    background-position: 0 0;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */

@media print {
  .sky,
  .masthead,
  .skip,
  .toc,
  .wall,
  .cta-row {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .doc p,
  .doc li,
  td {
    color: #000;
  }

  .doc section {
    padding-top: 18pt;
    break-inside: avoid;
  }

  .doc section > h2 {
    break-after: avoid;
  }

  .ph {
    border: 1px solid #000;
    background: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .doc a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }

  .panel,
  .notice,
  .table-wrap {
    border: 1px solid #999;
    box-shadow: none;
  }
}

/* --------------------------------------------------------------------------
   The wall on paper

   THE BUG THIS FIXES

     The drawings are PNGs cut from black, so a bare pencil drawing is a
     WHITE stroke with a transparent background. On the dark theme that is
     exactly right. On the light theme it is white on white, and the wall
     rendered as a row of empty boxes.

   WHY INVERT RATHER THAN SHIP A SECOND SET

     A second set of files would double the artwork to maintain and could
     drift from the first. `invert()` on a greyscale pencil drawing turns a
     white stroke into a dark graphite one and leaves the shape untouched,
     which is what a pencil on paper looks like anyway.

     It is applied ONLY to the uncoloured drawings. Inverting a coloured
     one would turn violet into yellow-green and mint into pink, which
     would be a different drawing by a different hand.

   The half-and-half hero is excluded for the same reason: half of it is
   coloured, so there is no inversion that is right for both halves. It
   gets a drop-shadow instead, which separates the white half from the page
   without touching its colour.
   -------------------------------------------------------------------------- */

@media (prefers-color-scheme: light) {
  .wall__tile:not(.is-done) img {
    filter: invert(1);
    opacity: 0.62;
  }

  @media (hover: hover) {
    .wall__tile:not(.is-done):hover img { opacity: 0.9; }
  }

  /* On paper the glow is haze, so the coloured ones are lifted by their
     own saturation and a hairline instead. */
  .wall__tile.is-done img {
    filter: none;
  }

  .wall__tile.is-done {
    border-color: color-mix(in srgb, var(--ink-violet) 34%, transparent);
    background: #fff;
    box-shadow: var(--shadow-card);
  }

  /*
    The hero drawing keeps its colour and gains an edge. Its pencil half is
    white strokes, which need something behind them on paper: a soft dark
    halo reads as the graphite's own shadow rather than as an outline.
  */
  .wall__hero img {
    filter:
      drop-shadow(0 1px 0 rgb(42 31 74 / 30%))
      drop-shadow(0 0 1px rgb(42 31 74 / 45%))
      drop-shadow(0 10px 28px rgb(42 31 74 / 14%));
  }
}

/* --------------------------------------------------------------------------
   The headline's ink, on paper

   THE PROBLEM

     `.fill-ink` runs violet -> rose -> amber -> mint across the words
     "colours it in". Those four stops resolve to the CURRENT theme's ink
     values, and the light theme deliberately darkens every ink to clear
     WCAG AA on white. Darkened amber (#8a5a10) next to darkened mint
     (#146b59) meet in the middle as olive, so the phrase that is supposed
     to demonstrate colour arriving instead turned brown-green.

     The AA-darkened inks are right for body text and wrong for a 6rem
     display headline, which clears AA on contrast alone at that size.
     So light gets its own stops: saturated enough to read as colour,
     dark enough to stay legible on #f6f4fb.

     Amber is dropped from the ramp entirely. It is the one hue that cannot
     be both vivid and legible on near-white, and it was the source of the
     olive.
   -------------------------------------------------------------------------- */

@media (prefers-color-scheme: light) {
  .fill-ink {
    background-image: linear-gradient(
      100deg,
      #6e5ce0 0%,
      #c43a62 34%,
      #b83a8f 58%,
      #1f7a9c 100%
    );
  }
}

/* --------------------------------------------------------------------------
   Section heads, on a wide screen

   THE PROBLEM

     Every head is capped at 40rem and left-aligned inside a much wider
     column, so a three-line heading wrapped into a narrow strip with half
     the row empty beside it. On the light theme that read as generous
     margin; on near-black an empty half-row reads as a missing element.

     The heading keeps a tight measure — a display line wants about 16
     characters a line, not 40rem of them — and the supporting sentence
     moves alongside it rather than underneath, so the row is one object.

   Below 64rem they stack, because two columns of a 16ch heading plus a
   paragraph is narrower than either wants to be.
   -------------------------------------------------------------------------- */

.section__head h2 { max-width: 18ch; }

@media (min-width: 64rem) {
  .section__head {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--s-6) var(--s-11);
    align-items: end;
  }

  .section__head .eyebrow { grid-column: 1 / -1; }
  .section__head h2 { max-width: 16ch; }

  /* Sat on the heading's last baseline, not floating at the top of the
     column, so the two read as one unit rather than two rows. */
  .section__head p {
    margin: 0;
    padding-bottom: 0.35em;
    max-width: 46ch;
  }

  /* A head with no supporting line must not stretch its heading across
     both columns and lose that measure. */
  .section__head:not(:has(p)) { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   The "will not have" list

   `auto-fit` with a 14rem minimum resolves to four columns at desktop
   width, and there are six items — so the last row held two cards and a
   gap wide enough to look like something had failed to load.

   Six items want a divisor of six. Three columns at desktop and two at
   tablet both divide evenly, and a 3x2 block of refusals reads as a
   deliberate list rather than a row that ran out.
   -------------------------------------------------------------------------- */

@media (min-width: 48rem) {
  .nope { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .nope { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   THE LOOP, rebuilt

   WHAT WAS WRONG

     Four equal cards in a row, each with a small generic line icon, a
     heading and two lines of text. It read as a feature table. Nothing in
     it was specific to this app — swap the words and the same four cards
     would sell a to-do list.

     Worse, the four cards were a ROW, and a row says "four things". The
     product is not four things, it is one drawing moving through four
     hands. A row cannot say that; a sequence can.

   WHAT IT IS NOW

     Each step is the same rabbit at a different moment, and the steps
     alternate side to side down the page so the eye travels rather than
     scans. The art is large enough to actually read — the old icons were
     32px, which is a size for a button, not for a picture somebody is
     meant to enjoy.
   -------------------------------------------------------------------------- */

.loop {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-11);
}

.loop__step {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  justify-items: center;
  text-align: center;
}

/* ---- the picture ---- */

.loop__art {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 13rem;
  padding: var(--s-7);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(72% 60% at 50% 42%,
      color-mix(in srgb, var(--ink-violet) 9%, transparent) 0%,
      transparent 72%),
    var(--bg-raised);
}

.loop__art img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 13rem;
  /* The pencil steps are white strokes cut from black. A faint violet
     bloom behind them keeps them from looking pasted onto the card. */
  filter: drop-shadow(0 0 20px rgb(139 123 255 / 24%));
}

/* ---- the words ---- */

.loop__say { max-width: 34rem; }

.loop__n {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: var(--s-4);
  border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--ink-violet) 40%, transparent);
  background: color-mix(in srgb, var(--ink-violet) 12%, transparent);
  color: var(--ink-violet-glow);
  font-size: var(--t-label);
  font-weight: 800;
}

.loop__step h3 {
  font-size: var(--t-m);
  margin-bottom: var(--s-3);
}

.loop__step p {
  color: var(--text-secondary);
  margin: 0;
}

/*
  Side by side from tablet up, alternating direction.

  The alternation is the point: four identical left-image rows would be a
  list again. Swapping sides makes the eye cross the page on each step,
  which is the same zig-zag the drawing itself makes between two people.
*/
@media (min-width: 48rem) {
  .loop { gap: var(--s-12); }

  .loop__step {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(var(--s-8), 5vw, var(--s-11));
    text-align: left;
    justify-items: stretch;
  }

  .loop__step:nth-child(even) .loop__art { order: 2; }

  .loop__art { min-height: 16rem; }
  .loop__art img { max-height: 16rem; }
}

/* --------------------------------------------------------------------------
   AND THEN IT COMES HOME

   This was a `.notice` — a box with a left border, which is the shape a
   page uses for a caveat. It held the best sentence on the page, which is
   that your drawing comes back with a stranger's name on it.

   It gets the returning drawing and room to breathe instead.
   -------------------------------------------------------------------------- */

.comeback {
  margin-top: var(--s-12);
  display: grid;
  gap: var(--s-7);
  justify-items: center;
  text-align: center;
  padding: clamp(var(--s-8), 5vw, var(--s-11));
  border-radius: var(--r-2xl);
  border: 1px solid color-mix(in srgb, var(--ink-violet) 24%, transparent);
  background:
    radial-gradient(64% 70% at 50% 0%,
      color-mix(in srgb, var(--ink-violet) 13%, transparent) 0%,
      transparent 70%),
    var(--bg-raised);
}

.comeback img {
  width: auto;
  height: auto;
  max-height: 11rem;
  filter: drop-shadow(0 0 26px rgb(139 123 255 / 38%));
}

.comeback h3 {
  font-size: var(--t-l);
  letter-spacing: -0.03em;
  margin-bottom: var(--s-4);
}

.comeback p {
  color: var(--text-secondary);
  max-width: 42ch;
  margin: 0 auto;
}

@media (min-width: 48rem) {
  .comeback {
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--s-10);
    justify-items: start;
    text-align: left;
  }
  .comeback p { margin: 0; }
}

/* --------------------------------------------------------------------------
   On paper

   Same reason as the wall: the pencil steps are WHITE strokes, invisible
   on a near-white page. Steps 1-3 are pure graphite and invert cleanly.
   Step 4 and the homecoming are coloured, so they keep their ink and get
   an edge instead.
   -------------------------------------------------------------------------- */

@media (prefers-color-scheme: light) {
  .loop__step:nth-child(-n + 3) .loop__art img {
    filter: invert(1) drop-shadow(0 1px 1px rgb(42 31 74 / 18%));
  }

  .loop__step:nth-child(4) .loop__art img,
  .comeback img {
    filter:
      drop-shadow(0 1px 0 rgb(42 31 74 / 26%))
      drop-shadow(0 8px 22px rgb(42 31 74 / 14%));
  }

  .loop__art { background: #fff; box-shadow: var(--shadow-card); }
  .comeback { background: #fff; box-shadow: var(--shadow-card); }
}

/* --------------------------------------------------------------------------
   ALMOST THERE: the launch panel

   This section used to be headed "Not finished, and not pretending to be"
   and said there was nothing to download. The app is now in review on both
   stores, so every sentence in it had become false.

   It is the last thing on the page and it is the ask, so it is allowed to
   be the loudest block: a centred panel with the two stores side by side.
   -------------------------------------------------------------------------- */

.launch__head {
  font-size: var(--t-xl);
  letter-spacing: -0.035em;
  margin-bottom: var(--s-5);
}

.launch__lede {
  color: var(--text-secondary);
  max-width: 44ch;
  margin-bottom: var(--s-8);
}

.launch__note {
  font-size: var(--t-body-s);
  color: var(--text-tertiary);
  margin-top: var(--s-6);
  max-width: 40ch;
}

/* ---- the two store badges ---- */

.stores {
  list-style: none;
  margin: 0 0 var(--s-8);
  padding: 0;
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 30rem) {
  .stores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.store {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-default);
  background: var(--bg-raised);
}

.store svg {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--text-primary);
}

.store__txt {
  display: grid;
  gap: 1px;
  text-align: left;
  min-width: 0;
}

.store__txt small {
  font-size: var(--t-over);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.store__txt strong {
  font-size: var(--t-body);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

/*
  WAITING, AND SAYING SO

  A dashed edge reads as "not yet" without dimming the text to the point
  of being hard to read, which is what `opacity` on the whole badge would
  do. The amber dot is the same beacon as the status pill at the top of
  the page, so the two agree about what state the app is in.
*/
.store.is-waiting {
  border-style: dashed;
  border-color: var(--border-strong);
  background: transparent;
  position: relative;
}

.store.is-waiting::after {
  content: '';
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-amber);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink-amber) 20%, transparent);
  animation: beacon 2.4s ease-in-out infinite;
}

.store.is-waiting svg { color: var(--text-secondary); }

@media (prefers-reduced-motion: reduce) {
  .store.is-waiting::after { animation: none; }
}

/* On paper the panel needs an edge rather than a lighter fill. */
@media (prefers-color-scheme: light) {
  .store { background: #fff; box-shadow: var(--shadow-card); }
  .store.is-waiting { background: transparent; box-shadow: none; }
}

/* --------------------------------------------------------------------------
   The tree on paper

   The canopy is a grey pencil tree hung with COLOURED drawings, so it
   cannot be inverted the way the bare pencil steps are — inverting would
   turn every leaf into its opposite hue. It keeps its ink and gains an
   edge instead, exactly like the half-and-half hero drawing.
   -------------------------------------------------------------------------- */

@media (prefers-color-scheme: light) {
  /*
    THE TREE ON PAPER

    The canopy is a light-grey pencil tree hung with COLOURED drawings, so
    it cannot be inverted the way the bare pencil steps are: inverting
    would flip the violet cat to yellow and the mint bird to pink.

    Grey pencil on white is low contrast, so the card keeps a white
    surface and the strokes are darkened by a drop-shadow stack rather
    than by a brightness filter. brightness() multiplies the ALPHA channel
    of an image cut from black as well as its colours, which fades the
    drawing out instead of darkening it.
  */
  .tree {
    background: #fff;
    box-shadow: var(--shadow-card);
  }

  .tree__canopy {
    filter:
      drop-shadow(0 0 1px rgb(42 31 74 / 55%))
      drop-shadow(0 1px 0 rgb(42 31 74 / 30%))
      drop-shadow(0 10px 28px rgb(42 31 74 / 12%));
  }

  .tree__foot img {
    filter:
      drop-shadow(0 1px 0 rgb(42 31 74 / 24%))
      drop-shadow(0 8px 24px rgb(42 31 74 / 12%));
  }
}
