/* Little Artbox – site.css. No build step. Loaded as site.css?v=N and cached for a year:
   bump N in every page when this changes. Components are documented in website/README.md. */

/* == Fonts == */

/* Bricolage Grotesque cut for the web (wdth 94, wght 600–800, opsz 12–96, Latin); fallback sized to match */
@font-face {
  font-family: "Bricolage Grotesque"; font-weight: 600 800; font-style: normal; font-display: swap;
  src: url("../fonts/bricolage-grotesque-display.woff2?v=1") format("woff2");
}
@font-face {
  font-family: "Bricolage Fallback"; font-weight: 600 800; size-adjust: 90%;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial");
}

/* == Tokens == */

:root {
  color-scheme: light;
  /* Paintbox */
  --chalk: #fffdf9; --white: #fff; --sand: #f4eee5; --hairline: #e8e0d3; --ink: #232120; --ink2: #6e6a66;
  --poppy: #e8552f; --marigold: #f4b43a; --fern: #3d8f5f; --lagoon: #2d7fb8; --lilac: #a88bd3;
  --poppy-soft: #fce6dd; --lagoon-soft: #dfedf7; --fern-soft: #e0f0e6; --marigold-soft: #fdf0d2; --lilac-soft: #eee7f8;
  --poppy-ink: #c4441f; --lagoon-ink: #22669a; --fern-ink: #2e7a4e; --marigold-ink: #8a5d00; --lilac-ink: #6e4fa3;
  /* Small text on soft tints (ink2, poppy-ink are just under 4.5:1 there) */
  --ink2-deep: #625e5a; --poppy-deep: #b23b18;
  --shade: 35 33 32; /* ink, as rgb channels */
  --bezel: #1b1a19;

  /* Roles: bands override these */
  --text: var(--ink); --text-2: var(--ink2); --link: var(--poppy-ink); --hl: var(--poppy);
  --deco: var(--poppy); --eyebrow: var(--poppy-ink); --focus: var(--lagoon-ink);

  /* Type */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Bricolage Fallback", var(--font-body);
  --fs-h1: clamp(2.75rem, 1.6rem + 5.6vw, 6rem);
  --fs-h2: clamp(2rem, 1.3rem + 3.4vw, 3.75rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-h4: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --fs-doc-h1: clamp(2.75rem, 1.75rem + 3.4vw, 4.5rem);
  --fs-quote: clamp(1.5rem, 1.15rem + 1.6vw, 2.375rem);
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem);
  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  --fs-small: 0.9375rem; --fs-xs: 0.8125rem;
  --lh-body: 1.6; --track-display: -0.035em; --measure: 36rem;

  /* Layout */
  --max: 75rem; --gutter: 20px;
  --space-section: clamp(4.5rem, 2.75rem + 7vw, 9rem);
  --space-block: clamp(2rem, 1.5rem + 2vw, 3.5rem);

  /* Shape, depth, motion */
  --r-card: 10px; --r-panel: 20px; --r-pill: 999px;
  --shadow-card: 0 1px 1px rgb(var(--shade) / 0.05), 0 3px 6px -1px rgb(var(--shade) / 0.08), 0 16px 30px -12px rgb(var(--shade) / 0.22);
  --shadow-small: 0 1px 2px rgb(var(--shade) / 0.08), 0 4px 10px -4px rgb(var(--shade) / 0.16);
  --shadow-object: 0 1px 2px rgb(var(--shade) / 0.1), 0 10px 20px -8px rgb(var(--shade) / 0.25), 0 36px 56px -24px rgb(var(--shade) / 0.32);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-settle: cubic-bezier(0.34, 1.36, 0.64, 1);

  /* App Store badge height: Apple asks for at least 40px on screen */
  --badge-h: 3.25rem;
}
@media (min-width: 40em) { :root { --gutter: 32px; } }
@media (min-width: 64em) { :root { --gutter: 48px; --badge-h: 3.5rem; } }

/* == Base == */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--chalk); color: var(--text); font: 400 var(--fs-body) / var(--lh-body) var(--font-body);
  overflow-x: hidden; overflow-x: clip;
}
main { flex: 1 0 auto; }
main:focus { outline: none; }
img, svg, video, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
[id] { scroll-margin-top: 1.5rem; }

