/* ==========================================================================
   outdoor.games — design system
   Dark forest / near-black base, cream typography, subtle topographic texture
   and a per-game accent colour. All colours in oklch.
   ========================================================================== */

:root {
    --background: oklch(0.17 0.014 155);
    --foreground: oklch(0.93 0.014 85);
    --card: oklch(0.212 0.016 155);
    --primary: oklch(0.7 0.155 58);
    --primary-foreground: oklch(0.17 0.02 60);
    --muted: oklch(0.25 0.015 155);
    --muted-foreground: oklch(0.71 0.015 120);
    --border: oklch(0.32 0.016 150 / 60%);
    --forest-deep: oklch(0.13 0.014 155);
    --cream: oklch(0.94 0.02 88);
    --fog: oklch(0.78 0.008 150);

    --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
    --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-pill: 999px;

    --container: 80rem;
    --gutter: 1.25rem;
    --section-y: 5rem;
    --header-h: 4rem;
}

@media (min-width: 48em) {
    :root {
        --gutter: 2rem;
        --section-y: 7rem;
        --header-h: 5rem;
    }
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    border-color: var(--border);
}

* {
    margin: 0;
}

html {
    scroll-behavior: smooth;
    /* Anchor targets must clear the fixed header. */
    scroll-padding-top: calc(var(--header-h) + 1rem);
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

/* Every <img> carries width/height attributes to reserve layout space, which the
   browser turns into a presentational `height`. Clearing it lets CSS aspect-ratio
   win; the images that fill a positioned box set `height: 100%` back explicitly. */
img {
    height: auto;
}

ul,
ol {
    list-style: none;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    /* A grotesque needs real weight to carry a display size; the outgoing serif did it with
       stroke contrast instead. Tighter tracking keeps large headings from feeling loose. */
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 100;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Small uppercase technical label — coordinates, altitude, categories. */
.label-tech {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

/* Subtle contour / topographic paper texture. */
.topo {
    background-image:
        repeating-linear-gradient(115deg, color-mix(in oklab, var(--cream) 4%, transparent) 0 1px, transparent 1px 46px),
        repeating-linear-gradient(25deg, color-mix(in oklab, var(--cream) 3%, transparent) 0 1px, transparent 1px 68px);
}

.grid-map {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, color-mix(in oklab, var(--cream) 6%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in oklab, var(--cream) 6%, transparent) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}

/* Cinematic bottom-up fade that keeps text legible over photography. */
.film-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top,
            var(--forest-deep) 0%,
            color-mix(in oklab, var(--forest-deep) 82%, transparent) 28%,
            color-mix(in oklab, var(--forest-deep) 25%, transparent) 68%,
            color-mix(in oklab, var(--forest-deep) 45%, transparent) 100%);
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
}

.reveal {
    animation: reveal-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@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;
    }
}

/* --------------------------------------------------------------------------
   Accents
   Each game and location owns a colour that tints its card border, category tag
   and map dot. Kept here rather than in the C# model because it is a design token:
   the model says which game a card is for, the stylesheet says what that looks like.
   -------------------------------------------------------------------------- */

[data-game="stiny-jizerky"] { --accent: oklch(0.72 0.075 68); }
[data-game="prokleti-hor"] { --accent: oklch(0.63 0.115 48); }
[data-game="operace-sever"] { --accent: oklch(0.52 0.17 25); }
[data-game="tajemstvi-raseliniste"] { --accent: oklch(0.68 0.11 140); }
[data-game="paseraci"] { --accent: oklch(0.7 0.155 58); }
[data-game="po-stopach-zizky"] { --accent: oklch(0.6 0.15 30); }
[data-game="hodinarova-zavet"] { --accent: oklch(0.74 0.09 85); }
[data-game="ostrov-stvanice"] { --accent: oklch(0.66 0.1 200); }

[data-location="jizerka"] { --accent: oklch(0.68 0.11 140); }
[data-location="praha"] { --accent: oklch(0.74 0.09 85); }

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.btn--lg {
    padding: 1rem 1.75rem;
}

.btn--primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn--primary:hover {
    transform: translateY(-2px);
}

