/* =========================================================================
   mentrox.ai — Pasture world
   Implements docs/mentrox/2026-08-22-DESIGN-SPEC.md against the codex
   (FIELD-GUIDE-v1.0.md). Every colour below is measured — the ratios are in
   docs/mentrox/2026-08-22-pasture-color-evidence.md and re-measured against
   this file by docs/mentrox/site-assets/color.py.

   Two findings govern the palette and are not stylistic preferences:
     F-1  a hay-gold keyline cannot reach 3:1 on cream — the die-cut edge is
          bark-brown #877349 (3.74:1).
     F-2  terracotta and hay collapse to one olive under deuteranopia, which
          the founder has. So hay is texture, never signal, and only `done`
          carries a hue (blue). Rolled and split are ink + glyph + label.

   No hex value appears outside the token blocks (design brief §8.4).
   ========================================================================= */

/* ---------------------------------------------------------------- fonts
   Self-hosted OFL, Latin subsets, 216 KB total. See fonts/README.md.       */
@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-var-latin.woff2") format("woff2-variations");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plex-sans-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/plex-sans-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plex-mono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/plex-mono-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/archivo-black-400-latin.woff2") format("woff2");
}

/* --------------------------------------------------------------- tokens */
:root {
  /* Pasture, light — the daylight world */
  --field: #F2E7D0;
  --plate: #FCF6E9;
  --paper: #FBFAF5;
  --on-paper: #2A241A;   /* paper is theme-invariant, so its ink is too */
  --ink: #221D15;
  --muted: #6B6152;
  --keyline: #877349;
  --action: #A8431C;
  --on-action: #FFFFFF;
  --hay: #A87413;
  --status-done: #005B8F;
  --status-neutral: #4F4638;
  --vinyl: #111324;
  --on-vinyl: #FBFAF5;

  /* shadows: the hard offset is what reads as "stuck on"; the soft one is air */
  --shadow-stk: drop-shadow(0 9px 0 rgba(0, 0, 0, .20)) drop-shadow(0 18px 40px rgba(3, 6, 22, .35));
  --shadow-stk-sm: drop-shadow(0 5px 0 rgba(0, 0, 0, .18)) drop-shadow(0 11px 24px rgba(3, 6, 22, .30));
  --shadow-btn: 0 6px 0 rgba(0, 0, 0, .22), 0 13px 28px rgba(3, 6, 22, .26);
  --shadow-btn-hover: 0 9px 0 rgba(0, 0, 0, .22), 0 18px 34px rgba(3, 6, 22, .30);

  /* type scale — 16 px base, major third */
  --t12: 0.75rem;
  --t14: 0.875rem;
  --t16: 1rem;
  --t20: 1.25rem;
  --t25: 1.5625rem;
  --t31: 1.9375rem;
  --t39: 2.4375rem;
  --t49: 3.0625rem;
  --t61: 3.8125rem;

  --font-display: "Fraunces Variable", Fraunces, Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-vinyl: "Archivo Black", "Arial Black", Impact, sans-serif;

  /* 8 pt grid */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s6: 3rem;
  --s8: 4rem;
  --s12: 6rem;

  --wrap: 46rem;
  --stage: 74rem;
  --radius: 3px;
  color-scheme: light dark;
}

/* Dark pair. Defined for the system default AND for an explicit toggle, so a
   colour never has its only definition inside a media query. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --field: #171410;
    --plate: #221D17;
    --ink: #F1E7D3;
    --muted: #B3A68F;
    --keyline: #7A6D55;
    --action: #E08A55;
    --on-action: #2A1206;
    --hay: #C08A1E;
    --status-done: #7FC4EE;
    --status-neutral: #B3A68F;
  }
}
:root[data-theme="dark"] {
  --field: #171410;
  --plate: #221D17;
  --ink: #F1E7D3;
  --muted: #B3A68F;
  --keyline: #7A6D55;
  --action: #E08A55;
  --on-action: #2A1206;
  --hay: #C08A1E;
  --status-done: #7FC4EE;
  --status-neutral: #B3A68F;
}

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

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

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t16);
  line-height: 1.5;
  overflow-x: hidden;
  /* the ground carries a faint flat grain — no gradient, no texture image */
  background-image:
    radial-gradient(circle at 20% 12%, rgba(135, 115, 73, .05) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 58%, rgba(135, 115, 73, .04) 0 1px, transparent 1px);
  background-size: 23px 23px, 31px 31px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--action); color: var(--on-action); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--field);
  padding: var(--s1) var(--s2);
  font-family: var(--font-mono);
  font-size: var(--t14);
  z-index: 50;
}
.skip-link:focus { left: var(--s2); top: var(--s2); }

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

