/* Barro palette: one warm accent on a near-monochrome base. Same values as tools/make-brand.py.
   Contrast (WCAG): graphite on clay 13.8:1, terracotta on clay 4.5:1, white on terracotta 5.2:1, muted on clay 5.5:1. */
:root {
    color-scheme: light; /* Light only (DESIGN.md). */
    /* Barro palette. Contrast (WCAG, checked in the gate: internal/design, TestTheBarroPaletteIsAThemeThatReachesItsContrasts): graphite on white 15.8:1, on clay 13.8:1; terracotta on white 5.2:1, on clay 4.5:1;
       white on terracotta 5.2:1; on graphite: --on-dark 8.5:1, --accent-on-dark 7.6:1 (the terracotta family, lightened). */
    --graphite: #1F2328;
    --graphite-raised: #2B3036;
    --graphite-deep: #15181C;
    --terracotta: #C2410C;
    --terracotta-dark: #9A3412;
    --accent-on-dark: #F2A07B;
    --clay: #F5EFE6;
    --clay-deep: #EBE2D4;
    --white: #FFFFFF;
    --muted: #5B6169;
    --on-dark: #B9BEC5;
    --line: #E6E8EB;
    --line-light: #EEF0F2;
    --line-dark: #3A3F46;
    --field-border: #B9AE9C;
    --surface: #F6F7F8;
    --surface-sunken: #F1F2F4;
    --surface-quiet: #FBFBFC;
    --surface-warm: #FBF7F2;
    --accent-bg: #FBEDE5;
    --text-soft: #3B4048;
    --error: #B42318;
    --error-bg: #FDECEA;
    --success: #1E6B3A;
    --success-bg: #E7F4EC;
    --warning: #8A4B00;
    --warning-bg: #FFF4E5;
    --warning-line: #D8A15A;
    --info: #1D4ED8;
    --info-bg: #EAF1FB;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Geist", "Inter", system-ui, sans-serif;

    /* One type scale: 16px body (the admin console has its own compact scale below). Two weights, the two Inter files we ship. */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.25rem;
    --text-xl: 1.75rem;
    --text-2xl: clamp(2rem, 3.6vw, 2.875rem);
    --text-3xl: clamp(2.5rem, 5.6vw, 4.5rem);
    --weight-body: 400;
    --weight-strong: 700;

    /* 4px spacing grid. */
    --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

    /* Nearly square: controls and rows 4px, cards, menus and dialogs 6px, tags 3px. Only avatars are round. */
    --radius-control: 4px;
    --radius-card: 6px;
    --radius-tag: 3px;
    --shadow: 0 1px 2px rgb(31 35 40 / 6%), 0 8px 24px rgb(31 35 40 / 8%);
    --overlay: rgb(0 0 0 / 40%);
    --width: 1200px;
    --gutter: 20px;

    /* Controls: 40px with a mouse, 44px on touch. */
    --control: 40px;
    --control-small: 32px;
}

/* Touch screens: every control is 44px. */
@media (pointer: coarse) { :root { --control: 44px; --control-small: 44px; } }

/* The admin console is a staff tool, desktop first: a compact scale (same tokens and colours, smaller sizes). */
:root[data-scale="compact"] {
    --text-xs: 0.75rem;
    --text-sm: 0.75rem;
    --text-base: 0.875rem;
    --control: 32px;
    --control-small: 28px;
    --row: 32px;
}
@media (pointer: coarse) { :root[data-scale="compact"] { --control: 44px; --control-small: 44px; --row: 44px; } }

/* Side gutter: 20px on phones, 24px from 600px, 32px from 900px. */
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 900px) { :root { --gutter: 32px; } }

@font-face {
    font-family: "Inter";
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/inter/inter-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/inter/inter-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/inter/inter-ext-400.woff2") format("woff2");
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Inter";
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/inter/inter-ext-700.woff2") format("woff2");
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Geist"; font-weight: 700; font-display: swap; src: url("/fonts/geist/geist-latin-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-weight: 700; font-display: swap; src: url("/fonts/geist/geist-latin-ext-700.woff2") format("woff2");
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }