/* The desk's type and surface tokens, in one place.
 *
 * Loaded AFTER each page's own <style>, so these win on equal specificity and
 * a page keeps everything it declares except the handful of values below.
 * Direction D from the 2026-09-20 design study: the palette does not change,
 * the manners do.
 *
 * Three habits made the terminal read as dense rather than as considered:
 *
 *   1. a condensed face doing the work of a display face, at every size
 *   2. mono with .16em letter-spacing as the default voice rather than the
 *      label voice
 *   3. a 1px border around nearly every element, so nothing grouped and
 *      nothing separated
 *
 * This file fixes 1 and 3 through tokens alone, which means no markup moves
 * and no layout changes. Habit 2 is per-rule and lives in the pages.
 *
 * Deliberately NOT changed: --bg, --amber, --up, --down, --cyan, --ink,
 * --muted, --faint. The palette is the brand and it stays exactly as it is.
 *
 * Archivo is a real display face with a condensed-adjacent feel, which
 * Bahnschrift was standing in for. Bahnschrift ships with Windows and is
 * absent on macOS, iOS and most Linux, so the terminal has been rendering
 * in Arial Narrow or worse for a good share of operators since day one.
 * This fixes that too.
 */

/* Archivo, self-hosted.
 *
 * NOT from Google Fonts: the content security policy enforced 2026-09-20 is
 * style-src 'self' and font-src 'self' data:, so a fonts.googleapis.com
 * stylesheet and a fonts.gstatic.com font file would both be refused by the
 * browser and the page would silently fall back. Self-hosting keeps the
 * policy tight, removes a third-party request from every page load, and is
 * faster. 68KB for both subsets, one variable file each, weight 100 to 900.
 *
 * SIL Open Font License 1.1 (Omnibus-Type). See static/fonts/OFL.txt.
 */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/archivo-latin.woff2?v=1") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/archivo-latin-ext.woff2?v=1") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* the faces */
  --cond: "Archivo", "Archivo Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Archivo", system-ui, "Segoe UI", sans-serif;
  /* --mono stays whatever the page set: figures want the page's own stack */

  /* softer corners: 3px reads as technical, 6px reads as chosen */
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 10px;
  --radius-tight: 4px;

  /* lower-contrast rules. Same hue family, less shout. A border should
     separate things that need separating, not outline everything. */
  --line: #151B24;
  --line2: #1E2634;
}

/* Archivo carries more weight than Bahnschrift at the same nominal size, so
   the display sizes come back a touch and the tracking opens up. Condensed
   uppercase at .095em was set for a narrow face; on Archivo it reads as
   shouting. */
.pagehead h1,
h1.pt {
  letter-spacing: -0.02em !important;
  font-weight: 700;
}

/* Micro-labels keep their mono voice and lose a third of their tracking:
   .16em was set when the label WAS the design. */
.lbl,
.phead,
.tile .l,
.cfi .l,
.card h4 {
  letter-spacing: 0.11em;
}

/* Panels group by surface and spacing. A panel inside a panel does not need
   a second border to say so. */
.panel .panel,
.card .card {
  border-color: transparent;
}

/* Focus stays loud. Softening borders must never soften the focus ring. */
:focus-visible {
  outline: 2px solid rgba(240, 168, 60, 0.55);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