h1, h2, h3, h4, .display {
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: var(--track-display); color: var(--text); text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-h1); line-height: 0.96; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.025em; }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
p, li, dd { text-wrap: pretty; }
strong, b { font-weight: 700; }

a { color: var(--link); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--poppy-soft); color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* == Type helpers == */

.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-small); }
.measure { max-width: var(--measure); }
.hl { color: var(--hl); }
.line { display: block; } /* start a sentence of a headline on its own line */

.eyebrow { display: inline-flex; align-items: center; gap: 0.5em; font: 700 var(--fs-small) / 1.2 var(--font-display); color: var(--eyebrow); }
.eyebrow::before { content: ""; flex: none; width: 0.625em; height: 0.625em; border-radius: 50%; background: var(--deco); }
/* An eyebrow inside a hero h1 puts the search words in the heading. The wrapper gives it the same
   line box as a <p class="eyebrow"> above the h1, so it looks exactly the same. */
.h1-eyebrow { display: block; margin-bottom: 1.25rem; font: 400 var(--fs-body) / var(--lh-body) var(--font-body); letter-spacing: normal; font-variation-settings: normal; text-wrap: pretty; }
.hero__text .h1-eyebrow { margin-bottom: 1.5rem; }

/* Hand-drawn underline (.u), ring (.ring) and heart (.heart-mark): SVG masks in currentColor or a .u-* crayon */
.u, .ring { position: relative; white-space: nowrap; isolation: isolate; }
@supports (mask-image: url("")) or (-webkit-mask-image: url("")) {
  .u::after, .ring::before, .heart-mark {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    background-color: var(--u-color, currentColor);
    -webkit-mask: var(--mask) center / contain no-repeat; mask: var(--mask) center / contain no-repeat;
  }
  /* The underline keeps its own 10:1 shape across the word's width, centred in a band under it */
  .u::after { --mask: url("../img/decor/underline.svg"); left: -0.06em; right: -0.06em; bottom: -0.36em; height: 0.6em; -webkit-mask-size: 100% auto; mask-size: 100% auto; }
  .ring::before { --mask: url("../img/decor/circle.svg"); inset: -0.3em -0.3em -0.2em; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
  .heart-mark {
    --mask: url("../img/decor/heart.svg"); position: relative; z-index: 0; display: inline-block;
    width: 0.62em; height: 0.56em; margin-left: 0.12em; vertical-align: 0.06em; rotate: 8deg;
  }
}
.u-poppy { --u-color: var(--poppy); }
.u-marigold { --u-color: var(--marigold); }
.u-fern { --u-color: var(--fern); }
.u-lagoon { --u-color: var(--lagoon); }
.u-lilac { --u-color: var(--lilac); }

/* == Layout == */

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.section:not(.band) + .section:not(.band) { padding-top: 0; }
.section-head { max-width: 46rem; margin-bottom: var(--space-block); }
.section-head > * + *, .flow > * + * { margin-top: var(--flow, 1.25rem); }
.section-head.center { margin-inline: auto; }
.center { text-align: center; }

.split { display: grid; gap: var(--space-block); align-items: center; }
@media (min-width: 56em) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(3rem, 7vw, 7rem); }
  .split--wide-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .split--wide-media { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .split--top { align-items: start; }
  .split--flip > :first-child { order: 2; }
}

/* Tinted bands: always show their saturated crayon (--deco) inside, so they never read muted */
.band { background: var(--band-bg); --text-2: var(--ink2-deep); --link: var(--ink); --eyebrow: var(--ink); }
.band-poppy { --band-bg: var(--poppy-soft); --deco: var(--poppy); --eyebrow: var(--poppy-deep); }
.band-lagoon { --band-bg: var(--lagoon-soft); --deco: var(--lagoon); --eyebrow: var(--lagoon-ink); }
.band-fern { --band-bg: var(--fern-soft); --deco: var(--fern); --eyebrow: var(--fern-ink); }
.band-lilac { --band-bg: var(--lilac-soft); --deco: var(--lilac); --eyebrow: var(--lilac-ink); }
.band-sunny { --band-bg: var(--marigold-soft); --deco: var(--marigold); --eyebrow: var(--marigold-ink); }
.band-sand { --band-bg: var(--sand); }
/* The closing call to action: ink on marigold (8.7:1) */
.band-marigold { --band-bg: var(--marigold); --text-2: var(--ink); --hl: var(--ink); --u-color: var(--poppy); --deco: var(--poppy); --eyebrow: var(--ink); --focus: var(--ink); }

