/* MC Cycle & Sport: kit navy and signal amber, on the road.
   Palette: the navy of the club's jerseys and of the original's tile labels, the amber #fcb900 of the
   original's "Begin your next ride here!", asphalt and road-line white. Saira Italic for display,
   Red Hat Text for text. The signature is the week strip (.week): the three weekly rides lit amber. */

@font-face {
    font-family: 'Saira';
    src: url('/fonts/saira-italic.woff2') format('woff2');
    font-weight: 500 900;
    font-stretch: 62.5% 100%;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Red Hat Text';
    src: url('/fonts/red-hat-text.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --night: #0d1426;
    --night-2: #141d36;
    --lit: #1f2b4d;
    --amber: #fcb900;
    --amber-deep: #e0a400;
    --amber-ink: #7d5200;
    --paper: #eef0f4;
    --white: #ffffff;
    --ink: #0f1424;
    --muted: #464d63;
    --on-night: #e9ecf4;
    --on-night-muted: #b6bdd2;
    --asphalt: #2a2d33;
    --logo-black: #040707;
    --radius: 18px;
    --radius-lg: 28px;
    --wrap: 1180px;
    --display: 'Saira', 'Arial Narrow', sans-serif;
    --text: 'Red Hat Text', system-ui, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--text);
    overflow-x: hidden;
}

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

a {
    color: var(--lit);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--night);
    text-decoration-color: var(--amber-deep);
}

:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--night);
    border-radius: 4px;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    font-stretch: 75%;
    line-height: 1;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: min(100% - 32px, var(--wrap));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--amber);
    color: var(--ink);
    font-weight: 700;
    border-radius: 8px;
}

.skip:focus {
    top: 12px;
}

/* ---- buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font: 700 1rem/1.2 var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-amber {
    background: var(--amber);
    color: var(--ink);
}

.btn-amber:hover {
    background: #ffcb33;
    color: var(--ink);
}

.btn-ink {
    background: var(--night);
    color: var(--white);
}

.btn-ink:hover {
    background: var(--lit);
    color: var(--white);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
}

.btn-ghost:hover {
    background: var(--white);
    color: var(--ink);
}

.btn-line {
    border-color: var(--night);
    color: var(--ink);
}

.btn-line:hover {
    background: var(--night);
    color: var(--white);
}

/* ---- header ---- */

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 20, 38, 0.9);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    color: var(--on-night);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    min-height: 72px;
    padding-block: 8px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    margin-right: auto;
}

.brand img {
    width: auto;
    height: 54px;
}

.brand-name {
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    font-stretch: 75%;
    font-size: 1.15rem;
    line-height: 0.95;
}

.brand:hover {
    color: var(--white);
}

.top-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 16px;
    border: 2px solid var(--amber);
    border-radius: 999px;
    color: var(--amber);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
}

.top-cta:hover {
    background: var(--amber);
    color: var(--ink);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.nav a {
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--on-night);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.nav a[aria-current] {
    color: var(--amber);
}

.nav a[aria-current='page'] {
    background: rgba(252, 185, 0, 0.14);
}

.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: transparent;
    color: var(--white);
    font: 700 0.95rem/1 var(--text);
    cursor: pointer;
}

.menu-btn[hidden] {
    display: none;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.menu-bars {
    position: relative;
}

.menu-bars::before,
.menu-bars::after {
    content: '';
    position: absolute;
    left: 0;
}

.menu-bars::before {
    top: -6px;
}

.menu-bars::after {
    top: 6px;
}

.menu-open .menu-bars {
    background: transparent;
}

.menu-open .menu-bars::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 1000px) {
    .menu-btn {
        display: none !important;
    }

    .top-cta {
        order: 3;
    }
}

@media (max-width: 999px) {
    .nav {
        width: 100%;
        order: 4;
    }

    .has-menu .nav {
        display: none;
    }

    .has-menu.menu-open .nav {
        display: flex;
        flex-direction: column;
        padding-bottom: 12px;
    }

    .has-menu.menu-open .nav a {
        padding: 12px 14px;
        font-size: 1.1rem;
    }
}

@media (max-width: 560px) {
    .brand img {
        height: 46px;
    }

    .brand-name {
        display: none;
    }

    .top-cta {
        padding-inline: 12px;
        font-size: 0.88rem;
    }
}

