/* ==========================================================================
   Vendored from the Qulto Design System (claude.ai/design project
   0c8e3996-9547-4c01-bf5f-e818a18cbb22) — tokens/colors.css + typography.css +
   spacing.css, verbatim, plus self-hosted @font-face rules replacing the
   original Google Fonts @import. See qulto/SOURCE.md for provenance and the
   re-sync procedure. DO NOT hand-edit the token values below — edit
   app.css instead, which maps these onto the app's own variable names and
   applies the documented WCAG contrast overrides.
   ========================================================================== */

/* ---- Webfonts (self-hosted; DS ships Google Fonts @import for Fira Sans /
   Varela Round, IBM Plex Mono locally — here all three are self-hosted so
   the admin UI makes no runtime call to fonts.googleapis.com). Each family
   ships latin + latin-ext subsets (latin-ext carries Hungarian ő/ű/Ő/Ű). */
@font-face {
    font-family: 'Fira Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/FiraSans-400-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: 'Fira Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/FiraSans-400-ext.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: 'Fira Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/FiraSans-500-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: 'Fira Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/FiraSans-500-ext.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: 'Fira Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/FiraSans-600-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: 'Fira Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/FiraSans-600-ext.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: 'Fira Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/FiraSans-700-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: 'Fira Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/FiraSans-700-ext.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: 'Varela Round';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/VarelaRound-400-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: 'Varela Round';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/VarelaRound-400-ext.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: "IBM Plex Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/IBMPlexMono-400-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: "IBM Plex Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/IBMPlexMono-400-ext.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: "IBM Plex Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/IBMPlexMono-500-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: "IBM Plex Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/IBMPlexMono-500-ext.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: "IBM Plex Mono";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/IBMPlexMono-600-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: "IBM Plex Mono";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/IBMPlexMono-600-ext.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;
}

/* ---- DS tokens/colors.css (verbatim) ------------------------------------ */
:root {
    --qulto-blue: #174b85;
    --qulto-green: #97b513;

    --blue-50: #eef3f9;
    --blue-100: #d3e1ef;
    --blue-200: #a6c2dd;
    --blue-300: #739fc8;
    --blue-400: #4179ad;
    --blue-500: #245d96;
    --blue-600: #1c5290;
    --blue-700: #174b85;
    --blue-800: #123c69;
    --blue-900: #0d2c4d;

    --green-50: #f6f9e8;
    --green-100: #e9f1c4;
    --green-200: #d4e389;
    --green-300: #bcd24f;
    --green-400: #a7c52b;
    --green-500: #97b513;
    --green-600: #819c10;
    --green-700: #66790d;
    --green-800: #4d5b0b;
    --green-900: #353f08;

    --neutral-0: #ffffff;
    --neutral-50: #f7f9fb;
    --neutral-100: #eef1f5;
    --neutral-200: #dde3ea;
    --neutral-300: #c3ccd6;
    --neutral-400: #9aa6b4;
    --neutral-500: #6b7888;
    --neutral-600: #4d5867;
    --neutral-700: #374150;
    --neutral-800: #232c38;
    --neutral-900: #141a23;

    --petrol-50: #e6f2f3;
    --petrol-100: #c2e0e3;
    --petrol-300: #5aa8b0;
    --petrol-500: #0e7c86;
    --petrol-600: #0b656e;
    --petrol-800: #074449;

    --ochre-50: #fdf5e4;
    --ochre-100: #f9e7bd;
    --ochre-300: #eec263;
    --ochre-500: #d69a1e;
    --ochre-600: #b07d15;
    --ochre-800: #71500c;

    --terracotta-50: #fbeeea;
    --terracotta-100: #f4d5cb;
    --terracotta-300: #dc9b83;
    --terracotta-500: #c0563a;
    --terracotta-600: #a04530;
    --terracotta-800: #682c1e;

    --plum-50: #f2ecf4;
    --plum-100: #ded0e4;
    --plum-300: #a67fb3;
    --plum-500: #6b3e7a;
    --plum-600: #573265;
    --plum-800: #392042;

    --success-50: #f0f8e8;
    --success-500: #5c9a2b;
    --success-600: #4c8123;
    --warning-50: #fdf4e3;
    --warning-500: #e0951a;
    --warning-600: #b9760f;
    --danger-50: #fcecea;
    --danger-500: #d6453d;
    --danger-600: #b22f29;
    --info-50: #eef3f9;
    --info-500: #245d96;
    --info-600: #174b85;

    --color-primary: var(--blue-700);
    --color-primary-hover: var(--blue-800);
    --color-primary-active: var(--blue-900);
    --color-primary-soft: var(--blue-50);
    --color-accent: var(--green-500);
    --color-accent-hover: var(--green-600);
    --color-accent-active: var(--green-700);
    --color-accent-soft: var(--green-50);

    --text-strong: var(--neutral-900);
    --text-body: var(--neutral-700);
    --text-muted: var(--neutral-500);
    --text-subtle: var(--neutral-400);
    --text-on-brand: var(--neutral-0);
    --text-link: var(--blue-700);

    --surface-page: var(--neutral-50);
    --surface-card: var(--neutral-0);
    --surface-sunken: var(--neutral-100);
    --surface-raised: var(--neutral-0);
    --surface-inverse: var(--blue-900);
    --surface-brand: var(--blue-700);

    --border-subtle: var(--neutral-200);
    --border-default: var(--neutral-300);
    --border-strong: var(--neutral-400);
    --border-focus: var(--blue-500);

    --color-success: var(--success-500);
    --color-warning: var(--warning-500);
    --color-danger: var(--danger-500);
    --color-info: var(--info-600);

    --color-petrol: var(--petrol-500);
    --color-ochre: var(--ochre-500);
    --color-terracotta: var(--terracotta-500);
    --color-plum: var(--plum-500);

    --viz-1: var(--blue-700);
    --viz-2: var(--petrol-500);
    --viz-3: var(--green-500);
    --viz-4: var(--ochre-500);
    --viz-5: var(--terracotta-500);
    --viz-6: var(--plum-500);

    --focus-ring: 0 0 0 3px color-mix(in srgb, var(--blue-500) 35%, transparent);
}