/* == Header == */

.skip {
  position: absolute; z-index: 100; top: 0.75rem; left: var(--gutter); translate: 0 -200%;
  padding: 0.75rem 1.125rem; border-radius: 10px; background: var(--ink); color: var(--chalk); font-weight: 700; text-decoration: none;
}
.skip:focus { translate: 0 0; }

.site-header { padding-block: 0.875rem; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink); text-decoration: none; border-radius: 10px; }

.logo { position: relative; flex: none; width: var(--logo-w, 2.125rem); aspect-ratio: 96 / 112; } /* the 96 px layer set */
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo__heart { transform-origin: 47.7% 66.7%; }
.logo__rays { transform-origin: 77.7% 18.2%; }

.wordmark { font: 800 1.3125rem / 1 var(--font-display); letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; }
.wordmark__little { color: var(--poppy); }

.site-nav ul { display: flex; gap: 0.125rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.625rem; border-radius: var(--r-pill);
  color: var(--ink); font: 700 1rem / 1 var(--font-display); letter-spacing: -0.01em; text-decoration: none;
}
.site-nav a:hover { background: var(--sand); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--chalk); }
@media (max-width: 22.4375em) { /* 320px: one line */
  .site-header .wrap { column-gap: 0.375rem; }
  .site-nav a { padding: 0 0.4375rem; font-size: 0.9375rem; }
}
@media (min-width: 40em) {
  .site-header { padding-block: 1.5rem; }
  .brand { gap: 0.5rem; --logo-w: 2.625rem; }
  .wordmark { font-size: 1.625rem; }
  .site-nav ul { gap: 0.375rem; }
  .site-nav a { padding: 0 1rem; font-size: 1.0625rem; }
}

/* == Footer == */

.site-footer { margin-top: auto; padding-block: clamp(3rem, 2rem + 4vw, 5rem) 2rem; background: var(--sand); color: var(--ink2); font-size: var(--fs-small); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 1.5rem; }
.site-footer .wrap > :first-child { grid-column: 1 / -1; }
.site-footer a { color: var(--ink); }
.site-footer .brand { --logo-w: 2.5rem; gap: 0.5rem; }
.site-footer .wordmark { font-size: 1.75rem; }
.footer-tagline { margin-top: 0.875rem; max-width: 22rem; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding-block: 0.3rem; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--poppy); }
.small-print { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--hairline); font-size: var(--fs-xs); line-height: 1.5; }
.small-print p + p { margin-top: 0.375rem; }
@media (min-width: 48em) {
  .site-footer .wrap { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: 3rem; }
  .site-footer .wrap > :first-child { grid-column: auto; }
  .small-print { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
  .small-print p + p { margin-top: 0; }
}

/* == Links and the App Store badge == */

.link-arrow {
  display: inline-block; padding-block: 0.5rem; color: var(--ink); font: 700 1.0625rem / 1.3 var(--font-display); letter-spacing: -0.01em;
  text-decoration: underline; text-decoration-color: var(--deco); text-decoration-thickness: 0.12em; text-underline-offset: 0.3em;
}
.link-arrow::after { content: "\00a0\2192"; content: "\00a0\2192" / ""; }
.link-arrow:hover { text-decoration-thickness: 0.18em; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; }
.center .cta-row { justify-content: center; }

/* App Store badge: Apple's artwork untouched (no hover, tilt or [data-reveal]); clear space ¼ height */
.appstore {
  display: inline-block; flex: none; vertical-align: middle; line-height: 0; border-radius: calc(var(--badge-h) * 0.22);
  margin: calc(var(--badge-h) / 4) calc(var(--badge-h) / 4) calc(var(--badge-h) / 4) 0;
}
.center .appstore { margin-inline: calc(var(--badge-h) / 4); }
.appstore img { width: auto; height: var(--badge-h); aspect-ratio: 119.66407 / 40; }
.appstore:focus-visible { outline-offset: 4px; }
.appstore + .note { margin-top: 0; }
.note { color: var(--text-2); font-size: var(--fs-small); }

/* == Photos == */

.photo { max-width: var(--photo-w, 20rem); }
.photo--pile, .photo--modest { --photo-w-wide: 26rem; }
.photo img { width: 100%; border-radius: var(--r-panel); background: var(--sand); }
@media (min-width: 56em) {
  .photo { max-width: var(--photo-w-wide, none); }
  .photo--pile, .photo--modest { justify-self: end; }
}

/* == Drawing card == */

.drawing { position: relative; rotate: var(--tilt, 0deg); }
.drawing img { width: 100%; border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow-card); }
.drawing figcaption { margin-top: 0.875rem; color: var(--text-2); font-size: var(--fs-small); line-height: 1.35; text-align: center; }
.drawing__title { display: block; color: var(--ink); font: 700 clamp(0.9375rem, 0.85rem + 0.4vw, 1.125rem) / 1.2 var(--font-display); letter-spacing: -0.01em; }

