/*
 * Xuntos brand tokens. The rest of the CSS refers only to these custom properties, so the brand
 * is swapped in this one file.
 *
 * The Xuntos house style as on www.xuntos.nl: headings in Ubuntu bold (700), body text in Nunito Sans,
 * near-black #0d0700 for titles, links and dark sections, and orange #f57c00 as the brand accent.
 * Every contrast ratio below is WCAG 2.2: text needs at least 4.5:1, UI borders and the focus ring
 * at least 3:1.
 *
 * The orange accent is 2.70:1 on white: never use it for text or borders on a light background.
 * Use it as a fill with --color-on-accent on top, for decorative elements, or on --color-dark.
 * For orange text on a light background use --color-accent-large-text, and only for large text
 * (at least 24px), where 3:1 is enough. The one exception is --color-title-thanks, the thank-you page
 * title in the exact brand orange at marketing's request, recorded in the site-layout spec.
 *
 * The fonts are self-hosted woff2 files in wwwroot/fonts/ (Latin subsets), never loaded from a font
 * CDN: Ubuntu under the Ubuntu Font Licence (wwwroot/fonts/UFL.txt), Nunito Sans under the SIL Open
 * Font License (wwwroot/fonts/OFL.txt).
 */
@font-face {
    font-family: "Ubuntu";
    src: url("../fonts/ubuntu-700-latin.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Nunito Sans";
    src: url("../fonts/nunito-sans-latin-variable.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colours */
    --color-primary: #0d0700;            /* links, secondary button, titles: on --color-background 20.05:1, on --color-surface 19.54:1 */
    --color-primary-hover: #555555;      /* on --color-background 7.46:1, on --color-surface 7.27:1 */
    --color-on-primary: #ffffff;         /* on --color-primary 20.05:1 */
    --color-accent: #f57c00;             /* brand orange: fill or decoration only, 2.70:1 on --color-background */
    --color-on-accent: #0d0700;          /* on --color-accent 7.41:1 */
    --color-accent-large-text: #d96c00;  /* darker brand orange for text of at least 24px only: on --color-background 3.45:1, on --color-surface 3.36:1 */
    --color-title-thanks: #f57c00;       /* thank-you page title only: 2.70:1 on --color-background, below 3:1; the one contrast exception the site-layout spec allows, at marketing's request */
    --color-text: #141414;               /* on --color-background 18.42:1, on --color-surface 17.96:1 */
    --color-text-muted: #555555;         /* on --color-background 7.46:1, on --color-surface 7.27:1 */
    --color-background: #ffffff;
    --color-surface: #fcfcfc;
    --color-border: #86837f;             /* UI border: on --color-background 3.77:1, on --color-surface 3.68:1 */
    --color-divider: rgba(0, 0, 0, 0.05); /* decorative separator only, not a UI border */
    --color-focus: #0d0700;              /* focus ring: on --color-background 20.05:1, on --color-surface 19.54:1 */
    --color-dark: #0d0700;               /* dark sections (header, footer); the orange logo on it 7.41:1 */
    --color-on-dark: #ffffff;            /* text and links on --color-dark 20.05:1 */
    --color-on-dark-hover: #f57c00;      /* link hover on --color-dark 7.41:1 */
    --color-focus-on-dark: #f57c00;      /* focus ring on --color-dark 7.41:1 */
    --color-error: #b00020;              /* on --color-background 7.33:1, on --color-error-surface 6.42:1 */
    --color-error-surface: #fdecee;      /* --color-text on it 16.15:1 */
    --color-success: #1e6b34;            /* on --color-success-surface 5.83:1 */
    --color-success-surface: #e8f5ec;    /* --color-text on it 16.41:1 */
    --color-info: #0d0700;               /* on --color-info-surface 19.54:1 */
    --color-info-surface: #fcfcfc;       /* --color-text on it 17.96:1 */

    /* Typography */
    --font-family-base: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-heading: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-small: 0.875rem;
    --font-size-base: 1rem;
    --font-size-large: 1.25rem;
    --font-size-h2: 1.5rem;
    --font-size-h1: 2rem;
    --font-weight-normal: 400;
    --font-weight-bold: 700;
    --font-weight-heading: 700;
    --line-height-base: 1.5;
    --line-height-heading: 1.2;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;

    /* Shape and layout */
    --radius: 0.5rem;                    /* 8px */
    --border-width: 1px;
    --accent-bar-width: 4px;
    --focus-width: 3px;
    --content-max-width: 72rem;
    --reading-max-width: 40rem;          /* a single column of running text, about 70 characters per line */
}
