/*
 * Design tokens for the slope sensor UI.
 *
 * Every revamped page loads this file first and takes its colours, type and
 * spacing from here, so the login page, the manage pages and the dashboard
 * read as one product. Legacy pages keep using global.css until they are
 * migrated; nothing in here overrides an existing selector.
 */

@font-face {
    font-family: "Spoqa Han Sans Neo";
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/SpoqaHanSansNeo-Medium.ttf") format("truetype");
}

@font-face {
    font-family: "Spoqa Han Sans Neo";
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/SpoqaHanSansNeo-Bold.ttf") format("truetype");
}

:root {
    /* Surfaces */
    --ui-ink-950: #0b1622;
    --ui-ink-900: #10202f;
    --ui-ink-800: #18304a;
    --ui-surface: #ffffff;
    --ui-canvas: #f3f6f9;
    --ui-line: #dde4ec;
    --ui-line-strong: #c3cedb;

    /* Text */
    --ui-text: #152536;
    --ui-text-muted: #5b6b7c;
    --ui-text-on-dark: #eef4fa;
    --ui-text-on-dark-muted: #9fb3c8;

    /* Brand and states. The brand blue continues the blue the old UI used. */
    --ui-brand: #116caf;
    --ui-brand-strong: #0c5488;
    --ui-brand-soft: #e6f1f9;
    --ui-ok: #1f9d63;
    --ui-warn: #d98a00;
    --ui-danger: #c93a3a;
    --ui-danger-soft: #fdecec;

    /* Type */
    --ui-font: "Spoqa Han Sans Neo", "Malgun Gothic", "Apple SD Gothic Neo",
        "Segoe UI", system-ui, sans-serif;
    --ui-text-xs: 12px;
    --ui-text-sm: 13px;
    --ui-text-md: 15px;
    --ui-text-lg: 18px;
    --ui-text-xl: 24px;
    --ui-text-2xl: 32px;

    /* Shape and depth */
    --ui-radius-sm: 6px;
    --ui-radius-md: 10px;
    --ui-radius-lg: 16px;
    --ui-shadow-sm: 0 1px 2px rgba(16, 32, 47, 0.08);
    --ui-shadow-md: 0 8px 24px rgba(16, 32, 47, 0.12);
    --ui-focus-ring: 0 0 0 3px rgba(17, 108, 175, 0.28);

    /* Spacing scale */
    --ui-space-1: 4px;
    --ui-space-2: 8px;
    --ui-space-3: 12px;
    --ui-space-4: 16px;
    --ui-space-5: 24px;
    --ui-space-6: 32px;
    --ui-space-7: 48px;
}