.wrap {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
}

/* mono label: the product's own voice for data and system text */
.label {
  font-family: var(--font-mono);
  font-size: var(--t12);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- header */
.site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--keyline) 55%, transparent);
}
.site-header .wrap {
  width: min(var(--stage), 100% - 2.5rem);
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-block: var(--s3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand .mark { width: 34px; height: 29px; color: var(--ink); flex: 0 0 auto; }
.wordmark {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-weight: 600;
  font-size: var(--t25);
  letter-spacing: -0.01em;
  line-height: 1;
}

.site-nav {
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.site-nav a {
  font-family: var(--font-mono);
  font-size: var(--t12);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--hay); }
.site-nav .sep { color: var(--keyline); font-size: var(--t12); }

/* -------------------------------------------------------------- buttons */
/* Primary — a sticker. Resting tilt, hard offset, straightens on hover. */
.stk-btn {
  display: inline-block;
  font-family: var(--font-vinyl);
  font-size: var(--t14);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-action);
  background: var(--action);
  border: 2px solid var(--keyline);
  border-radius: 10px;
  padding: 0.9rem 1.35rem;
  box-shadow: var(--shadow-btn);
  transform: rotate(-1deg);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
  min-height: 44px;
}
.stk-btn:hover,
.stk-btn:focus-visible {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--shadow-btn-hover);
}
.stk-btn:active { transform: rotate(0deg) translateY(1px); box-shadow: var(--shadow-btn); }
.stk-btn.sm { font-size: var(--t12); padding: 0.7rem 1rem; }

/* Secondary — outline, no fill, no accent */
.btn-2:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s2);
  margin-top: var(--s4);
}
/* the centred hero centres its CTA; everywhere else the row is left-aligned
   with its note, like the rest of the section it sits in */
.hero-inner .cta-row { align-items: center; }
.btn-note {
  font-size: var(--t14);
  color: var(--muted);
  max-width: 34rem;
}

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding-block: var(--s8) var(--s6);
  overflow: hidden;
}
.hero-stage {
  position: relative;
  width: min(var(--stage), 100% - 2.5rem);
  margin-inline: auto;
}
.hero-inner {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

/* the character */
.hero-figure {
  margin: 0 auto var(--s4);
  width: min(19rem, 62vw);
}
.hero-figure img {
  width: 100%;
  filter: var(--shadow-stk);
}
.plate-label { color: var(--on-paper); }

/* edge stickers — two per side, centre column stays clear */
.edge {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.edge img { filter: var(--shadow-stk-sm); }
.edge-tl { top: 1rem;    left: 0;    width: 11rem; transform: rotate(-4deg); }
.edge-ml { top: 21rem;   left: 1rem; width: 10rem; transform: rotate(3deg); }
.edge-tr { top: 2.5rem;  right: 0;   width: 8.5rem; transform: rotate(3.5deg); }
.edge-mr { top: 22rem;   right: .5rem; width: 11rem; transform: rotate(-3deg); }

h1 {
  font-size: clamp(var(--t31), 6.4vw, var(--t61));
}
h1 .line { display: block; }
h1 .line-3 { color: var(--action); }

.lead {
  font-size: var(--t20);
  color: var(--ink);
  margin: var(--s3) 0 0;
  max-width: 34rem;
}
/* only the centred index hero centres its lead; elsewhere an auto margin
   reads as an accidental indent against a left-aligned headline */
.hero-inner .lead { margin-inline: auto; }

/* the channel line under the lead: quieter than the pitch, because it is a
   fact about delivery rather than a claim — but centred with everything else */
.lead-channel {
  margin: var(--s2) auto 0;
  max-width: 34rem;
  font-size: var(--t16);
  color: var(--muted);
}

.fineprint {
  margin: var(--s4) auto 0;
  font-size: var(--t14);
  color: var(--muted);
  max-width: 32rem;
}

/* six single-stroke grass blades, three per side, at fineprint level */
.grass {
  display: block;
  margin: var(--s3) auto 0;
  width: min(30rem, 90%);
  height: 34px;
  color: var(--keyline);
}

/* --------------------------------------------------- ledger strip (R1) */
/* No character in this section — a rolled block never sits next to a joke. */
.ledger-section {
  padding-block: var(--s6);
  border-top: 1px solid color-mix(in srgb, var(--keyline) 55%, transparent);
  background: var(--plate);
}
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.ledger caption {
  font-family: var(--font-mono);
  font-size: var(--t12);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding-bottom: var(--s2);
}
.ledger tbody tr + tr th,
.ledger tbody tr + tr td {
  border-top: 1px solid color-mix(in srgb, var(--keyline) 40%, transparent);
}
.ledger th,
.ledger td {
  padding-block: var(--s2);
  text-align: left;
  font-weight: 400;
  vertical-align: middle;
}
.ledger .c-title {
  font-family: var(--font-mono);
  font-size: var(--t12);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  width: 12rem;
  white-space: nowrap;
}
.ledger .c-title .t {
  display: block;
  color: var(--muted);
  letter-spacing: 0.14em;
}
.ledger .c-bar { width: auto; }
.ledger .c-status {
  width: 8.5rem;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: var(--t12);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--status-neutral);
}
.ledger .c-status svg {
  width: 11px;
  height: 11px;
  margin-right: 0.5rem;
  vertical-align: -1px;
}
.ledger .c-status .g-done { color: var(--status-done); }

/* bars: every row the same length; the FILL is what happened */
.bar {
  display: block;
  height: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transform-origin: left center;
}
.bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(var(--fill, 0));
  transform-origin: left center;
}
.bar-done { --fill: 1; }
.bar-split { --fill: .5; }
.bar-rolled { --fill: 0; }
.bar-split::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  bottom: -1px;
  border-left: 1.5px solid var(--ink);
}
.bar-rolled::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-top: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
}

