/* ==========================================================================
   MeatPuppets.ai design tokens.

   One neutral "paper / ink" scale, one strong accent (volt), semantic status
   colours. Every colour is a light-dark() pair, so a single definition serves
   both themes: `color-scheme` follows the OS (prefers-color-scheme) unless the
   visitor picked a theme with the header toggle (html[data-theme], persisted by
   /theme.js). Spacing is a 4px scale, radii are 6/10/14/pill.
   ========================================================================== */

@font-face {
    font-family: "Geist";
    src: url("/fonts/geist-latin-wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Geist Mono";
    src: url("/fonts/geist-mono-latin-wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light dark;

    /* Surfaces */
    --bg: light-dark(#fafaf7, #0a0a0b);
    --bg-sunken: light-dark(#f2f2ed, #060607);
    --surface: light-dark(#ffffff, #111113);
    --surface-2: light-dark(#f6f6f1, #18181b);
    --border: light-dark(#e4e3dc, #26262b);
    --border-strong: light-dark(#c9c7bd, #3a3a41);

    /* Ink */
    --text: light-dark(#0f0f0d, #f3f3ef);
    --text-2: light-dark(#4f4e48, #adada5);
    --text-3: light-dark(#6a6962, #8a8a82);

    /* The one accent: volt. Fills carry dark ink in both themes; --accent-text is
       the AA-safe version for text/links on the page background. */
    --accent: #c8f43a;
    --accent-hover: light-dark(#b9e52a, #d6ff55);
    --accent-edge: light-dark(#a5d018, #c8f43a);
    --accent-ink: #11140a;
    --accent-text: light-dark(#40590a, #c8f43a);
    --accent-soft: light-dark(rgba(200, 244, 58, 0.28), rgba(200, 244, 58, 0.12));

    /* Focus ring: ink in light, volt in dark, always 3:1+ against the page. */
    --focus: light-dark(#0f0f0d, #c8f43a);

    /* Status colours: text/icon colour plus a quiet tinted background and edge. */
    --success: light-dark(#17703a, #5fd68a);
    --success-bg: light-dark(#e7f5ec, rgba(95, 214, 138, 0.1));
    --success-edge: light-dark(#b4dcc2, rgba(95, 214, 138, 0.28));
    --warning: light-dark(#8a5300, #f2b84a);
    --warning-bg: light-dark(#fcf2da, rgba(242, 184, 74, 0.1));
    --warning-edge: light-dark(#ecd292, rgba(242, 184, 74, 0.28));
    --danger: light-dark(#b42028, #ff8087);
    --danger-bg: light-dark(#fcebeb, rgba(255, 128, 135, 0.1));
    --danger-edge: light-dark(#eeb9bb, rgba(255, 128, 135, 0.28));
    --info: light-dark(#1d58c4, #86aeff);
    --info-bg: light-dark(#e8effc, rgba(134, 174, 255, 0.1));
    --info-edge: light-dark(#b9cdf2, rgba(134, 174, 255, 0.28));

    /* The two kinds of participant. Used only as small markers. */
    --meat: light-dark(#b0431a, #ff9b70);
    --silicon: light-dark(#1d6aa8, #74bbff);

    /* Type */
    --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.8125rem;
    --text-base: 0.9375rem;
    --text-md: 1.0625rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
    --text-display: clamp(2.5rem, 1.2rem + 5.2vw, 4.75rem);

    /* Spacing: 4px base */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4.5rem;
    --s-9: 7rem;

    --gutter: clamp(1rem, 4vw, 2.5rem);
    --measure: 68ch;
    --content-max: 1200px;

    /* Radii */
    --r-1: 6px;
    --r-2: 10px;
    --r-3: 14px;
    --r-pill: 999px;

    /* Elevation: hairline first, soft shadow only for things that float */
    --shadow-1: 0 1px 2px light-dark(rgba(15, 15, 13, 0.05), rgba(0, 0, 0, 0.4));
    --shadow-pop: 0 1px 2px light-dark(rgba(15, 15, 13, 0.06), rgba(0, 0, 0, 0.5)),
        0 16px 40px -16px light-dark(rgba(15, 15, 13, 0.22), rgba(0, 0, 0, 0.8));

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --dur: 140ms;

    --nav-h: 3.75rem;
}

:root[data-theme="light"] {
    color-scheme: light;
}

:root[data-theme="dark"] {
    color-scheme: dark;
}
