@import url("/themes/floor.css");

/* ================================================================ casimofy

   The product's own brand, worn by the platform origin. An audit ledger, drawn
   in CSS: paper-white surfaces, hairline rules that carry the structure instead
   of shadows, near-black ink, and exactly one accent — deep cobalt, the colour
   of a signature. The machine speaks in monospace (paths, statuses, labels);
   prose speaks in a grotesque sans at full content width. Corners stay sharp
   because a ledger has no rounded edges, and nothing here is condensed.

   The mechanism is the one every brand uses: this file is served at
   /themes/current.css to hosts whose registry entry names the `casimofy` theme
   (routes/web.php), it publishes the --brand-* contract that floor.css renders,
   and it maps the header names that header.css reads. Structure lives in
   floor.css and header.css; colour, type and shape live only here, once.

   Deliberately not set: Filament's --fi-* panel variables. The panels keep their
   own framework styling until there is a product surface to decide density and
   state colours against — the same honest restraint the omnitronix theme states.
*/

:root {
    /* the world: paper, not night — a product at work, not a casino at play */
    --cas-paper: #FAFAF8;
    --cas-surface: #FFFFFF;
    --cas-field: #F1F1EE;
    --cas-line: #DFE0DC;

    /* the inverted band: the night footer and nav of the same ledger */
    --cas-night: #141619;
    --cas-night-line: #2A2D31;
    --cas-night-ink: #ECECEA;
    --cas-night-muted: #9AA0A4;

    /* the ink */
    --cas-ink: #17191C;
    --cas-muted: #52585E;

    /* the accent: one cobalt, nothing else */
    --cas-cobalt: #0B57D0;
    --cas-cobalt-hi: #2B6FD6;
    --cas-ink-on-accent: #FFFFFF;

    /* the state pair, used only by probe evidence — not decoration */
    --cas-ok: #0B7A3B;
    --cas-bad: #B3261E;

    /* the shape: sharp corners, the whole scale at once */
    --cas-radius: 4px;

    /* the type: a grotesque for prose, a monospace for everything the machine says.
       System stacks on purpose — there is no asset pipeline here, and a brand that
       fetches its voice from a CDN loses it on the network, not on the design. */
    --cas-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --cas-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

/* the shared floor contract: floor.css renders any brand from these names */
:root {
    --brand-bg: var(--cas-paper);
    --brand-panel: var(--cas-surface);
    --brand-field: var(--cas-field);
    --brand-line: var(--cas-line);
    --brand-nav-bg: var(--cas-night);

    --brand-ink: var(--cas-ink);
    --brand-ink-on-accent: var(--cas-ink-on-accent);
    --brand-muted: var(--cas-muted);

    --brand-accent: var(--cas-cobalt);
    --brand-accent-hi: var(--cas-cobalt-hi);

    --brand-radius: var(--cas-radius);
    --brand-head-h: 64px;
    --brand-font-display: var(--cas-sans);
    --brand-font-body: var(--cas-sans);
}

/* the header contract: header.css was measured against bet101's launch page and
   names its brand tokens --b101-*, with the landing's literals as fallback. A new
   brand answers those same names with its own palette — that is the extension
   point, and no second header is needed beside it. */
:root {
    --b101-indigo-deep: var(--cas-night);
    --b101-indigo: var(--cas-night);
    --b101-panel: var(--cas-night);
    --b101-panel-2: var(--cas-night-line);
    --b101-line: var(--cas-night-line);
    --b101-electric: var(--cas-cobalt);
    --b101-coral: var(--cas-cobalt);
    --b101-coral-hi: var(--cas-cobalt-hi);
    --b101-ivory: var(--cas-night-ink);
    --b101-muted: var(--cas-night-muted);

    /* the bar's display face: the monospace voice, set in uppercase by header.css */
    --bh-font: var(--cas-mono);
}

/* the player surface: paper first, ink second, accent only where it signs */
body {
    background: var(--cas-paper);
    color: var(--cas-ink);
    font-family: var(--cas-sans);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--cas-ink);
    letter-spacing: -0.015em;
}

a { color: var(--cas-cobalt); }

/* the floor's chrome in the ledger's voice: hairlines and fields, no shadows */
.floor__chip:hover,
.floor__chip[aria-current] {
    border-radius: var(--cas-radius);
}

.floor__search input {
    border-radius: var(--cas-radius);
    background: var(--cas-surface);
}

/* the wordmark in the bar: the machine's face, since the brand has no image mark */
.brandnav__wordmark,
.brandhead .wordmark {
    font-family: var(--cas-mono);
}
