/*
 * encorelive.app — "House lights down" (2026-11-04).
 * Sean (2026-10-28): "Encore is fun and alive and it's a concert app." The home page is the
 * moment before the band walks on: stage black and the warm white of the app icon, stage
 * soft warm stage light through haze (one teal gel), gig-poster type, a marquee
 * band, a setlist taped to the stage and a ticket stub. Support and the legal pages are
 * "house lights up": bright paper, plain and readable.
 * No purple (Sean's rule), no photos, no JavaScript (CSP script-src 'none'), no inline
 * styles (CSP style-src 'self'), fonts served from this site. Every animation stops for
 * prefers-reduced-motion.
 */

/* ── Fonts (SIL OFL; the licences sit next to the files) ───────────────────────────── */
@font-face { font-family: 'Big Shoulders'; src: url('/fonts/BigShouldersDisplay_800ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Big Shoulders'; src: url('/fonts/BigShouldersDisplay_900Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/IBMPlexMono_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('/fonts/SchibstedGrotesk_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('/fonts/SchibstedGrotesk_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('/fonts/SchibstedGrotesk_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

/* ── Tokens ───────────────────────────────────────────────────────────────────────── */
:root {
  /* the stage (the app icon: House lights) */
  --night: #0E0E10;
  --night-2: #17140F;
  --lift: #1C1A18;
  --house: #F4EFE6;
  --house-dim: rgba(244, 239, 230, 0.74);
  --house-faint: rgba(244, 239, 230, 0.6);
  --glow: #FFC98A;
  /* the gels */
  --amber: #FFB547;
  --ember: #FF6A33;
  --ember-deep: #E8361F;
  --teal: #3EE2C6;
  --ember-grad: linear-gradient(100deg, #FFC14D 0%, #FF7A3A 48%, #EE3A22 100%);
  /* house lights up */
  --paper: #F7F2EA;
  --paper-2: #EFE7DA;
  --card: #FFFBF4;
  --ink: #17140F;
  --ink-2: #5A5047;
  --rule: #E2D8C8;
  --link: #B8321C;

  --display: 'Big Shoulders', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --body: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(18px, 5vw, 64px);

  /* film grain over the stage */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ── Base ─────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--amber); color: var(--night); font: 600 15px var(--body); text-decoration: none; }
.skip:focus { top: 12px; }
.ember { background: var(--ember-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

.theme-stage { background: var(--night); color: var(--house); }
.theme-stage::after {
  content: ''; position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background-image: var(--grain); opacity: 0.07; mix-blend-mode: overlay;
}
.theme-house { background: var(--paper); color: var(--ink); }
.theme-house::before { content: ''; display: block; height: 6px; background: var(--ember-grad); }

/* ── Masthead ─────────────────────────────────────────────────────────────────────── */
.masthead {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: currentColor; }
.theme-stage .brand-mark { filter: drop-shadow(0 0 10px rgba(255, 201, 138, 0.45)); }
.brand-word { font: 900 26px/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; }
.nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); }
.nav a { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; text-decoration: none; padding: 10px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .nav-ticket {
  padding: 10px 14px; border: 1.5px solid currentColor; border-radius: 999px;
}
.theme-stage .nav .nav-ticket { border-color: var(--amber); color: var(--amber); }
.nav .nav-ticket:hover { text-decoration: none; background: var(--amber); color: var(--night); border-color: var(--amber); }

/* ── Buttons ──────────────────────────────────────────────────────────────────────── */
/* A ticket: notches cut into both ends */
.btn-ticket {
  display: inline-block;
  padding: 15px 30px 14px;
  background: var(--ember-grad); color: var(--night);
  font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
  -webkit-mask: radial-gradient(circle 9px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-ticket:hover { transform: translateY(-2px) rotate(-1.5deg); filter: brightness(1.08) saturate(1.1); }
.btn-ticket.btn-dark { background: var(--night); color: var(--house); }
.btn-ghost {
  font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em;
  text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1.5px;
  padding: 12px 2px;
}
.btn-ghost:hover { color: var(--amber); }

/* ── Hero: the stage ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: clamp(16px, 4vw, 48px);
  /* Fills the screen and always fits it: type and mark scale with the screen's height as
     well as its width, so nothing drops below the fold on a short laptop screen */
  min-height: 100vh; min-height: 100svh;
  padding: 0 var(--gutter) clamp(64px, 11svh, 120px);
  margin-top: -76px; padding-top: calc(76px + clamp(10px, 3svh, 40px));
}
.rig { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* Light in a room, not drawn shapes (Sean, 2026-11-05): soft at every edge, seen where the haze
   catches it; the gels keep their colour and the sweep keeps some life (between the first pass,
   which looked fake, and the soft one, which was too quiet) */
.haze {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle 56px at 21% 0%, rgba(255, 240, 220, 0.16), transparent),
    radial-gradient(circle 44px at 51% 0%, rgba(255, 200, 160, 0.10), transparent),
    radial-gradient(55% 34% at 24% 2%, rgba(255, 236, 210, 0.14), transparent 70%),
    radial-gradient(45% 30% at 62% 0%, rgba(255, 214, 170, 0.09), transparent 70%),
    radial-gradient(35% 30% at 88% 26%, rgba(62, 226, 198, 0.05), transparent 70%),
    radial-gradient(70% 40% at 40% 60%, rgba(255, 220, 180, 0.035), transparent 70%),
    linear-gradient(180deg, #151311 0%, var(--night) 72%);
}
.floor {
  position: absolute; left: -10%; right: -10%; bottom: -30%; height: 60%;
  background: radial-gradient(50% 50% at 45% 50%, rgba(255, 214, 170, 0.10), transparent 70%);
}
.beam {
  position: absolute; top: -10%; width: 34vw; min-width: 260px; height: 120%;
  transform-origin: 50% 0;
  filter: blur(14px);
  mix-blend-mode: screen;
  animation: sweep 16s ease-in-out infinite alternate;
}
.beam::before { content: ''; position: absolute; inset: 0; clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%); background: var(--beam); }
/* the key light: warm amber, the one you notice */
.beam-key  { left: 4%;  --beam: linear-gradient(180deg, rgba(255, 210, 150, 0.50) 0%, rgba(255, 210, 150, 0.17) 45%, rgba(255, 210, 150, 0) 80%); --from: -15deg; --to: 9deg; }
/* the fill: a soft ember */
.beam-fill { left: 34%; --beam: linear-gradient(180deg, rgba(255, 122, 68, 0.38) 0%, rgba(255, 122, 68, 0.12) 45%, rgba(255, 122, 68, 0) 74%); --from: 12deg; --to: -11deg; animation-duration: 19s; animation-delay: -5s; }
/* the teal gel */
.beam-gel  { left: 64%; --beam: linear-gradient(180deg, rgba(62, 226, 198, 0.28) 0%, rgba(62, 226, 198, 0.08) 45%, rgba(62, 226, 198, 0) 70%); --from: -7deg; --to: 16deg; animation-duration: 23s; animation-delay: -11s; }
/* the haze breathes a little, as if the smoke were moving */
.haze { animation: haze 11s ease-in-out infinite alternate; }
@keyframes haze { from { opacity: 0.86; } to { opacity: 1; } }
@keyframes sweep { from { transform: rotate(var(--from)); } to { transform: rotate(var(--to)); } }

.hero-copy { position: relative; }
.live-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.18em; color: var(--house-dim);
  margin-bottom: clamp(12px, 2.6svh, 22px);
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(255, 106, 51, 0.6); animation: live 1.8s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 51, 0.65); } 100% { box-shadow: 0 0 0 12px rgba(255, 106, 51, 0); } }

.hero-title {
  margin: 0 0 clamp(10px, 2.6svh, 24px);
  font: 900 clamp(52px, min(11.5vw, 14.5svh), 184px)/0.86 var(--display);
  text-transform: uppercase; letter-spacing: -0.005em;
}
.hero-title .line { display: block; animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-title .line-2 { animation-delay: 0.14s; }
@keyframes rise { from { opacity: 0; transform: translateY(0.3em); } to { opacity: 1; transform: none; } }
.hero-tagline {
  margin: 0 0 clamp(8px, 1.8svh, 16px);
  font: 800 clamp(20px, min(2.3vw, 3.6svh), 34px)/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em;
  animation: rise 0.9s 0.22s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-dek { max-width: 38ch; font-size: clamp(16px, min(1.55vw, 2.6svh), 21px); line-height: 1.5; color: var(--house-dim); animation: rise 0.9s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(14px, 3.4svh, 30px); animation: rise 0.9s 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.hero-stage { position: relative; display: grid; place-items: center; }
.halo {
  position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 180, 0.24) 0%, rgba(255, 190, 130, 0.07) 40%, transparent 66%);
  animation: breathe 4.5s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(0.94); opacity: 0.8; } 50% { transform: scale(1.04); opacity: 1; } }
.hero-mark { position: relative; width: clamp(140px, min(28vw, 46svh), 430px); height: auto; color: var(--house); filter: drop-shadow(0 0 28px rgba(255, 201, 138, 0.35)); animation: rise 1.2s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-mark .mark-dot { transform-box: fill-box; transform-origin: center; animation: spot 3s ease-in-out infinite; }
@keyframes spot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ── Marquee band ─────────────────────────────────────────────────────────────────── */
.marquee {
  position: relative; z-index: 3;
  width: 112vw; margin: -40px 0 0 -6vw;
  transform: rotate(-2.2deg);
  background: var(--ember-grad); color: var(--night);
  overflow: hidden; padding: 14px 0 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 22px; padding-right: 22px;
  font: 800 clamp(22px, 2.6vw, 32px)/1 var(--display); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.marquee-track span::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--night); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── The setlist ──────────────────────────────────────────────────────────────────── */
.setlist-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 7vw, 96px);
  padding: clamp(80px, 11vw, 150px) var(--gutter) clamp(56px, 8vw, 110px);
  scroll-margin-top: 20px;
}
.setlist {
  position: relative; max-width: 540px; justify-self: end;
  padding: 44px clamp(22px, 4vw, 40px) 30px;
  background: #F5EEDF; color: var(--ink);
  background-image: var(--grain);
  background-blend-mode: multiply;
  transform: rotate(-1.8deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(0, 0, 0, 0.08);
}
/* gaffer tape, two strips */
.setlist::before, .setlist::after {
  content: ''; position: absolute; top: -14px; width: 104px; height: 30px;
  background: rgba(38, 36, 34, 0.86);
  clip-path: polygon(3% 8%, 97% 0, 100% 46%, 96% 94%, 2% 100%, 0 54%);
}
.setlist::before { left: 14px; transform: rotate(-7deg); }
.setlist::after { right: 14px; transform: rotate(6deg); }
.setlist-head {
  display: flex; justify-content: space-between; gap: 12px;
  font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-2);
  padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 8px;
}
.songs { list-style: none; margin: 0; padding: 0; counter-reset: song; }
.songs li { counter-increment: song; padding: 16px 0 14px; border-bottom: 1px dashed rgba(23, 20, 15, 0.28); }
.song {
  display: inline-block; position: relative;
  font: 800 clamp(30px, 3.6vw, 42px)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.01em;
  background-image: linear-gradient(var(--ember-deep), var(--ember-deep));
  background-repeat: no-repeat; background-position: 0 55%; background-size: 0% 4px;
  transition: background-size 0.45s cubic-bezier(0.3, 0.8, 0.2, 1);
}
.song::before { content: counter(song, decimal-leading-zero); position: relative; top: -0.5em; margin-right: 10px; font: 500 13px/1 var(--mono); color: var(--ember-deep); }
.songs li:hover .song { background-size: 100% 4px; } /* played: crossed off */
.note { display: block; margin-top: 8px; max-width: 46ch; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.setlist-encore { margin: 18px 0 0; font: 800 26px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.setlist-encore .ember { background: none; -webkit-text-fill-color: var(--ember-deep); color: var(--ember-deep); }

.setlist-side { max-width: 520px; }
.poster-title { margin: 0 0 22px; font: 900 clamp(52px, 7vw, 104px)/0.88 var(--display); text-transform: uppercase; }
/* one phrase a line, so a phone never splits "Dive / bars" */
.poster-line { display: block; }
.setlist-side p { font-size: 18px; line-height: 1.6; color: var(--house-dim); }
.side-note { font: 500 12px/1.6 var(--mono) !important; text-transform: uppercase; letter-spacing: 0.14em; color: var(--house-faint) !important; }

/* ── The ticket ───────────────────────────────────────────────────────────────────── */
.beta { padding: clamp(20px, 4vw, 40px) var(--gutter) clamp(90px, 12vw, 160px); display: grid; justify-items: center; gap: 22px; scroll-margin-top: 16px; }
.beta-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.18em; color: var(--house-dim);
}
/* how you get in: three steps on the stage under the ticket, so the ticket keeps its shape */
.beta-steps {
  list-style: none; margin: 26px 0 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 36px;
  width: 100%; max-width: 940px;
}
.beta-steps li { counter-increment: step; position: relative; padding-top: 54px; color: var(--house-dim); font-size: 16px; line-height: 1.55; }
.beta-steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font: 900 46px/1 var(--display);
  background: var(--ember-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.beta-steps strong { color: var(--house); font-weight: 600; }
.beta-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.beta-fine { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-2); }
/* the button opens a mail app; on a computer without one, the address is right here to copy */
.beta-alt { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
.beta-alt strong { color: var(--ink); font-weight: 600; user-select: all; }
.ticket {
  --stub: 190px;
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--stub);
  width: 100%; max-width: 940px;
  background: var(--house); color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5);
  transform: rotate(1deg);
  transition: transform 0.3s ease;
}
.ticket:hover { transform: rotate(0deg) translateY(-4px); }
/* the notches at the perforation, cut through to the stage */
.ticket::before, .ticket::after {
  content: ''; position: absolute; right: calc(var(--stub) - 15px); width: 30px; height: 30px; border-radius: 50%; background: var(--night);
}
.ticket::before { top: -15px; }
.ticket::after { bottom: -15px; }
.ticket-main { padding: clamp(28px, 5vw, 52px); }
.ticket-kicker { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.18em; color: var(--link); margin-bottom: 14px; }
.ticket-title { margin: 0 0 14px; font: 900 clamp(40px, 5.6vw, 68px)/0.9 var(--display); text-transform: uppercase; }
.ticket-sub { max-width: 46ch; color: var(--ink-2); margin-bottom: 26px; }
.ticket-stub {
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 14px;
  padding: 28px 14px;
  background: var(--ember-grad); color: var(--night);
  border-left: 3px dashed rgba(14, 14, 16, 0.55);
  border-radius: 0 6px 6px 0;
  text-align: center;
}
.stub-admit { font: 900 46px/0.9 var(--display); text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 0.04em; }
.stub-meta, .stub-no { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.16em; }

/* ── 404 ──────────────────────────────────────────────────────────────────────────── */
.lost { position: relative; isolation: isolate; min-height: 78vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 40px var(--gutter) 90px; margin-top: -76px; padding-top: 116px; }
.lost .hero-dek { margin-inline: auto; }
.lost .hero-actions { justify-content: center; }
.lost-stage { position: relative; display: grid; place-items: center; margin-bottom: 18px; }
.lost-stage .halo { width: 220%; }
.lost-stage .hero-mark { width: 120px; }
.lost-title { margin: 6px 0 16px; font: 900 clamp(64px, 12vw, 150px)/0.86 var(--display); text-transform: uppercase; }

/* ── Footer ───────────────────────────────────────────────────────────────────────── */
.footer { padding: 46px var(--gutter) 40px; border-top: 1px solid rgba(244, 239, 230, 0.12); }
.footer-sign { font: 900 clamp(34px, 5vw, 56px)/1 var(--display); text-transform: uppercase; margin-bottom: 22px; }
.theme-stage .footer-sign { background: var(--ember-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 18px; }
.footer-links a { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; text-decoration: none; padding: 8px 0; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.footer-note { font-size: 14px; color: var(--house-faint); margin-bottom: 6px; }
.theme-house .footer { background: var(--paper-2); border-top: 1px solid var(--rule); }
.theme-house .footer-note { color: var(--ink-2); }

/* ── House lights up: support, delete-account, legal ─────────────────────────────── */
.theme-house main { max-width: 760px; margin: 0 auto; padding: clamp(28px, 6vw, 64px) var(--gutter) 80px; }
/* on paper the mark sits on a stage-black badge, like the app icon, so its spotlight dot shows */
.theme-house .brand-mark { color: var(--house); background: var(--night); border-radius: 9px; padding: 4px; width: 36px; height: 36px; }
.theme-house a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.theme-house .masthead a { color: var(--ink); }
.theme-house .nav .nav-ticket:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.theme-house .footer a { color: var(--ink); }
.eyebrow { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.18em; color: var(--link); margin-bottom: 16px; }
.theme-house h1 { margin: 0 0 18px; font: 900 clamp(48px, 9vw, 92px)/0.88 var(--display); text-transform: uppercase; }
.dek { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink-2); margin-bottom: 30px; }
.theme-house h2 { margin: 46px 0 14px; font: 800 clamp(28px, 3.6vw, 36px)/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.theme-house h2::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 12px; background: var(--ember-grad); vertical-align: 0.12em; }
.theme-house h3 { margin: 28px 0 8px; font-size: 19px; font-weight: 600; }
.muted { color: var(--ink-2); }
.callout {
  position: relative; margin: 22px 0 30px; padding: 22px 24px;
  background: var(--card); border: 2px solid var(--ink); border-left-width: 10px;
}
.callout p:last-child { margin-bottom: 0; }
.path { font: 500 0.86em var(--mono); background: var(--paper-2); padding: 2px 7px; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; position: relative; padding: 16px 40px 16px 0; font-weight: 600; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 800 28px/1 var(--display); color: var(--link); }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 18px; color: var(--ink-2); }
.steps { list-style: none; counter-reset: step; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 12px 54px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -4px; font: 900 40px/1 var(--display); color: var(--ember-deep); }
.theme-house ul { padding-left: 1.2em; }
.theme-house li { margin-bottom: 6px; }

/* The Legal page: one place for every document */
.theme-house .doc-list { list-style: none; padding: 0; margin: 28px 0 30px; display: grid; gap: 12px; }
.theme-house .doc-list li { margin: 0; }
.doc {
  display: grid; gap: 4px; padding: 18px 22px; text-decoration: none;
  background: var(--card); border: 2px solid var(--ink); border-left-width: 10px; border-radius: 4px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.theme-house a.doc { color: var(--ink); }
.doc:hover { transform: translateX(4px); border-left-color: var(--ember-deep); }
.doc-title { font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.doc-note { font-size: 15px; color: var(--ink-2); }

/* Legal text: plain and readable, straight from EncoreApp/legal */
.legal { font-size: 17px; line-height: 1.7; }
.legal h1 { font-size: clamp(44px, 8vw, 80px); }
.legal h2 { font-size: clamp(24px, 3vw, 30px); }
.legal hr { border: 0; border-top: 1px solid var(--rule); margin: 36px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.legal code { font: 500 0.88em var(--mono); background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }
.legal pre { overflow-x: auto; background: var(--paper-2); padding: 14px; border-radius: 6px; }
.legal blockquote { margin: 18px 0; padding: 4px 18px; border-left: 4px solid var(--rule); color: var(--ink-2); }

/* ── Small screens ────────────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; align-content: center; text-align: left; }
  .hero-stage { grid-row: 1; justify-self: start; margin-bottom: -6px; }
  .hero-mark { width: clamp(96px, min(30vw, 17svh), 170px); }
  .hero-title { font-size: clamp(46px, min(14.5vw, 8.5svh), 96px); }
  .hero-dek { font-size: 17px; }
  .halo { width: 170%; }
  .beam { width: 70vw; }
  .marquee { margin-top: -24px; }
  .setlist-wrap { grid-template-columns: 1fr; }
  .setlist { justify-self: stretch; max-width: none; transform: rotate(-1deg); }
  .setlist-side { grid-row: 1; }
}
@media (max-width: 640px) {
  .nav a:not(.nav-ticket) { display: none; }
  .ticket { --stub: 0px; grid-template-columns: 1fr; transform: none; }
  .ticket::before, .ticket::after { display: none; }
  .ticket-stub {
    flex-direction: row; justify-content: space-between; padding: 14px 20px;
    border-left: 0; border-top: 3px dashed rgba(14, 14, 16, 0.55); border-radius: 0 0 6px 6px;
  }
  .stub-admit { writing-mode: horizontal-tb; transform: none; font-size: 26px; white-space: nowrap; }
  .stub-meta, .stub-no { white-space: nowrap; font-size: 10px; letter-spacing: 0.12em; }
  .beta-steps { grid-template-columns: 1fr; gap: 18px; }
  .beta-steps li { padding: 0 0 0 58px; }
  .beta-steps li::before { top: -2px; font-size: 40px; }
}

/* ── Reduce Motion: the lights hold still ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .beam-key { transform: rotate(-6deg); }
  .beam-fill { transform: rotate(2deg); }
  .beam-gel { transform: rotate(10deg); }
}
