/*
Design tokens: Frånvarokollen brand mapped onto Open Props.
Open Props (css/vendor/open-props, MIT) supplies the scales: sizes, radii, borders, easings, font weights.
This file names what the app uses. Components only ever read these names, never raw hex values,
so FVK can retheme the module by overriding this one file.

Source of the brand values: franvaro-v2/src/app/globals.css (Navy #1B4776 · Blue #0F71F6 · Red #E71E3C,
warm paper background, Geist) and the Vikariekollen module.
*/
@layer reset, tokens, base, components, views;

/* Geist is self-hosted (assets/fonts, SIL Open Font License) so no visitor IP goes to Google Fonts (GDPR). */
@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/Geist-Variable.woff2') format('woff2-variations'), url('../assets/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@layer tokens {
  :root {
    color-scheme: light;

    /* brand */
    --fvk-navy: #1b4776;
    --fvk-navy-deep: #0d2340;
    --fvk-navy-ink: #112d4e;
    --fvk-blue: #0d6be8;       /* FVK #0F71F6 darkened a little so white text passes (Baz, 1 Dec 2026) */
    --fvk-blue-hover: #0b5dcc;
    --fvk-red: #e71e3c;
    --fvk-paper: #faf8f5;
    --fvk-paper-2: #f0ece7;
    --fvk-pencil: #e2ddd6;
    --fvk-slate: #5a6577;

    /* surfaces and text */
    --bg: #ffffff;
    --page: var(--fvk-paper);
    --ink: var(--fvk-navy-ink);
    --navy: var(--fvk-navy);
    --navy-deep: var(--fvk-navy-deep);
    --muted: var(--fvk-slate);
    --line: var(--fvk-pencil);
    --soft: var(--fvk-paper-2);
    --on-dark: #e8edf2;

    /* status: red = gap, amber = at need, green = above need, purple = external */
    --red: var(--fvk-red);
    --redbg: #fdecee;
    --amber: #d97706;
    --amberbg: #fef3c7;
    --ambertext: #8a5300;
    --green: #16a34a;
    --greenbg: #dcfce7;
    --blue: var(--fvk-blue);
    --blue-hover: var(--fvk-blue-hover);
    --ext: #7c3aed;
    --red-deep: #c4142f;      /* stripe on short time */
    --calm-green: #bfe8cd;    /* whole-day bar: above need */
    --calm-sand: #e4dccf;     /* whole-day bar: exactly at need */

    /* shape and depth (FVK paper feel) */
    --radius: 10px;
    --radius-sm: 8px;
    --radius-lg: 12px;
    --radius-pill: 99px;
    --shadow: 0 1px 3px 0 rgb(13 35 64 / .05), 0 1px 2px -1px rgb(13 35 64 / .04);
    --shadow-up: 0 4px 8px -2px rgb(13 35 64 / .08), 0 2px 4px -2px rgb(13 35 64 / .05);
    --shadow-press: inset 0 1px 2px rgb(13 35 64 / .08);
    --shadow-cta: 0 2px 4px -1px rgb(15 113 246 / .25), 0 1px 3px rgb(15 113 246 / .15);
    --focus-ring: 2px solid var(--blue);

    /* type */
    --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --weight-regular: var(--font-weight-4, 400);
    --weight-medium: var(--font-weight-5, 500);
    --weight-semibold: var(--font-weight-6, 600);
    --weight-bold: 650;

    /* spacing: Open Props pixel scale */
    --space-1: var(--size-px-1, 4px);
    --space-2: var(--size-px-2, 8px);
    --space-3: var(--size-px-3, 16px);
    --space-4: var(--size-px-4, 20px);
    --space-5: var(--size-px-5, 24px);

    /* motion */
    --t-fast: .12s;
    --t-press: .08s;
    --t-nav: .15s;

    /* layout */
    --namew: 150px;
    --cw: 30px;
    --sbw: 232px;
  }
}