/* ---- hero ---- */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--night);
    color: var(--white);
    min-height: clamp(560px, 82vh, 780px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 50%;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(100deg, rgba(13, 20, 38, 0.96) 0%, rgba(13, 20, 38, 0.82) 38%, rgba(13, 20, 38, 0.25) 75%, rgba(13, 20, 38, 0.1) 100%),
        linear-gradient(0deg, rgba(13, 20, 38, 0.9) 0%, rgba(13, 20, 38, 0) 45%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 32px;
    padding-block: 96px 72px;
}

.hero-sign {
    display: inline-block;
    margin: 0 0 22px;
    padding: 8px 18px 8px 16px;
    background: var(--amber);
    color: var(--ink);
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    font-stretch: 87.5%;
    font-size: clamp(1.05rem, 2.4vw, 1.4rem);
    line-height: 1.1;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    padding-right: 34px;
}

.hero-title {
    margin: 0 0 24px;
    font-size: clamp(4.4rem, 19vw, 9.5rem);
    font-weight: 900;
    font-stretch: 62.5%;
    line-height: 0.84;
    letter-spacing: -0.015em;
    text-transform: uppercase;
}

.hero-line {
    display: block;
}

.hero-line + .hero-line {
    color: var(--amber);
    padding-left: 0.32em;
}

.hero-lead {
    max-width: 34ch;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--on-night);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 0;
}

.hero-logo {
    width: clamp(150px, 17vw, 230px);
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.hero-road {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    background: var(--asphalt);
}

.hero-road::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 3px;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--white) 0 44px, transparent 44px 80px);
}

@media (max-width: 760px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding-block: 72px 56px;
    }

    .hero-logo {
        display: none;
    }

    .hero-photo {
        object-position: 72% 50%;
    }

    .hero::before {
        background: linear-gradient(0deg, rgba(13, 20, 38, 0.97) 0%, rgba(13, 20, 38, 0.86) 55%, rgba(13, 20, 38, 0.45) 100%);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-sign {
        animation: sign-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }

    .hero-line {
        animation: ride-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }

    .hero-line + .hero-line {
        animation-delay: 0.12s;
    }

    .hero-road::after {
        animation: road 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }
}

@keyframes ride-in {
    from {
        opacity: 0;
        transform: translateX(-60px) skewX(-8deg);
    }
}

@keyframes sign-in {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
}

@keyframes road {
    from {
        background-position: 480px 0;
    }
}

/* ---- intro ---- */

.intro {
    padding-block: clamp(56px, 9vw, 112px);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.intro-big {
    margin: 0;
    font-family: var(--display);
    font-style: italic;
    font-weight: 700;
    font-stretch: 87.5%;
    font-size: clamp(1.7rem, 3.6vw, 2.75rem);
    line-height: 1.08;
    color: var(--night);
}

.intro-text {
    max-width: 52ch;
    color: var(--muted);
    font-size: 1.1rem;
    padding-top: 6px;
    border-top: 4px solid var(--amber);
}

.intro-text p:first-child {
    padding-top: 18px;
}

@media (max-width: 760px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- sales + service tiles ---- */

.trio {
    padding-bottom: clamp(56px, 8vw, 96px);
}

.trio-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 20px;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
}

.tile img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tile:hover img {
    transform: scale(1.04);
}

.tile-body {
    display: block;
    padding: 24px 28px 28px;
}

.tile-title {
    display: block;
    margin-bottom: 8px;
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    font-stretch: 75%;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1;
}

.tile-text {
    display: block;
    max-width: 40ch;
}

.tile-sales {
    background: var(--night);
    color: var(--on-night);
}

.tile-sales img {
    aspect-ratio: 625 / 470;
}

.tile-sales .tile-title {
    color: var(--white);
}

.tile-sales:hover {
    color: var(--on-night);
}

.tile-service {
    background: var(--paper);
    color: var(--ink);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
}

.tile-service .ticket {
    grid-column: 1;
    grid-row: 1;
    margin: 28px 0 0 28px;
}

.tile-service .tile-body {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
}

.tile-service img {
    grid-column: 2;
    grid-row: 1 / span 2;
    height: 100%;
}

.tile-service:hover {
    color: var(--ink);
}

.ticket {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-self: start;
    justify-self: start;
    padding: 14px 22px 14px 40px;
    background: var(--amber);
    color: var(--ink);
    border-radius: 6px 14px 14px 6px;
    transform: rotate(-4deg);
    box-shadow: 0 10px 24px rgba(13, 20, 38, 0.18);
}

.ticket::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--paper);
    box-shadow: inset 0 0 0 2px rgba(13, 20, 38, 0.35);
}

.ticket-price {
    font-family: var(--display);
    font-style: italic;
    font-weight: 900;
    font-stretch: 75%;
    font-size: 3.4rem;
    line-height: 0.9;
}

