/*
Theme Name: Nazim Shah for Ward 5
Theme URI: https://example.com/
Author: Nazim Shah Campaign
Description: A responsive, mobile-first municipal campaign theme for Nazim Shah in Cambridge Ward 5.
Version: 2.0.1
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: nazim-ward5
*/

/* ==========================================================================
   1. Design tokens
   Colours are sampled directly from the campaign poster so the HTML wordmark
   is indistinguishable from the printed artwork.
   ========================================================================== */
:root {
    --navy: #021743;
    --navy-deep: #01102f;
    --navy-bar: #001642;
    --blue: #113d75;
    --red: #b10102;
    --red-bright: #ce0018;
    --orange: #fd6200;
    --orange-warm: #fc5d23;
    --gold: #ffca28;
    --cream: #f7f3eb;
    --paper: #f1eee7;
    --white: #fff;
    --ink: #101828;
    --muted: #5e6878;

    --display: "Archivo", "Arial Black", Arial, sans-serif;
    --body: "Libre Franklin", Arial, sans-serif;

    --header-h: 60px;
    --gutter: 6vw;
    --tap: 48px;
}

@media (min-width: 900px) {
    :root {
        --header-h: 72px;
        --gutter: 7vw;
    }
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    /* Anchor links must clear the sticky header. */
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

img, picture, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.screen-reader-text:focus {
    top: 12px; left: 12px;
    width: auto; height: auto;
    padding: 12px 16px;
    z-index: 9999;
    clip: auto;
    background: var(--white);
    color: var(--navy);
}

/* Shared eyebrow / kicker label */
.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    font: 800 11px/1 var(--display);
    letter-spacing: .18em;
    text-transform: uppercase;
}

/* ==========================================================================
   3. Site header
   ========================================================================== */
.site-header {
    min-height: var(--header-h);
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.campaign-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }

.brand-mark {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    flex: none;
    background: var(--red);
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: 3px 3px 0 var(--orange);
    transform: rotate(-3deg);
    font: 900 15px/1 var(--display);
}

.brand-type { display: grid; min-width: 0; line-height: 1; }
.brand-type strong {
    font: 900 16px/1 var(--display);
    letter-spacing: -.04em;
}
.brand-type small {
    margin-top: 5px;
    color: #b9c6da;
    font: 700 8px/1.2 var(--body);
    letter-spacing: .13em;
}

.menu-toggle {
    width: var(--tap); height: var(--tap);
    margin-right: -10px;
    display: grid;
    place-items: center;
    flex: none;
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.primary-nav {
    display: none;
    font: 800 13px/1 var(--display);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.primary-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 12px var(--gutter) 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--navy);
    box-shadow: 0 22px 40px rgba(0, 0, 0, .3);
}
.primary-nav a:not(.nav-donate) {
    min-height: var(--tap);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.nav-donate {
    min-height: var(--tap);
    margin-top: 14px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: var(--navy);
    font-weight: 900;
    letter-spacing: .06em;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

@media (min-width: 1080px) {
    .menu-toggle { display: none; }
    .primary-nav {
        display: flex;
        align-items: center;
        gap: clamp(18px, 2vw, 32px);
    }
    .primary-nav a:not(.nav-donate) {
        min-height: 0;
        padding: 26px 0 24px;
        position: relative;
        border: 0;
        transition: color .25s ease;
    }
    .primary-nav a:not(.nav-donate)::after {
        content: "";
        height: 4px;
        position: absolute;
        left: 0; right: 0; bottom: 16px;
        background: linear-gradient(90deg, var(--gold), var(--orange));
        transform: scaleX(0);
        transition: transform .3s cubic-bezier(.2, .8, .2, 1);
    }
    .primary-nav a:not(.nav-donate):hover,
    .primary-nav a:not(.nav-donate):focus-visible { color: var(--gold); }
    .primary-nav a:not(.nav-donate):hover::after,
    .primary-nav a:not(.nav-donate):focus-visible::after { transform: scaleX(1); }
    .nav-donate { margin-top: 0; }
    .nav-donate:hover, .nav-donate:focus-visible {
        background: var(--gold);
        transform: translate(-2px, -2px);
        box-shadow: 4px 4px 0 var(--white);
    }
    .brand-mark { width: 44px; height: 44px; font-size: 17px; }
    .brand-type strong { font-size: 18px; }
    .brand-type small { font-size: 9px; }
}

/* ==========================================================================
   4. Hero
   Three stacked rows: poster, action bar, message. On desktop the whole
   block is constrained to one viewport so all three are visible without
   scrolling; the poster row absorbs whatever space is left over.
   ========================================================================== */
.campaign-hero {
    display: grid;
    grid-template-rows: auto auto auto;
    background: var(--navy);
    color: var(--white);
}

/* --- 4a. Hero banner -------------------------------------------------------
   The full campaign poster (unedited artwork, just trimmed of its dead top/
   bottom margin — see nazim_ward5_image('nazim-hero', ...) call). The frame
   OWNS the height (via the clamp below on desktop); the image is then told
   to fill exactly 100% of that, so it always meets the header above and the
   orange divider below with no cream margin in between. Letting a grid row
   stretch the frame while the image sized itself independently (an earlier
   version of this rule) was what caused a mismatched gap — this keeps the
   two in lockstep instead. Never cropped: on any unusual aspect ratio the
   width caps out first and the frame's overflow:hidden guards the rest. */
.hero-image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--paper);
    border-bottom: 6px solid var(--orange);
}
.hero-image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 4b. Action bar ------------------------------------------------------- */
.quick-actions {
    padding: 14px var(--gutter) 16px;
    display: grid;
    gap: 12px;
    background: var(--paper);
    border-bottom: 1px solid #d9d2c4;
}
.quick-actions > div { display: grid; gap: 4px; color: var(--navy); }
.quick-actions small {
    color: var(--red);
    font: 800 10px/1 var(--display);
    letter-spacing: .15em;
    text-transform: uppercase;
}
.quick-actions strong {
    font: 900 clamp(17px, 4.4vw, 30px)/1.05 var(--display);
    letter-spacing: -.035em;
    text-transform: uppercase;
}
.quick-actions nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.quick-actions a {
    min-height: var(--tap);
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    border: 2px solid transparent;
    font: 900 clamp(10px, 2.9vw, 12px)/1.1 var(--display);
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease;
}
.quick-actions a:hover, .quick-actions a:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 7px 0 rgba(2, 23, 67, .16);
}
.quick-actions .action-red { background: var(--red); color: var(--white); }
.quick-actions .action-white { background: var(--white); color: var(--navy); border-color: var(--navy); }
/* Navy on orange = 5.2:1, so this passes AA at any size. */
.quick-actions .action-orange { background: var(--orange); color: var(--navy); }
.quick-actions .action-orange:first-child { grid-column: auto; }
.quick-actions nav > :last-child:nth-child(odd) { grid-column: 1 / -1; }

@media (min-width: 720px) {
    .quick-actions {
        padding-block: 16px 18px;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 24px;
    }
    .quick-actions nav { grid-template-columns: repeat(3, auto); }
    .quick-actions a { padding-inline: 20px; }
    .quick-actions nav > :last-child:nth-child(odd) { grid-column: auto; }
}

