/* NewlyNamed brand: fonts and design tokens.
   Loaded before app.css. Components use the semantic tokens only;
   the --nn-* palette is referenced in this file alone. */

/* ---------------------------------------------------------------- Fonts -- */

@font-face {
    font-family: 'Nicholas';
    src: url('../font/brand/font-Nicholas.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nicholas';
    src: url('../font/brand/font-Nicholas-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Nicholas';
    src: url('../font/brand/font-Nicholas-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aktiv Grotesk';
    src: url('../font/brand/font-AktivGrotesk-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aktiv Grotesk';
    src: url('../font/brand/font-AktivGrotesk-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aktiv Grotesk';
    src: url('../font/brand/font-AktivGrotesk-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aktiv Grotesk Extended Bold';
    src: url('../font/brand/font-AktivGroteskXtd_Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------- Tokens -- */

:root {
    /* Palette: raw values */
    --nn-espresso: #2b1306;
    --nn-burgundy: #4e1f25;
    --nn-rust: #c9410b;
    --nn-white: #ffffff;
    --nn-paper: #fcfbf9;
    --nn-cream: #fffbf2;
    --nn-linen: #f9f4e9;
    --nn-mist: #d0dde5;
    --nn-green: #69a65a;
    --nn-red: #c85c42;
    --nn-green-dark: #4f7d43; /* AA-safe variant of --nn-green */
    --nn-red-dark: #a8452f;   /* AA-safe variant of --nn-red */

    /* Semantic */
    --color-text: var(--nn-espresso);
    --color-text-muted: #2b1306b3;
    --color-bg: var(--nn-paper);
    --color-surface: var(--nn-white);
    --color-surface-alt: var(--nn-linen);
    --color-primary: var(--nn-burgundy);
    --color-primary-hover: var(--nn-espresso);
    --color-on-primary: var(--nn-paper);
    --color-secondary-bg: var(--nn-cream);
    --color-accent: var(--nn-rust);
    --color-link: var(--nn-burgundy);
    --color-border: #2b130626;
    --color-border-strong: #2b130640;
    --color-overlay: #2b13064d;
    --color-success: var(--nn-green-dark);
    --color-error: var(--nn-red-dark);
    --color-warning: var(--nn-rust);
    --color-info: var(--nn-mist);

    /* Type */
    --font-heading: 'Nicholas', Georgia, serif;
    --font-subheading: 'Aktiv Grotesk Extended Bold', 'Aktiv Grotesk', sans-serif;
    --font-body: 'Aktiv Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Body sizes stay fixed so form controls never drop below 16px (iOS focus zoom). */
    --text-display: clamp(2.5rem, 2.06rem + 1.8vw, 3.5rem);
    --text-h1: clamp(2rem, 1.78rem + 0.9vw, 2.5rem);
    --text-h2: clamp(1.5rem, 1.39rem + 0.45vw, 1.75rem);
    --text-h3: 1.25rem;
    --text-body-lg: clamp(1.125rem, 1.07rem + 0.22vw, 1.25rem);
    --text-body: 1rem;
    --text-small: 0.875rem;
    --text-label: 0.8125rem;

    --leading-tight: 1.1;
    --leading-snug: 1.2;
    --leading-body: 1.5;

    --tracking-display: -0.015em;
    --tracking-heading: 0.025em;
    --tracking-label: 0.04em;

    /* Shape */
    --radius: 0;
}