.ticket-cur {
    font-size: 0.5em;
    vertical-align: 0.7em;
    margin-right: 2px;
}

.ticket-name {
    font-weight: 700;
    font-size: 0.95rem;
}

@media (max-width: 860px) {
    .trio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .tile-service {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .tile-service img {
        grid-column: 1;
        grid-row: 3;
        aspect-ratio: 4 / 3;
    }

    .tile-service .tile-body {
        grid-row: 2;
    }
}

/* ---- the week on the road (signature) ---- */

.ridesband {
    position: relative;
    padding-block: clamp(64px, 9vw, 112px);
    background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
    color: var(--on-night);
}

.ridesband-head {
    display: grid;
    grid-template-columns: auto minmax(0, 36ch);
    gap: 12px 48px;
    align-items: end;
    margin-bottom: 40px;
}

.ridesband-head p {
    margin: 0;
    color: var(--on-night-muted);
}

.section-title {
    font-size: clamp(2.3rem, 5.5vw, 4rem);
    font-weight: 900;
    font-stretch: 62.5%;
}

.ridesband .section-title,
.page-hero-dark .page-title {
    color: var(--white);
}

.ridesband-more {
    margin: 40px 0 0;
}

.week {
    --road: var(--asphalt);
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.week::before {
    content: '';
    position: absolute;
    left: -8px;
    right: -8px;
    top: 50%;
    height: 4px;
    margin-top: 16px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 30px, transparent 30px 56px);
    pointer-events: none;
}

.week-day {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 210px;
    padding: 16px 14px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.week-name {
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    font-stretch: 75%;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--on-night-muted);
}

.week-full {
    display: none;
}

.week-day.is-ride {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--ink);
    z-index: 1;
}

.week-day.is-ride .week-name {
    color: var(--ink);
    font-size: 2.2rem;
}

.week-ride {
    margin-top: auto;
    display: block;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.2;
    color: var(--ink);
    text-decoration: none;
}

a.week-ride::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

a.week-ride:hover {
    color: var(--ink);
    text-decoration: underline;
}

.week-kind {
    display: block;
    width: fit-content;
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--night);
    color: var(--amber);
    font-size: 0.82rem;
    font-weight: 700;
}

.page-hero .week {
    margin-top: 40px;
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .week-day.is-ride {
            animation: light-up linear both;
            animation-timeline: view();
            animation-range: entry 10% cover 35%;
        }

        .week::before {
            animation: line-run linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 40%;
        }
    }
}

@keyframes light-up {
    from {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        transform: translateY(24px);
    }
}

@keyframes line-run {
    from {
        background-position: -400px 0;
        opacity: 0;
    }
}

@media (max-width: 760px) {
    .ridesband-head {
        grid-template-columns: 1fr;
    }

    .week {
        grid-template-columns: 1fr;
        gap: 6px;
        padding-left: 22px;
    }

    .week::before {
        left: 6px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 4px;
        height: auto;
        margin-top: 0;
        background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0 22px, transparent 22px 40px);
    }

    .week-day {
        flex-direction: row;
        align-items: center;
        min-height: 0;
        padding: 10px 14px;
    }

    .week-abbr {
        display: none;
    }

    .week-full {
        display: inline;
    }

    .week-name,
    .week-day.is-ride .week-name {
        flex: 0 0 auto;
        font-size: 1.25rem;
        min-width: 6.4em;
    }

    .week-ride {
        margin-top: 0;
    }

    .week-kind {
        margin: 0 0 4px;
    }
}

/* ---- video teaser ---- */

.teaser {
    padding-block: clamp(64px, 9vw, 112px);
}

.teaser-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
}

.teaser-text p {
    color: var(--muted);
}

.teaser-video {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--night);
    box-shadow: 0 24px 60px rgba(13, 20, 38, 0.25);
}

.teaser-video video {
    width: 100%;
    aspect-ratio: 16 / 9;
}

@media (max-width: 760px) {
    .teaser-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- visit band ---- */

.visit {
    position: relative;
    padding-block: clamp(56px, 8vw, 96px);
    background: var(--amber);
    color: var(--ink);
    overflow: hidden;
}

.visit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    align-items: end;
}

.visit-title {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 800;
    font-stretch: 87.5%;
}

.visit-address {
    margin: 0;
    font-family: var(--display);
    font-style: italic;
    font-weight: 900;
    font-stretch: 62.5%;
    font-size: clamp(3rem, 9vw, 6.5rem);
    line-height: 0.86;
    text-transform: uppercase;
}

.visit-address span {
    display: block;
}

