/* FWF house style for the public pages (splash and login), dark and light. */
:root {
  --bg: #1c0f47; --surface: #120a30; --ink: #f4f2fb; --muted: #b9b3d1; --accent: #a68bf5; --on-accent: #120a30; --line: #33275e;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ffffff; --surface: #f5f5f5; --ink: #1c0f47; --muted: #4a4e57; --accent: #5929ce; --on-accent: #ffffff; --line: #e2deee;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ffffff; --surface: #f5f5f5; --ink: #1c0f47; --muted: #4a4e57; --accent: #5929ce; --on-accent: #ffffff; --line: #e2deee;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.55 Montserrat, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: Outfit, Montserrat, sans-serif; font-weight: 600; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; }
.accent { color: var(--accent); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header: lies over the hero on the splash page, so its controls are always on dark */
.top { position: absolute; inset: 0 0 auto 0; z-index: 2; min-height: 80px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 0 clamp(16px, 4vw, 56px); }
/* No official reversed logo exists: the white comes in from the page corner and ends in the 14 degree slant of the decks */
.plate { position: absolute; left: 0; top: 0; height: 80px; display: flex; align-items: center; padding: 0 48px 0 clamp(16px, 4vw, 56px); background: #fff; clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%); }
.plate img { height: 40px; display: block; }
.controls { display: flex; align-items: center; gap: 8px; }
.icon-button, .lang button, .login { font: inherit; font-size: 14px; font-weight: 600; color: #f4f2fb; background: rgba(18, 10, 48, .55); border: 1px solid rgba(201, 184, 255, .35); border-radius: 8px; cursor: pointer; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; }
.icon-button svg, .login svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-button .sun { display: none; }
:root[data-theme="light"] .icon-button .sun { display: block; }
:root[data-theme="light"] .icon-button .moon { display: none; }
.lang { display: flex; gap: 4px; }
.lang button { height: 40px; min-width: 40px; padding: 0 8px; }
.lang button[aria-pressed="true"] { background: #a68bf5; border-color: #a68bf5; color: #120a30; }
.login { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; text-decoration: none; background: #a68bf5; border-color: #a68bf5; color: #120a30; }

/* Hero: the image stays dark in both themes; the slanted edge is the FWF signature */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; padding: 120px clamp(16px, 6vw, 88px) 120px; color: #f4f2fb; background: #120a30 url(hero.jpg) center / cover no-repeat; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7vw), 0 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 10, 48, .92) 0%, rgba(18, 10, 48, .62) 52%, rgba(18, 10, 48, 0) 80%); }
.hero-text { position: relative; max-width: 640px; }
.hero .eyebrow, .hero .accent { color: #c9b8ff; }
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); margin: 14px 0 20px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #dcd6ee; }
.facts { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 28px 0 0; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #c9b8ff; }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* FWF on the day */
.day { max-width: 1200px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 56px) 72px; }
.day h2 { font-size: clamp(30px, 4vw, 46px); margin: 10px 0 32px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
.card div { padding: 16px 24px 26px; }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--muted); }

/* Countdown and buttons in the hero */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 92px)); gap: 10px; margin-top: 28px; }
.countdown > div { padding: 12px 6px 10px; text-align: center; background: rgba(18, 10, 48, .6); border: 1px solid rgba(201, 184, 255, .3); border-radius: 8px; backdrop-filter: blur(8px); }
.countdown b { display: block; font: 600 clamp(28px, 3.4vw, 40px)/1.05 Outfit, Montserrat, sans-serif; font-variant-numeric: tabular-nums; color: #fff; }
.countdown span { display: block; margin-top: 4px; font-size: 12px; color: #c9b8ff; }
.cd-message { margin-top: 24px; font-size: 18px; font-weight: 600; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.action { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; font-weight: 600; text-decoration: none; color: var(--ink); border: 1px solid var(--accent); border-radius: 8px; }
.action svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.action.primary { background: var(--accent); color: var(--on-accent); }
.hero .action { color: #f4f2fb; border-color: rgba(201, 184, 255, .55); background: rgba(18, 10, 48, .45); }
.hero .action.primary { color: #120a30; background: #a68bf5; border-color: #a68bf5; }

/* After the event there is nothing left to buy or travel to */
:root[data-phase="over"] .until-over { display: none; }
.preview { position: fixed; left: 50%; bottom: 14px; z-index: 5; transform: translateX(-50%); margin: 0; padding: 6px 12px; font-size: 13px; font-weight: 600; color: #120a30; background: #c9b8ff; border-radius: 8px; }

/* Venue and route */
html { scroll-behavior: smooth; }
.route { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px) 72px; scroll-margin-top: 16px; }
.route-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 4vw, 44px); }
.route h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 10px 0 14px; }
.route address { font-style: normal; font-size: 19px; }
.route .facts { margin-top: 22px; }
.route .facts dt { color: var(--accent); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px clamp(16px, 4vw, 56px); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Login */
.auth { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 104px 16px 32px; }
.auth-card { width: min(480px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 32px; }
.auth-card h1 { font-size: 32px; margin: 10px 0 12px; }
.auth-card label { display: grid; gap: 6px; margin: 24px 0 16px; font-weight: 600; }
.auth-card input { font: inherit; padding: 12px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.auth-card button { font: inherit; font-weight: 600; padding: 12px 20px; color: var(--on-accent); background: var(--accent); border: 0; border-radius: 8px; cursor: pointer; }

/* Login: the event photograph, always dark, with the overlay and 14 degree plane of the decks */
.auth-page { --bg: #1c0f47; --surface: #120a30; --ink: #f4f2fb; --muted: #b9b3d1; --accent: #a68bf5; --on-accent: #120a30; --line: #33275e; color-scheme: dark; background: #120a30; color: var(--ink); }
.auth-page::before { content: ""; position: fixed; inset: 0; background: linear-gradient(100deg, rgba(18, 10, 48, .9), rgba(18, 10, 48, .66)), url(hero.jpg) center / cover no-repeat; }
.auth-page::after { content: ""; position: fixed; top: -10%; bottom: -10%; right: -12vw; width: 30vw; transform: skewX(-14deg); background: rgba(89, 41, 206, .32); border-left: 4px solid rgba(201, 184, 255, .5); }
.auth-page .auth-card { position: relative; z-index: 1; background: rgba(18, 10, 48, .68); border-color: rgba(201, 184, 255, .3); backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgba(6, 3, 20, .5); }
.auth-page .auth-card input { background: rgba(28, 15, 71, .8); border-color: rgba(201, 184, 255, .3); }
.auth-page .top { z-index: 2; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 112px; }
  .hero::before { background: linear-gradient(90deg, rgba(18, 10, 48, .8), rgba(18, 10, 48, .46)); }
}
@media (max-width: 480px) {
  .countdown { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .countdown span { font-size: 11px; }
  .action { flex: 1 1 100%; justify-content: center; }
  .top { min-height: 60px; padding: 0 16px; }
  .plate { height: 60px; padding: 0 32px 0 16px; clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 100%, 0 100%); }
  .plate img { height: 30px; }
  .icon-button, .lang button { width: 34px; min-width: 34px; height: 36px; padding: 0; font-size: 13px; }
  .login { height: 36px; width: 36px; justify-content: center; padding: 0; }
  .login span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
