/* NixMo web. Palette from the brand sheet (Brand/reference.webp): orange #D8662C, near-black #171512,
   warm white #FAF7F2. Contrast of every text pair below is checked by tests/tokens.test.mjs. */
:root {
  color-scheme: light dark;
  --canvas: #FAF7F2;
  --card: #FFFFFF;
  --border: #E8E0D5;
  --line: #8A8178;         /* dotted leaders and row rules */
  --ink: #171512;
  --ink2: #4D463F;
  --muted: #665E56;
  --orange: #D8662C;       /* brand orange: fills and large shapes only (3.4:1 on canvas) */
  --orange-text: #AD3A0A;  /* orange for text, links and the focus ring (5.8:1 on canvas) */
  --orange-deep: #A44A1C;  /* the edge under an orange button */
  --on-orange: #171512;    /* text on brand orange (5.1:1) */
  --key-edge: #D5CABC;     /* the edge under a plain button */
  --tint: #FCEBDD;
  --tint-border: #F3CDB0;
  --notice: #F4EFE8;
  --tile: #F1EAE1;
  --live: #1E8A49;
  --band: #171512;
  --band-ink: #FAF7F2;
  --band-muted: #B9B0A6;
  --peach: #FFD9BF;        /* the hero's waves, as on the app's splash */
  --shadow: 23 21 18;

  /* Motion recipe: one curve, two durations, small distances. */
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
  --dur-ui: 200ms;
  --dur-reveal: 500ms;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #171512;
    --card: #221E1A;
    --border: #38322C;
    --line: #8F867C;
    --ink: #FAF7F2;
    --ink2: #D8D1C8;
    --muted: #A79F96;
    --orange-text: #F0935A;
    --orange-deep: #8F3F16;
    --key-edge: #000000;
    --tint: #3A2415;
    --tint-border: #5E391F;
    --notice: #26221E;
    --tile: #2A2521;
    --live: #34C36B;
    --band: #0D0C0A;
    --peach: #4A2A14;
    --shadow: 0 0 0;
  }
}

/* Motion notes. Reduced motion: no entrances and no movement on hover or press; colour and edge still change.
   Interaction        | Trigger        | Duration          | Easing | What changes
   Hero/Headline      | page load      | --dur-reveal      | --ease | opacity 0 to 1, rises 16px
   Hero/Lead          | load + 80ms    | --dur-reveal      | --ease | opacity 0 to 1, rises 10px
   Hero/Actions       | load + 160ms   | --dur-reveal      | --ease | opacity 0 to 1, scale 0.98 to 1
   Hero/Viewer        | load + 120ms   | --dur-reveal      | --ease | opacity 0 to 1, scale 0.96 to 1, blur 8px to 0
   3D/Arrive          | model loaded   | 2 x --dur-reveal  | --ease | logo turns 40 degrees, dish 50 degrees, into place, once
   3D/Logo spin       | press the logo | 2 x --dur-reveal  | --ease | one full turn
   3D/Turn, zoom keys | press a key    | --dur-ui          | --ease | turns 30 degrees, or zooms by a quarter
   3D/Drag, pinch     | pointer        | follows the hand  | none   | turn, tilt (mouse) and zoom; drawn only while moved
   Button/Hover       | pointer over   | --dur-ui          | --ease | rises 1px, edge 4px to 5px
   Button/Press       | pointer down   | --dur-ui          | --ease | sinks 3px, edge 4px to 1px
   Nav link/Hover     | pointer over   | --dur-ui          | --ease | underline colour
   Menu/Loading       | while loading  | 2 x --dur-reveal  | --ease | skeleton opacity 1 to 0.55 and back
   Dish picture/Press | pointer down   | --dur-ui          | --ease | scale 1 to 0.98
   Dish 3D/Open       | open a dish    | --dur-ui          | --ease | opacity 0 to 1, rises 10px */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 1rem/1.5 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; max-width: 46rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
