/*
 * What the three pages share: the AHG typeface (Inter, served from this site), the colours, the
 * logo and the dark background. Each page adds its own file after this one.
 */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-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: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-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 {
    --bordo: #942839;
    --bordo-hi: #c9415a;
    --bordo-lo: #5a1622;
    --bg: #0a0b0f;
    --bg-2: #101117;
    --panel: #14151c;
    --panel-2: #1b1c25;
    --panel-3: #23242f;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .15);
    --text: #f4f2f3;
    --muted: #a3a4ae;
    --faint: #6f717d;
    --ok: #34b874;
    --run: #e9aa1c;
    --bad: #f0566a;
    --test: #6d9cff;
    --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --serif: Georgia, "Times New Roman", serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* The backdrop: a deep burgundy glow and a fine grid, like a control room. */
.ahg-backdrop {
    background-color: var(--bg);
    background-image:
        radial-gradient(1200px 600px at 12% -10%, rgba(148, 40, 57, .34), transparent 60%),
        radial-gradient(900px 500px at 110% 110%, rgba(148, 40, 57, .16), transparent 60%),
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: auto, auto, 56px 56px, 56px 56px;
    background-attachment: fixed;
}

/* The AHG mark (the square with two bars) and the name beside it. */
.ahg-logo { display: inline-flex; align-items: center; gap: .55em; color: var(--text); text-decoration: none; line-height: 1; }
.ahg-logo svg { flex: none; width: 2.1em; height: 2.1em; color: var(--bordo); }
.ahg-logo__rule { flex: none; width: 1px; align-self: stretch; margin: .1em 0; background: currentColor; opacity: .35; }
.ahg-logo__text { display: flex; flex-direction: column; gap: .08em; font-size: .62em; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.ahg-eyebrow { margin: 0; color: var(--bordo-hi); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* A live dot that breathes. */
.ahg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.ahg-dot--live { background: var(--bad); box-shadow: 0 0 0 0 rgba(240, 86, 106, .6); animation: ahg-pulse 1.8s ease-out infinite; }
.ahg-dot--ok { background: var(--ok); }
.ahg-dot--run { background: var(--run); }
@keyframes ahg-pulse { 0% { box-shadow: 0 0 0 0 rgba(240, 86, 106, .55); } 70% { box-shadow: 0 0 0 9px rgba(240, 86, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 86, 106, 0); } }

@media (prefers-reduced-motion: reduce) {
    .ahg-dot--live { animation: none; }
}
