/*
 * MOST design tokens (.claude/GUIDELINES_VISUAL.md §2-§6).
 * The only place where colours, fonts, radii, shadows and spacing are defined.
 */

/* Fonts: self-hosted, OFL (see assets/fonts/OFL-*.txt). latin-ext covers č ć đ š ž. */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-400-normal.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: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.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: "Source Sans 3"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-500-normal.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: "Source Sans 3"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/source-sans-3-latin-500-normal.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: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-600-normal.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: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.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: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-700-normal.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: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.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: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-ext-400-italic.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: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-400-italic.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; }

:root {
    /* Base */
    --color-bg: #F6F1EC;
    --color-surface: #FFFDFB;
    --color-surface-muted: #EEEAE6;
    --color-border: #E3DDD7;

    /* Text */
    --color-text: #1E2B37;
    --color-text-muted: #5F6B75;
    --color-text-inverse: #FFFFFF;

    /* Primary (navy) */
    --color-primary: #1F3A4F;
    --color-primary-hover: #172D3E;
    --color-primary-soft: #E2E9EF;

    /* Secondary (sage) */
    --color-sage: #6F8B76;
    --color-sage-soft: #DFE6DA;

    /* Semantic (statuses and feedback only) */
    --color-success: #3E8E6E;
    --color-success-soft: #DCEFE6;
    --color-warning: #C98A2E;
    --color-warning-soft: #F8EBD3;
    --color-danger: #B8504A;
    --color-danger-soft: #F7E1DE;
    --color-neutral-status: #8A949C;

    /* Categories */
    --color-cat-school: #3E8E6E;
    --color-cat-health: #4A7FA8;
    --color-cat-activities: #D98A3D;
    --color-cat-clothing: #8A7FC9;
    --color-cat-food: #C9A23A;
    --color-cat-legal: #6B5B95;
    --color-cat-other: #7A8790;

    /* Parents in calendar (equally weighted, never red/green) */
    --color-parent-a: #E2E9EF;
    --color-parent-b: #DFE6DA;

    /* Child colours (personal preference, ChildColorService::PALETTE); ink + 15% tint background */
    --color-child-blue: #4A7FA8;
    --color-child-blue-soft: #E1EAF1;
    --color-child-pink: #C97B9E;
    --color-child-pink-soft: #F5E5EC;
    --color-child-green: #4F9B72;
    --color-child-green-soft: #E1EFE6;
    --color-child-purple: #8A7FC9;
    --color-child-purple-soft: #E7E4F5;
    --color-child-orange: #D98A3D;
    --color-child-orange-soft: #F7E9D8;
    --color-child-neutral: #7A8790;
    --color-child-neutral-soft: #E7E9EA;

    /* Typography */
    --font-ui: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-accent: "Lora", Georgia, serif;
    --fs-title: 20px;
    --fs-section: 16px;
    --fs-body: 16px;
    --fs-secondary: 14px;
    --fs-micro: 12px;

    /* Shape and depth */
    --radius-card: 16px;
    --radius-control: 12px;
    --radius-pill: 999px;
    --shadow-card: 0 1px 2px rgba(30, 43, 55, .06), 0 4px 12px rgba(30, 43, 55, .05);

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

    /* Layout */
    --sidebar-width: 240px;
    --content-max: 960px;
    --bottom-nav-height: 64px;
    --touch-target: 44px;
}
