/* Public club sites. One structure, four themes (body.theme-*). --accent comes from the club's settings. */
@font-face { font-family: "Dela"; src: url(../fonts/dela-gothic-one-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Dela"; src: url(../fonts/dela-gothic-one-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-ext-400-normal.woff2) format("woff2"); font-weight: 400; unicode-range: U+0100-024F; font-display: swap; }
@font-face { font-family: "Mono"; src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mono"; src: url(../fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root { --accent: #ff4fa3; }
body {
  --bg: #0b0b0b; --ink: #f4f1ea; --muted: #a7a39a; --card: #161616; --line: #2a2a2a; --on-accent: #0b0b0b;
  --head: "Dela", "Inter", system-ui, sans-serif; --text: "Inter", system-ui, sans-serif; --mono: "Mono", ui-monospace, monospace;
  --radius: 14px; --head-case: none; --head-track: -.01em;
}
body.theme-minimal { --bg: #fafaf7; --ink: #16161a; --muted: #6a6a72; --card: #fff; --line: #e6e6df; --on-accent: #fff;
  --head: "Inter", system-ui, sans-serif; --head-track: -.03em; --radius: 12px; }
body.theme-neon { --bg: #0a0f2c; --ink: #e8ecff; --muted: #8f99c9; --card: #121a42; --line: #243063; --on-accent: #06102a;
  --head: "Mono", ui-monospace, monospace; --head-case: uppercase; --head-track: .02em; --radius: 6px; }
body.theme-warm { --bg: #f6efe4; --ink: #2a1d14; --muted: #7c6a5a; --card: #fffaf2; --line: #e5d8c4; --on-accent: #fff;
  --head: Georgia, "Times New Roman", serif; --head-track: -.01em; --radius: 18px; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.55; min-height: 100vh;
  display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: var(--accent); }
h1, h2, h3, .s-h2 { font-family: var(--head); text-transform: var(--head-case); letter-spacing: var(--head-track); font-weight: 700; line-height: 1.08; }
.theme-flyer h1, .theme-flyer h2, .theme-flyer h3 { font-weight: 400; }
.s-mono { font-family: var(--mono); font-size: 14px; color: var(--muted); margin: 0 0 6px; letter-spacing: .02em; }
.s-small { font-size: 13px; color: var(--muted); } .s-center { text-align: center; }
.s-meta { color: var(--muted); margin: 4px 0; }

.s-top { display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(16px, 4vw, 40px); gap: 16px; }
.s-brand { font-family: var(--head); text-transform: var(--head-case); font-size: 20px; color: var(--ink); text-decoration: none; }
.s-brand img { max-height: 46px; max-width: 180px; display: block; }
.s-top nav { display: flex; gap: 18px; } .s-top nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.s-top nav a:hover { color: var(--accent); }
.s-top nav { align-items: center; }
.lang-switch { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.s-top nav .lang-switch a { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: var(--muted); }
.s-top nav .lang-switch a.on { background: var(--accent); color: var(--on-accent); }

.s-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent);
  border: 0; border-radius: 999px; padding: 14px 28px; font: 700 16px var(--text); text-decoration: none; cursor: pointer; }
.theme-neon .s-btn { border-radius: var(--radius); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 55%, transparent); }
.s-btn:hover { filter: brightness(1.08); } .s-btn:disabled { opacity: .4; cursor: not-allowed; filter: none; }
.s-btn-block { width: 100%; }

.s-hero { position: relative; min-height: 52vh; display: flex; align-items: flex-end; padding: 0 clamp(16px, 4vw, 40px) 40px; overflow: hidden; }
.s-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-hero.has-img::after { content: ""; position: absolute; inset: 0; }
.s-hero-text { position: relative; z-index: 1; max-width: 900px; }
.s-hero h1 { font-size: clamp(44px, 9vw, 112px); margin: 0 0 10px; }
.s-tagline { font-size: clamp(17px, 2.2vw, 22px); color: var(--muted); margin: 0 0 22px; max-width: 640px; }
.theme-flyer .s-hero h1 { color: var(--ink); } .theme-flyer .s-hero h1::after { content: "."; color: var(--accent); }
.theme-neon .s-hero h1 { text-shadow: 0 0 30px color-mix(in srgb, var(--accent) 45%, transparent); }

.s-section { padding: 40px clamp(16px, 4vw, 40px); max-width: 1200px; margin: 0 auto; width: 100%; }
.s-h2 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 22px; }
.s-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.s-event { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink);
  text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.s-event:hover { transform: translateY(-3px); border-color: var(--accent); }
