/*
 * Design tokens for jochen-mack.de (derived from the Figma desktop frames, 1920px).
 * All colours, type sizes, spacings and radii used by the other stylesheets live here.
 */
@layer reset, base, layout, components, news;

@font-face {
    font-family: "Geist";
    src: url("../Fonts/Geist/Geist-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Belleza";
    src: url("../Fonts/Belleza/belleza-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    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: "Belleza";
    src: url("../Fonts/Belleza/belleza-latin-ext-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    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;
}

:root {
    /* Colours */
    --color-brand: #be5151;
    --color-brand-dark: #9e3c3c;
    --color-text: #2f2f2f;
    --color-heading: #555;
    --color-surface: #fff;
    --color-surface-muted: #e3e3e3;
    --color-footer: #555;
    --color-on-dark: #fff;
    --color-border: #576b79;
    --shadow-raised: 0 3px 6px rgb(0 0 0 / 16%);

    /* Font stacks */
    --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: Optima, "Belleza", Candara, "Segoe UI", sans-serif;

    /* Type scale: min at 375px, max at 1920px (Figma) */
    --step-display: clamp(2.375rem, 1.78rem + 2.55vw, 4.9375rem);   /* 79px */
    --step-card: clamp(1.875rem, 1.6rem + 1.2vw, 3.0625rem);        /* 49px */
    --step-lead: clamp(1.0625rem, 0.95rem + 0.55vw, 1.625rem);      /* 26px */
    --step-body: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);               /* 24px */
    --step-small: clamp(0.9375rem, 0.86rem + 0.4vw, 1.375rem);      /* 22px */
    --step-meta: clamp(0.875rem, 0.82rem + 0.33vw, 1.3125rem);      /* 21px */
    --step-nav: clamp(1.1875rem, 1.12rem + 0.18vw, 1.3125rem);      /* 21px, bold => large text */
    --step-service: clamp(0.75rem, 0.7rem + 0.22vw, 1rem);          /* 16px */

    --leading-display: 1.19;
    --leading-text: 1.42;
    --tracking-nav: 0.13em;
    --tracking-button: 0.04em;

    /* Spacing */
    --space-3xs: 0.25rem;
    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-s: 1rem;
    --space-m: clamp(1.25rem, 1rem + 1vw, 2rem);
    --space-l: clamp(2rem, 1.5rem + 2vw, 3.5rem);
    --space-xl: clamp(3rem, 2rem + 4vw, 6rem);
    --space-2xl: clamp(4rem, 2.5rem + 6vw, 9rem);

    /* Layout */
    --container: 100rem;          /* 1600px: header, home, topic pages */
    --container-narrow: 79.0625rem; /* 1265px: Referenzen, blog */
    --gutter: clamp(1rem, 0.5rem + 3vw, 10rem);
    --header-height: clamp(4.5rem, 3.5rem + 4vw, 10.25rem);

    /* Shapes */
    --radius-card: 15px;
    --radius-button: 10px;
    --rule-width: 5.625rem;      /* 90px */
    --rule-height: 7px;
    --bullet-size: 0.875rem;     /* 14px */
    --focus-ring: 3px solid var(--color-brand);
}
