/* Quantum Leap Sports — dark shell, inspired by mts.now */

:root {
  --ink: #f5f2ea;
  --ink-strong: #f5f2ea;
  --ink-dim: rgba(245, 242, 234, 0.65);
  --ink-mute: rgba(245, 242, 234, 0.4);
  --ink-faint: rgba(245, 242, 234, 0.3);
  --bg: #050709;
  --bg-deep: #020507;
  --line: rgba(245, 242, 234, 0.16);
  --page-gutter: 28px;
  --nav-h: 72px;
  --qls-yellow: #ffde59;
  --qls-cyan: #5ce2e7;
  --qls-red: #ff3130;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --font-mono: "Chakra Petch", "SF Mono", ui-monospace, Menlo, monospace;
  --track-label: 0.2em;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  min-height: 100%;
}

html {
  color-scheme: dark;
  background: var(--bg);
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header — sticky, transparent fade like the mts.now intro chrome */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  padding: 20px var(--page-gutter);
  gap: 12px;
  border-bottom: none;
  background: linear-gradient(to bottom, #020507cc, #02050700);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: auto;
  height: 26px;
}

.brand-wordmark {
  width: auto;
  height: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.12s ease-out, border-color 0.12s ease-out;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
}

.nav-link.is-active {
  color: var(--qls-cyan);
  border-bottom-color: var(--qls-cyan);
}

/* Hero */
main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.intro-hero {
  position: relative;
  z-index: 10;
  flex: 1 1 auto;
  min-height: calc(100svh - var(--nav-h) - 53px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 42% 36% at 50% 50%, rgba(92, 226, 231, 0.14), transparent 70%),
    var(--bg);
}

.hero-burst {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 46% 34% at 50% 50%,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.22) 55%,
    transparent 75%
  );
}

.intro-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.intro-headline {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 18ch;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55);
  animation: headline-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes headline-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.site-foot {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px var(--page-gutter);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* 404 */
body.is-error .site-nav {
  background: transparent;
}

.error-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px var(--page-gutter) 80px;
  gap: 8px;
}

.error-code {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--qls-cyan);
}

.error-title {
  animation: none;
}

.error-back {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.error-back a {
  color: var(--ink-dim);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: color 0.12s ease-out, border-color 0.12s ease-out;
}

.error-back a:hover,
.error-back a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--qls-cyan);
}

@media (max-width: 720px) {
  :root {
    --page-gutter: 16px;
  }

  .site-nav {
    padding: 14px var(--page-gutter);
    min-height: 60px;
  }

  .nav-left,
  .nav-links {
    gap: 14px;
  }

  .intro-hero {
    min-height: calc(100svh - 60px - 49px);
  }

  .hero-vignette {
    background: radial-gradient(
      ellipse 85% 32% at 50% 50%,
      rgba(0, 0, 0, 0.58),
      rgba(0, 0, 0, 0.28) 55%,
      transparent 78%
    );
  }
}

@media (max-width: 480px) {
  .brand-wordmark {
    height: 18px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-link {
    font-size: 11px;
    letter-spacing: 0.14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-headline {
    animation: none;
  }
}
