:root {
    color-scheme: dark;
    --background: #171a18;
    --background-deep: #111411;
    --panel: #222824;
    --panel-soft: #2b332e;
    --text: #f4f1e8;
    --muted: #b9c0b9;
    --accent: #e2ad45;
    --accent-light: #f1ca78;
    --accent-dark: #19150d;
    --border: #465047;
    --max-width: 78rem;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 20rem;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 84% 6%, rgb(226 173 69 / 0.09), transparent 28rem),
        var(--background);
    color: var(--text);
}

a {
    color: inherit;
}

button {
    font: inherit;
}

[hidden] {
    display: none !important;
}

.site-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 3rem), var(--max-width));
    min-height: 5rem;
    margin: 0 auto;
    border-bottom: 1px solid rgb(185 192 185 / 0.16);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 760;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid rgb(226 173 69 / 0.55);
    border-radius: 50%;
    background: rgb(226 173 69 / 0.09);
    color: var(--accent-light);
}

.brand-mark svg {
    width: 1.55rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.header-link {
    padding: 0.65rem 0;
    color: var(--muted);
    font-size: 0.95rem;
    text-decoration: none;
}

.header-link:hover {
    color: var(--text);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(28rem, 1.1fr);
    align-items: center;
    width: min(calc(100% - 3rem), var(--max-width));
    min-height: calc(100vh - 5rem);
    margin: 0 auto;
    padding: 5rem 0 6rem;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 39rem;
    padding-right: 2rem;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--accent-light);
    font-size: 0.79rem;
    font-weight: 780;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -0.035em;
}

h1 {
    max-width: 11ch;
    font-size: clamp(3.6rem, 7vw, 7rem);
    line-height: 0.93;
}

.hero-text {
    max-width: 32rem;
    margin: 2rem 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.65;
}

.primary-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 3.15rem;
    margin-top: 2.25rem;
    padding: 0 1.1rem;
    border: 1px solid var(--accent-light);
    border-radius: 0.5rem;
    background: var(--accent);
    color: var(--accent-dark);
    font-weight: 780;
    text-decoration: none;
}

.primary-link:hover {
    background: var(--accent-light);
}

.route-art {
    position: relative;
    min-height: 32rem;
    overflow: hidden;
    border: 1px solid rgb(185 192 185 / 0.18);
    border-radius: 1.2rem;
    background:
        linear-gradient(rgb(185 192 185 / 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgb(185 192 185 / 0.035) 1px, transparent 1px),
        radial-gradient(circle at 55% 45%, #354039 0, var(--panel) 66%);
    background-size: 3rem 3rem, 3rem 3rem, auto;
    box-shadow: 0 2rem 7rem rgb(0 0 0 / 0.24);
}

.route-art::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgb(255 255 255 / 0.03), transparent 42%);
    content: "";
    pointer-events: none;
}

.route-art svg {
    position: absolute;
    inset: 6% 2% 4%;
    width: 96%;
    height: 90%;
}

.contours path {
    fill: none;
    stroke: rgb(185 192 185 / 0.12);
    stroke-width: 1.3;
}

.route-shadow,
.route-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.route-shadow {
    stroke: rgb(0 0 0 / 0.33);
    stroke-width: 12;
}

.route-line {
    stroke: var(--accent);
    stroke-dasharray: 8 10;
    stroke-width: 5;
}

.route-point {
    fill: var(--panel);
    stroke: var(--accent-light);
    stroke-width: 5;
}

.route-point-finish {
    fill: var(--accent);
}

.route-label {
    position: absolute;
    z-index: 1;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgb(185 192 185 / 0.2);
    border-radius: 999px;
    background: rgb(23 26 24 / 0.8);
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.route-label-start {
    bottom: 18%;
    left: 7%;
}

.route-label-finish {
    top: 31%;
    right: 8%;
}

.distance-note {
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.83rem;
}

.distance-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0.3rem rgb(226 173 69 / 0.14);
}

.tours-section {
    min-height: 52vh;
    padding: 6.5rem max(1.5rem, calc((100% - var(--max-width)) / 2)) 8rem;
    border-top: 1px solid rgb(185 192 185 / 0.14);
    background: var(--background-deep);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-heading .eyebrow {
    margin-bottom: 0.7rem;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4.3rem);
    line-height: 1;
}

.tour-count {
    margin: 0 0 0.35rem;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.tour-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.1rem;
    min-height: 8rem;
    padding: 1.2rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    background: var(--panel);
    color: var(--text);
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.tour-card::after {
    position: absolute;
    inset: auto -2rem -4rem auto;
    width: 9rem;
    height: 9rem;
    border: 1px solid rgb(226 173 69 / 0.14);
    border-radius: 50%;
    content: "";
}

.tour-card:hover {
    transform: translateY(-2px);
    border-color: rgb(226 173 69 / 0.66);
    background: var(--panel-soft);
}

.tour-number {
    display: grid;
    width: 3.2rem;
    height: 3.2rem;
    place-items: center;
    border: 1px solid rgb(226 173 69 / 0.42);
    border-radius: 50%;
    color: var(--accent-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
}

.tour-name {
    display: block;
    overflow-wrap: anywhere;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.1;
}

.tour-action {
    display: block;
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.tour-arrow {
    position: relative;
    z-index: 1;
    color: var(--accent-light);
    font-size: 1.5rem;
    transition: transform 160ms ease;
}

.tour-card:hover .tour-arrow {
    transform: translateX(0.25rem);
}

.tour-status,
.tour-error {
    display: flex;
    min-height: 9rem;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    background: var(--panel);
    color: var(--muted);
}

.status-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgb(185 192 185 / 0.24);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}

.tour-error {
    flex-direction: column;
}

.tour-error p {
    margin: 0;
}

.tour-error button {
    min-height: 2.7rem;
    padding: 0 1rem;
    border: 1px solid var(--accent-light);
    border-radius: 0.45rem;
    background: var(--accent);
    color: var(--accent-dark);
    font-weight: 750;
    cursor: pointer;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem max(1.5rem, calc((100% - var(--max-width)) / 2));
    border-top: 1px solid rgb(185 192 185 / 0.14);
    background: var(--background-deep);
    color: var(--muted);
    font-size: 0.82rem;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent-light);
    outline-offset: 3px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        padding-top: 4.5rem;
    }

    .hero-copy {
        padding-right: 0;
    }

    .route-art {
        min-height: min(30rem, 70vw);
    }

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

@media (max-width: 560px) {
    .site-header,
    .hero {
        width: min(calc(100% - 2rem), var(--max-width));
    }

    .site-header {
        min-height: 4.5rem;
    }

    .hero {
        min-height: auto;
        padding: 4rem 0 5rem;
    }

    h1 {
        font-size: clamp(3.2rem, 17vw, 5rem);
    }

    .route-art {
        min-height: 21rem;
    }

    .section-heading,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .tour-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .tour-arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
