/* Julkonsert. Colours taken from the campaign artwork: deep wine, cream type, warm stage gold. */
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; src: url('/fonts/instrument-serif-italic.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #230a10;
  --bg-2: #2f0f16;
  --surface: #3a141c;
  --surface-2: #47192300;
  --line: #5a2731;
  --line-strong: #7a3b45;
  --ink: #f5ece1;
  --ink-soft: #d9c6bf;
  --muted: #b09a96;
  --gold: #e0ae62;
  --gold-ink: #2a1206;
  --ok: #7fd1a0;
  --danger: #ff8f86;
  --radius: 14px;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.005em; }
h2 { font-size: 1.95rem; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Hero: the artwork, fading into the page ─────────────────────────────────────────────────── */
.hero { position: relative; background: var(--bg); overflow: hidden; }
.hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; max-height: 78vh; object-position: 60% 30%; }
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 32%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero__brand { position: absolute; top: clamp(12px, 2.5vw, 28px); right: clamp(12px, 3vw, 40px); z-index: 1; width: clamp(84px, 10vw, 140px); }
.hero__brand img { filter: drop-shadow(0 2px 8px rgb(0 0 0 / .4)); }

/* ── Layout ──────────────────────────────────────────────────────────────────────────────────── */
.wrap { width: min(100% - 40px, 720px); margin-inline: auto; padding-block: 8px 48px; position: relative; z-index: 1; }
.wrap--narrow { width: min(100% - 40px, 560px); padding-top: 40px; }
.wrap--ticket { width: min(100% - 32px, 480px); padding-top: 28px; }
.page-book .wrap { margin-top: clamp(-90px, -6vw, -16px); }

.eyebrow { font: 700 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.date-line { font-family: var(--serif); font-size: clamp(1.85rem, 5vw, 2.6rem); line-height: 1.1; margin-bottom: 1rem; }
.lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 60ch; }
.note { color: var(--muted); font-size: .95rem; }
.brand-small { display: inline-block; width: 110px; margin-bottom: 24px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.lang-switch { font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.lang-switch:hover, .lang-switch:focus-visible { color: var(--gold); border-color: var(--gold); }

/* ── Steps ───────────────────────────────────────────────────────────────────────────────────── */
.booking { margin-top: 2rem; scroll-margin-top: 16px; }
.steps { display: none; gap: 8px; margin-bottom: 1.75rem; }
.booking.is-stepped .steps { display: flex; }
.steps span { flex: 1; height: 3px; border-radius: 3px; background: var(--line); transition: background .3s; }
.steps span.is-done { background: var(--gold); }
.step { border: 0; padding: 0; margin: 0 0 2.5rem; min-width: 0; }
.booking.is-stepped .step { margin-bottom: 0; }
.step legend { padding: 0; margin-bottom: 1.25rem; display: block; width: 100%; }
.step__count { display: block; font: 700 .75rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.step__title { display: block; font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.5rem); line-height: 1.1; outline: none; }
html:not(.js) [data-js-only] { display: none !important; }

/* Campus + time cards */
.campus + .campus { margin-top: 2rem; }
.campus__name { font-size: 1.75rem; margin-bottom: .1rem; }
.campus__address { font-size: .95rem; color: var(--muted); margin-bottom: .9rem; }
.campus__address a { text-decoration-color: var(--line-strong); }
.slots { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 480px) { .slots { grid-template-columns: repeat(2, 1fr); } }
.slot {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 16px 16px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1.5px solid var(--line);
  cursor: pointer; transition: border-color .15s, background .15s, transform .15s;
}
.slot:hover { border-color: var(--line-strong); }
.slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: inherit; }
.slot { padding: 18px 20px 16px; min-height: 128px; }
.slot__time { font-family: var(--serif); font-size: 2.9rem; line-height: .95; }
.slot__status { font-size: .92rem; color: var(--ink-soft); margin-top: 4px; }
.slot__bar { display: block; height: 4px; border-radius: 4px; background: rgb(255 255 255 / .08); overflow: hidden; margin-top: 10px; }
.slot__bar span { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.slot__kids {
  display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 12px;
  font-size: .82rem; font-weight: 500; color: var(--gold); white-space: nowrap;
}
.slot__kids svg { flex: none; }
.slot__status + .slot__kids, .slot__bar + .slot__kids { border-top: 1px solid var(--line); margin-top: 14px; }
.slot:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); }
.slot:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.slot--few .slot__status { color: var(--gold); font-weight: 600; }
.slot--full, .slot--closed { cursor: not-allowed; opacity: .5; }
.slot--full .slot__time { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.campus + .note, .slots + .note { margin-top: 1rem; }
.step > .note { margin-top: 1.25rem; }

/* Stepper */
.stepper { display: flex; align-items: center; gap: 14px; margin-bottom: 1.25rem; }
.stepper__btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink-soft); background: transparent; color: var(--ink);
  font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.stepper__btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.stepper__btn:disabled { opacity: .3; cursor: default; }