.btn--ghost {
    border: 1px solid color-mix(in oklab, var(--fog) 30%, transparent);
    backdrop-filter: blur(4px);
}

.btn--ghost:hover {
    border-color: color-mix(in oklab, var(--fog) 60%, transparent);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
}

.link-arrow svg {
    transition: transform 0.2s ease;
}

.link-arrow:hover svg {
    transform: translateX(2px);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tag--accent {
    border: 1px solid var(--accent, var(--border));
    color: var(--accent, var(--fog));
}

.tag--solid {
    background: var(--accent, var(--primary));
    color: oklch(0.16 0.02 155);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.chip {
    padding: 0.25rem 0.75rem;
    border: 1px solid color-mix(in oklab, var(--fog) 25%, transparent);
    border-radius: var(--radius-pill);
    color: var(--fog);
}

.pill {
    position: absolute;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-pill);
    background: color-mix(in oklab, var(--background) 80%, transparent);
    backdrop-filter: blur(4px);
    color: var(--fog);
}

.pill--tl {
    top: 1.25rem;
    left: 1.25rem;
}

.pill--br {
    right: 1.25rem;
    bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.site-header.is-solid,
.site-header.is-open {
    background: color-mix(in oklab, var(--background) 92%, transparent);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--header-h);
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.brand {
    display: flex;
    /* center, not baseline: the mark has no baseline to align to. */
    align-items: center;
    gap: 0.55rem;
}

.logo-mark {
    width: 1.6rem;
    height: 1.6rem;
    flex: none;
    /* Inherits, so the mark always matches the wordmark beside it rather than needing a
       colour of its own wherever it is placed. */
    color: inherit;
}

.brand__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1;
}

.brand__name--lg {
    font-size: 1.875rem;
}

.site-nav {
    display: none;
    align-items: center;
    gap: 1.75rem;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.site-nav__list a {
    font-size: 0.875rem;
    color: color-mix(in oklab, var(--fog) 80%, transparent);
    transition: color 0.2s ease;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current] {
    color: var(--foreground);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}

.lang-switch__item {
    display: block;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    color: var(--muted-foreground);
}

.lang-switch__item.is-active {
    background: color-mix(in oklab, var(--primary) 18%, transparent);
    color: var(--primary);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.5rem;
    align-items: center;
}

.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--foreground);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.is-open .nav-toggle__bar:first-child {
    transform: translateY(3.25px) rotate(45deg);
}

.site-header.is-open .nav-toggle__bar:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
}

@media (min-width: 62em) {
    .site-nav {
        display: flex;
    }

    .nav-toggle {
        display: none;
    }
}

/* Mobile drawer */
@media (max-width: 61.99em) {
    .site-header.is-open .site-nav {
        display: block;
        position: absolute;
        inset-inline: 0;
        top: var(--header-h);
        padding: 0.5rem var(--gutter) 2rem;
        background: var(--background);
        border-top: 1px solid var(--border);
    }

    .site-header.is-open .site-nav__list {
        display: block;
    }

    .site-header.is-open .site-nav__list a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
        font-family: var(--font-display);
        font-size: 1.5rem;
        color: var(--foreground);
    }

    .site-header.is-open .lang-switch {
        width: fit-content;
        margin-top: 1.5rem;
    }

    .site-header.is-open .site-nav__cta {
        display: inline-flex;
        margin-top: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 92svh;
    overflow: hidden;
}

