/* The public look of studio.archival.la: the one copy of the fonts, colours, sizes and motion (audit D1, Nov 18 2026).
   Every public page links this file first: the studio page, the Location Guide, Updates, and the pages the server
   writes (api/_studio-mail.js page()). Emails can't load a stylesheet, so api/_tokens.js keeps their copy of these
   values, and scripts/test-tokens.js fails when the two disagree or a page types a colour of its own.
   What each token is for: design/system/DESIGN.md. Dark follows the OS setting. */

/* Fonts: one typeface across archival.la and studio.archival.la (Colin, Nov 18): Inter for text (SIL Open Font
   License, the variable latin file), Necto Mono for times, dates and labels, the pair archival.la uses. Self-hosted. */
@font-face{font-family:'Inter';src:url(/fonts/inter-latin-wght.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Necto Mono';src:url(/fonts/necto-mono-regular.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap}

::backdrop,:root{
  color-scheme:light dark;
  /* type */
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'SF Pro Text',sans-serif;
  --mono:'Necto Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  /* colour */
  --paper:#fafaf7;--paper-2:#efeee8;--ink:#111110;--ink-muted:#5e5e58;
  --rule:rgba(17,17,16,.22);--rule-soft:rgba(17,17,16,.12);
  --glass:rgba(250,250,247,.66);--glass-line:rgba(17,17,16,.08);--glass-hi:rgba(255,255,255,.7);
  --pill-on:rgba(17,17,16,.12);--wm:none;
  --shadow:0 1px 2px rgba(17,17,16,.04),0 12px 32px rgba(17,17,16,.12);--scrim:rgba(17,17,16,.42);
  --accent:#1b4f8b;--on-accent:#fafaf7;--accent-text:#1b4f8b;
  --track:rgba(17,17,16,.14);--c-am:#c26a30;--c-mid:#a87e0a;--c-pm:#7651c4;
  --danger:#b3261e;--on-danger:#fafaf7;
  /* the gate (Nov 18): the night photo's own dark and the light words on it; the same in light and dark mode */
  --night:#14110d;--on-night:#f4f1ea;
  /* email only (api/_tokens.js): the button colour, and a solid hairline for mail apps that drop see-through colours */
  --plum:#1e0a21;--on-plum:#fafaf6;--rule-solid:#dedddb;
  /* desktop scale: the left column of the studio page grows with the window up to this (DESIGN.md, Type) */
  --k-max:1.3px;
  /* shape */
  --r-photo:5px;--r-box:12px;--r-sheet:20px;--r-pill:999px;
  /* pressed: every button, chip, stepper and calendar day shrinks to this (Colin, Nov 19); text links, tabs and icon
     buttons fade to .5 instead */
  --press:.97;
  /* motion: presses 90 ms, controls 160 ms, things that travel (a screen change, a disclosure, the menu opening, the sheet closing) 200 ms, the sheet 280 ms, photos and section changes crossfade over --t-fade, 400 ms, with no cap (Colin, Nov 24); entrances ease out, an exit animation eases in (--ease-exit) and is never longer than its entrance; off under reduced motion (parts.css) */
  --t-press:90ms;--t-control:160ms;--t-move:200ms;--t-sheet:280ms;--t-fade:400ms;--ease-soft:cubic-bezier(.4,0,.2,1);
  --ease-sheet:cubic-bezier(.32,.72,0,1);--ease-rise:cubic-bezier(.2,.8,.2,1);--ease-exit:cubic-bezier(.4,0,1,1);
}
@media (prefers-color-scheme:dark){::backdrop,:root{
  --paper:#252523;--paper-2:#31312e;--ink:#f2f0e8;--ink-muted:#a6a59c;
  --rule:rgba(242,240,232,.24);--rule-soft:rgba(242,240,232,.12);
  --glass:rgba(37,37,35,.62);--glass-line:rgba(242,240,232,.1);--glass-hi:rgba(255,255,255,.08);
  --pill-on:rgba(242,240,232,.18);--wm:invert(1);
  --shadow:0 1px 2px rgba(0,0,0,.2),0 12px 32px rgba(0,0,0,.45);--scrim:rgba(0,0,0,.5);
  --accent:#5e8ac4;--on-accent:#111110;--accent-text:#769ed2;
  --track:rgba(242,240,232,.18);--c-am:#f0a06a;--c-mid:#e8c547;--c-pm:#a98be8;
  --danger:#f08a7e;--on-danger:#111110;
}}