.s-event-media { aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--accent) 16%, var(--card)); display: grid; place-items: center; overflow: hidden; }
.s-event-media { position: relative; }
/* any poster shape fits: whole poster visible, blurred copy fills the rest */
.s-event-media.has-img::before { content: ""; position: absolute; inset: -20px; background: var(--cover) center / cover no-repeat;
  filter: blur(18px) brightness(.75); }
.s-event-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.s-event-date-big { font-family: var(--head); font-size: 26px; text-align: center; padding: 20px; text-transform: var(--head-case); }
.s-event-body { padding: 16px 18px 18px; } .s-event-body h3 { font-size: 22px; margin: 2px 0 6px; }
.s-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--line); color: var(--ink); text-transform: uppercase; letter-spacing: .05em; }
.s-tag-off { background: color-mix(in srgb, #e5484d 22%, transparent); color: #e5484d; }
.s-empty { color: var(--muted); font-size: 18px; }
.s-prose { max-width: 720px; } .s-prose p { margin: 0 0 14px; }

/* event page */
.s-preview-bar { background: var(--accent); color: var(--on-accent); text-align: center; padding: 8px; font-weight: 700; }
.s-ev { max-width: 1200px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 40px) 50px; display: grid; gap: 28px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "cover head" "cover buy" "about buy"; align-items: start; }
.s-ev-cover { grid-area: cover; } .s-ev-cover img { width: 100%; max-height: 85svh; object-fit: contain; border-radius: var(--radius); display: block; }
.s-ev-head { grid-area: head; } .s-ev-head h1 { font-size: clamp(34px, 5vw, 64px); margin: 0 0 10px; }
.s-ev-buy { grid-area: buy; position: sticky; top: 16px; } .s-ev-about { grid-area: about; }
.s-ev:not(:has(.s-ev-cover)) { grid-template-areas: "head buy" "about buy"; }
.s-ticket-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.theme-flyer .s-ticket-form { background: var(--ink); color: var(--bg); --muted: #5f5a52; --line: #d9d4c9; }
.s-ticket-form h2 { font-size: 24px; margin: 0 0 12px; }
.s-tt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.s-tt.soldout { opacity: .55; }
.s-hint { display: block; color: var(--accent); font-weight: 700; }
.theme-flyer .s-ticket-form .s-mono { color: #5f5a52; }
.s-stepper { display: flex; align-items: center; gap: 6px; }
.s-stepper button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: inherit; font-size: 20px; cursor: pointer; line-height: 1; }
.s-stepper button:hover { border-color: var(--accent); }
.s-stepper input { width: 44px; text-align: center; border: 0; background: transparent; color: inherit; font: 700 18px var(--mono); -moz-appearance: textfield; }
.s-stepper input::-webkit-outer-spin-button, .s-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.s-free-fields { display: grid; gap: 8px; margin-top: 14px; }
.s-free-fields input { font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: inherit; }
.s-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 14px; font-size: 18px; }
.s-total b { font-family: var(--mono); font-size: 22px; }
.s-note { background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 10px; padding: 10px 12px; font-size: 14px; }

/* order / tickets */
.s-order h1 { font-size: clamp(32px, 5vw, 56px); margin: 0 0 10px; }
.s-tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.s-ticket { background: #fff; color: #111; border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.s-ticket img { width: 220px; height: 220px; }
.s-ticket .s-mono { color: #555; } .s-ticket.used { opacity: .6; }

.s-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; padding: 32px clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.s-foot b { color: var(--ink); } .s-foot a { color: var(--muted); }
.s-powered { font-size: 12px; align-self: end; }

.flashes { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); display: grid; gap: 8px; }
.flash { padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.flash-error { background: color-mix(in srgb, #e5484d 18%, var(--bg)); border: 1px solid #e5484d; }
.flash-ok { background: color-mix(in srgb, #30a46c 18%, var(--bg)); border: 1px solid #30a46c; }

.s-promo { margin: 12px 0 4px; } .s-promo summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.s-promo input, .s-form-simple input { width: 100%; font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: inherit; margin-top: 8px; text-transform: uppercase; }
.s-form-simple input { text-transform: none; margin: 0 0 12px; }
.s-narrow { max-width: 560px; }
.s-tt .s-small { display: block; }

/* ---------------- customisation (whitelisted options from the club's design page) ---------------- */
/* buttons */
.btn-rounded .s-btn { border-radius: 10px; } .btn-square .s-btn { border-radius: 0; }
/* corners of cards / images */
.corners-soft { --radius: 8px; } .corners-sharp { --radius: 0px; }
/* heading font override: theme-specific weights reset */
body[class*="font-"] h1, body[class*="font-"] h2, body[class*="font-"] h3 { font-weight: 700; }
.font-display h1, .font-display h2, .font-display h3 { font-weight: 400; }
.font-condensed { --head-case: uppercase; --head-track: -.01em; }
.font-condensed h1, .font-condensed h2, .font-condensed h3 { font-stretch: condensed; }
/* hero */
.hero-h-small .s-hero { min-height: 30vh; } .hero-h-full .s-hero { min-height: 88svh; }
.hero-a-center .s-hero { justify-content: center; text-align: center; }
.hero-a-center .s-hero-text { margin: 0 auto; } .hero-a-center .s-tagline { margin-left: auto; margin-right: auto; }
.s-hero.has-img::after { background: linear-gradient(color-mix(in srgb, var(--bg) calc(var(--overlay, .5) * 50%), transparent),
  color-mix(in srgb, var(--bg) min(100%, calc(var(--overlay, .5) * 100% + 10%)), transparent)); }
.s-hero-side { display: none; }
.hero-split .s-hero-side { display: block; position: relative; z-index: 1; }
.hero-split .s-hero-img, .hero-text .s-hero-img, .hero-text .s-hero.has-img::after { display: none; }
.hero-split .s-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-top: 20px; }
.hero-split .s-hero.has-img::after { display: none; }
.s-hero-side img { width: 100%; max-height: 70vh; object-fit: cover; border-radius: var(--radius); display: block; }
.hero-text .s-hero { min-height: auto; padding-top: 50px; }
.s-hero-logo { max-width: min(520px, 80vw); max-height: 220px; display: block; margin-bottom: 16px; }
.hero-a-center .s-hero-logo { margin-left: auto; margin-right: auto; }
/* announcement bar */
.s-announce { background: var(--accent); color: var(--on-accent); text-align: center; padding: 9px 16px; font-weight: 700; font-size: 14px; }
.s-announce a { color: inherit; text-decoration: none; }
/* events layout */
.events-list .s-events { grid-template-columns: 1fr; }
.events-list .s-event { flex-direction: row; align-items: stretch; }
.events-list .s-event-media { width: 160px; flex: none; aspect-ratio: 1; }
.events-posters .s-events { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.events-posters .s-event-media { aspect-ratio: 3 / 4; }
/* tags, lineup, info, gallery, socials */
.s-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.s-tags span { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.s-lineup { margin-top: 18px; } .s-lineup h2 { font-size: 18px; margin: 0 0 8px; color: var(--muted); }
.s-lineup ul { list-style: none; margin: 0; padding: 0; }
.s-lineup li { font-family: var(--head); text-transform: var(--head-case); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.2; }
.s-info-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; max-width: 720px; }
.s-info-box p { margin: 0 0 8px; } .s-info-box h3 { margin: 0 0 8px; }
.s-ev-about .s-info-box { margin-top: 18px; }
.s-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.s-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); display: block; }
.s-socials a { margin-right: 10px; }
/* event page layouts */
.ev-layout-banner .s-ev { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "cover cover" "head buy" "about buy"; }
.ev-layout-banner .s-ev-cover img { max-height: 55vh; width: 100%; object-fit: cover; }
.ev-layout-text .s-ev-cover { display: none; }
.ev-layout-text .s-ev { grid-template-areas: "head buy" "about buy"; }
.s-ev-bgimg { position: fixed; inset: 0; background-size: cover; background-position: center; filter: blur(40px) saturate(1.2);
  opacity: .35; transform: scale(1.15); z-index: -1; pointer-events: none; }
.ev-bg-blur { background: var(--bg); } .ev-bg-blur main { position: relative; z-index: 0; }

@media (max-width: 820px) {
  .s-ev { grid-template-columns: 1fr; grid-template-areas: "cover" "head" "buy" "about" !important; }
  .s-ev-buy { position: static; }
  .s-hero { min-height: 42vh; }
  .hero-split .s-hero { grid-template-columns: 1fr; }
  .events-list .s-event-media { width: 110px; }
  .s-ev-cover img { max-height: 70svh; }
}

/* ---------------- accessibility ---------------- */
.s-skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .15s; }
.s-skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.s-btn:focus-visible { outline-color: var(--ink); }
.s-stepper input:focus-visible { outline-offset: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* bigger touch targets on phones / tablets */
@media (pointer: coarse) {
  .s-stepper button { width: 44px; height: 44px; }
  .s-top nav a { padding: 8px 2px; }
  .s-top nav .lang-switch a { padding: 6px 11px; }
  .s-foot a { display: inline-block; padding: 4px 0; }
}
/* header on small phones: brand on top, links scroll sideways instead of overflowing */
@media (max-width: 520px) {
  .s-top { flex-wrap: wrap; row-gap: 8px; }
  .s-top nav { gap: 14px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .s-top nav::-webkit-scrollbar { display: none; }
  .s-btn { padding: 15px 24px; }
  .s-ticket-form { padding: 16px; }
}

/* ---------------- motion (calm; switched off for people who ask for less motion) ---------------- */
/* never starts invisible: if an animation is paused (background tab, print, link previews) content still shows */
@keyframes s-rise { from { opacity: .4; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes s-pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.s-hero-text, .s-ev-head, .s-ev-buy { animation: s-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.s-ev-buy { animation-delay: .08s; }
.s-event { animation: s-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.s-event:nth-child(2) { animation-delay: .05s; } .s-event:nth-child(3) { animation-delay: .1s; }
.s-event:nth-child(4) { animation-delay: .15s; } .s-event:nth-child(n+5) { animation-delay: .2s; }
.s-event-media img { transition: transform .4s ease; } .s-event:hover .s-event-media img { transform: scale(1.04); }
.s-btn { transition: filter .15s, transform .1s; } .s-btn:active:not(:disabled) { transform: scale(.97); }
.s-stepper button { transition: border-color .15s, background .15s, transform .1s; }
.s-stepper button:active { transform: scale(.9); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.s-total b.bump { animation: s-pop .3s ease; }
.flash { animation: s-rise .3s ease both; }
/* sticky "Tickets" button on phones while the ticket box is off-screen */
.s-mobile-cta { display: none; }
@media (max-width: 820px) {
  .s-mobile-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20;
    transition: transform .25s ease, opacity .25s ease; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
  .s-mobile-cta.off { transform: translateY(140%); opacity: 0; pointer-events: none; }
  body:has(.s-mobile-cta) .s-foot { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .s-top, .s-foot, .s-announce, .s-mobile-cta, .s-skip, .flashes { display: none !important; }
  body { background: #fff; color: #000; }
  .s-ticket { break-inside: avoid; border: 1px solid #ccc; }
}
html { scroll-behavior: smooth; }
main:focus { outline: none; }
#tickets { scroll-margin-top: 16px; }

/* service fee on top of the ticket price */
.s-fee { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }

