/*
 * GTimr colours, defined once. Every page links this file first and uses only these variables.
 * Taken from the logo (images/GTimrLogo.png); the page background is white.
 *
 * Contrast (WCAG, computed): white on --brand 9.18, white on --danger 9.09, white on --accent-2 5.41,
 * --accent-2 on white 5.41 and on --tint 4.79, --brand on --tint 8.13, --danger on white 9.09.
 * White on --accent is only 3.28 and fails AA, so text on an --accent button is --on-accent (near-black).
 */
:root {
    --brand: #1F5136;
    --accent: #D87327;
    --accent-2: #AC4E2D;
    --danger: #891F35;
    --tint: #E8F4ED;
    --white: #FFFFFF;

    /* Neutral text colours (not part of the logo palette). --ink on white 14.96, --muted on white 7.32 and on --tint 6.48. */
    --ink: #1C2A22;
    --muted: #4A5A50;
    /* Text on an --accent background: near-black, 5.4+ against #D87327 (white would be 3.28). */
    --on-accent: #0F1A14;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.55;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent-2); }

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