/* --- 4c. Message ---------------------------------------------------------- */
.hero-message {
    padding: 26px var(--gutter) 32px;
    display: grid;
    align-content: center;
    gap: 22px;
    position: relative;
    overflow: hidden;
}
.hero-message::after {
    content: "5";
    position: absolute;
    right: -.06em; top: 50%;
    color: rgba(255, 255, 255, .05);
    font: 900 clamp(200px, 42vh, 380px)/1 var(--display);
    transform: translateY(-52%);
    pointer-events: none;
}
.hero-message > * { position: relative; z-index: 1; }
.hero-message h1 {
    margin: 0 0 12px;
    font: 900 clamp(30px, min(7.6vw, 8.4vh), 66px)/.9 var(--display);
    letter-spacing: -.055em;
    text-transform: uppercase;
}
.hero-message h1 span { color: var(--orange); }
.hero-intro {
    max-width: 62ch;
    margin: 0;
    color: #d5deeb;
    font-size: clamp(14px, 3.5vw, 19px);
    line-height: 1.6;
}

.vote-stack {
    display: grid;
    justify-items: start;
    gap: 12px;
    color: inherit;
}
.vote-callout {
    color: var(--white);
    font: 900 clamp(22px, min(6vw, 5vh), 44px)/.9 var(--display);
    letter-spacing: -.05em;
    text-transform: uppercase;
    transform: rotate(-2deg);
    transition: color .24s ease, transform .24s ease;
}
.vote-callout span {
    width: .98em; height: .98em;
    display: inline-grid;
    place-items: center;
    border: .09em solid currentColor;
    border-radius: 50%;
    font-size: .86em;
    line-height: 1;
    vertical-align: .05em;
}
.election-card {
    padding: 14px 20px;
    display: grid;
    gap: 3px;
    background: var(--red);
    color: var(--white);
    border: 3px solid var(--white);
    box-shadow: 7px 7px 0 var(--orange);
    transform: rotate(1.5deg);
    transition: transform .24s ease, box-shadow .24s ease;
}
.election-card small {
    color: #ffd0d5;
    font: 800 9px/1 var(--display);
    letter-spacing: .16em;
    text-transform: uppercase;
}
.election-card strong { font: 900 clamp(24px, 6vw, 34px)/.95 var(--display); letter-spacing: -.04em; }
.election-card span { font: 800 clamp(11px, 3vw, 14px)/1.1 var(--display); }
.vote-stack:hover .vote-callout { color: var(--gold); transform: translateY(-3px) rotate(-2deg); }
.vote-stack:hover .election-card { transform: translateY(-2px) rotate(1.5deg); box-shadow: 9px 10px 0 var(--orange); }

@media (min-width: 900px) {
    .hero-image-frame { border-bottom-width: 8px; }
    .hero-message {
        padding-block: 30px 36px;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 5vw;
    }
    .vote-stack { justify-items: center; gap: 16px; }
    .election-card { min-width: 250px; box-shadow: 10px 10px 0 var(--orange); }
}

@media (min-width: 900px) and (min-height: 600px) {
    /* Both rules reference the same --hero-h variable rather than the
       image using height:100% of the frame: percentage heights on a flex
       item with align-items other than stretch (our .hero-image-frame is
       centred, not stretched) don't reliably resolve against the frame's
       own height across engines. Pinning both to one literal value sidesteps
       that instead of fighting it. object-fit: contain then letterboxes
       whichever axis (almost always the sides) ends up with slack. */
    .hero-image-frame {
        --hero-h: clamp(260px, 46vh, 460px);
        height: var(--hero-h);
    }
    .hero-image-frame img {
        width: 100%;
        height: var(--hero-h);
        object-fit: contain;
    }
}

/* ==========================================================================
   5. Hashtag marquee
   ========================================================================== */
