/* Psychedelics pre-save — Smash The House 2026 branding.
   Tokens mirror the main site (src/scss/base/base.scss, fonts.scss, cta-primary.scss). */

@font-face {
  font-family: "Neue Montreal";
  src: url("/fonts/NeueMontreal-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("/fonts/PPNeueMontreal-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Druk Wide LCG Super";
  src: url("/fonts/DrukWideLCG-Super.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@property --cta-spot { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --cta-edge { syntax: "<percentage>"; inherits: false; initial-value: 45%; }

:root {
  --font-nav: "Geist", Inter, Arial, sans-serif;
  --font-display: "Neue Montreal", "Geist", Inter, sans-serif;
  --font-druk: "Druk Wide LCG Super", "Neue Montreal", "Geist", Inter, sans-serif;
  --letter-spacing-display: -0.02em;
  --sth-radius: 12px;
  --bg-body: #1a1c1c;
  --red: #ff4a00;
  --fluo: #14ff00;
  --off-white: #fff;
  --muted: rgb(245 232 232 / 65%);
  --line: #2d2d2d;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--off-white);
  font-family: var(--font-nav);
  line-height: 1.5;
  background-color: var(--bg-body);
  /* same 240px grid as /images/grid-pattern.svg on the main site */
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 240px 240px;
  background-position: center top;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
[hidden] { display: none !important; }

/* Header */
.site-header {
  display: flex;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.site-header__logo {
  display: inline-flex;
  color: var(--off-white);
  transition: color 0.2s ease;
}
.site-header__logo svg { width: 203px; max-width: 60vw; height: auto; }

/* Layout */
.presave {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  width: min(100%, 64rem);
  margin: 0 auto;
  padding: clamp(1rem, 4vh, 3rem) 1.5rem clamp(3rem, 8vh, 5rem);
}

.presave__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--sth-radius);
  box-shadow: 0 30px 80px rgb(0 0 0 / 55%);
}

.presave__card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--sth-radius);
  background: rgb(15 15 15 / 60%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  text-align: center;
}

/* Typography */
.presave__eyebrow,
.presave__artists {
  margin: 0;
  color: #909090;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-display);
  line-height: 1.34;
  text-transform: uppercase;
}
.presave__eyebrow { color: var(--red); margin-bottom: 0.75rem; }

.presave__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: var(--letter-spacing-display);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.presave__state { margin-top: 2rem; }

.presave__text,
.presave__hello {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.presave__hello {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--off-white);
  margin-bottom: 0.25rem;
}
.presave__thanks {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: var(--letter-spacing-display);
  text-transform: uppercase;
  color: var(--fluo);
}

.presave__legal {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgb(245 232 232 / 45%);
}
.presave__legal a { color: var(--muted); }
.presave__legal a:hover { color: var(--fluo); }

/* Primary CTA — same as .cta-primary on the main site */
.cta-primary {
  --cta-spot: 0%;
  --cta-edge: 45%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  border: 0;
  border-radius: 0.375rem;
  color: #000;
  font-family: var(--font-druk);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  background-color: var(--fluo);
  background-image: radial-gradient(circle at 50% 50%, #fff var(--cta-spot), var(--fluo) var(--cta-edge));
  transition: --cta-spot 0.4s ease-out, --cta-edge 0.4s ease-out, transform 0.2s ease;
}
.cta-primary svg { flex: none; width: 1.5rem; height: 1.5rem; }
@media (hover: hover) and (pointer: fine) {
  .cta-primary:hover { --cta-spot: 100%; --cta-edge: 245%; }
}
.cta-primary:active { transform: translateY(1px); }

/* Secondary button / share links — pill style of the 404 page links */
.cta-secondary,
.share-link {
  display: inline-block;
  padding: 0.8rem 1.25rem;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 999px;
  background: transparent;
  color: var(--off-white);
  font-family: var(--font-nav);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.cta-secondary { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .cta-secondary:hover,
  .share-link:hover { border-color: var(--fluo); color: var(--fluo); }
}

.cta-primary:focus-visible,
.cta-secondary:focus-visible,
.share-link:focus-visible,
.presave__select:focus-visible,
.presave__consent input:focus-visible {
  outline: 2px solid var(--fluo);
  outline-offset: 2px;
}
.cta-primary:focus-visible { outline-color: #fff; }

.presave__share {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* Consent */
.presave__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.25rem;
  text-align: left;
  font-size: 0.875rem;
  color: var(--muted);
  cursor: pointer;
}
.presave__consent input {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.15rem 0 0;
  accent-color: var(--fluo);
  cursor: pointer;
}

.presave__error {
  display: none;
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(255 107 99 / 45%);
  border-radius: 0.375rem;
  background-color: rgb(255 107 99 / 8%);
  font-size: 0.875rem;
  color: #ff8a84;
  text-align: left;
}
.presave__error.show { display: block; }

/* Playlist picker */
.presave__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.presave__divider::before,
.presave__divider::after { content: ""; flex: 1; height: 1px; background: #343434; }

.presave__select {
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(63 63 63 / 88%);
  border-radius: 0.375rem;
  background-color: rgb(10 10 10 / 88%);
  color: var(--off-white);
  font-family: var(--font-nav);
  font-size: 0.9375rem;
}

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border-top: 1px solid #2a2c2c;
  background-color: var(--bg-body);
}
.site-footer__symbol { color: var(--off-white); display: inline-flex; }
.site-footer__symbol svg { width: 40px; height: auto; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 3rem; }
.site-footer__legal a {
  color: #909090;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.site-footer__legal a:hover { color: var(--off-white); }

/* Cookie notice */
#cookieConsent {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 9999;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), 34rem);
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  border: 1px solid #343434;
  border-radius: var(--sth-radius);
  background: rgb(15 15 15 / 92%);
  font-size: 0.8125rem;
  color: var(--muted);
}
.cookie-inner { display: flex; align-items: center; }
.cookie-inner > span { flex: 1; }
#cookieConsent a { color: var(--off-white); }
.cookieConsentOK {
  flex: none;
  margin-left: 1rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 0.375rem;
  background: var(--fluo);
  color: #000;
  font-family: var(--font-nav);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 767px) {
  .presave {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 26rem);
    gap: 1.5rem;
  }
  .site-header { padding: 1.5rem; }
  .cta-primary { font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
