/* ---- Tokens: one family, one scale, one palette ----
   Shared with the 415 Studios iOS app (2026-11-19). This file is the source
   of truth. style.css opens with a byte-for-byte copy of it so the main pages
   pay for one stylesheet, and tests/tokens.test.mjs fails if the two drift.
   Standalone pages (/crew/*, /get, /studio/web) link this file directly.

   ONE FAMILY: Mona Sans, the face the app is set in (GitHub's open source
   typeface, SIL Open Font License 1.1, fonts/OFL-mona-sans.txt). No script,
   no mono, no display face. Numbers that tick or sit in columns take
   font-variant-numeric: tabular-nums instead of a mono font.

   Body text uses the weight-axis build (200 to 900): 40 KB for Latin, which
   every page preloads, plus a Latin Extended file that only the /studio/
   locale pages fetch (unicode-range). The width axis (75 to 125) is used in
   exactly one place, the 415 STUDIOS wordmark, so the build that carries it
   (98 KB) sits behind its own family name and only downloads on the seven
   pages that show the wordmark. All three files are the unmodified Fontsource
   builds of Mona Sans 2.0. */
@font-face{
    font-family: 'Mona Sans';
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url(/fonts/mona-sans-latinext.woff2) 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;
}
@font-face{
    font-family: 'Mona Sans';
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url(/fonts/mona-sans-latin.woff2) 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: 'Mona Sans Wordmark';
    font-style: normal;
    font-weight: 200 900;
    font-stretch: 75% 125%;
    font-display: swap;
    src: url(/fonts/mona-sans-wdth-latin.woff2) 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;
}
:root{
    --sans: "Mona Sans", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;

    /* ---- Type scale ----
       These sizes and nothing between them. Hierarchy is size and weight
       only: 400 body, 500 labels and list rows, 600 emphasis and headings,
       700 page titles. Body copy
       is 17 on phones and never under 15. 48 and 64 are desktop hero sizes.
       Letter-spacing is 0 on mixed-case text; a short ALL-CAPS tag may take
       --tracking-tag and nothing wider. 10 is for plan tags only (the
       app's ProTag and BetaTag, 1.74): never body, never a label. */
    --t-10: 0.625rem;
    --t-11: 0.6875rem;
    --t-12: 0.75rem;
    --t-13: 0.8125rem;
    --t-15: 0.9375rem;
    --t-16: 1rem;
    --t-17: 1.0625rem;
    --t-20: 1.25rem;
    --t-22: 1.375rem;
    --t-28: 1.75rem;
    --t-34: 2.125rem;
    --t-48: 3rem;
    --t-64: 4rem;
    --tracking-tag: 0.06em;

    /* ---- Colour, by role ----
       The same values as the app. Never a one-off grey, never pure black
       (except behind video) and never pure white. Contrast on --bg:
       ink-1 18.5:1, ink-2 11:1, ink-3 5.9:1. ink-4 is 2.7:1, so it carries
       icons and disabled states only, never text anyone has to read. */
    --bg: #0E0D0B;
    --ink-1: #FAF9F6;          /* primary text */
    --ink-2: #C6C2BB;          /* secondary text */
    --ink-3: #908D87;          /* tertiary text: captions, metadata */
    --ink-4: #5A5752;          /* disabled and icons only */
    --line-1: #2A2824;         /* hairline border */
    --line-2: #4D4A45;         /* strong border: outlines a control */
    --surface-1: #0F0E0C;      /* surfaces, low to high */
    --surface-2: #181714;
    --surface-3: #1C1A16;
    --surface-4: #262420;
    --surface-5: #3D3932;
    /* Amber is the single primary action of a page and nothing else. Dark
       text on it, no outline around it. Never links, headings, icons, borders,
       focus rings or hover states. */
    --signal: #E8A33D;
    /* A text field's border is its only boundary, so WCAG 1.4.11 wants 3:1
       against the page. --line-2 is 2.2:1, so fields take ink-3 (5.9:1).
       Buttons keep --line-2: their label identifies them. */
    --field-line: var(--ink-3);

    /* ---- Spacing: 4, 8, 12, 16, 24, 32 and multiples for big sections ----
       Gaps grow from item (4 to 12) to group (16 to 24) to section (32 up). */
    --space-4: 0.25rem;
    --space-8: 0.5rem;
    --space-12: 0.75rem;
    --space-16: 1rem;
    --space-24: 1.5rem;
    --space-32: 2rem;
    --space-48: 3rem;
    --space-64: 4rem;
    --space-96: 6rem;

    /* ---- Radius: 10 small controls, 16 cards and buttons, 24 sheets ----
       Nested corners are concentric: inner = outer minus the padding. */
    --radius-10: 10px;
    --radius-16: 16px;
    --radius-24: 24px;

    /* ---- Motion: short and plain ---- */
    --ease: ease-out;
    --dur: 200ms;
}
@media (prefers-contrast: more){
    :root{
        --ink-2: var(--ink-1);
        --ink-3: #C6C2BB;
        --ink-4: #908D87;
        --line-1: #5A5752;
        --line-2: #908D87;
    }
}
/* The only use of the expanded width, and the only weight above 700. */
.wordmark-415{
    font-family: 'Mona Sans Wordmark', var(--sans);
    font-weight: 800;
    font-stretch: 125%;
}
.tnum{ font-variant-numeric: tabular-nums; }