main:focus { outline: none; }
.home main { max-width: none; padding: 0; }
.wrap { width: 100%; max-width: 70rem; margin-inline: auto; padding-inline: 1.25rem; }

a { color: var(--orange-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--orange-text); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0.5rem 0; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--card); color: var(--ink); padding: 0.6rem 0.9rem; border-radius: 10px;
}
.skip:focus { top: 0.75rem; }

/* Small capital labels: section numbers, navigation, tags. */
.eyebrow, .site-nav a, .home .band h2, .plan-count, .stamp strong {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.num { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--border); background: var(--canvas); }
.site-header .inner, .site-footer .inner { max-width: 46rem; margin: 0 auto; padding: 0.6rem 1.25rem; }
.home .site-header .inner, .home .site-footer .inner { max-width: 70rem; }
.site-header .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; }
.brand { display: inline-flex; align-items: center; padding: 0.4rem 0; }
.brand img { display: block; height: 1.75rem; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.site-nav a {
  display: inline-flex; gap: 0.4rem; padding: 0.75rem 0 0.6rem; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid transparent; transition: border-color var(--dur-ui) var(--ease);
}
.site-nav a:hover { border-bottom-color: var(--orange); }
/* Phones: the four links fit one row without their numbers. */
@media (max-width: 30rem) {
  .site-nav { flex-basis: 100%; }
  .site-nav ul { justify-content: space-between; gap: 0 0.5rem; }
  .site-nav a { font-size: 0.72rem; letter-spacing: 0.08em; }
  .site-nav .num { display: none; }
}

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.site-footer .inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between; padding-block: 1.25rem; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { color: var(--ink2); display: inline-block; padding: 0.35rem 0; }
.site-footer .company { flex-basis: 100%; margin: 0; font-size: 0.8rem; }

/* Buttons: rounded rectangles, not pills, with a solid edge underneath that shortens when pressed. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.25rem; border-radius: 12px;
  font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--card); color: var(--ink);
  box-shadow: 0 4px 0 0 var(--key-edge);
  transition: transform var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 0 var(--key-edge); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 0 var(--key-edge); }
.btn-primary { background: var(--orange); color: var(--on-orange); border-color: var(--orange); box-shadow: 0 4px 0 0 var(--orange-deep); }
.btn-primary:hover { box-shadow: 0 5px 0 0 var(--orange-deep); }
.btn-primary:active { box-shadow: 0 1px 0 0 var(--orange-deep); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }

.notice {
  display: flex; gap: 0.6rem; align-items: flex-start;
  background: var(--notice); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.75rem 0.9rem; color: var(--ink2); font-size: 0.95rem;
}
.notice svg { flex: none; margin-top: 0.15rem; color: var(--orange-text); }
.notice strong { color: var(--ink); }

.muted { color: var(--muted); }

/* Home */
.home h1 { font-size: clamp(2.25rem, 6.4vw, 4rem); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.home h2 { font-size: clamp(1.6rem, 3.8vw, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.home h3 { font-size: 1.2rem; }
.eyebrow { color: var(--orange-text); margin: 0 0 0.9rem; }
.lead { font-size: 1.125rem; color: var(--ink2); max-width: 36rem; margin: 1rem 0 0; }
.small { font-size: 0.9rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 0.75rem; margin: 1.75rem 0 0; }

/* Hero: the logo and a dish, both in 3D. Each starts as a picture; js/viewer.js swaps in a canvas. */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(46rem 24rem at 0% 0%, color-mix(in srgb, var(--peach) 60%, transparent), transparent 70%),
    radial-gradient(52rem 30rem at 100% 100%, color-mix(in srgb, var(--peach) 75%, transparent), transparent 70%);
}
.hero .wrap { padding-block: 1.5rem 3.5rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero .eyebrow { color: var(--ink); }
.stamp {
  display: inline-block; max-width: 24rem; margin: 2rem 0 0; padding: 0.6rem 0.85rem;
  background: var(--card); border: 1.5px dashed var(--orange-text); border-radius: 10px;
  color: var(--ink2); font-size: 0.9rem; transform: rotate(-1.5deg);
}
.stamp strong { color: var(--orange-text); margin-right: 0.25rem; }
@media (min-width: 56rem) {
  .hero .wrap { padding-block: 2rem 4.5rem; }
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 3rem; }
}

/* The picture fills 94% of the box, as the 3D logo does, so the swap does not jump. */
.logo3d { max-width: 32rem; aspect-ratio: 12 / 5; margin: 0 0 0.25rem -3%; }
.logo3d picture, .logo3d img, .logo3d canvas, .logo3d-spin { display: block; width: 100%; height: 100%; }
.logo3d img { object-fit: contain; padding-inline: 3%; }
.logo3d canvas { color: var(--ink); }
.logo3d-spin { padding: 0; border: 0; background: none; border-radius: 12px; cursor: pointer; }

.viewer { display: grid; gap: 0.75rem; margin: 0; min-width: 0; }
/* The bottom strip is for the turn and zoom keys, so a model never runs under them. */
.viewer-stage { position: relative; aspect-ratio: 1; }
.viewer-stage > img, .viewer-stage canvas { position: absolute; inset: 0; width: 100%; height: calc(100% - 3.5rem); }
.viewer-stage > img { object-fit: contain; padding: 6%; filter: drop-shadow(0 1.1rem 1rem rgb(var(--shadow) / 0.28)); }
.viewer-stage canvas { touch-action: pan-y; cursor: grab; }
.viewer-stage canvas:active { cursor: grabbing; }
.viewer-controls { position: absolute; left: 0; bottom: 0; display: flex; gap: 0.4rem; }
.key {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 10px;
  border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer;
  box-shadow: 0 3px 0 0 var(--key-edge);
  transition: transform var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease);
}
.key:hover { transform: translateY(-1px); box-shadow: 0 4px 0 0 var(--key-edge); }
.key:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--key-edge); }
.viewer-dishes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.2rem 0.8rem 0.2rem 0.3rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink);
  font: inherit; font-size: 0.9rem; font-weight: 650; cursor: pointer;
  transition: border-color var(--dur-ui) var(--ease), background-color var(--dur-ui) var(--ease);
}
.chip img { width: 2.25rem; height: 2.25rem; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--tint); }
.viewer-note { margin: 0; min-height: 1.4em; font-size: 0.9rem; color: var(--ink2); }
/* The AR link holds only its picture, as AR Quick Look needs; the words sit over it. */
.viewer-ar {
  position: relative; display: inline-flex; align-items: center; justify-self: start; margin: 0; min-height: 2.75rem;
  border: 1.5px solid var(--ink); border-radius: 10px; background: var(--card); font-size: 0.9rem; font-weight: 650;
}
.viewer-ar a { position: absolute; inset: 0; border-radius: 10px; }
.viewer-ar img { width: 2.25rem; height: 2.25rem; margin: 0.25rem 0.3rem; }
.viewer-ar span { padding: 0 0.8rem 0 3.1rem; pointer-events: none; }
.viewer figcaption { font-size: 0.8rem; color: var(--ink2); }

