/* SportsOpps placeholder site, built on the CoachOpps style guide
   (10 Design & Brand/Colors/CoachOpps Style Guide.html): the same role tokens,
   Geist for everything, Permanent Marker for the one hero line only, and the
   #0b0b0b hero band, which is dark in every theme. Fonts are self-hosted so the
   site makes no third-party requests (the privacy page depends on that). */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/geist-latin.woff2) format("woff2");
}
/* The SportsOpps wordmark face (the lockup's "SportsOpps" is Orbitron Regular). */
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(/fonts/orbitron-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Permanent Marker";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/permanent-marker-latin.woff2) format("woff2");
}

:root {
  color-scheme: light;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --line: #e2e8f0;
  --text: #0f172a;
  --text-muted: #5a6675;
  --accent: #1d4ed8;
  --link: #1d4ed8;
  --hero: #0b0b0b;
  --hero-muted: #cbd5e1;
  --hero-line: #475569;
  --gold: #ffcc33;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #0b0e14;
    --surface-subtle: #1a1f2b;
    --line: #262d3a;
    --text: #e6eaf2;
    --text-muted: #98a2b3;
    --accent: #3b6ae0;
    --link: #8fb0ff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #0b0e14;
  --surface-subtle: #1a1f2b;
  --line: #262d3a;
  --text: #e6eaf2;
  --text-muted: #98a2b3;
  --accent: #3b6ae0;
  --link: #8fb0ff;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
/* Browsers break lines at a hyphen, which split "contact-us@…" in two. */
a[href^="mailto:"] { white-space: nowrap; }
a:focus-visible {
  outline: none;
  border-radius: 6px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent);
}
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- Hero ------------------------------------------------------------ */
.hero {
  background: var(--hero);
  color: #ffffff;
  padding: 96px 0 104px;
}
.hero .lockup { display: block; width: min(460px, 100%); height: auto; }
.hero h1 {
  margin: 48px 0 0;
  max-width: 20ch;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
  text-wrap: balance;
}
.hero .marker {
  margin: 40px 0 0;
  max-width: none;
  font-family: "Permanent Marker", "Geist", cursive;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.3;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  color: var(--gold);
}
.hero .lede {
  margin: 28px 0 0;
  max-width: 58ch;
  font-size: 1.125rem;
  color: var(--hero-muted);
  text-wrap: pretty;
}

/* Home: the lockup and tagline fill most of the first screen. The lockup is an
   inline SVG (mark paths + Orbitron text), so it stays sharp at any width. */
/* The whole home page fits one screen: the body is exactly the viewport tall,
   the about band and footer take their natural height, and the hero takes the
   rest. The lockup and tagline scale by height as well as width so the hero's
   content always fits the space it gets. */
body.home { height: 100vh; height: 100svh; min-height: 0; }
body.home main { flex: none; }
.hero.home {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  text-align: center;
  padding: clamp(16px, 4vh, 48px) 0;
}
/* Background play drawings (assets/plays.js) sit under the hero content. */
.hero.home { position: relative; overflow: hidden; }
.hero.home .wrap { position: relative; z-index: 1; }
.plays-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero.home .lockup {
  display: block;
  width: min(1000px, 100%, 84vh);
  width: min(1000px, 100%, 84svh);
  margin: 0 auto;
}
.hero.home .marker {
  margin: clamp(16px, 4vh, 56px) 0 0;
  font-size: clamp(1.375rem, min(6.4vw, 7.6vh), 5rem);
  line-height: 1.15;
  text-wrap: balance;
}
body.home .about { padding: clamp(20px, 4vh, 56px) 0 clamp(20px, 4.5vh, 64px); }
body.home .about .grid { gap: clamp(16px, 3vh, 40px) 64px; }
body.home footer .wrap { padding-top: clamp(12px, 2.2vh, 24px); padding-bottom: clamp(12px, 2.2vh, 24px); }

/* ---- Body ------------------------------------------------------------ */
main { flex: 1; }
.about { padding: 64px 0 72px; }
.about .grid { display: grid; gap: 40px; }
@media (min-width: 820px) {
  .about .grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  /* Contact has no eyebrow; drop it by one eyebrow so the two headings line up. */
  .about .contact { padding-top: calc(.6875rem * 1.6); }
}
.eyebrow {
  margin: 0 0 10px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.about h2 { margin: 0 0 10px; font-size: 1.375rem; font-weight: 600; letter-spacing: -.015em; }
.about p { margin: 0; color: var(--text-muted); text-wrap: pretty; }
.about .opps { color: var(--link); }

/* ---- Footer ---------------------------------------------------------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--surface-subtle);
  font-size: .875rem;
  color: var(--text-muted);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}
footer nav { display: flex; gap: 20px; }

/* Centred under the hero, so the whole page reads on one centre line: the
   CoachOpps / Contact pair as a narrower two-column block with centred text,
   and the footer's copyright and links together on one centred line. */
.about .grid { max-width: 780px; text-align: center; }
.about p { margin-left: auto; margin-right: auto; max-width: 42ch; }
footer .wrap { justify-content: center; text-align: center; gap: 6px 28px; }

/* ---- Prose (privacy page) -------------------------------------------- */
.hero.slim { padding: 40px 0; }
.hero.slim .lockup { width: min(260px, 70%); }
.prose { max-width: 70ch; padding: 56px 0 72px; }
.prose h1 { margin: 0 0 4px; font-size: 2rem; letter-spacing: -.025em; line-height: 1.15; }
.prose h2 { margin: 36px 0 8px; font-size: 1.125rem; font-weight: 600; }
.prose p, .prose li { color: var(--text-muted); }
.prose .meta { margin: 0 0 24px; font-size: .875rem; color: var(--text-muted); }

@media (max-width: 520px) {
  .hero { padding: 64px 0 72px; }
  .hero h1 { margin-top: 36px; }
}
