/* DayBook design tokens (the Daylight design system in Figma, "03 Design system").
   Names are the Figma variables' own CSS names. Shared by the public website, the
   staff and admin panels and the booking pages' defaults. Use the semantic names,
   never raw hex. The sun yellow belongs to the logo only. */

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url(../fonts/plus-jakarta-sans/plus-jakarta-sans-5.2.8-latin-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: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url(../fonts/plus-jakarta-sans/plus-jakarta-sans-5.2.8-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;
}

:root {
    color-scheme: light;

    /* Backgrounds */
    --color-bg-page: #FFF8F1;
    --color-bg-surface: #FFFFFF;
    --color-bg-subtle: #FFF4EA;
    --color-bg-muted: #F0E6DA;
    --color-bg-brand: #0E7C7B;
    --color-bg-brand-subtle: #DDF1EF;
    --color-bg-accent: #FF8A5B;
    --color-bg-accent-subtle: #FFE7DC;
    --color-bg-inverse: #2B2A33;
    --color-bg-danger: #D9480F;

    /* Text and icons */
    --color-text-primary: #2B2A33;
    --color-text-secondary: #6E6A73;
    --color-text-disabled: #A39DA6;
    --color-text-brand: #0E7C7B;
    --color-text-accent: #B4532A;
    /* Not in Figma: text-accent on bg-accent-subtle is 4.2:1, below WCAG AA, so text on peach uses this (5:1). */
    --color-text-accent-strong: #A34A25;
    --color-text-danger: #D9480F;
    --color-text-on-brand: #FFFFFF;
    --color-icon-muted: #6E6A73;
    --color-icon-on-brand: #FFFFFF;

    /* Borders */
    --color-border-default: #F0E6DA;
    --color-border-strong: #E2D6C7;
    --color-border-focus: #0E7C7B;
    --color-border-danger: #D9480F;

    /* Professions and the logo */
    --color-profession-business: #2B2A33;
    --color-profession-optician: #0E7C7B;
    --color-profession-dental: #3A7BD5;
    --color-profession-physio: #E4572E;
    --color-profession-vet: #4C9A2A;
    --color-profession-salon: #C2457E;
    --color-brand-sun: #FFC857;

    /* Status tones (tags and alerts) */
    --color-status-brand-bg: #DDF1EF;   --color-status-brand-fg: #0E7C7B;
    --color-status-success-bg: #E3F1DC; --color-status-success-fg: #3B7A20;
    --color-status-info-bg: #E7E9FB;    --color-status-info-fg: #5B6CD9;
    --color-status-warning-bg: #FFF3D1; --color-status-warning-fg: #7A5600;
    --color-status-danger-bg: #FDE4DA;  --color-status-danger-fg: #D9480F;
    --color-status-neutral-bg: #F0E6DA; --color-status-neutral-fg: #6E6A73;

    /* Appointment types in the diary: the bar and time are solid, the block subtle */
    --color-appt-eye-test-solid: #0E7C7B;     --color-appt-eye-test-subtle: #DDF1EF;
    --color-appt-contact-lens-solid: #5B6CD9; --color-appt-contact-lens-subtle: #E7E9FB;
    --color-appt-child-solid: #FF8A5B;        --color-appt-child-subtle: #FFE7DC;
    --color-appt-collection-solid: #6E6A73;   --color-appt-collection-subtle: #FFF4EA;
    --color-appt-break-subtle: #FFF4EA;

    /* Type: Plus Jakarta Sans throughout. Body text never goes below 13px.
       Figma gives letter-spacing in percent of the size: -3% is -.03em. */
    --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --text-display-xl: 800 64px/1.04 var(--font-sans);   --tracking-display: -.03em;
    --text-display-l: 800 48px/1.08 var(--font-sans);
    --text-h1: 800 32px/1.15 var(--font-sans);           --tracking-h1: -.02em;
    --text-h2: 700 24px/1.2 var(--font-sans);            --tracking-h2: -.015em;
    --text-h3: 700 18px/1.3 var(--font-sans);            --tracking-h3: -.01em;
    --text-body-l: 400 18px/1.55 var(--font-sans);
    --text-body-m: 400 15px/1.5 var(--font-sans);
    --text-body-s: 400 13px/1.45 var(--font-sans);
    --text-label-m: 600 14px/1.3 var(--font-sans);
    --text-label-s: 600 12px/1.3 var(--font-sans);
    --text-overline: 700 12px/1.3 var(--font-sans);      --tracking-overline: .08em;
    --text-data: 800 28px/1.1 var(--font-sans);          --tracking-data: -.02em;

    /* Spacing */
    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-32: 32px;
    --space-40: 40px;
    --space-48: 48px;
    --space-64: 64px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-card: 0 1px 2px #2B29330D, 0 6px 16px #2B29330F;
    --shadow-raised: 0 2px 6px #2B29330F, 0 16px 40px #2B29331F;
    --shadow-modal: 0 24px 64px #2B293338;
    --focus-ring: 0 0 0 3px #0E7C7B47;
}