/* A dark strip of plain facts under the hero. */
.band { background: var(--band); color: var(--band-ink); }
.band .wrap { display: grid; gap: 0.75rem 3rem; padding-block: 2.25rem; }
.home .band h2 { color: var(--orange); line-height: 1.5; padding-top: 0.7rem; }
.band .facts > div { border-top-color: var(--band-muted); }
.band .facts dt { color: var(--band-muted); }
.band .facts dd { color: var(--band-ink); }
@media (min-width: 56rem) { .band .wrap { grid-template-columns: 12rem 1fr; } }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--card); border-block: 1px solid var(--border); }
.two-col { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) { .two-col { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }

/* Rows of label and value, ruled with dots like a printed menu. */
.facts { margin: 0; }
.facts > div { display: grid; gap: 0.15rem 1.5rem; padding: 0.7rem 0; border-top: 1px dotted var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink2); }
@media (min-width: 36rem) { .facts > div { grid-template-columns: 11rem 1fr; } }

.dash { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.6rem; color: var(--ink2); }
.dash li { position: relative; padding-left: 1.75rem; }
.dash li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 1rem; height: 2px; background: var(--orange); }

.panel { background: var(--tint); border: 1px solid var(--tint-border); border-radius: var(--radius); padding: 1.5rem; }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel p { color: var(--ink2); }
.panel .btn { margin-top: 0.75rem; }
.panel .facts { margin-top: 0.9rem; }
.actions + .small { margin-top: 1.25rem; }
.stack > * + * { margin-top: 1.25rem; }