.hero--location {
    min-height: 88svh;
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__grid {
    opacity: 0.25;
}

.hero__body {
    position: relative;
    padding-top: calc(var(--header-h) + 4rem);
    padding-bottom: 3.5rem;
}

.hero__title {
    /* Sized for the grotesque, which sets far wider than the serif it replaced: at the old
       5.25rem the Czech headline broke to three lines.
       The size lives here rather than on :first-child because location heroes carry a kicker
       above the headline, so that selector never matched them and their h1 fell back to the
       browser default of 32px. */
    max-width: 26ch;
    margin-top: 1.25rem;
    font-size: clamp(2.25rem, 5vw, 4.25rem);
    line-height: 1.05;
}

/* Home has no kicker above the headline; location pages do. */
.hero__title:first-child {
    margin-top: 0;
}

.hero__title-alt {
    display: block;
    /* Was italic. A grotesque has no true italic here, so the browser synthesises a slanted
       face that looks like a rendering fault at this size. The second line is set apart by
       colour instead, which reads more deliberate anyway. */
    color: color-mix(in oklab, var(--fog) 72%, transparent);
}

.hero__lead {
    max-width: 38rem;
    margin-top: 1.5rem;
    font-size: 1.0625rem;
    color: color-mix(in oklab, var(--fog) 85%, transparent);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.25rem;
}

/* Location shortcuts, sitting beside the headline on wide screens and stacking
   under it on narrow ones. */
.hero__main {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.hero__copy {
    min-width: 0;
}

.hero__locations {
    display: grid;
    gap: 0.75rem;
    /* Equal rows, so a translation that wraps to two lines does not leave one
       card taller than the other. */
    grid-auto-rows: 1fr;
}

@media (min-width: 62em) {
    .hero__main {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 3rem;
    }

    .hero__locations {
        flex: none;
        width: 19rem;
    }
}

.hero-loc {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    /* Deliberately barely there: the photograph stays the loudest thing on screen. */
    background: color-mix(in oklab, var(--forest-deep) 32%, transparent);
    backdrop-filter: blur(10px);
    border: 1px solid color-mix(in oklab, var(--fog) 18%, transparent);
    border-radius: var(--radius-lg);
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero-loc:hover {
    background: color-mix(in oklab, var(--forest-deep) 55%, transparent);
    border-color: color-mix(in oklab, var(--accent) 55%, transparent);
    transform: translateY(-2px);
}

.hero-loc .icon {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent, var(--primary));
}

.hero-loc__text {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.hero-loc__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.1;
}

.hero-loc__arrow {
    flex: none;
    margin-left: auto;
    color: color-mix(in oklab, var(--fog) 55%, transparent);
    transition: transform 0.25s ease, color 0.25s ease;
}

.hero-loc:hover .hero-loc__arrow {
    color: var(--accent, var(--primary));
    transform: translate(2px, -2px);
}

/* Stacked under the headline the cards cost real vertical space, so they run
   tighter on phones to keep the whole hero inside one screen. */
@media (max-width: 61.99em) {
    .hero__main {
        gap: 1.75rem;
    }

    .hero__locations {
        gap: 0.5rem;
    }

    .hero-loc {
        padding: 0.875rem 1rem;
    }

    .hero-loc__name {
        font-size: 1.25rem;
    }
}

.fact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid color-mix(in oklab, var(--fog) 15%, transparent);
}

@media (min-width: 48em) {
    .hero__body {
        padding-bottom: 5rem;
    }

    .hero__lead {
        font-size: 1.125rem;
    }

    .fact-row {
        margin-top: 3rem;
    }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
    padding-block: var(--section-y);
}

.section--band {
    background: var(--forest-deep);
    border-block: 1px solid var(--border);
}

.section--topo {
    border-block: 1px solid var(--border);
    background-image:
        repeating-linear-gradient(115deg, color-mix(in oklab, var(--cream) 4%, transparent) 0 1px, transparent 1px 46px),
        repeating-linear-gradient(25deg, color-mix(in oklab, var(--cream) 3%, transparent) 0 1px, transparent 1px 68px);
}

.section__head {
    max-width: 44rem;
    margin-bottom: 3rem;
}

.section__title {
    margin-top: 1rem;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.section__lead {
    margin-top: 1.25rem;
    color: var(--muted-foreground);
}

.section__lead a {
    color: var(--primary);
}

.page-head {
    padding-top: calc(var(--header-h) + 4rem);
    padding-bottom: var(--section-y);
}

.page-head__title {
    margin-top: 1rem;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

/* --------------------------------------------------------------------------
   Location banners
   -------------------------------------------------------------------------- */

.location-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 48em) {
    .location-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.location-banner {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
}

@media (min-width: 40em) {
    .location-banner {
        aspect-ratio: 16 / 11;
    }
}

.location-banner__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.location-banner:hover .location-banner__image {
    transform: scale(1.05);
}

.location-banner__grid {
    opacity: 0;
    transition: opacity 0.7s ease;
}

.location-banner:hover .location-banner__grid {
    opacity: 0.4;
}

.location-banner__body {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 1.25rem;
}

.location-banner__title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.location-banner__note {
    max-width: 28rem;
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    color: color-mix(in oklab, var(--fog) 85%, transparent);
}

.location-banner__coords {
    margin-top: 1.25rem;
}

.location-banner .link-arrow {
    color: var(--accent, var(--primary));
}

@media (min-width: 48em) {

    .location-banner__body {
        padding: 1.75rem;
    }
}

/* --------------------------------------------------------------------------
   Game cards
   -------------------------------------------------------------------------- */

.game-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 48em) {
    .game-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.game-card {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
}

.game-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.game-card:hover .game-card__image {
    transform: scale(1.05);
}

.game-card__grid {
    opacity: 0;
    transition: opacity 0.7s ease;
}

.game-card:hover .game-card__grid {
    opacity: 0.4;
}

.game-card__top {
    position: absolute;
    inset-inline: 0;
    top: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1.25rem;
}

.game-card__body {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 1.25rem;
}

.game-card__title {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
}

.game-card--large .game-card__title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
}

/* Declared after .game-card so it overrides the portrait aspect ratio. */
@media (min-width: 48em) {
    .game-card--large {
        grid-column: span 2;
        aspect-ratio: 21 / 9;
    }
}

.game-card__teaser {
    max-width: 32rem;
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    color: color-mix(in oklab, var(--fog) 85%, transparent);
}

.game-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 1.25rem;
}

.game-card__area {
    margin-top: 0.75rem;
    color: var(--accent, var(--muted-foreground));
}

@media (min-width: 48em) {

    .game-card__top,
    .game-card__body {
        padding: 1.75rem;
    }
}

/* --------------------------------------------------------------------------
   Split (image + copy)
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 48em) {
    .split {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 4rem;
    }
}

.split__media {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.split__media img {
    aspect-ratio: 1;
    width: 100%;
    object-fit: cover;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

.feature-list {
    display: grid;
    gap: 1.25rem;
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}

.feature-list li {
    display: flex;
    gap: 1rem;
}

.feature-list .icon {
    flex: none;
    margin-top: 0.2rem;
}

.feature-list__title {
    font-weight: 500;
}

.feature-list__text {
    margin-top: 0.25rem;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--border);
}

@media (min-width: 40em) {
    .steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 64em) {
    .steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

.steps__item {
    padding: 1.75rem;
    background-color: var(--card);
}

.steps__number {
    color: var(--primary);
}

.steps__title {
    margin-top: 1.25rem;
    font-size: 1.5rem;
}

.steps__text {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   Cards / audience
   -------------------------------------------------------------------------- */

.card-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 40em) {
    .card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 64em) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
}