/* ---- DS tokens/typography.css (verbatim) -------------------------------- */
:root {
    --font-sans: "Fira Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --font-display: var(--font-sans);
    --font-logo: "Varela Round", "Fira Sans", system-ui, sans-serif;

    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extra: 800;

    --text-2xs: 0.6875rem;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.125rem;
    --text-lg: 1.375rem;
    --text-xl: 1.75rem;
    --text-2xl: 2.25rem;
    --text-3xl: 3rem;
    --text-4xl: 3.75rem;

    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-normal: 1.5;
    --leading-relaxed: 1.65;

    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.04em;
    --tracking-caps: 0.08em;
}

/* ---- DS tokens/spacing.css (verbatim) ------------------------------------ */
:root {
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    --radius-xs: 3px;
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 18px;
    --radius-pill: 999px;

    --border-width: 1px;
    --border-width-strong: 2px;

    --shadow-xs: 0 1px 2px rgba(20, 26, 35, 0.06);
    --shadow-sm: 0 1px 3px rgba(20, 26, 35, 0.08), 0 1px 2px rgba(20, 26, 35, 0.06);
    --shadow-md: 0 4px 10px rgba(20, 26, 35, 0.08), 0 2px 4px rgba(20, 26, 35, 0.05);
    --shadow-lg: 0 12px 28px rgba(20, 26, 35, 0.12), 0 4px 10px rgba(20, 26, 35, 0.06);
    --shadow-focus: var(--focus-ring);

    --container-max: 1200px;
    --container-prose: 68ch;
    --sidebar-width: 264px;
    --header-height: 64px;

    --ease-standard: cubic-bezier(0.2, 0, 0, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 120ms;
    --duration-base: 200ms;
    --duration-slow: 320ms;

    --z-sticky: 100;
    --z-overlay: 800;
    --z-modal: 900;
    --z-toast: 1000;
}
