:root {
    --color-bg: #05070f;
    --color-surface: #0b1226;
    --color-surface-alt: #111b37;
    --color-border: #1e2b4d;
    --color-border-soft: #16203c;
    --color-text: #e8effb;
    --color-text-muted: #8296b8;

    --color-accent: #ff2d55;
    --color-accent-hover: #ff4a6c;
    --color-signal: #3ab6f0;
    --color-signal-deep: #1b6fd0;
    --color-ambient: #7b8ce8;

    /* Red of the exercise pages, used for the DIEMELSTURM.HX26 badge. */
    --color-exercise: #c8102e;

    --radius: 8px;

    --space-xs: 0.375rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.25rem;
    --space-2xl: 3rem;

    --font-display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
    --font-size-xs: 0.6875rem;
    --font-size-sm: 0.8125rem;
    --font-size-base: 0.9375rem;
    --font-size-lg: 1.1875rem;
    --font-size-h2: 1.625rem;

    --strip-width: 30rem;
    --tap-target: 44px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    /* Replaced by the exact banner height as soon as the script runs. */
    scroll-padding-top: 4.5rem;
}

body {
    margin: 0;
    padding-top: 4.5rem;
    overflow-wrap: break-word;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-display);
    font-variation-settings: "wdth" 100, "wght" 400;
    font-size: var(--font-size-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/*
 * Disclaimer banner, deliberately in the plain look of hartingen.de: it sits
 * outside the festival design because it speaks about the site, not the event.
 */
/*
 * The notice has to survive being skimmed, so it sits in the red of the
 * exercise pages rather than looking like browser chrome.
 */
.disclaimer-banner {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
    padding: 0.5rem var(--space-md) 0.5625rem;
    border-bottom: 3px solid #8d0a20;
    background-color: var(--color-exercise);
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.35;
    text-align: center;
}

.disclaimer-banner p {
    margin: 0;
}

.disclaimer-banner__main {
    font-size: 0.875rem;
    font-weight: 700;
}

.disclaimer-banner__tag {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 1px 0.375rem;
    border-radius: 3px;
    background-color: #ffffff;
    color: var(--color-exercise);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.disclaimer-banner__sub {
    margin-top: 3px;
    font-size: 0.75rem;
}

.disclaimer-banner__link {
    color: #ffffff;
    text-decoration: underline;
}

.disclaimer-banner__link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* The page is one narrow strip with dashed edges. */
.strip {
    max-width: var(--strip-width);
    margin: 0 auto;
    background-color: var(--color-surface);
    border-left: 1px dashed var(--color-border);
    border-right: 1px dashed var(--color-border);
    overflow: hidden;
}

.hero,
.section,
.footer {
    padding: var(--space-2xl) var(--space-lg);
}

/* Perforation between the sections. */
.perf {
    position: relative;
    height: 0;
    border-top: 1px dashed var(--color-border);
}

.perf::before,
.perf::after {
    content: "";
    position: absolute;
    top: -7px;
    width: 14px;
    height: 14px;
    border: 1px dashed var(--color-border);
    border-radius: 50%;
    background-color: var(--color-bg);
}

.perf::before {
    left: -8px;
}

.perf::after {
    right: -8px;
}

.eyebrow {
    margin: 0 0 var(--space-sm);
    color: var(--color-signal);
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section__title {
    margin: 0 0 var(--space-lg);
    font-size: var(--font-size-h2);
    font-variation-settings: "wdth" 118, "wght" 800;
    letter-spacing: -0.01em;
    line-height: 1.05;
    text-transform: uppercase;
    text-wrap: balance;
}

.note {
    margin: var(--space-lg) 0 0;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: 0.71875rem;
    line-height: 1.7;
}

/* ---------- Hero ---------- */

.hero {
    padding-top: var(--space-xl);
    padding-bottom: 0;
    background-image: radial-gradient(120% 70% at 50% -10%, #14224a 0%, rgba(11, 18, 38, 0) 65%);
}

.hero__brand {
    margin: var(--space-lg) 0 var(--space-xs);
    /*
     * The word must never break, so the size is bounded by what fits: the lower
     * end by a 320 pixel screen, the upper end by the width of the strip.
     */
    font-size: clamp(1.75rem, 10vw, 3rem);
    overflow-wrap: normal;
    font-variation-settings: "wdth" 125, "wght" 900;
    letter-spacing: -0.025em;
    line-height: 0.86;
    text-transform: uppercase;
}

.hero__brand-accent {
    color: var(--color-signal);
}

.hero__kicker {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0 0 var(--space-xl);
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero__dot {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.hero__rule {
    flex: 1;
    height: 1px;
    background-color: var(--color-border);
}

.hero__spectrum {
    display: block;
    width: 100%;
    height: 96px;
    margin-bottom: var(--space-xl);
}

.hero__date {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 1.875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.hero__venue {
    margin: 2px 0 var(--space-xl);
    color: var(--color-signal);
    font-size: 1.0625rem;
    font-variation-settings: "wdth" 112, "wght" 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    margin: 0 0 var(--space-xl);
    padding: 0.875rem 0;
    border-top: 1px solid var(--color-border-soft);
    border-bottom: 1px solid var(--color-border-soft);
    list-style: none;
}

.countdown__value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.375rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.countdown__label {
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ---------- Floor marker ---------- */

.stage-tag {
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.stage-tag::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background-color: var(--color-signal);
    vertical-align: 1px;
}

.stage-tag[data-stage="ruebenrampe"]::before {
    background-color: var(--color-accent);
}

.stage-tag[data-stage="melassebar"]::before {
    background-color: var(--color-ambient);
}

/* ---------- Line-up ---------- */

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

.lineup__item {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
    padding: 0.6875rem 0;
    border-bottom: 1px solid var(--color-border-soft);
}

.lineup__item:last-child {
    border-bottom: 0;
}

.lineup__name {
    flex: 1;
    font-size: var(--font-size-lg);
    font-variation-settings: "wdth" 112, "wght" 700;
    text-transform: uppercase;
}

.lineup__note {
    margin-left: 0.4rem;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    font-variation-settings: "wdth" 100, "wght" 500;
    text-transform: lowercase;
}

.lineup__item--headliner {
    padding: var(--space-md) 0;
}

.lineup__item--headliner .lineup__name {
    font-size: 1.6875rem;
    font-variation-settings: "wdth" 125, "wght" 900;
    line-height: 1.05;
}

.stages {
    display: grid;
    gap: 1px;
    margin: var(--space-xl) 0 0;
    border: 1px solid var(--color-border-soft);
    background-color: var(--color-border-soft);
}

.stages__item {
    padding: var(--space-sm) 0.875rem;
    background-color: var(--color-surface);
}

.stages__name {
    margin-bottom: 3px;
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.stages__text {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* ---------- Running order ---------- */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.chip {
    padding: 0.4375rem 0.6875rem;
    border: 1px solid var(--color-border);
    background-color: transparent;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.chip[aria-pressed="true"] {
    border-color: var(--color-text);
    background-color: var(--color-text);
    color: var(--color-bg);
}

.chip:focus-visible,
.faq__question:focus-visible {
    outline: 2px solid var(--color-signal);
    outline-offset: 2px;
}

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

.slot {
    display: grid;
    grid-template-columns: 3.625rem 1fr;
    gap: 0 var(--space-sm);
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--color-border-soft);
}

.slot[hidden] {
    display: none;
}

.slot__time {
    color: var(--color-signal);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.slot__act {
    font-size: var(--font-size-base);
    font-variation-settings: "wdth" 105, "wght" 600;
}

.slot .stage-tag {
    display: block;
    grid-column: 2;
    margin-top: 1px;
}

/* Entries without a floor: doors and end of the day. */
.slot--plain .slot__time {
    color: var(--color-text-muted);
}

.slot--plain .slot__act {
    color: var(--color-text-muted);
    font-variation-settings: "wdth" 105, "wght" 400;
}

/* ---------- Arrival ---------- */

.route {
    display: block;
    width: 100%;
    height: auto;
    margin: var(--space-sm) 0 var(--space-lg);
}

/* ---------- FAQ ---------- */

.faq {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-soft);
}

.faq__question {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    font-size: var(--font-size-base);
    font-variation-settings: "wdth" 105, "wght" 600;
    list-style: none;
    cursor: pointer;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: "+";
    color: var(--color-signal);
    font-family: var(--font-mono);
}

.faq[open] .faq__question::after {
    content: "–";
}

.faq__answer {
    margin: var(--space-xs) 0 0;
    color: var(--color-text-muted);
    font-size: 0.84375rem;
}

/* ---------- Supporters ---------- */

.supporters {
    display: grid;
    gap: 1px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--color-border-soft);
    background-color: var(--color-border-soft);
    list-style: none;
}

.supporters__link {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0 0.875rem;
    min-height: var(--tap-target);
    padding: var(--space-sm) 0.875rem;
    background-color: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
}

.supporters__logo {
    grid-column: 1;
    width: 60px;
    height: 80px;
    object-fit: contain;
}

/* Exercise mark of DIEMELSTURM.HX26, in the red of its own pages. */
.supporters .badge {
    grid-column: 1;
    margin: 0;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    background-color: var(--color-exercise);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.06em;
}

.supporters__link:hover {
    background-color: var(--color-surface-alt);
}

.supporters__link:focus-visible {
    outline: 2px solid var(--color-signal);
    outline-offset: -2px;
}

.supporters__name {
    grid-column: 2;
    font-size: var(--font-size-base);
    font-variation-settings: "wdth" 112, "wght" 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

/* ---------- Footer ---------- */

.footer {
    background-color: var(--color-surface-alt);
    border-top: 1px dashed var(--color-border);
}

.disclaimer {
    margin: 0;
    padding: var(--space-sm) 0.875rem;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    line-height: 1.7;
}

.disclaimer strong {
    color: var(--color-accent);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Small phones ---------- */

/*
 * Below 24rem (384px) the strip is the whole screen, so the side padding and
 * the display sizes are taken back a step. Everything else scales by itself.
 */
@media (max-width: 24rem) {
    .hero,
    .section,
    .footer {
        padding-right: var(--space-md);
        padding-left: var(--space-md);
    }

    .hero {
        padding-top: var(--space-lg);
    }

    .section,
    .footer {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }

    .section__title {
        font-size: 1.375rem;
    }

    .hero__date {
        font-size: 1.625rem;
    }

    .countdown {
        gap: var(--space-xs);
    }

    .countdown__value {
        font-size: 1.1875rem;
    }

    .lineup__item--headliner .lineup__name {
        font-size: 1.5rem;
    }

    .supporters__logo {
        width: 48px;
        height: 64px;
    }

    .supporters .badge {
        font-size: var(--font-size-xs);
    }
}

/* ---------- Touch ---------- */

/*
 * On touch screens the small controls need a target of at least 44 pixels,
 * which they do not reach from their text size alone.
 */
@media (pointer: coarse) {
    .chip {
        display: inline-flex;
        align-items: center;
        min-height: var(--tap-target);
    }

    .faq__question {
        min-height: var(--tap-target);
        align-items: center;
    }

    .supporters__link {
        min-height: 3.5rem;
    }
}
