/*
  Sip's coming soon page (docs/SIP_SITE.md), in Sip Tickets' look (docs/brand/sip/README.md): a black ground, white words, red for actions.
  Never white words on Sip red (#FE0000) and never Sip red words on white; buttons are action red (#E00000) with white words (5.04:1).
  Unbounded 800 for the display type (fonts/, with its license), the system font for everything else. Dark only.
*/

@font-face {
  font-family: 'Unbounded';
  src: url('fonts/unbounded-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --ink: #121212;
  --edge: #2e2e2e;
  --field: #808080; /* a field's border: 4.7:1 on the card (3:1 needed) */
  --white: #ffffff;
  --soft: #e6e6e6; /* 16.9:1 on black */
  --grey: #a3a3a3; /* second lines: 8.33:1 on black, 7.3:1 on the card */
  --sip-red: #fe0000; /* the wordmark, red words on black: 5.21:1 */
  --action-red: #e00000; /* buttons, with white words: 5.04:1 */
  --action-red-down: #c40000;
  --problem: #ff8a80; /* error words: 8.5:1 on the card */
  --display: 'Unbounded', ui-rounded, system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--black);
  color: var(--white);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--black);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--white); text-underline-offset: 0.18em; }
a:hover { color: var(--sip-red); }

:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

/* ------------------------------------------------------------------ the hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 16px 40px;
}

/* The animation's stage, behind the words (site.js draws on it). Without the script, the still frame: soft light over the wordmark. */
.stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 34rem 15rem at 50% 47%, rgba(255, 238, 214, 0.1), transparent 70%),
    radial-gradient(ellipse 22rem 9rem at 50% 44%, rgba(254, 0, 0, 0.12), transparent 70%);
}
.js .stage { background: none; }

/* The band above the words where the animations play: the same height for all three, so nothing moves when the script picks one. */
.art {
  position: relative;
  flex: 0 0 auto;
  height: clamp(150px, 28svh, 300px);
}

.hero-text {
  position: relative;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.wordmark {
  display: block;
  width: clamp(140px, 34vw, 260px);
  height: auto;
  margin: 0 auto;
}

.kicker {
  display: none;
  margin: 18px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1rem, 3.6vw, 1.25rem);
  letter-spacing: 0.02em;
  color: var(--white);
}
[data-site='tickets'] .kicker[data-for='tickets'],
[data-site='venue'] .kicker[data-for='venue'] { display: block; }

h1 {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 9.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
}

.guests {
  margin: 22px auto 0;
  color: var(--soft);
}

.jump { margin: 28px 0 0; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border: 2px solid var(--action-red);
  border-radius: 999px;
  background: var(--action-red);
  color: var(--white);
  font: 700 1.0625rem/1.2 var(--text);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--action-red-down); border-color: var(--action-red-down); color: var(--white); }
.btn[aria-disabled='true'] { cursor: progress; }

/* A second button: outlined in Sip red, Sip red words on its own black (5.21:1), whatever light is behind it. */
.btn.alt { background: var(--black); border-color: var(--sip-red); color: var(--sip-red); }
.btn.alt:hover { background: var(--sip-red); color: var(--black); }

/* ------------------------------------------------------------------ early access */

.access {
  max-width: 36rem;
  margin: 0 auto;
  padding: 56px 16px 48px;
  scroll-margin-top: 16px;
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 6vw, 2.125rem);
  line-height: 1.15;
}

h3 { margin: 0; font-size: 1.25rem; line-height: 1.3; }

.for { margin: 10px 0 24px; color: var(--soft); }

.form,
.done {
  padding: 8px 20px 24px;
  border: 1px solid var(--edge);
  border-radius: 20px;
  background: var(--ink);
}

label,
legend {
  display: block;
  margin: 20px 0 6px;
  padding: 0;
  font-weight: 700;
}

.hint { margin-left: 6px; font-weight: 400; color: var(--grey); }

input[type='text'],
input[type='email'],
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--field);
  border-radius: 12px;
  background: var(--black);
  color: var(--white);
  font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible,
textarea:focus-visible { border-color: var(--white); outline-offset: 2px; }
input[aria-invalid='true'],
textarea[aria-invalid='true'] { border-color: var(--problem); }

fieldset { margin: 20px 0 0; padding: 0; border: 0; min-width: 0; }
fieldset legend { margin: 0 0 6px; }
fieldset.invalid .choice { border-color: var(--problem); }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }

.choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 8px 18px 8px 14px;
  border: 2px solid var(--field);
  border-radius: 999px;
  cursor: pointer;
}
.choice input { width: 22px; height: 22px; margin: 0; accent-color: var(--action-red); }
.choice:has(input:checked) { border-color: var(--white); }
.choice:has(input:focus-visible) { outline: 3px solid var(--white); outline-offset: 3px; }
.choice input:focus-visible { outline: none; }

.err { margin: 6px 0 0; color: var(--problem); font-weight: 600; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form .btn { width: 100%; margin-top: 28px; }

.notice { margin: 16px 0 0; color: var(--soft); }

.summary {
  margin: 16px 0 4px;
  padding: 14px 16px;
  border: 2px solid var(--problem);
  border-radius: 14px;
}
.summary ul { margin: 8px 0 0; padding-left: 1.2em; }
.summary li + li { margin-top: 4px; }
.summary a { color: var(--problem); font-weight: 600; }

/* The thanks, and the messages the server's answer brings back to the page without the script (?sent=1#sent, ?error=…#error-…). */
.done { display: none; padding-top: 20px; }
.done .check { display: block; margin-bottom: 8px; color: var(--white); }
.done p { margin: 6px 0 0; color: var(--soft); }
.done:target,
.is-sent .done { display: block; }
.done:target ~ .form,
.is-sent .form { display: none; }

.problem {
  display: none;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 2px solid var(--problem);
  border-radius: 14px;
}
.problem p { margin: 0; }
.problem:target { display: block; }

/* ------------------------------------------------------------------ the footer */

.foot {
  padding: 24px 16px 40px;
  border-top: 1px solid var(--edge);
  text-align: center;
  color: var(--grey);
}
.foot p { margin: 4px 0; }

/* ------------------------------------------------------------------ the animations' pieces (site.js), all behind the words */

/* Spotlights (siptickets.com): one canvas over the whole stage (site.js draws the room, the lamps, the light and the flare on it). */
.lights { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Connected night's glow behind the wordmark. */
.pool { position: absolute; border-radius: 50%; will-change: opacity; }

/* Connected night (tryasip.com): line icons, red lines to the wordmark, and the pulses along them. */
.night { position: absolute; inset: 0; overflow: visible; }
.night .node { fill: var(--ink); stroke: var(--edge); stroke-width: 1.5; }
.night .icon { fill: none; stroke: var(--soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.night .wire { stroke: var(--sip-red); stroke-width: 1.75; stroke-linecap: round; fill: none; }
.night .pulse { fill: #ff5a4a; }
.night .halo { fill: var(--sip-red); opacity: 0.25; }

/* POS grid (sipvenue.com): buttons like Sip Venue's, on dark. Their words are decoration. */
.tile {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: #161616;
  color: #8f8f8f; /* 5.6:1 on the tile */
  font: 600 11px/1 var(--text);
  white-space: nowrap;
}