.stepper__value {
  width: 2.4ch; text-align: center; font-family: var(--serif); font-size: 3.2rem; line-height: 1;
  background: transparent; border: 0; color: var(--ink); padding: 0; -moz-appearance: textfield; appearance: textfield;
}
.stepper__value::-webkit-inner-spin-button, .stepper__value::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__unit { color: var(--ink-soft); font-size: 1.1rem; }
.stepper--small { margin: 0; gap: 10px; }
.stepper--small .stepper__btn { width: 40px; height: 40px; font-size: 1.3rem; }
.stepper--small .stepper__value { font-size: 1.8rem; }

.callout { border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 9%, var(--surface)), var(--surface)); border-radius: var(--radius); padding: 18px 20px 6px; margin: 1.5rem 0; }
.callout h3 { margin-bottom: .35rem; }
.callout p { font-size: .98rem; }

/* Fields */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { font-weight: 400; font-size: .85rem; color: var(--muted); margin-left: 6px; }
input[type=text], input:not([type]), input[type=email], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 13px 14px; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 1.25rem 0; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--gold); }
.cf-turnstile { margin: 1rem 0; min-height: 65px; }
.summary { color: var(--ink-soft); margin-top: -.5rem; }

/* Buttons */
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid var(--ink-soft); background: transparent; color: var(--ink);
  font: 600 .95rem/1 var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:hover { border-color: var(--ink); color: var(--ink); background: rgb(255 255 255 / .05); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn--primary:hover { background: #ebbd76; border-color: #ebbd76; color: var(--gold-ink); }
.btn--danger { border-color: var(--danger); color: var(--danger); }
.btn--danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); border-color: var(--danger); }
.btn:disabled { opacity: .6; cursor: progress; }
.link { color: var(--gold); }

.alert { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger) 50%, transparent); padding: 12px 16px; border-radius: 10px; margin-bottom: 1.25rem; }
.alert--ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }

/* Panels */
.panel { background: var(--surface); border-radius: var(--radius); padding: 22px 22px 8px; margin: 2.5rem 0; }
.panel h2 { font-size: 1.4rem; }
.panel hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
.resend { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.resend .note { grid-column: 1 / -1; margin: 0 0 .75rem; min-height: 1em; }
@media (max-width: 480px) { .resend { grid-template-columns: 1fr; } }
.info ul { padding-left: 1.1rem; color: var(--ink-soft); }
.info li { margin-bottom: .35rem; }
.info__campus h3 { margin: 1rem 0 .4rem; }

.site-footer { width: min(100% - 40px, 720px); margin: 0 auto; padding: 24px 0 48px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.site-footer a { margin-right: 18px; color: var(--ink-soft); }
.site-footer p { margin: 0 0 .4rem; }

/* ── Ticket ──────────────────────────────────────────────────────────────────────────────────── */
.ticket { background: #f6eee3; color: #2a0c12; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6); }
.ticket__head { padding: 26px 26px 20px; background: linear-gradient(160deg, #5a1a26, #2f0d14); color: var(--ink); }
.ticket__head .eyebrow { margin-bottom: .25rem; }
.ticket__title { font-size: 3.2rem; margin-bottom: .15rem; }
.ticket__when { font-family: var(--serif); font-size: 1.6rem; margin-bottom: .6rem; }
.ticket__where { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.ticket__tear { height: 0; border-top: 2px dashed #d5c4b2; margin: 0 18px; position: relative; }
.ticket__tear::before, .ticket__tear::after { content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.ticket__tear::before { left: -30px; } .ticket__tear::after { right: -30px; }
.ticket__body { padding: 22px 26px 18px; text-align: center; }
.ticket__qr { width: min(100%, 260px); margin: 0 auto 10px; }
.ticket__qr svg { width: 100%; height: auto; }
.ticket__seats { font-family: var(--serif); font-size: 2.3rem; margin: 0; }
.ticket__meta { color: #6b5257; margin-bottom: .75rem; }
.code { letter-spacing: .14em; color: #2a0c12; }
.ticket__kids { display: inline-block; font-size: .85rem; font-weight: 600; color: #8a5a17; background: #f0dfc2; padding: 4px 12px; border-radius: 99px; }
.ticket .note { color: #6b5257; }
.ticket .link { color: #7a2433; }
.ticket--cancelled .ticket__head { background: #4a3a3c; }
.ticket--cancelled .ticket__body { color: #4a3a3c; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 99px; font-weight: 600; font-size: .9rem; }
.badge--ok { background: #d8f0df; color: #175c32; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 1rem; }
.inline-form label { font-weight: 600; }

.prose h2 { font-size: 1.35rem; margin-top: 1.6rem; }
.prose p { color: var(--ink-soft); }

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