:root {
    --red: #b51d27;
    --gold: #ffd447;
    --ink: #202020;
    --cream: #fff4d1;
    --pale: #ffe899;
    --display: 'Barlow Condensed', Impact, sans-serif;
    --body: 'DM Sans', Arial, sans-serif;
    color-scheme: light
}

* {
    box-sizing: border-box
}

html {
    scroll-padding-top: 1rem
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--ink);
    font: 1rem/1.6 var(--body)
}

a {
    color: inherit;
    text-underline-offset: 4px
}

a:focus-visible, summary:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 5px
}

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

h1, h2, h3, p {
    margin-top: 0
}

h1, h2, h3 {
    line-height: 1.05;
    overflow-wrap: anywhere
}

h1, h2 {
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase
}

h2 {
    font-size: clamp(2.4rem, 4vw, 3.7rem);
    margin-bottom: 18px
}

h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.3
}

p {
    margin-bottom: 16px
}

p:last-child {
    margin-bottom: 0
}

.wrap {
    max-width: 1240px;
    margin: auto
}

.skip {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 10;
    background: var(--gold);
    padding: 12px
}

.skip:focus {
    top: 12px
}

.topbar {
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 32px
}

.brand {
    font-weight: 700;
    text-decoration: none;
    line-height: 1.25
}

.brand span {
    color: var(--gold)
}

nav {
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap
}

nav a {
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 0
}

nav a:last-child {
    background: var(--gold);
    color: var(--ink);
    padding: 8px 18px;
    border-radius: 3px
}

.hero {
    background: var(--red)
}

.hero-art {
    position: relative
}

.hero-photo {
    width: 100%
}

.hero-title {
    position: absolute;
    left: 22px;
    top: 16px;
    width: 37%
}

.hero-art::after {
    content: '';
    position: absolute;
    pointer-events: none;
    inset: 38% 52% 0 0;
    background: linear-gradient(90deg, #000b, #0007 75%, transparent)
}

.hero-details {
    position: absolute;
    z-index: 1;
    left: 32px;
    top: 43%;
    width: 35%;
    padding: 22px 24px;
    color: var(--cream);
    text-shadow: 0 2px 3px #000, 1px 0 2px #000, -1px 0 2px #000
}

.hero-details .facts { display: grid; gap: 18px }
.hero-details .fact { display: flex; align-items: center; gap: 14px }
.hero-details svg {
    width: 42px;
    height: 48px;
    flex-shrink: 0;
    color: #f3cf00;
    --icon-paper: #202020;
    text-shadow: none
}
.hero-details .label {
    display: block;
    font-size: 12px;
    line-height: 1.1;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700
}
.hero-details strong { display: block; font: 800 italic 35px/1.05 var(--display); text-transform: uppercase }
.hero-details small { font-size: .65em }
.hero-details .venue { text-decoration: none }
.hero-details .venue strong { text-decoration: underline; text-decoration-thickness: 2px }
.hero-details .map-hint { display: block; font-size: 11px; margin-top: 5px }
.hero-details .rsvp-button {
    display: inline-block;
    margin-top: 22px;
    padding: 13px 20px;
    background: var(--gold);
    color: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: 4px 4px var(--ink);
    font-weight: 700;
    text-decoration: none;
    text-shadow: none;
    transition: background-color .15s, transform .15s, box-shadow .15s
}
.hero-details .rsvp-button span { display: block; font-size: 12px }
.hero-details .rsvp-button:hover, .hero-details .rsvp-button:focus-visible {
    background: var(--cream);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px var(--ink)
}
.hero-details .venue:hover strong, .hero-details .venue:focus-visible strong {
    color: #f3cf00;
    text-decoration-thickness: 3px
}
.hero-details .venue-arrow { display: inline-block; transition: transform .15s }
.hero-details .venue:hover .venue-arrow, .hero-details .venue:focus-visible .venue-arrow { transform: translate(3px, -3px) }
.hero-welcome { padding: 12px 24px; text-align: center; font-size: 14px; font-weight: 700; color: var(--cream) }

@media (min-width: 801px) and (max-width: 1000px) {
    .hero-details { top: 39%; left: 20px; width: 38%; padding: 18px }
    .hero-details .facts { gap: 12px }
    .hero-details strong { font-size: 28px }
    .hero-details .rsvp-button { margin-top: 14px }
}
@media (prefers-reduced-motion: reduce) {
    .hero-details .rsvp-button, .hero-details .venue-arrow { transition: none; transform: none !important }
}

.eyebrow {
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px
}

.event-date {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1rem
}

.welcome {
    font-weight: 700
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 22px
}

.button {
    display: inline-block;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 3px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    min-height: 46px;
    line-height: 1.4
}

.button.dark {
    background: var(--ink);
    color: var(--cream)
}

.button.red {
    background: var(--red);
    color: #fff
}

.text-link {
    font-size: .95rem;
    font-weight: 700
}

.checkers {
    height: 15px;
    background: conic-gradient(var(--ink) 25%, var(--cream) 0 50%, var(--ink) 0 75%, var(--cream) 0) 0 0/24px 24px
}

.section {
    padding: 46px 36px
}

.section-head {
    max-width: 740px
}

.section-head > p {
    font-size: 1.1rem
}

.first {
    background: var(--cream)
}

.first-intro {
    display: grid;
    grid-template-columns:1.3fr 1fr;
    align-items: center;
    gap: 30px
}

.equipment {
    background: url('assets/kart-equipment.jpg') center top/100% 300% no-repeat;
    aspect-ratio: 3/1;
    mix-blend-mode: multiply
}

.cards {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px
}

.card {
    background: var(--pale);
    padding: 23px;
    border-top: 4px solid var(--red)
}

.card p {
    font-size: 1rem
}

.off-track {
    background: var(--gold);
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 36px;
    align-items: center
}

.off-track .social-note {
    background: var(--red);
    color: var(--cream);
    padding: 30px;
    transform: rotate(-1deg);
    box-shadow: 6px 6px 0 var(--ink)
}

.social-note strong {
    font: 800 italic 2.6rem/1.1 var(--display);
    display: block;
    margin-bottom: 14px;
    text-transform: uppercase
}

.prep {
    background: var(--red);
    color: var(--cream);
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 30px
}

.prep h2 {
    color: var(--gold)
}

.clothing {
    padding-right: 28px;
    border-right: 1px solid #ffd44766
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0
}

.checklist li {
    position: relative;
    padding: 8px 0 8px 29px
}

.checklist li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold
}

