:root {
    color-scheme: dark;
    --orange: #ff6b00;
    --orange-strong: #f05f00;
    --navy: #0f172a;
    --ink: #e5eefc;
    --muted: #94a3b8;
    --surface: #111c31;
    --surface-2: #172338;
    --line: rgba(226, 232, 240, .14);
    --white: #ffffff;
    --soft: #f1f5f9;
    --shadow: 0 24px 80px rgba(3, 7, 18, .32);
}

[data-theme="light"] {
    color-scheme: light;
    --navy: #f8fafc;
    --ink: #0f172a;
    --muted: #475569;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --line: rgba(15, 23, 42, .12);
    --shadow: 0 20px 60px rgba(15, 23, 42, .12);
}

* {
    box-sizing: border-box;
}

html {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--navy);
    color: var(--ink);
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 107, 0, .18), transparent 34rem),
        linear-gradient(180deg, rgba(15, 23, 42, .94), var(--navy));
}

[data-theme="light"] body {
    background:
        radial-gradient(circle at top left, rgba(255, 107, 0, .12), transparent 32rem),
        linear-gradient(180deg, #ffffff, #f8fafc);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header,
.site-footer,
main {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    backdrop-filter: blur(16px);
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--orange);
    color: var(--white);
    font-weight: 900;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    max-width: 260px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(15, 23, 42, .5);
}

[data-theme="light"] .main-nav {
    background: rgba(255, 255, 255, .8);
}

.main-nav a {
    min-height: 36px;
    padding: 9px 12px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.main-nav a.active,
.main-nav a:hover {
    background: var(--surface-2);
    color: var(--ink);
}

.theme-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}

.icon-sun,
.icon-sun::before {
    display: block;
    border-radius: 999px;
}

.icon-sun {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
}

.icon-sun::before {
    width: 6px;
    height: 6px;
    margin: 4px;
    background: currentColor;
    content: "";
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 34px;
    align-items: center;
    min-height: calc(100vh - 114px);
    padding: 34px 0 52px;
}

.hero-copy,
.page-hero {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 18px;
    font-size: clamp(42px, 8vw, 78px);
    line-height: .98;
    letter-spacing: 0;
}

.compact h1 {
    font-size: clamp(34px, 6vw, 58px);
}

h2 {
    margin-bottom: 10px;
    font-size: 22px;
}

p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.hero-copy p,
.page-hero p {
    max-width: 650px;
    font-size: 19px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 900;
}

.btn.primary {
    background: var(--orange);
    color: var(--white);
}

.btn.primary:hover {
    background: var(--orange-strong);
}

.btn.secondary {
    border: 1px solid var(--line);
    background: var(--surface);
}

.activity-panel,
.item-card,
.feature-band article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(17, 28, 49, .76);
    box-shadow: var(--shadow);
}

[data-theme="light"] .activity-panel,
[data-theme="light"] .item-card,
[data-theme="light"] .feature-band article {
    background: rgba(255, 255, 255, .86);
}

.activity-panel {
    padding: 18px;
}

.map-card {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(90deg, transparent 31px, var(--line) 32px),
        linear-gradient(0deg, transparent 31px, var(--line) 32px),
        #142033;
    background-size: 64px 64px;
}

[data-theme="light"] .map-card {
    background:
        linear-gradient(90deg, transparent 31px, rgba(15, 23, 42, .08) 32px),
        linear-gradient(0deg, transparent 31px, rgba(15, 23, 42, .08) 32px),
        #f8fafc;
    background-size: 64px 64px;
}

.route-line {
    position: absolute;
    inset: 70px 56px 82px 42px;
    border: 8px solid var(--orange);
    border-right-color: transparent;
    border-bottom-color: #38bdf8;
    border-radius: 45% 55% 52% 48%;
    transform: rotate(-10deg);
}

.pin {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 4px solid var(--white);
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 0 0 0 7px rgba(255, 107, 0, .18);
}

.pin-a { left: 20%; top: 34%; }
.pin-b { right: 26%; top: 24%; background: #38bdf8; box-shadow: 0 0 0 7px rgba(56, 189, 248, .18); }
.pin-c { right: 22%; bottom: 22%; }

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.metric-grid article {
    min-height: 92px;
    padding: 14px;
    border-radius: 8px;
    background: var(--surface-2);
}

.metric-grid strong {
    display: block;
    font-size: 28px;
}

.metric-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.feature-band,
.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 34px 0;
}

.feature-band article,
.item-card {
    min-height: 230px;
    padding: 22px;
}

.feature-icon,
.sport-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 8px;
    font-weight: 900;
}

.feature-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 107, 0, .16);
    color: var(--orange);
    font-size: 24px;
}

.sport-chip {
    min-height: 32px;
    padding: 0 10px;
    background: rgba(56, 189, 248, .14);
    color: #38bdf8;
    font-size: 12px;
    text-transform: uppercase;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
    gap: 28px;
    align-items: start;
    padding: 50px 0 74px;
}

.city-list {
    display: grid;
    gap: 10px;
}

.city-list span {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    font-weight: 800;
}

.page-hero {
    padding: 72px 0 28px;
}

.item-card strong {
    color: var(--orange);
}

.timeline {
    display: grid;
    gap: 14px;
    padding: 26px 0 78px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.timeline-item time {
    display: grid;
    place-items: center;
    height: 64px;
    border-radius: 8px;
    background: var(--orange);
    color: var(--white);
    font-weight: 900;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 0 40px;
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin-bottom: 0;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-weight: 800;
}

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

    .main-nav {
        grid-column: 1 / -1;
        overflow-x: auto;
    }

    .hero,
    .split-section,
    .feature-band,
    .collection-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
        padding-top: 20px;
    }

    .activity-panel {
        order: -1;
    }
}

@media (max-width: 560px) {
    .site-header,
    .site-footer,
    main {
        width: min(100% - 20px, 1180px);
    }

    .brand small {
        display: none;
    }

    h1 {
        font-size: 40px;
    }

    .hero-copy p,
    .page-hero p {
        font-size: 16px;
    }

    .hero-actions,
    .site-footer {
        flex-direction: column;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }
}
