/* All pages load this file first, followed by their own stylesheet. */
/* Custom properties keep repeated colours in one place. */
/* Website v1 palette: FN2 paint-inspired screen colours, not paint-mixing values. */
:root {
    /* Milano Red uses the specification's brighter, brand-tuned R81 variant. */
    --milano-red: #c91526;
    --nighthawk-black: #000000;
    --alabaster-silver: #cac9c6;
    --deep-bronze: #4a4038;
    --championship-white: #f9f8f7;
    --deep-sapphire: #172349;

    /* Role names let components share the palette without repeating HEX values. */
    --background: var(--championship-white);
    --ink: var(--nighthawk-black);
    --muted: var(--deep-bronze);
    --brand-accent: var(--milano-red);
    --on-brand: var(--championship-white);
    --line: var(--alabaster-silver);
    --surface: var(--alabaster-silver);
    --status-background: var(--deep-sapphire);
    --on-status: var(--championship-white);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 5px; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px; background: var(--status-background); color: var(--on-status); z-index: 1; }
.skip-link:focus { top: 12px; }

/* Shared header, navigation and page spacing. */
/* Match About's layout across every page: grow with wide screens and include
   the 40px side padding. min(100%, ...) keeps it inside smaller windows. */
.site-header, main {
    width: min(100%, max(1100px, calc(60vw + 80px)));
    margin: auto;
}
.site-header { padding: 24px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 32px; text-decoration: none; color: var(--brand-accent); }
.brand span { max-width: 90px; font-size: 11px; line-height: 1.2; letter-spacing: 2px; color: var(--ink); }
nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
nav a { font-size: 14px; text-decoration: none; padding: 6px 0; }
nav a:hover, nav a[aria-current="page"] { border-bottom: 2px solid var(--ink); }
main { padding: 52px 40px 64px; }

/* Shared typography. */
.eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; }
h1 { font-size: clamp(60px, 7vw, 100px); line-height: .95; letter-spacing: -5px; margin: 24px 0; }
h1 span { background: var(--brand-accent); color: var(--on-brand); padding: 0 8px; }
.intro { font-size: 20px; line-height: 1.5; max-width: 480px; }
h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -1px; margin: 0; }
h3 { font-size: 23px; line-height: 1.2; letter-spacing: -.5px; margin: 0; }
dt { font-size: 13px; font-weight: 700; }
.data-note { font-size: 12px; color: var(--muted); max-width: 900px; }

/* Page intros share the Polls heading and readable text width. */
.page-intro h1 { font-size: clamp(44px, 6.4vw, 88px); }
.page-intro .intro { max-width: 580px; }

/* Reusable links, status banners, section headings and cards. */
.button { display: inline-flex; gap: 40px; background: var(--ink); color: var(--background); padding: 13px 20px; text-decoration: none; margin-top: 12px; font-weight: 700; }
.button:hover { background: var(--deep-bronze); }
/* Equal columns keep related prompts side by side; auto margins align the CTAs. */
.page-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 40px; padding-block: 28px; border-block: 1px solid var(--line); }
.page-shortcuts > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.page-shortcuts p { margin: 0 0 16px; font-weight: 700; }
.page-shortcuts .button { margin-top: auto; max-width: 100%; align-items: center; }
.text-link { font-size: 13px; font-weight: 700; }
.status { display: flex; align-items: center; gap: 28px; border-block: 1px solid var(--ink); margin: 48px 0; padding: 18px 0; }
.status strong { white-space: nowrap; font-size: 11px; background: var(--status-background); color: var(--on-status); padding: 6px 10px; }
.status p { margin: 0; font-size: 14px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading > p { font-size: 12px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 24px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.tag { font-size: 10px; letter-spacing: 1px; font-weight: 700; margin: 0 0 20px; }
.card > p:not(.tag) { font-size: 14px; }
.card > a { margin-top: auto; }

/* Shared components keep their responsive rules here too. */
@media (max-width: 1000px) {
    .site-header { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 650px) {
    .site-header { padding: 20px; }
    nav { gap: 8px 18px; }
    main { padding: 32px 20px; }
    .page-shortcuts { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
    h1 { letter-spacing: -3px; }
    .status, .section-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
    .section-heading > p { margin: 0; }
}