.small-note {
    margin-top: 18px;
    font-size: .95rem
}

.safety p {
    max-width: 48ch
}

.safety .callout {
    border-left: 4px solid var(--gold);
    padding-left: 18px;
    font-weight: 700
}

.directions {
    background: var(--cream)
}

.map-grid {
    display: grid;
    grid-template-columns:.85fr 1.15fr;
    gap: 30px;
    align-items: start
}

.address {
    font-style: normal;
    margin: 0 0 22px
}

.address strong {
    font-size: 1.3rem
}

.travel {
    background: var(--pale);
    padding: 20px;
    margin-top: 22px;
    border-left: 4px solid var(--red)
}

.travel strong {
    display: block;
    margin-bottom: 8px
}

.travel p {
    font-size: .95rem
}

.sketch {
    margin: 0
}

.sketch img {
    width: 100%;
    border: 2px solid var(--ink);
    border-radius: 8px
}

.sketch figcaption {
    font-size: .875rem;
    margin-top: 10px;
    line-height: 1.5
}

.google-map {
    display: block;
    width: 100%;
    height: 350px;
    border: 0;
    margin-top: 24px;
    border-radius: 6px
}

.map-fallback {
    font-size: .875rem;
    margin-top: 10px
}

.rsvp {
    background: var(--gold);
    display: grid;
    grid-template-columns:.9fr 1.1fr;
    gap: 32px;
    align-items: start
}

.rsvp-panel {
    background: var(--cream);
    padding: 28px;
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink)
}

.rsvp-panel iframe {
    width: 100%;
    border: 0;
    min-height: 420px
}

.rsvp-panel h3 {
    font-size: 1.35rem
}

.footer {
    padding: 22px 32px;
    color: var(--cream);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    font-size: .875rem;
    flex-wrap: wrap
}

.footer p {
    margin: 0
}

.kicker {
    color: var(--red)
}

@media (max-width: 800px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 20px;
        gap: 10px
    }

    nav {
        width: 100%;
        gap: 20px
    }

    .hero-title {
        top: 8px;
        left: 8px;
        width: 44%
    }

    .hero-art::after { display: none }
    .hero-details { position: static; width: auto; padding: 24px; text-shadow: none }
    .hero-details .facts { gap: 20px }
    .hero-details strong { font-size: 36px }
    .hero-details .rsvp-button { display: block; text-align: center }
    .hero-details .rsvp-button span { display: inline; margin-left: 8px }

    .section {
        padding: 32px 22px
    }

    .first-intro, .off-track, .prep, .map-grid, .rsvp {
        grid-template-columns:1fr;
        gap: 24px
    }

    .first-intro {
        gap: 5px
    }

    .equipment {
        width: min(100%, 400px);
        justify-self: center
    }

    .cards {
        grid-template-columns:1fr;
        gap: 14px;
        margin-top: 18px
    }

    .card {
        padding: 18px
    }

    .card h3 {
        margin-bottom: 6px
    }

    .off-track .social-note {
        transform: none;
        padding: 24px
    }

    .clothing {
        padding: 0 0 24px;
        border-right: 0;
        border-bottom: 1px solid #ffd44766
    }

    .google-map {
        height: 310px
    }

    .rsvp-panel {
        padding: 22px
    }

    .footer {
        padding: 20px 22px
    }

    h2 {
        font-size: 2.6rem
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth
    }
}