/* ------------------------------------------------------------- sections */
main > section {
  padding-block: var(--s8);
  border-top: 1px solid color-mix(in srgb, var(--keyline) 55%, transparent);
}
main > section.band { background: var(--plate); }
main > section:first-child { border-top: 0; }

h2 {
  font-size: clamp(var(--t25), 3.6vw, var(--t39));
  margin-bottom: var(--s3);
}

section p + p { margin-top: var(--s2); }
section .lead + p { margin-top: var(--s3); }
section p { max-width: 40rem; }

/* "How it works" is the one genuinely ordered thing on the page — night, then
   morning, then the day, then night again, then weeks. So it is drawn as the
   sequence it is: a spine with a mark per beat. The labels were already times
   of day; the timeline just stops making the reader infer the order from five
   identically-weighted paragraphs. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s4);
}
.steps > li {
  max-width: 40rem;
  position: relative;
  padding-left: var(--s4);
}
/* the spine, drawn per-item so it stops cleanly at the last mark */
.steps > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 1.15em;
  bottom: calc(-1 * var(--s4));
  width: 1px;
  background: color-mix(in srgb, var(--keyline) 65%, transparent);
}
.steps > li:last-child::before { content: none; }
.steps > li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: calc(0.62em - 3px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--keyline);
}
.steps strong {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--t12);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.steps em, section em { font-style: italic; }

/* Four claims, not four cards and not four accent stripes. A hairline between
   them and the claim itself set in the display face: the hierarchy comes from
   the type, which is the only thing here that should be carrying it. */
.plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s4);
}
.plain > li {
  max-width: 42rem;
  padding-top: var(--s4);
  /* 32% measured 1.43:1 — a separator nobody can see is not a separator.
     The keyline is the token that already passes on both grounds. */
  border-top: 1px solid color-mix(in srgb, var(--keyline) 70%, transparent);
}
.plain > li:first-child { padding-top: 0; border-top: 0; }
.plain > li > strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t20);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.followup { margin-top: var(--s3); color: var(--muted); font-size: var(--t14); }
.followup a, section p a { color: var(--ink); text-decoration-color: var(--keyline); text-underline-offset: 3px; }

/* --------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--keyline) 55%, transparent);
  padding-block: var(--s6);
  color: var(--muted);
  font-size: var(--t14);
}
.site-footer .wrap { display: grid; gap: var(--s1); }
.site-footer a { text-decoration-color: var(--keyline); text-underline-offset: 3px; }
.footer-mark { width: 26px; height: 22px; color: var(--keyline); margin-bottom: var(--s1); }

/* ------------------------------------------------------ plain pages (R0) */
/* privacy / terms read as documents: no character, no accent, no motion. */
.doc main > section { border-top: 0; padding-block: var(--s6); }
.doc h1 { font-size: clamp(var(--t31), 5vw, var(--t49)); margin-bottom: var(--s2); }
.doc h2 { font-size: var(--t25); margin-top: var(--s6); }
.doc h3 { font-size: var(--t20); margin-top: var(--s4); }
.doc p, .doc li { max-width: 40rem; }
.doc ul { padding-left: var(--s3); display: grid; gap: var(--s1); }
.doc .meta { color: var(--muted); font-family: var(--font-mono); font-size: var(--t12); letter-spacing: .1em; }

.center { text-align: center; }
.narrow { width: min(34rem, 100% - 2.5rem); }

