/* NextLevel root site. Mobile first (375px), then 640px and up.
   Colours are the app's brand tokens (artifacts/web/src/index.css), with the
   text colours chosen for 4.5:1 contrast: the brand orange carries dark text,
   never white (white on #FE5C00 is about 3:1). System fonts only: no third-party
   request is made by any page. */

:root {
  color-scheme: light dark;
  --bg: #f8f9fb;
  --surface: #ffffff;
  --fg: #151515;
  --muted: #4b5260;
  --border: #e6e8ee;
  --accent: #fe5c00;
  --on-accent: #151515;
  --link: #b34000;
  --focus: #1d4ed8;
  --door-bg: #151515;
  --door-fg: #ffffff;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0f;
    --surface: #14161b;
    --fg: #f4f6fa;
    --muted: #a8afbd;
    --border: #22242b;
    --link: #ff9a5c;
    --focus: #8ab4ff;
    --door-bg: #f4f6fa;
    --door-fg: #151515;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
main { flex: 1 0 auto; }

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1rem; }

h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; margin-top: 1.5rem; }
p, ul, ol { margin: 0.75rem 0 0; }
h2 + p, h2 + ul { margin-top: 0.75rem; }
p, li { max-width: 65ch; }
ul { padding-left: 1.25rem; }
li + li { margin-top: 0.5rem; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: 0.75rem 1rem; border-radius: 8px;
  background: var(--fg); color: var(--bg);
}
.skip:focus { top: 1rem; }

/* header and footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.25rem 1rem; padding-top: 0.5rem; padding-bottom: 0.5rem;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: 40px; width: auto; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
nav li { margin: 0; }
nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem;
  color: var(--fg); font-weight: 600; text-decoration: none; border-radius: 8px;
}
nav a:hover { background: var(--bg); }
nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

.site-footer { margin-top: 3rem; padding: 1.5rem 0 2rem; background: var(--surface); border-top: 1px solid var(--border); }
.site-footer nav a { font-weight: 500; }
.site-footer .note { margin-top: 0.5rem; }

/* sections */
section { padding: 2rem 0; }
section.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hero { padding: 2.5rem 0 2rem; }
.lead { font-size: 1.125rem; max-width: 60ch; margin-top: 1rem; }
.note { color: var(--muted); font-size: 0.9375rem; }
.hero .note { margin-top: 1rem; }

/* the two doors: same size and weight, told apart by fill, never by rank */
.doors { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0.75rem 1.25rem; border-radius: var(--radius);
  font-size: 1.0625rem; font-weight: 800; text-align: center; text-decoration: none;
  touch-action: manipulation;
}
.btn-athlete { background: var(--accent); color: var(--on-accent); }
.btn-coach { background: var(--door-bg); color: var(--door-fg); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

@media (min-width: 40rem) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 1.75rem; }
  .hero { padding: 4rem 0 3rem; }
  section { padding: 3rem 0; }
  .doors { grid-template-columns: 1fr 1fr; max-width: 34rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