.visit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.visit-social {
    flex-basis: 100%;
    margin: 6px 0 0;
    display: flex;
    gap: 20px;
}

.visit-social a {
    color: var(--ink);
    font-weight: 700;
}

.visit .btn-line {
    border-color: var(--ink);
}

@media (max-width: 760px) {
    .visit-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- inner pages ---- */

.page-hero {
    padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px);
    background: var(--paper);
}

.page-hero-dark {
    background: linear-gradient(160deg, var(--lit) 0%, var(--night) 55%);
    color: var(--on-night);
}

.page-title {
    max-width: 18ch;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    font-weight: 900;
    font-stretch: 62.5%;
    line-height: 0.92;
    color: var(--night);
}

.lead {
    max-width: 60ch;
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
    color: var(--muted);
}

.page-hero-dark .lead {
    color: var(--on-night);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.page-hero-photo,
.split-photo {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.page-hero-photo img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 860px) {
    .page-hero-grid {
        grid-template-columns: 1fr;
    }
}

.band {
    padding-block: clamp(48px, 7vw, 88px);
}

.band-paper {
    background: var(--paper);
}

.prose-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px clamp(24px, 5vw, 64px);
    font-size: 1.12rem;
}

.prose-cols p {
    max-width: 52ch;
    margin: 0;
}

.prose-cols p:first-child {
    font-weight: 600;
    color: var(--night);
}

@media (max-width: 760px) {
    .prose-cols {
        grid-template-columns: 1fr;
    }
}

/* service: tune-ups and the price list */

.tickets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tune {
    position: relative;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: inset 0 0 0 2px rgba(13, 20, 38, 0.08);
}

.tune-big {
    background: var(--night);
    color: var(--on-night);
    box-shadow: none;
}

.tune-name {
    margin: 0;
    font-size: 1.8rem;
    font-stretch: 75%;
}

.tune-big .tune-name {
    color: var(--white);
}

.tune-price {
    margin: 4px 0 16px;
    font-family: var(--display);
    font-style: italic;
    font-weight: 900;
    font-stretch: 62.5%;
    font-size: clamp(4.5rem, 10vw, 7rem);
    line-height: 0.85;
    color: var(--night);
}

.tune-big .tune-price {
    color: var(--amber);
}

.tune-inc {
    margin: 0 0 8px;
    font-weight: 700;
}

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

.checks li {
    position: relative;
    padding: 8px 0 8px 32px;
    border-top: 1px solid rgba(13, 20, 38, 0.1);
}

.tune-big .checks li {
    border-top-color: rgba(255, 255, 255, 0.14);
}

.checks li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 13px;
    width: 16px;
    height: 9px;
    border-left: 3px solid var(--amber-deep);
    border-bottom: 3px solid var(--amber-deep);
    transform: rotate(-45deg);
}

.tune-big .checks li::before {
    border-color: var(--amber);
}

@media (max-width: 760px) {
    .tickets {
        grid-template-columns: 1fr;
    }
}

.prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px clamp(28px, 5vw, 72px);
}

.price-title {
    padding-bottom: 12px;
    border-bottom: 4px solid var(--amber);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-stretch: 75%;
    color: var(--night);
}

.price-list {
    margin: 0;
}

.price-list div {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(13, 20, 38, 0.1);
}

.price-list dt {
    flex: 1 1 auto;
    font-weight: 600;
}

.price-list dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--night);
}

.per {
    font-weight: 400;
    color: var(--muted);
}

@media (max-width: 760px) {
    .prices {
        grid-template-columns: 1fr;
    }
}

.cta-band {
    padding-block: clamp(40px, 6vw, 64px);
    background: var(--amber);
    color: var(--ink);
}

.cta-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
}

.cta-text {
    max-width: 40ch;
    margin: 0;
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    font-stretch: 87.5%;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.1;
}

.cta-actions {
    margin: 0;
}

/* group rides */

.rides {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ride {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--paper);
    border-top: 6px solid var(--amber);
}

.ride-day {
    margin: 0 0 4px;
    font-weight: 700;
    color: var(--amber-ink);
}

.ride-name {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    font-stretch: 75%;
    color: var(--night);
}

@media (max-width: 860px) {
    .rides {
        grid-template-columns: 1fr;
    }
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.split-photo img {
    width: 100%;
}

@media (max-width: 860px) {
    .split {
        grid-template-columns: 1fr;
    }
}

/* sales */

.brands {
    padding-block: clamp(40px, 6vw, 72px);
    background: var(--night);
    color: var(--white);
}

.brand-list {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px clamp(20px, 4vw, 48px);
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--display);
    font-style: italic;
    font-weight: 900;
    font-stretch: 62.5%;
    font-size: clamp(3rem, 10vw, 7.5rem);
    line-height: 1;
    text-transform: uppercase;
}