@media print {
    body {
        background: white
    }

    .topbar, .google-map, .actions, .skip {
        display: none
    }

    .section {
        break-inside: avoid
    }
}


.hero .headline-image {
    margin: 0;
    line-height: 1
}

.headline-image img {
    width: 100%;
    height: auto
}

.sessions {
    background: var(--pale)
}

.sessions .card {
    background: var(--cream)
}

.session-treat {
    margin-top: 28px;
    padding: clamp(20px, 3vw, 30px);
    background: var(--gold);
    border-left: 6px solid var(--red)
}

.session-treat h3 {
    color: var(--red);
    font: 800 italic clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--display);
    margin-bottom: 14px
}

.sessions .card {
    display: block
}

.rsvp > * {
    min-width: 0
}

.rsvp-panel iframe {
    display: block
}

.driver-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: var(--cream)
}

#advanced-racers {
    background: var(--pale)
}

@media (min-width: 1000px) {
    .driver-options {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

.driver-heading {
    position: relative;
    isolation: isolate;
    padding: 22px 0;
    margin-bottom: 22px
}

.driver-heading h2 {
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    margin-bottom: 0
}

.driver-art {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: multiply;
    filter: grayscale(1);
    opacity: .1;
    object-fit: contain
}

.helmet-art, .flags-art {
    right: 0;
    top: 0;
    width: min(55%, 210px);
    height: 100%
}

.helmet-art { transform: rotate(-8deg) }
.flags-art { transform: rotate(8deg) }

.kart-upgrade {
    position: relative;
    isolation: isolate;
    margin-top: 26px;
    padding: 22px;
    background: var(--cream);
    border-top: 4px solid var(--red)
}

.kart-art {
    right: 8px;
    bottom: 8px;
    width: min(65%, 250px);
    transform: rotate(-5deg)
}

.session-steps {
    list-style: none;
    padding: 0;
    margin-bottom: 0
}

.step-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    box-shadow: 3px 3px 0 var(--red);
    font: 800 italic 2rem/1 var(--display)
}

.kart-separation {
    margin: 26px 0 0;
    padding: 20px clamp(22px, 3vw, 36px);
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    border-bottom: 3px solid var(--red)
}

.venue-photos {
    display: flex;
    gap: 16px;
    max-width: 410px;
    padding: 8px;
    margin-top: 24px
}

.venue-photos figure {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 7px 7px 10px;
    background: #fff;
    border: 1px solid #20202033;
    box-shadow: 3px 5px 0 #20202033;
    transform: rotate(-4deg)
}

.venue-photos figure:nth-child(2) { transform: rotate(4deg) }

.venue-photos img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover
}

.venue-photos figcaption {
    margin-top: 7px;
    font-size: .85rem;
    font-weight: 700;
    text-align: center
}

.venue-info {
    padding: 20px;
    background: var(--pale);
    border-left: 4px solid var(--red)
}

.venue-info .address { margin-bottom: 12px }

.game-invite { display: flex; align-items: center; gap: 28px; }
.game-kart { width: 120px; height: auto; image-rendering: pixelated; }
.game-hint { font-size: .85rem; }
@media (max-width: 500px) { .game-kart { width: 80px; } .game-invite { gap: 16px; } }

.hero-visual { position: relative; }
.hero-game-launch { position: absolute; z-index: 2; right: 8px; bottom: 8px; display: block; }
.hero-game-launch img { width: clamp(80px, 12vw, 144px); height: auto; image-rendering: pixelated; filter: drop-shadow(0 3px 4px #0009); }
.hero-game-launch:focus-visible { outline: 3px solid #ffd447; outline-offset: 5px; border-radius: 4px; }

@media (prefers-reduced-motion: no-preference) {
    .hero-game-launch.wiggling img { animation: kart-wiggle .9s linear; transform-origin: 50% 80%; }
}
@keyframes kart-wiggle {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: translate(-2px, 1px) rotate(-7deg); }
    20%, 40%, 60%, 80% { transform: translate(2px, -1px) rotate(7deg); }
}

.hero-game-launch:is(:hover, :focus-visible, .wiggling) img { filter: brightness(1.15) drop-shadow(0 0 6px #ffd447) drop-shadow(0 0 12px #ffd447aa); }