.tilt-l3 { --tilt: -3deg; --reveal-turn: -4deg; }
.tilt-l2 { --tilt: -2deg; --reveal-turn: -4deg; }
.tilt-l1 { --tilt: -1deg; --reveal-turn: -3deg; }
.tilt-r1 { --tilt: 1deg; --reveal-turn: 3deg; }
.tilt-r2 { --tilt: 2deg; --reveal-turn: 4deg; }
.tilt-r3 { --tilt: 3deg; --reveal-turn: 4deg; }

.pin::before {
  --pin-size: clamp(1.25rem, 1rem + 1vw, 2rem);
  content: ""; position: absolute; z-index: 2; top: calc(var(--pin-size) * -0.42); left: var(--pin-x, 50%); translate: -50% 0;
  width: var(--pin-size); height: var(--pin-size); border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0) 42%), var(--pin-c, var(--poppy));
  box-shadow: inset 0 -2px 3px rgb(0 0 0 / 0.16), 0 1px 1px rgb(var(--shade) / 0.2), 0 4px 8px -2px rgb(var(--shade) / 0.35);
}
.pin-l { --pin-x: 24%; }
.pin-r { --pin-x: 76%; }
.pin-poppy { --pin-c: var(--poppy); }
.pin-marigold { --pin-c: var(--marigold); }
.pin-fern { --pin-c: var(--fern); }
.pin-lagoon { --pin-c: var(--lagoon); }
.pin-lilac { --pin-c: var(--lilac); }

.tape::before {
  content: ""; position: absolute; z-index: 2; top: -0.8rem; left: 50%; translate: -50% 0; rotate: var(--tape-turn, -3deg);
  width: clamp(3.5rem, 34%, 6.5rem); height: 1.625rem;
  background: rgb(var(--tape-rgb, 247 226 176) / 0.72); box-shadow: 0 1px 2px rgb(var(--shade) / 0.1);
  clip-path: polygon(0 4%, 4% 0, 96% 3%, 100% 0, 98% 50%, 100% 97%, 95% 100%, 5% 98%, 0 100%, 2% 50%);
}

/* Three drawings in a row (how fast it goes) */
.ages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.875rem, 3.5vw, 3.5rem); align-items: end; max-width: 56rem; margin: 0; padding: 1rem 0 0; list-style: none; }
/* The titles never break mid-phrase: phones show two cards, then the third centred below */
.ages .drawing__title { white-space: nowrap; }
@media (max-width: 35.99em) {
  .ages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.25rem; }
  .ages > li:nth-child(3) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 0.625rem); }
}

