/* Pocket Press / Tuck. Mint, forest ink, warm paper. System fonts only. */
:root {
  color-scheme: light;
  --background: #f7f5e9;
  --foreground: #243f33;          /* cool ink */
  --card: #fffdf5;                /* cool grey: strips, ledger head, footer */
  --card-foreground: #243f33;
  --muted: #e7ecdc;               /* selected row wash, hover fills, an unpicked slide */
  --muted-foreground: #5c6b5e;
  --plate: #eef0e3;               /* the light table the slides lie on */
  --primary: #294f3d;             /* taken from the product mark; the only accent */
  --primary-foreground: #fffdf4;
  --primary-hover: #203e30;
  --border: #d8ddcb;
  --rule: #294f3d;                /* selection, always ink, never the accent */
  --rule-foreground: #fffdf4;
  --ring: var(--primary);
  --slide: #ffffff;               /* the page itself; a page is light in either theme */
  --slide-foreground: #5c6b5e;    /* the page number in the corner */
  --slide-head: #7d8894;          /* drawn heading line */
  --slide-line: #aab5be;          /* drawn body lines */
  --slide-block: #d2d9df;         /* drawn figure */
  --slide-tick: #294f3d;          /* accent-color of the checkbox lying on a slide */
  --shadow-raised: 0 1px 2px rgb(19 24 29 / .16);
  --shadow: 0 6px 16px -8px rgb(19 24 29 / .38);
  --radius: 16px;
  --radius-sm: 9px;
  --radius-xs: 6px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --text-lg: 15px;
  --text-base: 14px;
  --text-num: 13px;
  --text-sm: 12px;
  --text-xs: 11px;
  --text-mono: 11px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --strip-top: 48px;
  --strip-bottom: 60px;
  --ledger: 360px;
  --row: 44px;
  --head-row: 32px;
  --col-pages: 48px;
  --col-state: 58px;
  --btn-h: 36px;
  --target-min: 44px;
  --target-compact: 24px;
  --icon: 16px;
  --border-width: var(--hair);
  --chip-h: 34px;
  --field-num: 64px;
  --field-range: 208px;
  --mark: 20px;
  --mark-radius: 5px;
  --check: 14px;
  --slide-w: 120px;
  --slide-ratio: 5 / 7;
  --slide-pad-t: 20px;
  --slide-pad-b: 18px;
  --slide-pad-x: 11px;
  --target-w: 260px;
  --track-h: 4px;
  --thumb: 16px;
  --slider-w: 180px;
  --hair: 1px;
  --duration-fast: 120ms;
  --duration-slide: 180ms;
  --duration-max: 300ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* @pair --foreground on --background */
/* @pair --card-foreground on --card */
/* @pair --muted-foreground on --background */
/* @pair --muted-foreground on --card */
/* @pair --primary-foreground on --primary */
/* @pair --destructive-foreground on --destructive */
/* @pair --primary on --primary-muted */
/* @pair --primary on --background */

/* @pair --ok on --background */
/* @pair --warning-foreground on --background */

/* One frame at a time (owner rule 10.09): every focusable control draws its ring ON the border,
   never outside it; nothing falls back to the browser ring. Product rules may override. */
:where(input, select, textarea, button, [tabindex]):focus-visible {
  outline: var(--outline-width, 2px) solid var(--ring, currentColor);
  outline-offset: calc(-1 * var(--border-width, 1px));
}

:where(input, select, textarea)[aria-invalid='true']:focus-visible {
  outline-color: var(--destructive, currentColor);
}

/* Used only when the product tokens.css has no prefers-color-scheme block. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #14171b;
    --foreground: #e6e9ee;
    --card: #1c2027;
    --card-foreground: #e6e9ee;
    --muted: #262b33;
    --muted-foreground: #9aa3ae;
    --border: #333a44;
    --primary-foreground: #0a1b33;
  }
}
