/* Hoops DJ site. One stylesheet for every page, served as-is: no build step.
   Colours follow the app's two palettes (hoops-intros/src/ui/theme.ts); the
   dark one is the default because the mark is drawn on black. */

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #14161c;
  --surface-raised: #1a1d24;
  --border: #2a2d35;
  --text: #ffffff;
  --text-sub: #a0aabb;
  --text-muted: #7c8a9a;
  --accent: #00d4ff;
  --on-accent: #000000;
  /* The ball's orange. Decoration only: it fails contrast as text on light. */
  --ball: #ff7a1a;
  /* The mark's own backdrop, the same in both themes. */
  --tile: #0a0a0a;
  --glow: 14%;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-press: 120ms;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #e9eef6;
    --surface: #ffffff;
    --surface-raised: #f4f7fd;
    --border: #d5dded;
    --text: #0d1526;
    --text-sub: #3d4f6b;
    --text-muted: #5c6e89;
    --accent: #1a63c5;
    --on-accent: #ffffff;
    --glow: 9%;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  /* The glow sits on the body, not the hero, so it runs behind the header
     without a seam. Lengths, not percentages: the body is as tall as the page. */
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 30rem at 88% -6rem, color-mix(in srgb, var(--accent) var(--glow), transparent), transparent 62%),
    radial-gradient(42rem 26rem at -8% 5rem, color-mix(in srgb, var(--ball) var(--glow), transparent), transparent 62%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */

.site-header { padding: 1.25rem 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }

.mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 22%;
  background: var(--tile);
  border: 1px solid var(--border);
  flex: none;
}
.mark img { width: 86%; height: 86%; }

/* ---------- Hero ---------- */

.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 6rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  margin: 1rem 0 1.25rem;
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  max-width: 34rem;
  color: var(--text-sub);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.95rem;
  font-weight: 600;
}
.soon::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ball);
  flex: none;
}

.fine { margin-top: 0.9rem; color: var(--text-muted); font-size: 0.92rem; }

/* What the announcer says: the app's own default lines, set as type. */
.booth {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.booth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wave { display: flex; align-items: center; gap: 3px; height: 1.25rem; }
.wave span {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleY(0.45);
  transform-origin: center;
}
.wave span:nth-child(2) { transform: scaleY(0.9); }
.wave span:nth-child(3) { transform: scaleY(0.6); }
.wave span:nth-child(4) { transform: scaleY(1); }
.wave span:nth-child(5) { transform: scaleY(0.5); }

.line {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: var(--surface-raised);
}
.line + .line { margin-top: 0.6rem; }
.line-label { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }
.line-text {
  margin-top: 0.15rem;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.line.is-live { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 60%, transparent); }

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 7vw, 5rem) 0; }

.section-head { max-width: 40rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head h2 {
  margin-top: 0.7rem;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.feature {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}
.feature svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { margin: 1rem 0 0.4rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.feature p { color: var(--text-sub); font-size: 1rem; }

.gym {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--border);
}
.gym h3 { margin-bottom: 0.35rem; font-size: 1.05rem; font-weight: 700; }
.gym p { color: var(--text-sub); font-size: 0.98rem; }

/* ---------- Legal and plain pages ---------- */

.page { padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }

.legal { max-width: 44rem; }
.legal h1 {
  margin: 0.8rem 0 0.6rem;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.legal .lead { margin-bottom: 0.75rem; }
.legal .updated { margin-bottom: 2.5rem; color: var(--text-muted); font-size: 0.88rem; }
.legal h2 {
  margin: 2.5rem 0 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  /* Clear of the top edge when a link lands on a section. */
  scroll-margin-top: 1.5rem;
}
.legal p { margin-bottom: 1rem; color: var(--text-sub); font-size: 1rem; line-height: 1.75; }
.legal strong { color: var(--text); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }

.button {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform var(--dur-press) var(--ease-out), border-color 160ms ease, background-color 160ms ease;
}
.button:hover { border-color: var(--accent); text-decoration: none; }
.button:active { transform: scale(0.97); }
.button-primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

/* ---------- Footer ---------- */

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer a { color: var(--text-sub); }
.site-footer a:hover { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .gym { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .features { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Motion ---------- */

/* The bars rest at the static heights above, so they read as a waveform
   whether or not this ever runs. */
@media (prefers-reduced-motion: no-preference) {
  .wave span { animation: wave 1.1s ease-in-out infinite alternate; }
  .wave span:nth-child(2) { animation-delay: -0.35s; }
  .wave span:nth-child(3) { animation-delay: -0.7s; }
  .wave span:nth-child(4) { animation-delay: -0.2s; }
  .wave span:nth-child(5) { animation-delay: -0.55s; }
}

@keyframes wave {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