/* Before and after */
.pair { display: grid; gap: 2.5rem; max-width: 46rem; margin: var(--space-block) auto 0; }
.pair figure { max-width: 19rem; margin-inline: auto; }
.pair img { width: 100%; }
.pair .shot img { border-radius: 12px; box-shadow: var(--shadow-small); }
.pair figcaption { margin-top: 0.875rem; color: var(--text-2); font-size: var(--fs-small); text-align: center; }
@media (min-width: 36em) { .pair { grid-template-columns: 1fr 1fr; align-items: end; column-gap: clamp(1.5rem, 5vw, 4rem); } .pair figure { max-width: none; } }

/* == Phone frame == */

.phone { container-type: inline-size; position: relative; width: 100%; max-width: var(--phone-w, 18rem); margin-inline: auto; rotate: var(--tilt, 0deg); }
.phone > img, .phone > picture img {
  box-sizing: content-box; width: calc(100% - 7cqw); aspect-ratio: auto 1179 / 2556; padding: 0; object-fit: cover;
  border: 3.5cqw solid var(--bezel); border-radius: 16.5cqw; background: var(--bezel);
  box-shadow: 0 0 0 1.5px #4a4642, var(--shadow-object);
}
.phone::after { content: ""; position: absolute; top: 6.4cqw; left: 50%; translate: -50% 0; width: 29cqw; height: 8.4cqw; border-radius: var(--r-pill); background: #070707; }

/* == Books == */

.book { position: relative; width: 100%; max-width: var(--book-w, 24rem); rotate: var(--tilt, 0deg); }
.book > img, .book > picture img { width: 100%; border-radius: 3px 8px 8px 3px; box-shadow: var(--shadow-object); }
.book::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 6%; border-radius: 3px 0 0 3px; pointer-events: none;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.2), rgb(0 0 0 / 0.04) 38%, rgb(255 255 255 / 0.24) 52%, rgb(0 0 0 / 0.06) 70%, rgb(0 0 0 / 0));
}
.book--soft::after { width: 3.5%; opacity: 0.6; }
/* Renders of an open book and a closed one, side by side (their chalk ground blends with the page) */
.book-scene { display: flex; align-items: flex-end; }
.book-scene__open { flex: 1.7 1 0; min-width: 0; }
.book-scene__closed { flex: 0.75 1 0; min-width: 0; margin-left: -3%; }
/* A ribbon round a flat cover, tied as a present */
.book--gift { max-width: min(22rem, 86%); margin-inline: auto; }
.book--gift .ribbon { position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(90deg, transparent 62%, var(--poppy) 62% 70%, transparent 70%), linear-gradient(transparent 58%, var(--poppy) 58% 64.5%, transparent 64.5%); }

.covers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48em) { .covers { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem 2rem; } }
.cover-name { margin-top: 0.875rem; font: 700 1.0625rem / 1.2 var(--font-display); letter-spacing: -0.01em; }