.card--highlight {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-color: color-mix(in oklab, var(--primary) 40%, transparent);
    background-color: color-mix(in oklab, var(--primary) 10%, transparent);
}

.card__kicker {
    display: block;
    color: var(--primary);
}

.card__kicker + .card__title {
    margin-top: 1.25rem;
}

.card .icon {
    margin-bottom: 1.25rem;
}

.card__title {
    font-size: 1.5rem;
}

.card__text {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}

.card--highlight .card__text {
    color: color-mix(in oklab, var(--fog) 85%, transparent);
}

.card__cta {
    align-self: flex-start;
    margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.quote-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 48em) {
    .quote-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.quote {
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background-color: var(--card);
}

.quote__text {
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 3vw, 1.7rem);
    line-height: 1.25;
}

/* Czech opens quotes at the baseline; English opens them raised. */
.quote__text::before {
    content: "\201E";
}

.quote__text::after {
    content: "\201C";
}

:lang(en) .quote__text::before {
    content: "\201C";
}

:lang(en) .quote__text::after {
    content: "\201D";
}

.quote__meta {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.quote__name {
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.75rem;
}

.quote__game {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

@media (min-width: 48em) {
    .quote {
        padding: 2.25rem;
    }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-layout {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 48em) {
    .faq-layout {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 4rem;
    }
}

.faq-full {
    max-width: 52rem;
    margin-top: 3rem;
}

.faq__item {
    border-bottom: 1px solid var(--border);
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.2;
    cursor: pointer;
    list-style: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__chevron {
    flex: none;
    color: var(--muted-foreground);
    transition: transform 0.25s ease;
}

.faq__item[open] .faq__chevron {
    transform: rotate(180deg);
}

.faq__answer {
    max-width: 44rem;
    padding-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}

@media (min-width: 48em) {
    .faq__question {
        font-size: 1.5rem;
    }

    .faq__answer {
        font-size: 1rem;
    }
}

/* --------------------------------------------------------------------------
   Editorial + area map
   -------------------------------------------------------------------------- */

.editorial {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 48em) {
    .editorial {
        grid-template-columns: 1fr 1.1fr;
        gap: 4rem;
    }
}

.editorial__body {
    display: grid;
    gap: 1.25rem;
    color: var(--muted-foreground);
}

.editorial__body .fact-row {
    margin-top: 0.5rem;
    padding-top: 0;
    border-top: 0;
}

.area-map {
    margin-top: 3rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
}

.area-map__media {
    position: relative;
}

/* Sits over the map scan so the light paper reads as part of the dark page. */
.area-map__wash {
    position: absolute;
    inset: 0;
    background: color-mix(in oklab, var(--forest-deep) 55%, transparent);
    pointer-events: none;
}

.area-map__image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    opacity: 0.7;
    mix-blend-mode: luminosity;
}

@media (min-width: 40em) {
    .area-map__image {
        aspect-ratio: 16 / 10;
    }
}

.area-map__legend {
    padding: 1.75rem;
    border-top: 1px solid var(--border);
}

.area-map__legend ul {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 48em) {
    .area-map__legend ul {
        grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    }
}

.area-map__legend li {
    display: flex;
    gap: 0.75rem;
}

.area-map__dot {
    flex: none;
    width: 0.625rem;
    height: 0.625rem;
    margin-top: 0.4rem;
    border-radius: 50%;
    background: var(--accent, var(--primary));
}

.area-map__name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.125rem;
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   CTA panels
   -------------------------------------------------------------------------- */

.cta-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.cta-panel > div {
    flex: 1 1 16rem;
}

.cta-panel__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.cta-panel__text {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}

.final-cta {
    position: relative;
    overflow: hidden;
}

.final-cta__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.final-cta__body {
    position: relative;
    padding-block: 7rem;
    text-align: center;
}

@media (min-width: 48em) {
    .final-cta__body {
        padding-block: 10rem;
    }
}

.final-cta__title {
    max-width: 20ch;
    margin-inline: auto;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.final-cta__lead {
    max-width: 28rem;
    margin: 1.25rem auto 0;
    color: color-mix(in oklab, var(--fog) 85%, transparent);
}

.final-cta .btn {
    margin-top: 2.25rem;
}

.error-page {
    padding-top: calc(var(--header-h) + 6rem);
    padding-bottom: 8rem;
    text-align: center;
}

.error-page .section__lead {
    max-width: 32rem;
    margin-inline: auto;
}

.error-page .btn {
    margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--forest-deep);
    padding-block: 3.5rem;
}

.site-footer__grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 48em) {
    .site-footer {
        padding-block: 5rem;
    }

    .site-footer__grid {
        grid-template-columns: 1.6fr 1fr 1fr 1fr;
    }
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.site-footer__brand .logo-mark {
    width: 2rem;
    height: 2rem;
}

.site-footer__blurb {
    max-width: 22rem;
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}

.site-footer__coords {
    margin-top: 1.5rem;
}

.site-footer__heading {
    display: block;
    transition: color 0.2s ease;
}

a.site-footer__heading:hover {
    color: var(--foreground);
}

.site-footer__list {
    display: grid;
    gap: 0.625rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: color-mix(in oklab, var(--fog) 80%, transparent);
}

.site-footer__list a:hover {
    color: var(--foreground);
}

.site-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

@media (min-width: 40em) {
    .site-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}