/* the page tag beside the wordmark (start / privacy / terms) */
.tag {
  font-family: var(--font-mono);
  font-size: var(--t12);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: auto;
}
.subtle { color: var(--muted); font-size: var(--t14); margin-top: var(--s1); }

/* hand-drawn emphasis under a headline phrase (Track A hero) */
.hl { position: relative; white-space: nowrap; color: var(--action); }
.hl svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18em;
  width: 100%;
  height: 0.22em;
  color: var(--action);
  overflow: visible;
}

main.error { padding-block: var(--s8); }

/* ---------------------------------------------------------- 404 page (R2) */
.error-figure { width: min(15rem, 55vw); margin: 0 auto var(--s4); }
.error-figure img { filter: var(--shadow-stk-sm); transform: rotate(-2deg); }

/* --------------------------------------------------------------- motion
   Codex R4 sticker grammar: peel on at load, straighten on hover, one
   ambient character, one-shot draw-ins. Nothing loops but the ambient.    */
@keyframes peel-in {
  from { opacity: 0; transform: rotate(-6deg) scale(.92); }
  to   { opacity: 1; transform: rotate(var(--rest, 0deg)) scale(1); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
/* Draws to the row's OWN fill, never to full. A draw-in that ends at 100%
   would report every block as done — the one thing this strip must not do. */
@keyframes bar-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(var(--fill, 0)); }
}
/* the one ambient idle on the hero character (see the build report for why
   this is a sway and not the ear flick the spec sketched) */
@keyframes hero-idle {
  0%, 88%, 100% { transform: rotate(0deg); }
  92%           { transform: rotate(-0.5deg); }
  96%           { transform: rotate(0.3deg); }
}

.js .peel { opacity: 0; }
.js .peel.in { animation: peel-in 500ms cubic-bezier(.22, 1.2, .36, 1) both; }
.js .reveal { opacity: 0; }
.js .reveal.in { animation: fade-up 300ms ease-out both; }
.js .bar.in::before { animation: bar-draw 600ms cubic-bezier(.3, .9, .3, 1) both; }
.js .hero-figure picture { display: block; }
.js .hero-figure.in picture { animation: hero-idle 9s ease-in-out 900ms infinite; }

.edge-tl { --rest: -4deg; }
.edge-ml { --rest: 3deg; }
.edge-tr { --rest: 3.5deg; }
.edge-mr { --rest: -3deg; }

/* ----------------------------------------------------------- responsive */
@media (max-width: 1023px) {
  /* tablet keeps two edge stickers, one per side */
  .edge-ml, .edge-mr { display: none; }
  .edge-tl { width: 8rem; top: 2rem; }
  .edge-tr { width: 6.5rem; top: 3rem; }
}

@media (max-width: 640px) {
  :root { --s8: 3rem; --s12: 4rem; }
  .edge { display: none; }
  .hero { padding-block: var(--s6) var(--s4); }
  .hero-figure { width: min(15rem, 60vw); }
  .site-header .wrap { flex-wrap: wrap; justify-content: center; row-gap: var(--s2); }
  .site-nav { order: 3; width: 100%; margin-inline: 0; }
  .lead { font-size: var(--t16); }

  /* ledger rows stack: title above, bar + status below */
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; width: auto; }
  .ledger tbody tr { padding-block: var(--s2); }
  .ledger tbody tr + tr { border-top: 1px solid color-mix(in srgb, var(--keyline) 40%, transparent); }
  .ledger tbody tr + tr th, .ledger tbody tr + tr td { border-top: 0; }
  .ledger th, .ledger td { padding-block: 0.35rem; }
  .ledger .c-title { width: auto; }
  /* the 0.18em tracking breaks this caption over three lines at 390 px */
  .ledger caption { letter-spacing: 0.1em; }
  .ledger .c-title .t { display: inline; margin-left: 0.6rem; }
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .js .peel, .js .reveal { opacity: 1; }
  .js .peel.in, .js .reveal.in, .js .bar.in::before, .js .hero-figure.in picture { animation: none; }
  .bar::before { transform: scaleX(var(--fill, 0)); }
  .stk-btn { transition: none; }
  .stk-btn:hover, .stk-btn:focus-visible { transform: rotate(-1deg); box-shadow: var(--shadow-btn); }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------- printing */
@media print {
  .site-header, .site-footer, .edge, .grass, .cta-row { display: none; }
  /* every colour below re-derives from the tokens, so printing from a machine
     in OS dark mode would otherwise put cream ink on white paper */
  :root, :root[data-theme="dark"] {
    --field: #fff; --ink: #000; --muted: #444; --keyline: #877349;
  }
  body { background: #fff; color: #000; }
}