/* Book pages in order: a swipeable row on phones, a grid on wide screens */
.pages {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(70%, 15rem); gap: 1.5rem; margin: 0; padding: 0.5rem 0 1rem;
  list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.pages > li { scroll-snap-align: start; }
.pages img { width: 100%; border-radius: 3px; box-shadow: var(--shadow-card); }
.pages p { margin-top: 1rem; font-size: var(--fs-small); }
.pages strong { display: block; color: var(--ink); font: 700 1.0625rem / 1.25 var(--font-display); letter-spacing: -0.01em; }
@media (min-width: 56em) {
  .pages { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2.5rem; overflow: visible; }
  .pages picture { max-width: 14rem; }
}

/* The 16 book colours (Fridge/Books/BookDesign.swift) */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 0.875rem 1rem; margin: var(--space-block) 0 0; padding: 0; list-style: none; }
.swatch { display: flex; align-items: center; gap: 0.625rem; font-size: var(--fs-small); }
.swatch::before { content: ""; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(var(--shade) / 0.1); }
.sw-poppy { --sw: #e8552f; } .sw-cherry { --sw: #c93545; } .sw-bubblegum { --sw: #ee7fa8; } .sw-tangerine { --sw: #f28c28; }
.sw-marigold { --sw: #f4b43a; } .sw-lemon { --sw: #f5d547; } .sw-fern { --sw: #3d8f5f; } .sw-mint { --sw: #4fbf9a; }
.sw-lagoon { --sw: #2d7fb8; } .sw-sky { --sw: #6cb4e4; } .sw-navy { --sw: #24406b; } .sw-lilac { --sw: #a88bd3; }
.sw-plum { --sw: #7a4b8c; } .sw-cocoa { --sw: #8b5a3c; } .sw-oat { --sw: #e6d9c2; } .sw-charcoal { --sw: #3a3735; }

/* The four sizes, drawn to scale (1 cm = --cm) */
.sizes { --cm: clamp(0.3rem, 0.1rem + 0.9vw, 0.55rem); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2rem clamp(1.25rem, 4vw, 3rem); margin: 0; padding: 0; list-style: none; }
.size { display: grid; gap: 0.75rem; justify-items: start; }
.size__book {
  display: grid; place-items: center; width: calc(var(--w) * var(--cm)); height: calc(var(--h) * var(--cm));
  border: 3px solid var(--c); border-radius: 3px 8px 8px 3px; background: var(--white); box-shadow: var(--shadow-small);
}
.size__book picture { width: 58%; }
.size__book img { width: 100%; box-shadow: 0 1px 3px rgb(var(--shade) / 0.2); }
.size__name { display: block; font: 700 1.0625rem / 1.2 var(--font-display); letter-spacing: -0.01em; }
.size__dim { color: var(--text-2); font-size: var(--fs-small); }
.size--port { --w: 21; --h: 28; --c: var(--poppy); }
.size--land { --w: 28; --h: 21; --c: var(--lagoon); }
.size--square { --w: 20; --h: 20; --c: var(--fern); }
.size--mini { --w: 14; --h: 14; --c: var(--marigold); }

/* == A child's words == */

.quote blockquote p {
  font: 700 var(--fs-quote) / 1.16 var(--font-display); letter-spacing: -0.025em;
  color: var(--ink); text-wrap: balance; hanging-punctuation: first;
}
.quote figcaption { margin-top: 1rem; color: var(--text-2); font-size: var(--fs-small); }

/* A crop of the app's own story bar: a picture, captioned, not a control */
.story-shot { max-width: 25rem; margin-top: 1.75rem; }
.story-shot img { width: 100%; border-radius: 14px; box-shadow: 0 0 0 1px var(--hairline), var(--shadow-small); }
.story-shot figcaption { margin-top: 0.625rem; color: var(--text-2); font-size: var(--fs-xs); }

/* == Highlight card: "Maya made 13 drawings in October." == */

.chip {
  display: flex; align-items: center; gap: 1rem; max-width: 34rem; padding: 1em 1em 1em 1.15em; border-radius: var(--r-panel); background: var(--sand);
  color: var(--ink); font: 700 clamp(1.375rem, 1.1rem + 1.2vw, 2rem) / 1.15 var(--font-display); letter-spacing: -0.03em;
}
.band .chip { background: var(--white); box-shadow: var(--shadow-small); }
.chip .hl { color: var(--poppy); white-space: nowrap; }
.chip__prints { display: flex; flex: none; margin-left: auto; padding-right: 0.15em; }
.chip__prints img { width: 1.6em; height: 2.12em; border: 2px solid var(--chalk); border-radius: 8px; background: var(--white); box-shadow: 0 2px 3px rgb(var(--shade) / 0.18); object-fit: cover; rotate: -6deg; }
.chip__prints picture + picture img { margin-left: -0.5em; rotate: 3deg; }
.chip__prints picture:nth-child(3) img { rotate: -2deg; }

/* == Questions and answers (always open: the answers stay in the page for search) == */

.qa { display: grid; gap: 0 clamp(2rem, 5vw, 4.5rem); max-width: 68rem; }
.qa__item { padding-block: 1.5rem; border-top: 1px solid var(--hairline); }
.qa__item h3 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -0.015em; }
.qa__item > * + * { margin-top: 0.625rem; }
.qa-more { margin-top: 2rem; }
@media (min-width: 56em) { .qa--cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* == Long-form pages: help, privacy == */

.page-head { padding-block: clamp(1.5rem, 1rem + 3vw, 4rem) clamp(1.5rem, 1rem + 2vw, 3rem); }
.page-head h1 { font-size: var(--fs-doc-h1); }
.page-head .flow { --flow: 1.25rem; }

.doc { display: grid; gap: 2.5rem; padding-bottom: var(--space-section); }
@media (min-width: 60em) {
  .doc { grid-template-columns: 15rem minmax(0, 1fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .toc { position: sticky; top: 1.5rem; }
}
.toc { padding: 1.25rem 1.5rem 1.375rem; border-radius: var(--r-panel); background: var(--sand); font-size: var(--fs-small); }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { line-height: 1.4; }
.toc li + li { margin-top: 0.1rem; }
.toc li::marker { color: var(--ink2); font-variant-numeric: tabular-nums; }
.toc a { display: block; padding-block: 0.2rem; color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline var(--poppy); }

.prose { max-width: 38rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.5em; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem); line-height: 1.05; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75em; font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem); line-height: 1.2; letter-spacing: -0.015em; }
.prose h2 + * { margin-top: 0.875em; }
.prose h3 + * { margin-top: 0.5em; }
.prose ul, .prose ol { padding-left: 1.375rem; }
.prose li + li { margin-top: 0.375em; }
.prose li::marker { color: var(--poppy); }
.updated { color: var(--text-2); font-size: var(--fs-small); }
/* Small app screens beside a help section: in the flow on narrow screens, in the right margin from 1200px */
.help-shot { --phone-w: 10rem; margin-inline: auto; }
.help-shot--crop { max-width: 14rem; }
.help-shot--crop img { width: 100%; border-radius: 14px; box-shadow: 0 0 0 1px var(--hairline), var(--shadow-card); }
@media (min-width: 75em) {
  .prose--shots { max-width: none; }
  .prose--shots > :not(.help-shot) { max-width: 38rem; }
  .help-shot { float: right; clear: right; width: 10rem; margin: 0.25rem 0 2rem 2.5rem; }
  .help-shot--crop { width: 14rem; }
}

/* == Page pieces == */

.hero { padding-block: clamp(1.5rem, 0.5rem + 4vw, 4rem) var(--space-section); }
.hero__text > * + * { margin-top: 1.5rem; }
.hero__text .lead { max-width: 34rem; }

.cta { padding-block: clamp(4rem, 2.5rem + 6vw, 8rem); text-align: center; }
.cta .wrap > * + * { margin-top: 1.25rem; }
.cta .lead { max-width: 34rem; margin-inline: auto; }
.cta__drawing { width: min(15rem, 70%); margin: 1rem auto 2.5rem; }
/* The closing call to action as a text link (the page's one badge is in the hero) */
.link-cta { color: var(--ink); font: 700 clamp(1.25rem, 1rem + 1.2vw, 1.75rem) / 1.5 var(--font-display); letter-spacing: -0.02em; text-decoration: none; }
.link-cta .u { --u-color: var(--poppy); }
.cta .wrap > p:last-child { margin-top: 2rem; }
@media (min-width: 40em) { .cta__drawing { width: 20rem; } }
.pages-after { margin-top: var(--space-block); }
.not-found { padding-block: clamp(2rem, 1rem + 5vw, 6rem) var(--space-section); }

/* Home hero: copy, then the photo on phones; copy on the photo's calm wall from 1024px */
.hero-home { display: grid; }
.hero-home__text { padding-block: clamp(1rem, 0.5rem + 2vw, 2rem) 2.5rem; }
.hero-home__text > * + * { margin-top: 1.25rem; }
.hero-home h1 { font-size: clamp(2.75rem, 1.5rem + 5vw, 4.5rem); line-height: 0.98; }
.hero-home .lead { max-width: 33rem; color: var(--ink); }
.hero-home .cta-row { margin-top: 0.75rem; }
.hero-home__photo img { width: 100%; }
@media (min-width: 64em) {
  .hero-home { --eyebrow: var(--ink); --text-2: var(--ink); }
  .hero-home > * { grid-area: 1 / 1; }
  .hero-home > .wrap { position: relative; z-index: 1; display: flex; align-items: center; }
  .hero-home__photo { position: relative; max-height: calc(100svh - 5.5rem); min-height: 38rem; overflow: hidden; }
  .hero-home__photo img { height: 100%; object-fit: cover; object-position: 50% 30%; }
  .hero-home__photo::after {
    content: ""; position: absolute; inset: 0;
    /* Strong behind the copy (which ends near 47% of the width), clear before the fridge (53%) */
    background: linear-gradient(90deg, rgb(255 253 249 / 0.94), rgb(255 253 249 / 0.9) 38%, rgb(255 253 249 / 0.6) 47%, rgb(255 253 249 / 0) 54%);
  }
  .hero-home__text { max-width: min(34rem, 46vw - 3rem); padding-block: 3rem; }
  .hero-home h1 { font-size: min(4.5rem, 5.8vw - 0.3125rem); } /* "The fridge is full." on one line */
}

/* The logo, large, playing when it scrolls into view */
.logo--big { --logo-w: clamp(7.5rem, 4rem + 12vw, 13rem); aspect-ratio: 448 / 520; margin-inline: auto; } /* the 448 px set */

/* 404: an empty patch of fridge door */
.empty-door {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-width: 24rem; width: 100%; margin-inline: auto;
  border-radius: 18px; background: linear-gradient(160deg, #fbfaf7, #f1eee8); box-shadow: inset 0 0 0 1px var(--hairline);
}
.empty-door__patch { position: absolute; inset: 16% 20% 26% 18%; rotate: -2deg; border-radius: 6px; background: rgb(255 255 255 / 0.85); box-shadow: 0 0 0 1px rgb(var(--shade) / 0.04); }
.empty-door__patch::after {
  content: ""; position: absolute; right: -1.25rem; bottom: 1.5rem; width: 5rem; height: 1.5rem; rotate: -38deg;
  background: rgb(247 226 176 / 0.8); box-shadow: 0 1px 2px rgb(var(--shade) / 0.1);
  clip-path: polygon(0 4%, 4% 0, 96% 3%, 100% 0, 98% 50%, 100% 97%, 95% 100%, 5% 98%, 0 100%, 2% 50%);
}
.empty-door__runaway { position: absolute; right: -12%; bottom: -9%; width: 46%; rotate: 14deg; }
.empty-door__runaway img { border-radius: 6px; box-shadow: var(--shadow-card); }
.nf-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; margin: 0; padding: 0; list-style: none; }

/* Display type at width 94. A no-op with the pinned web font; keeps the look if the full variable font
   is used. Comes after every `font:` shorthand, which resets it. */
h1, h2, h3, h4, .display, .wordmark, .quote blockquote p, .chip, .drawing__title, .cover-name, .size__name, .pages strong, .link-cta { font-variation-settings: "wdth" 94; }

/* == Motion == */

/* Logo: heart beats twice, rays twinkle, all done in < 5 s (no pause control needed) */
@keyframes la-beat { 0%, 100% { scale: 1; } 21% { scale: 1.14; } 42% { scale: 1; } 63% { scale: 1.08; } }
@keyframes la-twinkle { 0%, 100% { scale: 1; opacity: 1; } 40% { scale: 1.08; opacity: 1; } 70% { scale: 1.02; opacity: 0.72; } }
.logo.is-playing .logo__heart { animation: la-beat 0.7s ease-in-out 0.5s both; }
.logo.is-playing .logo__rays { animation: la-twinkle 2.2s ease-in-out 0.9s 2 both; }
.logo.is-replay .logo__heart { animation-delay: 0s; }
.logo.is-replay .logo__rays { animation-delay: 0.2s; animation-iteration-count: 1; }

/* Scroll reveals (hidden only under html.js; site.js adds .is-in). Not on hero text or the badge. */
.js [data-reveal] {
  opacity: 0; transform: translateY(1.5rem) rotate(var(--reveal-turn, 0deg));
  transition: opacity 0.7s var(--ease-out), transform 1s var(--ease-settle); transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="2"] { --reveal-delay: 0.12s; }
[data-reveal="3"] { --reveal-delay: 0.24s; }
[data-reveal="4"] { --reveal-delay: 0.36s; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-nav, .skip, .cta, .appstore { display: none; }
  .band { background: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
