/* Stet's own values. tokens.css gives them the app's roles. */

/* The faces — IBM Plex, variable, Roman + Italic each (Plex ships italic as a
   second file, not an axis). The woff2 files sit in assets/fonts/plex/,
   with the OFL; the weight axis is 100–700 for all three families. */
@font-face { font-family: "IBM Plex Sans";  src: url("fonts/IBMPlexSansVar-Roman.woff2") format("woff2");   font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans";  src: url("fonts/IBMPlexSansVar-Italic.woff2") format("woff2");  font-weight: 100 700; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("fonts/IBMPlexSerifVar-Roman.woff2") format("woff2");  font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("fonts/IBMPlexSerifVar-Italic.woff2") format("woff2"); font-weight: 100 700; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono";  src: url("fonts/IBMPlexMonoVar-Roman.woff2") format("woff2");   font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono";  src: url("fonts/IBMPlexMonoVar-Italic.woff2") format("woff2");  font-weight: 100 700; font-style: italic; font-display: swap; }

:root {
  --paper: #fafaf8;
  --ink: #1c1c1b;
  --ink-strong: #0f0f0e;
  --muted: #5e5e5b;
  --faint: #9c9c96;
  --idea-ink: var(--muted);
  --panel: #f1f1ee;
  --hairline: #e4e4e0;

  --whisper: #b5651d;
  --whisper-underline: rgb(181 101 29 / 38%);
  --whisper-wash: rgb(181 101 29 / 42%);
  --whisper-selection: rgb(181 101 29 / 14%);

  --red: #a8402f;
  --green: #2e7b4e;

  --hue-slate: #5b7c99;
  --hue-moss: #6e8e62;
  --hue-violet: #8b6b93;
  --hue-ochre: #a8873a;
  --hue-teal: #4a8b84;
  --hue-umber: #8a6a50;

  --face-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --face-serif: "IBM Plex Serif", Charter, "Iowan Old Style", Georgia, serif;
  --face-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --page-size: 17px;
  --page-leading: 1.75;
  --code-size: 0.85em;
  --title-weight: 650;
  --title-tracking: -0.018em;

  --duration: 120ms;

  --panel-lift: 0 2px 10px -6px rgba(0,0,0,.14);
  --panel-radius-min: 5px;
  --panel-radius-max: 9px;
  --measure: 48rem;
}

[data-theme="dark"] {
  --paper: #181613;
  --ink: #d8d3c8;
  --ink-strong: #eee9dd;
  --muted: #bcb7ab;
  --faint: #605b50;
  --idea-ink: #8e897e;
  --panel: #211e1a;
  --hairline: #2e2a23;

  --whisper: #cda36c;
  --whisper-underline: rgb(205 163 108 / 35%);
  --whisper-wash: rgb(205 163 108 / 18%);
  --whisper-selection: rgb(205 163 108 / 15%);

  --red: #ec9d8b;
  --green: #7cc79a;

  --panel-lift: 0 3px 14px -6px rgba(0,0,0,.8);
}

/* Written by onboarding-page/scripts/build.mjs from the [data-theme="dark"] block above. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --paper: #181613;
  --ink: #d8d3c8;
  --ink-strong: #eee9dd;
  --muted: #bcb7ab;
  --faint: #605b50;
  --idea-ink: #8e897e;
  --panel: #211e1a;
  --hairline: #2e2a23;

  --whisper: #cda36c;
  --whisper-underline: rgb(205 163 108 / 35%);
  --whisper-wash: rgb(205 163 108 / 18%);
  --whisper-selection: rgb(205 163 108 / 15%);

  --red: #ec9d8b;
  --green: #7cc79a;

  --panel-lift: 0 3px 14px -6px rgba(0,0,0,.8);
  color-scheme: dark;
  }
}
