@font-face {
  font-family: "Baloo 2";
  src: url("fonts/baloo2.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
/* Devanagari for Hindi, in its own file: downloaded only when Hindi is on the page. */
@font-face {
  font-family: "Baloo 2";
  src: url("fonts/baloo2-deva.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

/* The whole skin: "Pudełko kredek" (box of crayons). light-dark(day, night sketchbook). */
:root {
  color-scheme: light dark;

  --paper: light-dark(#FFF7E3, #1D2238);
  --paper2: light-dark(#F7EACB, #283050);
  --sheet: light-dark(#FFFCF3, #232A45);      /* the drawing sheet */
  --ink: light-dark(#2E3550, #F5F1E6);        /* text, outlines and the player's crayon */
  --muted: light-dark(#5E6480, #B9BED6);
  --accent: light-dark(#D63F78, #FF77A6);     /* raspberry: the one strong colour */
  --accent-ink: light-dark(#B42F61, #FF8DB4); /* accent for text and filled buttons */
  --on-accent: light-dark(#FFFFFF, #1D2238);
  --eye: #FFFFFF;

  /* Pastel crayons */
  --p1: light-dark(#9FE0C6, #86D9BB); /* mint */
  --p2: light-dark(#A6CFFA, #94BFF5); /* sky */
  --p3: light-dark(#FFE07A, #F2D774); /* lemon */
  --p4: light-dark(#CDB6FA, #BCA6F5); /* lilac */
  --p5: light-dark(#FFBE9E, #F7AE90); /* peach */
  --p6: light-dark(#FFB8D0, #F7A6C4); /* pink */

  --line: color-mix(in srgb, var(--ink) 22%, transparent);
  --focus: var(--accent-ink);
  --shadow: 0 4px 0 var(--ink);

  --font: "Baloo 2", system-ui, sans-serif;
  --r-s: 14px;
  --r: 22px;
  --r-l: 30px;
  --edge: 2.5px;
  --grain: none; /* paper grain, drawn by app.js */
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; }

body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 500 17px/1.45 var(--font);
  -webkit-tap-highlight-color: transparent;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
a { color: var(--accent-ink); }
h2, h3, p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* App frame: the bar on top, one screen under it, from a small pop-out window up to full screen. */
.app {
  --pad: clamp(10px, 3vmin, 24px);
  max-width: 1180px;
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 max(var(--pad), env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left));
}
.app[data-screen="play"] { height: 100svh; overflow: hidden; }
:root:has(.app[data-screen="play"]) { overscroll-behavior: none; }

.bar { display: flex; align-items: center; gap: 4px; flex: none; min-height: 58px; padding-top: env(safe-area-inset-top); }
.brand { display: flex; align-items: center; padding: 2px 6px 2px 2px; border-radius: var(--r-s); color: var(--ink); text-decoration: none; }
.bar-title { flex: 1; min-width: 0; overflow: hidden; color: var(--muted); font-weight: 700; font-size: 16px; white-space: nowrap; text-overflow: ellipsis; }
.tools { display: flex; gap: 2px; margin-left: auto; }

.wm { display: inline-flex; align-items: baseline; color: var(--ink); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.01em; }
.wm .eyes { width: auto; height: .66em; margin: 0 .02em; overflow: visible; }
.eyes .ball { fill: var(--eye); stroke: var(--ink); stroke-width: 5.4; }
.eyes .pupil { fill: light-dark(var(--ink), #2E3550); }
.eyes .glint { fill: var(--eye); }
.eyes .look { transform: translate(var(--lx, 0), var(--ly, 0)); transition: transform .15s ease-out; } /* follows the pointer (app.js) */
.wm .eyes { transform-origin: 50% 55%; animation: blink 6.5s 2.5s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }

.ib {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: var(--r-s);
  background: transparent; color: var(--ink);
  cursor: pointer;
}
.ib:hover { background: var(--paper2); }
.ib[aria-pressed="true"] { background: var(--accent-ink); color: var(--on-accent); }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico .solid { fill: currentColor; stroke: none; }

.screens { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.screen { flex: 1; display: flex; flex-direction: column; gap: 14px; min-height: 0; padding-bottom: 12px; }
.screen-title { font-size: 28px; font-weight: 800; line-height: 1.1; }

/* Buttons: chunky crayon-box stickers */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: var(--edge) solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  font: 700 17px/1 var(--font); text-decoration: none;
  cursor: pointer;
}
.btn.primary { background: var(--accent-ink); color: var(--on-accent); }
.btn .ico { width: 20px; height: 20px; }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.icon-only { width: 46px; padding: 0; }
.btn.nudge { animation: nudge .5s; }
@keyframes nudge { 30% { transform: translateX(-5px) rotate(-2deg); } 60% { transform: translateX(5px) rotate(2deg); } }
.row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Home */
.home { width: min(100%, 940px); margin-inline: auto; padding-top: clamp(0px, 3vh, 28px); }
.daily {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; padding: 16px 18px 18px;
  border: var(--edge) solid var(--ink); border-radius: var(--r-l);
  background: light-dark(color-mix(in srgb, var(--p3) 55%, var(--paper)), color-mix(in srgb, var(--p4) 20%, var(--paper2)));
  color: var(--ink); box-shadow: var(--shadow);
  font: inherit; text-align: left; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.daily:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.daily:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.daily-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.daily-title { font-size: 28px; font-weight: 800; line-height: 1.1; }
.streak { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 15px; }
.streak .ico, .sum-meta .ico { width: 20px; height: 20px; color: var(--accent-ink); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trio-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.trio-item .art { width: min(100%, 150px); height: auto; aspect-ratio: 1; }
.trio-score { padding: 0 10px; border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 700; color: var(--muted); }
.trio-item.done .trio-score { background: var(--ink); color: var(--paper); }
.daily-go {
  display: flex; align-items: center; justify-content: center; gap: 8px; align-self: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--accent-ink); color: var(--on-accent);
  font-weight: 700; font-size: 18px;
}
.daily-go .ico { width: 22px; height: 22px; }

.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mode {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: var(--edge) solid var(--ink); border-radius: var(--r);
  background: var(--paper2); color: var(--ink); box-shadow: var(--shadow);
  font: inherit; text-align: left; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.mode:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.mode:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.mode b { display: block; font-size: 20px; line-height: 1.15; }
.mode small { display: block; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.3; }
.mode-ico { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border: var(--edge) solid var(--ink); border-radius: 50%; }
#go-memory .mode-ico { background: var(--p2); }
#go-practice .mode-ico { background: var(--p1); }
.mode-ico .ico { color: #2E3550; }
@media (max-width: 719px) { .modes { grid-template-columns: 1fr; } }

.about { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: auto; padding-top: 8px; }
.tagline { color: var(--muted); font-weight: 700; font-size: 18px; }
.foot { flex: none; padding: 4px 0 10px; color: var(--muted); font-size: 14px; font-weight: 600; text-align: center; }
.foot a { color: inherit; }
.app:not([data-screen="home"]) .foot { display: none; }

/* Playing: the shape to draw, the sheet, and the result */
.play { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; padding-bottom: 0; }
.target { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--r); background: var(--paper2); }
.target-art .art { display: block; width: 64px; height: 64px; }
.target-text { min-width: 0; }
.eyebrow { color: var(--muted); font-weight: 700; font-size: 13px; }
.shape-name { font-size: 26px; font-weight: 800; line-height: 1.05; outline-offset: 4px; }
.level { color: var(--muted); font-weight: 600; font-size: 14px; }
.target #trace { margin-left: auto; }
.mystery { fill: none; stroke: var(--muted); stroke-width: 3; stroke-dasharray: 7 6; stroke-linecap: round; }

.stage {
  position: relative; container-type: size;
  min-height: 160px;
  border: var(--edge) dashed var(--line); border-radius: var(--r-l);
  background: var(--sheet) var(--grain);
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
#ink { touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; transition: opacity .6s; }
#ink.fade { opacity: 0; }
.guide { position: absolute; inset: 0; width: 72cqmin; height: 72cqmin; margin: auto; pointer-events: none; transition: opacity .3s; }
.guide path { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.guide.drawing { opacity: .55; }
.peek { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: color-mix(in srgb, var(--sheet) 80%, transparent); pointer-events: none; }
.peek-art .art { display: block; width: 66cqmin; height: 66cqmin; }
.clock { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; transform: rotate(-90deg); }
.clock circle { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100.6; }
.peek.run .clock circle { animation: tick 2s linear forwards; }
@keyframes tick { to { stroke-dashoffset: 100.6; } }

.panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 124px; padding: 2px 0 10px; text-align: center; }
.say { color: var(--muted); font-weight: 700; font-size: 18px; line-height: 1.3; }
.score { display: flex; flex-direction: column; align-items: center; }
.pct { color: var(--accent-ink); font-weight: 800; font-size: 54px; line-height: 1; font-variant-numeric: tabular-nums; }
.hint { max-width: 40ch; color: var(--muted); font-weight: 600; font-size: 16px; line-height: 1.3; }

/* Room to the side (computer, tablet, phone on its side): shape and result left, sheet right. */
@media (min-width: 820px) and (min-height: 500px), (min-width: 560px) and (max-height: 499px) and (min-aspect-ratio: 4/3) {
  .play { grid-template-columns: minmax(210px, 300px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 20px; }
  .target { grid-area: 1 / 1; flex-direction: column; align-items: flex-start; padding: 14px 16px; }
  .target #trace { position: absolute; }
  .target { position: relative; }
  .target #trace { top: 10px; right: 10px; }
  .target-art .art { width: clamp(64px, 22vh, 150px); height: auto; aspect-ratio: 1; }
  .panel { grid-area: 2 / 1; align-items: flex-start; justify-content: flex-start; text-align: left; padding: 6px 4px; }
  .score { align-items: flex-start; }
  .pct { font-size: clamp(54px, 11vh, 86px); }
  .panel .row { justify-content: flex-start; }
  .stage { grid-area: 1 / 2 / 3 / 3; margin-bottom: 12px; }
}

/* Practice library */
.level-title { margin: 8px 0; font-size: 20px; font-weight: 800; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 10px 6px 8px;
  border: var(--edge) solid transparent; border-radius: var(--r);
  background: var(--paper2); color: var(--ink);
  font: inherit; cursor: pointer;
}
.tile:hover { border-color: var(--ink); }
.tile .art { width: 76%; height: auto; aspect-ratio: 1; }
.tile-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.tile-best { color: var(--accent-ink); font-weight: 700; font-size: 13px; }

/* Daily result */
.sum-item canvas { display: block; width: 100%; aspect-ratio: 1; }
.summary { align-items: center; text-align: center; }
.sum-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(100%, 640px); }
.sum-item { margin: 0; padding: 8px; border-radius: var(--r); background: var(--sheet) var(--grain); border: var(--edge) solid var(--line); }
.sum-item figcaption { font-weight: 700; font-size: 15px; }
.thumb-art .art { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.sum-avg b { color: var(--accent-ink); font-size: 72px; font-weight: 800; line-height: 1; }
.sum-avg span { color: var(--muted); font-weight: 700; font-size: 18px; }
.sum-meta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* Dialogs */
.sheet-dialog {
  width: min(460px, calc(100vw - 24px)); max-height: calc(100svh - 24px);
  padding: 16px 20px 18px;
  border: var(--edge) solid var(--ink); border-radius: 26px;
  background: var(--paper) var(--grain); color: var(--ink);
  box-shadow: 0 6px 0 var(--ink);
}
.sheet-dialog::backdrop { background: rgb(20 22 40 / .45); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.dlg-head h2 { font-size: 24px; font-weight: 800; }
fieldset { margin: 10px 0; padding: 0; border: 0; }
legend { margin-bottom: 2px; padding: 0; font-weight: 800; }
fieldset label { display: flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 600; cursor: pointer; }
input[type="radio"], input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--accent-ink); }
.share-img { display: block; width: 100%; max-height: 52svh; margin: 6px auto 10px; border-radius: 18px; object-fit: contain; background: var(--paper2); }
.share-text { margin-bottom: 10px; color: var(--muted); font-weight: 600; text-align: center; }
#share-msg { min-height: 1.4em; margin-top: 8px; text-align: center; }

.popped { display: grid; place-items: center; align-content: center; gap: 14px; min-height: 100svh; padding: 20px; text-align: center; font-weight: 700; }

/* Things that draw themselves, line by line like a crayon. Every line has pathLength 1, so a dash of 1
   moved from offset 1 to 0 draws it. --at is when a picture starts, --t-ink how long its outline takes. */
@keyframes draw-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.15); } }
@keyframes wiggle { 25% { transform: rotate(-7deg); } 75% { transform: rotate(6deg); } }
.drawn .art :is(.ink, .tint), .doodle path, .tools .ico *, .loop path { stroke-dasharray: 1 1; }
.drawn .art .ink { animation: draw-line var(--t-ink, .9s) cubic-bezier(.5, .1, .3, 1) var(--at, 0s) both; }
.drawn .art .tint { animation: draw-line var(--t-tint, 1s) ease-in-out calc(var(--at, 0s) + var(--t-ink, .9s) * .55) both; }
.drawn .art :is(.deco, .face) { transform-box: fill-box; transform-origin: center; animation: pop-in .45s ease-out calc(var(--at, 0s) + var(--t-ink, .9s) * 1.35) both; }
.trio-item { --at: calc(var(--i, 0) * .35s); }
.tile { --t-ink: .65s; --t-tint: .6s; --at: calc(var(--i, 0) * .08s); }
.tiles .tile:not(.drawn) .art { visibility: hidden; }
.peek-art { --t-ink: .7s; --t-tint: .55s; }
.target-art { --t-ink: .75s; --t-tint: .7s; }

/* On hover: the shapes of the day wiggle and a crayon loops around the play button; mode icons draw again. */
.daily:hover .trio-item .art, .daily:focus-visible .trio-item .art { animation: wiggle .7s ease-in-out calc(var(--i, 0) * .08s); }
.daily-go { position: relative; }
.loop { position: absolute; top: -10px; left: -16px; width: calc(100% + 32px); height: calc(100% + 20px); overflow: visible; pointer-events: none; }
.loop path { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; stroke-dashoffset: 1; }
.daily:hover .loop path, .daily:focus-visible .loop path { animation: draw-line .55s ease-out forwards; }
.mode:is(:hover, :focus-visible) .mode-ico .ico * { stroke-dasharray: 1 1; animation: draw-line .7s ease-out both; }
.tools .ico * { animation: draw-line .7s ease-out .1s both; } /* the bar's icons draw in, and again when they change */

/* Doodles in the free space of the home screen, drawn one after another (only where there is room). */
.doodles { flex: 1 1 0; min-height: 0; container-type: size; display: flex; align-items: center; justify-content: space-evenly; overflow: hidden; }
.doodle-slot { flex: none; width: clamp(48px, 9vw, 86px); aspect-ratio: 1; rotate: var(--turn, 0deg); }
.doodle { display: block; width: 100%; height: 100%; overflow: visible; }
.doodle path { animation: draw-line 1.1s ease-in-out calc(1.3s + var(--i, 0) * .45s) both; }
@container (max-height: 60px) { .doodle-slot { display: none; } }
@container (max-width: 460px) { .doodle-slot:nth-child(n+4) { display: none; } }
@container (max-width: 700px) { .doodle-slot:nth-child(n+5) { display: none; } }

/* Small windows: the pop-out, a narrow app window, a phone on its side. Everything shrinks, the sheet stays big. */
@media (max-height: 600px), (max-width: 380px) {
  .bar { min-height: 46px; }
  .wm { font-size: 25px; }
  .ib { width: 36px; height: 36px; }
  .ico { width: 22px; height: 22px; }
  .screen { gap: 10px; }
  .btn { min-height: 40px; padding: 0 14px; font-size: 15px; }
  .btn.icon-only { width: 40px; }
  .target { padding: 6px 10px; gap: 10px; }
  .target-art .art { width: 46px; height: 46px; }
  .shape-name { font-size: 21px; }
  .panel { min-height: 96px; gap: 6px; }
  .pct { font-size: 42px; }
  .hint { font-size: 14px; }
  .daily { padding: 12px 14px 14px; gap: 6px; }
  .daily-title { font-size: 23px; }
  .trio-item .art { width: min(100%, 96px); }
  .mode { padding: 8px 12px; }
  .mode-ico { width: 40px; height: 40px; }
  .mode b { font-size: 17px; }
  .mode small { display: none; }
  .about { display: none; }
}
@media (max-height: 440px) {
  .eyebrow, .level, .hint { display: none; }
  .target-art .art { width: 36px; height: 36px; }
  .panel { min-height: 76px; }
  .pct { font-size: 34px; }
  .trio-score { display: none; }
}
/* A tiny upright window (the pop-out made small): the shape becomes a chip on the sheet, the result one row. */
@media (max-height: 440px) and (max-aspect-ratio: 4/3) {
  .bar { min-height: 40px; }
  .play { position: relative; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; }
  .target { position: absolute; z-index: 2; top: 6px; left: 6px; max-width: calc(100% - 12px); padding: 2px 4px 2px 2px; border-radius: 999px; background: color-mix(in srgb, var(--paper2) 88%, transparent); }
  .target-art .art { width: 30px; height: 30px; }
  .shape-name { font-size: 17px; }
  .target #trace { width: 32px; height: 32px; }
  .stage { grid-row: 1; }
  .panel { grid-row: 2; flex-direction: row; justify-content: space-between; min-height: 44px; padding: 0 0 6px; }
  .say { font-size: 15px; }
  .pct { font-size: 32px; }
  .panel .btn { width: 40px; padding: 0; }
  .panel .btn span { display: none; }
  .panel .row { flex-wrap: nowrap; gap: 8px; }
}
.daily-go .short { display: none; }
@media (max-height: 600px) and (max-width: 520px) {
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mode { flex-direction: column; gap: 4px; padding: 8px 4px; text-align: center; }
  .mode b { font-size: 14px; }
  .daily-go .long { display: none; }
  .daily-go .short { display: inline; }
}
@media (max-width: 330px) {
  .bar-title { display: none; }
  .app:not([data-screen="home"]) .brand { display: none; }
}
@media (max-width: 599px) {
  .app:not([data-screen="home"]) .brand .wm { font-size: 22px; }
}

/* The pop-out window and the installed app are just the game. */
body.pip .app { min-height: 100vh; }
body.pip .app[data-screen="play"] { height: 100vh; }
:root.app .about, body.pip .about { display: none; }
:root.app .foot { display: none; }

@media (pointer: coarse) {
  .ib { width: 44px; height: 44px; }
}

/* Less motion (also Windows with animation effects off): nothing moves, jumps, wiggles or blinks, and the
   eyes stay still. Lines still draw themselves in place and colours fade in, which moves nothing. */
@media (prefers-reduced-motion: reduce) {
  .daily, .mode, .eyes .look { transition: none; }
  .daily:hover, .mode:hover, .daily:active, .mode:active, .btn:active:not(:disabled) { transform: none; }
  .wm .eyes, .btn.nudge, .daily:hover .trio-item .art, .daily:focus-visible .trio-item .art { animation: none; }
  .drawn .art :is(.deco, .face) { animation-name: fade-in; }
  @keyframes fade-in { from { opacity: 0; } }
}

/* Plain pages: privacy, 404 */
.doc { width: min(100% - 32px, 680px); margin: 0 auto; padding: 28px 0 60px; }
.doc-home { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 24px; font-weight: 800; text-decoration: none; }
.doc h1 { margin: 26px 0 6px; font-size: 40px; line-height: 1.1; }
.doc h2 { margin: 28px 0 6px; font-size: 22px; }
.doc .lede { font-size: 20px; font-weight: 600; }
.doc p, .doc li { margin: 6px 0; }