.brand-list span {
    color: var(--amber);
}

.brand-list .brand-more {
    font-size: 0.4em;
    font-weight: 700;
    font-stretch: 87.5%;
    text-transform: none;
    color: var(--on-night-muted);
}

.gallery-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.gallery-2 figure {
    margin: 0;
}

.gallery-2 a,
.gallery-3 a {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.gallery-2 img,
.gallery-3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-2 a:hover img,
.gallery-3 a:hover img,
.split-photo:hover img,
.page-hero-photo:hover img {
    transform: scale(1.03);
}

.split-photo img,
.page-hero-photo img {
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-2 figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}

.gallery-3 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.gallery-3 a:first-child {
    grid-row: span 2;
}

@media (max-width: 640px) {
    .gallery-2,
    .gallery-3 {
        grid-template-columns: 1fr;
    }

    .gallery-3 a:first-child {
        grid-row: auto;
    }
}

/* about */

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: center;
}

.about-logo {
    width: clamp(160px, 20vw, 260px);
    height: auto;
}

@media (max-width: 760px) {
    .about-hero {
        grid-template-columns: 1fr;
    }

    .about-logo {
        width: 150px;
        order: -1;
    }
}

/* contact */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(24px, 5vw, 56px);
    align-items: start;
}

.contact-list {
    margin: 0;
}

.contact-list div {
    padding: 18px 0;
    border-bottom: 1px solid rgba(13, 20, 38, 0.12);
}

.contact-list div:first-child {
    padding-top: 0;
}

.contact-list dt {
    margin-bottom: 4px;
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    font-stretch: 75%;
    font-size: 1.5rem;
    color: var(--night);
}

.contact-list dd {
    margin: 0;
    font-size: 1.08rem;
    overflow-wrap: anywhere;
}

.form-card {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-lg);
    background: var(--paper);
}

.form-card h2 {
    font-size: 2rem;
    font-stretch: 75%;
    color: var(--night);
}

.contact-form > div {
    margin-bottom: 16px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #8a91a6;
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--night);
}

.contact-form ul {
    margin: 6px 0 0;
    padding-left: 18px;
    color: #9b1c1c;
}

.form-hint {
    margin: 12px 0 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.contact-sent {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--amber);
    color: var(--ink);
}

@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- footer ---- */

.foot {
    position: relative;
    padding-top: 64px;
    background: var(--night);
    color: var(--on-night);
}

.foot-road {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 10px;
    background: var(--asphalt);
}

.foot-road::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 3px;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--amber) 0 44px, transparent 44px 80px);
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 32px;
}

.foot-brand img {
    width: 110px;
    height: auto;
    margin-bottom: 16px;
}

.foot-slogan {
    margin-bottom: 8px;
    font-family: var(--display);
    font-style: italic;
    font-weight: 900;
    font-stretch: 62.5%;
    font-size: 2rem;
    line-height: 1;
    color: var(--amber);
}

.foot h2 {
    margin-bottom: 12px;
    font-size: 1.35rem;
    font-stretch: 75%;
    color: var(--white);
}

.foot address {
    font-style: normal;
}

.foot a {
    color: var(--on-night);
}

.foot a:hover {
    color: var(--amber);
}

.foot-mail {
    overflow-wrap: anywhere;
}

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

.foot-links li {
    margin-bottom: 6px;
}

.foot-bottom {
    margin-top: 40px;
    padding-block: 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
    color: var(--on-night-muted);
}

.foot-bottom p {
    margin: 0;
}

.foot-bottom a {
    color: var(--on-night-muted);
}

@media (max-width: 960px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .foot-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- 404 ---- */

.not-found {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 40px 16px;
    background: var(--night);
    color: var(--on-night);
    text-align: center;
}

.not-found img {
    width: 150px;
    height: auto;
    margin: 0 auto 24px;
}

.not-found h1 {
    font-size: clamp(2.6rem, 8vw, 4.5rem);
    font-weight: 900;
    font-stretch: 62.5%;
    color: var(--white);
}

.not-found p {
    max-width: 44ch;
    margin-inline: auto;
}

.not-found a:not(.btn) {
    color: var(--amber);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}

.lightbox {
    --lb-bg: rgba(8, 12, 24, 0.94);
    --lb-accent: #fcb900;
    --lb-accent-soft: rgba(252, 185, 0, 0.18);
}
