/* STATIC's shared theme (2026-11-18): the colors, fonts and sizes every page uses — STATIC's app,
   Rachel's app (/r/), Desi's page (/d/) and the front page. Each page's own CSS only adds what is
   special to it. Light is on bare :root; dark follows the device unless data-theme picks one.
   Pure white is allowed (Jacob's call). Font paths are relative to this file, so /r/ and /d/ can share it. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap;
             src: url("vendor/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap;
             src: url("vendor/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap;
             src: url("vendor/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap;
             src: url("vendor/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }

:root {
  /* surfaces */
  --rack: #EEF1F2;      /* page background */
  --panel: #FFFFFF;     /* cards, bars, inputs */
  --panel-2: #E3E8EA;   /* secondary buttons, pressed rows */
  --line: #C9D1D5;      /* borders and dividers */
  /* text */
  --ink: #182026;       /* main text */
  --steel: #4F5B63;     /* second-level text, labels (7:1 on white) */
  /* the one accent, and red for errors / delete */
  --cat6: #2369B8; --on-cat6: #FFFFFF;
  --live: #C93C35; --on-live: #FFFFFF;
  /* status: always paired with a shape, never color alone */
  --ok: #1F7A50; --ok-bg: #E2F4EA;
  --warn: #9A6700; --warn-bg: #FFF4D6;
  --bad-bg: #FDE7E5;
  /* the label-maker strip, same in both themes */
  --tape: #F2F0E6; --on-tape: #182026;
  --scrim: rgba(24, 32, 38, 0.4);
  --float: 0 10px 32px rgba(24, 32, 38, 0.18);

  /* fonts: Barlow to read, Barlow Condensed for labels and the app name */
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --narrow: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  /* type scale (standard size) */
  --t-label: 13px; --t-small: 14px; --t-body: 16px; --t-lead: 18px; --t-h2: 24px; --t-h1: 32px;
  /* three corner sizes, each with a job; pills are only for status chips */
  --r-control: 6px; --r-box: 10px; --r-sheet: 14px; --r-pill: 999px;
  /* spacing steps */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --tap: 44px;          /* smallest tap target */
  color-scheme: light;
}

/* dark: slate, not black */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rack: #1A2026; --panel: #232B32; --panel-2: #2C363E; --line: #3C4852;
    --ink: #E8ECEE; --steel: #A3AEB6;
    /* white is only 3.5:1 on the dark blue, so dark ink on buttons */
    --cat6: #3F8CDB; --on-cat6: #0E1418; --live: #E5534B; --on-live: #0E1418;
    --ok: #3FB27F; --ok-bg: #1F3A2D; --warn: #F4D35E; --warn-bg: #3A3420; --bad-bg: #3D2423;
    --scrim: rgba(8, 11, 14, 0.6); --float: 0 10px 32px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --rack: #1A2026; --panel: #232B32; --panel-2: #2C363E; --line: #3C4852;
  --ink: #E8ECEE; --steel: #A3AEB6;
  --cat6: #3F8CDB; --on-cat6: #0E1418; --live: #E5534B; --on-live: #0E1418;
  --ok: #3FB27F; --ok-bg: #1F3A2D; --warn: #F4D35E; --warn-bg: #3A3420; --bad-bg: #3D2423;
  --scrim: rgba(8, 11, 14, 0.6); --float: 0 10px 32px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* large size: same colors, bigger text and targets (Rachel's app) */
.size-large {
  --t-label: 15px; --t-small: 17px; --t-body: 20px; --t-lead: 22px; --t-h2: 26px; --t-h1: 32px;
  --tap: 56px;
}
