/* Saw it website: Ticket Night theme. Shared by every page. */

:root {
  --bg: #0B0B12;
  --deep: #0E0E16;
  --panel: #14141E;
  --raised: #1C1C29;
  --raised-hover: #252535;
  --line: #2A2A3C;
  --line-2: #3A3A52;
  --line-soft: #22222F;
  --divider: #1C1C29;
  --perf: #34344A;
  --text: #F6F5FA;
  --text-2: #C9C9D6;
  --text-3: #DCDCE6;
  --muted: #9B9BB2;
  --rose: #FF4D6D;
  --rose-hover: #FF5E7B;
  --rose-ink: #1A0710;
  --rose-shadow: #A3243D;
  --rose-text: #FF8FA3;
  --link: #FF6F8A;
  --coral: #FF7A54;
  --coral-text: #FF9A7E;
  --coral-ink: #1A0A04;
  --violet: #8A5BFF;
  --gold: #FFBE3D;
  --gold-ink: #2A1C00;
  --green: #38DFA0;
  --green-ink: #06281B;
  --slate: #AEB8CB;
  --shadow: #050508;
  --display: 'Clash Display', system-ui, sans-serif;
  --body: 'General Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --gutter: clamp(20px, 4vw, 40px);
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-color: var(--bg);
  /* the dot grid: 5% white dots every 18px */
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--rose); }
button { font-family: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--rose); color: #fff; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

/* Icons come from /assets/icons.svg and size with the font. */
.i { width: 1em; height: 1em; fill: currentColor; flex: none; display: inline-block; vertical-align: middle; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow { font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: 1px; color: var(--coral-text); }
.mono { font-family: var(--mono); font-weight: 700; }
.h2 { font: 600 clamp(34px, 5vw, 60px)/1.02 var(--display); letter-spacing: -1px; text-wrap: balance; }
.lede { font: 400 clamp(17px, 1.6vw, 20px)/1.55 var(--body); color: var(--text-2); text-wrap: pretty; }

/* Nav */
.nav { border-bottom: 2px solid var(--divider); }
.nav.sticky {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 18, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: var(--coral); color: var(--coral-ink);
  border: 2px solid var(--bg); box-shadow: 0 3px 0 var(--shadow);
  display: flex; align-items: center; justify-content: center; font-size: 21px;
  transform: rotate(-6deg);
}
.brand-name { font: 700 24px var(--display); white-space: nowrap; }
.brand-name span, .footer-brand span { color: var(--rose); }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); }
.nav-link { color: var(--text-2); font: 600 15px var(--body); }
.nav-link:hover { color: var(--text); }
.nav-meta { font: 700 12px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 640px) { .nav-link { display: none; } }

/* Pressable 3D buttons: a hard shadow that collapses on press.
   --d is the shadow depth, --sc the shadow color. */
.btn {
  --d: 5px; --sc: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid var(--bg); cursor: pointer; white-space: nowrap; text-decoration: none;
  box-shadow: 0 var(--d) 0 var(--sc);
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(calc(var(--d) - 1px)); box-shadow: 0 1px 0 var(--sc); }
.btn .i { font-size: 1.3em; }
.btn-sm { height: 44px; padding: 0 18px; border-radius: 14px; font: 600 15px var(--display); --d: 4px; }
.btn-md { height: 56px; padding: 0 22px; border-radius: 16px; font: 600 17px var(--display); }
.btn-lg { height: 60px; padding: 0 22px; border-radius: 18px; font: 600 18px var(--display); --d: 6px; }
.btn-xl { height: 64px; padding: 0 22px; border-radius: 18px; font: 600 17px var(--display); --d: 6px; }
.btn-rose { background: var(--rose); color: var(--rose-ink); --sc: var(--rose-shadow); }
.btn-rose:hover { background: var(--rose-hover); color: var(--rose-ink); }
.btn-ghost { background: var(--raised); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--raised-hover); color: var(--text); }
.btn-ink { background: var(--bg); color: var(--text); --sc: #5A1424; }
.btn-ink:hover { color: var(--text); }

/* Store button: Play logo plus a two line label */
.store { gap: 12px; padding: 0 22px 0 16px; }
.store .i { font-size: 32px; }
.store-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; gap: 2px; }
.store-top { font: 700 10px var(--mono); letter-spacing: 1px; }
.store-main { font: 600 21px var(--display); }
.btn-light { background: var(--text); color: var(--bg); --sc: #6A6A7E; }
.btn-light:hover { color: var(--bg); transform: translateY(-2px); box-shadow: 0 calc(var(--d) + 2px) 0 var(--sc); }
.btn-light:active { transform: translateY(calc(var(--d) - 2px)); box-shadow: 0 1px 0 var(--sc); }

/* Tickets */
.ticket { border-radius: 24px; border: 2px solid var(--line); background: var(--panel); box-shadow: 0 8px 0 var(--shadow); overflow: hidden; }
/* The tear line: a dashed rule with a round notch bitten out of each edge.
   --inset is the side margin, --notch-line the notch border, --notch-bg what sits behind the ticket. */
.perf { --inset: 20px; position: relative; height: 0; margin: 0 var(--inset); border-top: 2px dashed var(--perf); }
.perf::before, .perf::after {
  content: ''; position: absolute; top: -16px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--notch-bg, var(--bg)); border: 2px solid var(--notch-line, var(--line));
}
.perf::before { left: calc(-1 * var(--inset) - 18px); }
.perf::after { right: calc(-1 * var(--inset) - 18px); }
.perf.wide { --inset: 22px; }

.tile { display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); flex: none; }

/* Legal pages */
.legal-head { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.legal-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 700 11px var(--mono); color: var(--muted); letter-spacing: 1px; }
.legal-h1 { font: 700 clamp(40px, 6vw, 64px)/1 var(--display); letter-spacing: -1px; text-wrap: balance; }
.legal-h2 { display: flex; align-items: baseline; gap: 12px; font: 600 28px/1.15 var(--display); }
.legal-h2 .n { font: 700 14px var(--mono); color: var(--coral-text); }
.legal-p { font: 400 17px/1.7 var(--body); color: var(--text-2); text-wrap: pretty; }
.legal-p b { color: var(--text); }
.legal a, .legal-p a { text-decoration: underline; text-underline-offset: 3px; }
.legal a.btn { text-decoration: none; }
.back-pill {
  height: 44px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 0 14px 0 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel);
  color: var(--text); font: 600 14px var(--body);
}
.back-pill:hover { color: var(--text); background: var(--raised); }
.back-pill .i { font-size: 18px; }

/* Footer */
.footer { border-top: 2px solid var(--divider); }
.footer-in {
  max-width: var(--maxw); margin: 0 auto; padding: 28px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.footer-brand { font: 700 22px var(--display); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font: 700 12px var(--mono); color: var(--muted); }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