/* Owner steps: each card sits lower than the last, like stairs. */
.steps { list-style: none; margin: 2.5rem 0 3rem; padding: 0; display: grid; gap: 1rem; }
.steps li { background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem 1.35rem; }
.steps p { color: var(--ink2); margin-bottom: 0; }
.step-num { display: block; font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--orange); margin-bottom: 0.6rem; }
@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .steps li:nth-child(2) { margin-top: 1.75rem; }
  .steps li:nth-child(3) { margin-top: 3.5rem; }
}

/* Plans, set out like a menu: name, dotted leader, price. The three tiles use the three app icon colours. */
.plans { list-style: none; margin: 2rem 0 3rem; padding: 0; border-bottom: 1px solid var(--border); }
.plan { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem 1.25rem; align-items: start; padding: 1.5rem 0; border-top: 1px solid var(--border); }
.plan-count {
  margin: 0; aspect-ratio: 1; display: grid; place-content: center; text-align: center; line-height: 1.3;
  border-radius: var(--radius); background: var(--tint); border: 1px solid var(--tint-border); color: var(--ink);
}
.plan-number { display: block; font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan:nth-child(2) .plan-count { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.plan:nth-child(3) .plan-count { background: var(--band); border-color: var(--border); color: var(--band-ink); }
.plan-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.75rem; }
.home .plan-line h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.leader { flex: 1; min-width: 1.5rem; border-bottom: 2px dotted var(--line); transform: translateY(-0.3em); }
.plan-price { margin: 0; white-space: nowrap; color: var(--ink2); }
.amount { font-size: 1.5rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-body p { margin: 0.35rem 0 0; color: var(--ink2); }
.plan-cta { grid-column: 2; }
@media (min-width: 56rem) {
  .plan { grid-template-columns: 8rem 1fr auto; gap: 2rem; align-items: center; padding: 1.75rem 0; }
  .plan-cta { grid-column: auto; }
}

/* Restaurant page */
.r-head { padding-block: 0.5rem 1.25rem; min-height: 12.5rem; }
.r-meta { color: var(--ink2); margin-top: 0.35rem; }
.status { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; font-weight: 650; }
.status::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--muted); }
.status.is-open::before { background: var(--live); }
.sample { margin-top: 0.9rem; max-width: 34rem; }

.hours { margin-top: 1rem; border-collapse: collapse; font-size: 0.95rem; min-width: 15rem; }
.hours caption { text-align: left; font-weight: 650; margin-bottom: 0.35rem; color: var(--ink); }
.hours th, .hours td { text-align: left; padding: 0.2rem 1.5rem 0.2rem 0; font-weight: 400; color: var(--ink2); font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { color: var(--ink); font-weight: 700; }
.today-tag { font-size: 0.8rem; font-weight: 650; color: var(--orange-text); margin-left: 0.4rem; }

.allergy { margin-block: 1.25rem 0.75rem; }
.category { margin-top: 1.75rem; }
.category h2 { margin-bottom: 0.75rem; }
.dishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }

