:root {
    --paper: rgba(255, 250, 244, 0.96);
    --paper-strong: rgba(255, 252, 247, 0.98);
    --paper-soft: rgba(245, 237, 226, 0.94);
    --ink: #1f1a15;
    --muted: #5f5445;
    --pine: #1d6253;
    --pine-dark: #154b40;
    --forest: #2d5a27;
    --slate: #344047;
    --sky: #eef6f6;
    --line: rgba(104, 87, 62, 0.14);
    --line-strong: rgba(104, 87, 62, 0.24);
    --warning: #9b5a41;
    --shadow-lg: 0 28px 54px rgba(28, 21, 13, 0.16);
    --shadow-md: 0 18px 36px rgba(28, 21, 13, 0.11);
    --shadow-sm: 0 10px 22px rgba(28, 21, 13, 0.08);
    --info-nav-offset: 118px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--info-nav-offset);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(15, 23, 26, 0.24), rgba(15, 23, 26, 0.34)),
        linear-gradient(135deg, #dde9ea, #f4f1ea);
}

body.landing-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

body.info-page {
    padding: 24px;
}

a {
    color: inherit;
}

.shell {
    width: min(980px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.landing-shell {
    width: min(100%, 1080px);
    display: grid;
    gap: 18px;
}

.hero-panel,
.masthead,
.card,
.transport-panel {
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(5px);
}

.hero-panel {
    overflow: hidden;
    display: grid;
    background:
        linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(244, 236, 226, 0.96)),
        var(--paper);
    box-shadow: var(--shadow-lg);
}

.landing-hero-image {
    min-height: 300px;
    background:
        linear-gradient(180deg, rgba(13, 20, 22, 0.18), rgba(13, 20, 22, 0.44)),
        url("/static/images/queenstown-scavenger-hunt.png") center / cover no-repeat;
}

.hero-content,
.masthead {
    display: grid;
    gap: 16px;
    padding: clamp(24px, 4vw, 40px);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(15, 23, 26, 0.16);
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy h1 {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.05;
}

.eyebrow {
    margin: 0;
    color: var(--pine-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
}

h1 {
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: clamp(2.1rem, 5vw, 3.8rem);
    line-height: 1;
}

h2 {
    font-size: 1.3rem;
}

h3 {
    margin-top: 12px;
    font-size: 1.08rem;
}

.lede,
p,
li {
    color: var(--muted);
    line-height: 1.7;
}

.lede {
    margin: 0;
    max-width: 62ch;
    font-size: 1rem;
}

.nav,
.footer-links,
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav {
    width: fit-content;
    max-width: 100%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(255, 250, 244, 0.92);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.info-dock {
    position: sticky;
    top: 12px;
    z-index: 20;
    width: 100%;
    overflow-x: auto;
    border-radius: 18px;
}

.nav a,
.btn,
button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease;
}

.nav a {
    border-color: rgba(29, 98, 83, 0.16);
    background: var(--sky);
    color: var(--pine-dark);
}

.nav a:hover,
.nav a:focus-visible,
.btn:hover,
.btn:focus-visible,
button:hover,
button:focus-visible {
    transform: translateY(-1px);
}

.nav a.is-active {
    border-color: rgba(29, 98, 83, 0.55);
    background: var(--pine);
    color: #fffaf4;
    box-shadow: 0 10px 22px rgba(29, 98, 83, 0.2);
}

.btn-primary,
button {
    background: linear-gradient(180deg, var(--pine), var(--pine-dark));
    color: #fffaf5;
    box-shadow: 0 14px 24px rgba(21, 75, 64, 0.18);
}

.btn-secondary {
    border-color: rgba(29, 98, 83, 0.16);
    background: var(--sky);
    color: var(--pine-dark);
}

.transport-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.transport-panel {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 18px;
    background: rgba(255, 251, 246, 0.92);
}

.transport-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.purchase-form {
    display: grid;
    justify-items: start;
    gap: 12px;
    margin-top: 6px;
}

.purchase-form label {
    display: grid;
    gap: 8px;
    width: min(100%, 240px);
    color: var(--muted);
    font-weight: 700;
}

input[type="number"] {
    min-height: 48px;
    width: min(100%, 160px);
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    font: inherit;
}

input[type="number"]:focus {
    outline: 2px solid rgba(29, 98, 83, 0.16);
    outline-offset: 1px;
    border-color: rgba(29, 98, 83, 0.35);
}

.card {
    padding: clamp(24px, 4vw, 34px);
}

.meta {
    margin: 0 0 22px;
    font-size: 0.95rem;
    color: #786b5a;
}

.info-content {
    display: grid;
    gap: 18px;
    padding-top: 6px;
}

.info-section {
    display: grid;
    gap: 10px;
    scroll-margin-top: var(--info-nav-offset);
}

.info-section.is-current-panel {
    border-color: rgba(29, 98, 83, 0.38);
    box-shadow:
        0 0 0 3px rgba(29, 98, 83, 0.1),
        var(--shadow-md);
}

ul {
    margin: 0;
    padding-left: 22px;
}

.footnote,
.footer-note {
    color: #786b5a;
    font-size: 0.95rem;
}

.footnote {
    margin: 0;
}

.footer-note {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.footer-links a {
    color: var(--pine-dark);
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    text-decoration: underline;
}

.landing-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    min-height: 26px;
    padding: 0 4px 2px;
}

.landing-footer a {
    color: rgba(248, 250, 252, 0.92);
    font-size: clamp(0.66rem, 2vw, 0.8rem);
    line-height: 1.2;
    text-decoration: none;
}

.landing-footer a:hover,
.landing-footer a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 720px) {
    body.landing-page,
    body.info-page {
        padding: 12px;
    }

    .landing-hero-image {
        min-height: 220px;
    }

    .hero-panel,
    .masthead,
    .card {
        border-radius: 20px;
    }

    .nav {
        width: 100%;
        border-radius: 18px;
    }

    .actions {
        display: grid;
    }

    .btn,
    button {
        width: 100%;
    }
}