.hashtag-carousel { position: relative; overflow: hidden; background: var(--red); isolation: isolate; }
.marquee-row { overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .14); }
.marquee-white { background: var(--white); color: var(--navy); }
.marquee-navy { background: var(--navy); color: var(--white); }
.marquee-red { background: #f23834; color: var(--white); }
.marquee-track {
    width: max-content;
    display: flex;
    will-change: transform;
    animation: better-roads-marquee 46s linear infinite;
}
.marquee-track.marquee-reverse { animation-direction: reverse; animation-duration: 54s; }
.marquee-group { display: flex; flex: none; }
.marquee-item {
    padding: 14px .23em 15px 0;
    white-space: nowrap;
    font: 900 clamp(30px, 8vw, 84px)/.85 var(--display);
    letter-spacing: -.065em;
    text-transform: uppercase;
}
.marquee-item:nth-child(3n + 1) { color: var(--red); }
.marquee-item:nth-child(3n + 2) { color: var(--orange); }
.marquee-item:nth-child(3n) { color: var(--gold); }
.marquee-navy .marquee-item:nth-child(3n + 1) { color: var(--white); }
.marquee-navy .marquee-item:nth-child(3n + 2) { color: var(--red-bright); }
.marquee-navy .marquee-item:nth-child(3n) { color: var(--gold); }
.marquee-red .marquee-item:nth-child(3n + 1) { color: var(--navy); }
.marquee-red .marquee-item:nth-child(3n + 2) { color: var(--white); }
.marquee-red .marquee-item:nth-child(3n) { color: var(--gold); }
@keyframes better-roads-marquee { to { transform: translateX(-50%); } }

@media (min-width: 900px) { .marquee-item { padding-block: 22px 23px; } }

/* ==========================================================================
   6. Content sections
   ========================================================================== */
.section { padding: 56px var(--gutter); display: grid; gap: 36px; }

.section-title h2,
.section-heading h2,
.about h2,
.signup-copy h2,
.final-cta h2 {
    margin: 0;
    font: 900 clamp(30px, 7.4vw, 72px)/.95 var(--display);
    letter-spacing: -.055em;
    text-transform: uppercase;
}

/* --- Why I'm running ------------------------------------------------------ */
.why-running { background: var(--navy); color: var(--white); }
.why-heading { display: grid; align-content: start; gap: 22px; }
.message-photo {
    margin: 0;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--navy-deep);
    border: 5px solid var(--white);
    box-shadow: 10px 10px 0 var(--orange);
}
.message-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    transition: transform .35s ease;
}
.message-photo:hover img { transform: scale(1.04); }
.message-photo figcaption {
    padding: 10px 12px;
    position: absolute;
    right: 10px; bottom: 10px; left: 10px;
    background: rgba(2, 23, 67, .92);
    color: var(--white);
    font: 800 9px/1.2 var(--display);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.why-copy > p { margin-top: 0; color: #ccd7e8; font-size: clamp(15px, 4vw, 18px); line-height: 1.75; }
.why-copy blockquote {
    margin: 28px 0 0;
    padding: 3px 0 3px 22px;
    border-left: 5px solid var(--orange);
    color: var(--white);
    font: 700 clamp(17px, 4.8vw, 24px)/1.45 var(--display);
    letter-spacing: -.02em;
}

/* --- Priorities ----------------------------------------------------------- */
.priorities { background: var(--cream); }
.section-heading { display: grid; gap: 16px; }
.section-heading .eyebrow, .about .eyebrow, .signup-copy .eyebrow { color: var(--blue); }
.why-nazim .eyebrow, .why-nazim .section-title .eyebrow { color: var(--navy); }
.section-heading > p { margin: 0; color: var(--muted); font-size: clamp(15px, 4vw, 18px); }
.priority-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.priority-grid article {
    padding: 26px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-top: 7px solid var(--gold);
    transition: transform .2s ease, box-shadow .2s ease;
}
.priority-grid article:nth-child(2) { border-color: var(--red); }
.priority-grid article:nth-child(3) { border-color: var(--blue); }
.priority-grid article:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(2, 23, 67, .13); }
.priority-grid article > span { color: #aeb4bf; font: 800 12px/1 var(--display); letter-spacing: .15em; }
.priority-grid h3 {
    margin: 20px 0 12px;
    font: 900 clamp(21px, 5.6vw, 28px)/1.05 var(--display);
    letter-spacing: -.045em;
    text-transform: uppercase;
}
.priority-grid p { margin: 0; color: var(--muted); }
.priority-grid ul { margin: 20px 0 0; padding: 18px 0 0; display: grid; gap: 8px; list-style: none; border-top: 1px solid #e7e2d6; font-size: 13px; font-weight: 700; }
.priority-grid li::before { content: "\2713"; margin-right: 8px; color: var(--red); }

/* --- Meet Nazim ----------------------------------------------------------- */
.about { background: var(--white); }
.about-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--navy);
    border: 6px solid var(--white);
    box-shadow: -14px 14px 0 var(--orange);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 6%; }
.about-photo > div {
    padding: 13px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    position: absolute;
    left: 16px; right: 16px; bottom: 16px;
    background: var(--navy);
    color: var(--white);
    border-left: 5px solid var(--orange);
}
.about-photo span { color: #b7c5d9; font: 800 9px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.about-photo strong { font: 900 21px/1 var(--display); }
.about-copy { display: grid; align-content: center; gap: 4px; }
.about-copy > p:not(.eyebrow) { color: #465165; font-size: clamp(15px, 4vw, 17px); line-height: 1.75; }
.about-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.about-tags span {
    padding: 9px 12px;
    background: var(--cream);
    color: var(--navy);
    border-left: 3px solid var(--orange);
    font-size: 12px;
    font-weight: 800;
}

/* --- Why vote for Nazim --------------------------------------------------- */
.why-nazim { background: var(--gold); color: var(--navy); }
.reason-grid { display: grid; grid-template-columns: 1fr; }
.reason-grid > div {
    padding: 18px 4px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 13px;
    border-bottom: 1px solid rgba(2, 23, 67, .23);
}
.reason-grid > div > span {
    width: 32px; height: 32px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-weight: 900;
}
.reason-grid strong { font: 800 clamp(14px, 3.9vw, 16px)/1.35 var(--display); }
.reason-grid small { align-self: start; color: rgba(2, 23, 67, .45); font-weight: 900; }

/* --- Signup band ---------------------------------------------------------- */
.signup-band {
    padding: 48px var(--gutter);
    display: grid;
    gap: 30px;
    background: var(--blue);
    color: var(--white);
    border-bottom: 7px solid var(--red);
    scroll-margin-top: var(--header-h);
}
.signup-copy > p:last-child { margin: 10px 0 0; color: #ccd8ea; }
.signup-form { display: grid; grid-template-columns: 1fr; align-items: end; gap: 10px; }
.signup-form label { display: grid; gap: 7px; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.signup-form input {
    width: 100%;
    min-height: var(--tap);
    padding: 0 14px;
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    border: 1px solid #718aae;
    outline: none;
}
.signup-form input::placeholder { color: #bac8da; }
.signup-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(253, 98, 0, .3); }
.signup-form button, .button-primary {
    min-height: var(--tap);
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    background: var(--orange);
    color: var(--navy);
    border: 2px solid transparent;
    font: 900 12px/1 var(--display);
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.signup-form button:hover, .button-primary:hover { background: var(--gold); transform: translateY(-2px); }
.honeypot { position: absolute !important; left: -9999px !important; }
.form-error { grid-column: 1 / -1; margin: 4px 0 0; color: #ffd5d9; font-weight: 700; }
.form-message { display: flex; align-items: center; gap: 13px; color: var(--gold); }
.form-message > span {
    width: 40px; height: 40px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-weight: 900;
}
.form-message strong { font: 800 20px/1.25 var(--display); }
.form-consent { grid-column: 1 / -1; margin: 2px 0 0; color: #c6d5e8; font-size: 11px; line-height: 1.5; }

/* --- Final CTA ------------------------------------------------------------ */
.final-cta {
    padding: 60px var(--gutter);
    position: relative;
    overflow: hidden;
    text-align: center;
    background: var(--navy);
    color: var(--white);
}
.final-cta::after {
    content: "5";
    position: absolute;
    right: 2vw; top: 50%;
    color: rgba(255, 255, 255, .05);
    font: 900 clamp(220px, 46vh, 400px)/1 var(--display);
    transform: translateY(-52%);
    pointer-events: none;
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { max-width: 850px; margin: 0 auto 28px; }
.final-cta > div { display: grid; gap: 10px; justify-content: stretch; }
.final-cta .button-outline {
    min-height: var(--tap);
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, .75);
    color: var(--white);
    font: 900 12px/1 var(--display);
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease;
}
.final-cta .button-outline:hover { background: var(--white); color: var(--navy); }

/* --- Section layouts at tablet and up ------------------------------------- */
@media (min-width: 720px) {
    .section { padding-block: 76px; gap: 46px; }
    .priority-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reason-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reason-grid > div { padding: 20px; border-left: 1px solid rgba(2, 23, 67, .23); }
    .signup-form { grid-template-columns: 1fr 1fr; }
    .signup-form button { grid-column: 1 / -1; }
    .final-cta { padding-block: 78px; }
    .final-cta > div { display: flex; justify-content: center; gap: 12px; }
}

@media (min-width: 1000px) {
    .section { padding-block: 96px; column-gap: 7vw; }
    .why-running { grid-template-columns: .82fr 1.18fr; align-items: start; }
    .section-heading { grid-template-columns: 1fr .62fr; align-items: end; column-gap: 5vw; }
    .priorities { gap: 46px; }
    .priority-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .priority-grid article { min-height: 370px; }
    .about { grid-template-columns: minmax(280px, .8fr) 1.2fr; align-items: center; }
    .why-nazim { grid-template-columns: .72fr 1.28fr; align-items: start; }
    .signup-band { grid-template-columns: .72fr 1.28fr; align-items: center; column-gap: 5vw; }
    .signup-form { grid-template-columns: .8fr 1fr .6fr auto; }
    .signup-form button { grid-column: auto; }
    .message-photo { aspect-ratio: 5 / 4; }
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer { padding: 46px var(--gutter) 22px; background: var(--navy-deep); color: var(--white); }
.footer-main { padding-bottom: 34px; display: grid; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand > div { display: grid; gap: 6px; }
.footer-brand strong { font: 900 21px/1 var(--display); }
.footer-brand p { margin: 0; color: #98a8bf; font-size: 13px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; font-size: 13px; font-weight: 700; }
.footer-links a { min-height: 32px; display: flex; align-items: center; }
.footer-legal {
    padding-top: 20px;
    display: grid;
    gap: 10px;
    border-top: 1px solid #263a58;
    color: #8595ad;
    font-size: 10px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

@media (min-width: 900px) {
    .site-footer { padding-block: 58px 24px; }
    .footer-main { grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
    .footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
    .footer-legal { grid-auto-flow: column; justify-content: space-between; }
}

/* ==========================================================================
   8. Interior pages
   ========================================================================== */
.content-page { min-height: 60vh; padding: 56px var(--gutter); background: var(--white); }
.content-inner { max-width: 900px; margin: 0 auto; }
.content-page h1 {
    margin: 0 0 26px;
    font: 900 clamp(32px, 8vw, 76px)/.95 var(--display);
    letter-spacing: -.055em;
    text-transform: uppercase;
}
.content-page .eyebrow { color: var(--blue); }
.entry-content { color: #465165; font-size: clamp(15px, 4vw, 17px); line-height: 1.8; }
.entry-content :is(h2, h3) { color: var(--ink); font-family: var(--display); letter-spacing: -.03em; }
.entry-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 900px) { .content-page { padding-block: 92px; } }

/* ==========================================================================
   9. Motion & print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .marquee-track { animation: none; }
}

@media print {
    .site-header, .hashtag-carousel, .quick-actions, .final-cta, .menu-toggle { display: none; }
    body { background: #fff; color: #000; }
}