.dish { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.9rem; padding: 0.75rem; align-items: start; }
.dish.no-picture { grid-template-columns: 1fr; padding: 1rem; }
@media (min-width: 36rem) { .dish { grid-template-columns: 8.5rem 1fr; } }
.dish-top { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary { color: var(--ink2); font-size: 0.95rem; margin: 0.3rem 0 0; }
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.5rem;
  font-size: 0.85rem; font-weight: 650; color: var(--ink);
  background: var(--notice); border: 1px solid var(--border); border-radius: 6px; padding: 0.15rem 0.5rem;
}
.dish.out .dish-name, .dish.out .price { color: var(--ink2); }

.thumb {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; background: var(--tile);
  aspect-ratio: 450 / 340; overflow: hidden; font: inherit; color: inherit;
}
button.thumb { cursor: pointer; transition: transform var(--dur-ui) var(--ease); }
button.thumb:active { transform: scale(0.98); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb .thumb-label {
  position: absolute; left: 0.35rem; bottom: 0.35rem; pointer-events: none;
  background: rgb(23 21 18 / 0.82); color: #FFFFFF; font-size: 0.75rem; font-weight: 700;
  padding: 0.15rem 0.45rem; border-radius: 6px;
}

/* A dish in 3D: a dialog over the menu, holding Google's model-viewer. */
.dish3d {
  width: min(34rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 1rem; overflow: auto;
  background: var(--card); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius);
}
.dish3d::backdrop { background: rgb(23 21 18 / 0.6); }
.dish3d-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.dish3d-head h2 { margin: 0; }
.dish3d-stage { aspect-ratio: 1; border-radius: 10px; background: var(--tile); overflow: hidden; }
.dish3d-stage model-viewer { display: block; width: 100%; height: 100%; background: transparent; }
.dish3d-stage model-viewer .btn { position: absolute; right: 0.6rem; bottom: 0.75rem; }
.dish3d-stage a, .dish3d-stage a img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dish3d-keys { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.dish3d-keys[hidden] { display: none; }
.dish3d-keys .key { width: auto; padding: 0 0.8rem; white-space: nowrap; font: inherit; font-size: 0.9rem; font-weight: 650; }
.dish3d-note { margin: 0.75rem 0 0; color: var(--ink2); font-size: 0.95rem; }
.dish3d-small { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.85rem; }

.state { padding-block: 2rem; }
.state p { color: var(--ink2); }
.state .btn { margin-top: 1rem; }

/* Loading skeleton: fixed heights so the real header does not push content around. */
.sk { background: var(--border); border-radius: 8px; }
.sk-title { height: 2.4rem; width: 60%; }
.sk-line { height: 1rem; width: 40%; margin-top: 0.75rem; }
.sk-line.short { width: 28%; }
.sk-dish { height: 6.5rem; border-radius: var(--radius); }

/* Legal pages */
.legal h1 { margin-bottom: 0.25rem; }
.legal h2 { margin-top: 2rem; margin-bottom: 0.4rem; }
.legal p, .legal li { color: var(--ink2); }
.legal ul { padding-left: 1.2rem; }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--border); padding: 0.45rem 0.5rem 0.45rem 0; vertical-align: top; }

/* Motion. Only runs when the visitor has not asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise var(--dur-reveal) var(--ease) both; }
  .reveal-2 { animation-name: rise-short; animation-delay: 80ms; }
  .reveal-3 { animation-name: press-in; animation-delay: 160ms; }
  .viewer.reveal { animation-name: settle; animation-delay: 120ms; }
  .sk { animation: pulse calc(var(--dur-reveal) * 2) var(--ease) infinite alternate; }
  .dish3d[open] { animation: rise-short var(--dur-ui) var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .key, .chip, button.thumb, .site-nav a { transition: none; }
  .btn:hover, .btn:active, .key:hover, .key:active, button.thumb:active { transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes rise-short { from { opacity: 0; transform: translateY(10px); } }
@keyframes press-in { from { opacity: 0; transform: scale(0.98); } }
@keyframes settle { from { opacity: 0; transform: scale(0.96); filter: blur(8px); } }
@keyframes pulse { to { opacity: 0.55; } }
