/* Barsity Sports — playbarsity.com
   Varsity on the house name. Yearbook on kickers and scores. Barlow for sentences. */
:root {
  --navy: #00214d;
  --red: #ff3131;
  --snow: #ffffff;
  --ink: #0f1c2e;
  --muted: #5b6b80;
  --paper: #f4f5f7;
  --black: #111111;
  --varsity: "Oswald", "Arial Narrow", sans-serif;
  --yearbook: "Bebas Neue", "Arial Narrow", sans-serif;
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
html, body { margin: 0; min-height: 100%; }
body { overflow-x: hidden; }
body.site {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--snow);
  font-size: 17px;
  line-height: 1.45;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

/* ——— Chrome ——— */
[data-site-nav] {
  display: block;
  min-height: 76px;
  background: var(--navy);
  border-bottom: 4px solid var(--red);
}
.site-top {
  background: var(--navy);
  color: var(--snow);
  border-bottom: 4px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding-block: 10px;
  position: relative;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.site-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  box-shadow: 0 0 0 2px #fff;
  flex-shrink: 0;
}
.site-brand .name {
  font-family: var(--varsity);
  font-weight: 500;
  letter-spacing: 0.2em;
  font-size: 18px;
  line-height: 1.2;
}
.site-brand .sub {
  font-family: var(--yearbook);
  letter-spacing: 0.18em;
  font-size: 14px;
  color: var(--red);
  margin-top: 2px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,0.82);
}
.site-nav a:hover,
.site-nav a.on { color: var(--snow); }
.site-nav a.play {
  background: var(--red);
  color: var(--snow);
  margin-left: 6px;
}
.menu-btn {
  display: none;
  background: none;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--snow);
  border-radius: 10px;
  min-height: 40px;
  padding: 0 12px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  .site-top .wrap { padding-right: 76px; }
  .site-brand .sub { display: none; }
  .site-brand .name { font-size: 15px; letter-spacing: 0.12em; }
  .site-brand img { width: 40px; height: 40px; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--navy);
    border-bottom: 4px solid var(--red);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 4px;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 12px 8px; }
  .site-nav a.play { margin: 8px 0 0; text-align: center; }
}

/* ——— Type ——— */
.kicker {
  font-family: var(--yearbook);
  letter-spacing: 0.22em;
  font-size: 16px;
  color: var(--red);
  margin: 0 0 8px;
}
h1, h2, .display {
  font-family: var(--varsity);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--navy);
}
h1, h2 { overflow-wrap: break-word; max-width: 100%; }
h1 { font-size: clamp(34px, 8vw, 84px); letter-spacing: 0.04em; }
h2 { font-size: clamp(24px, 5.5vw, 44px); letter-spacing: 0.04em; }
h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
  color: var(--navy);
}
.lead {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.4;
  color: var(--muted);
  max-width: 38em;
}
.hero .lead { color: rgba(255,255,255,0.82); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--red);
  color: var(--snow);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.btn.navy { background: var(--navy); }
.btn.ghost {
  background: transparent;
  color: var(--snow);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.55);
}
.btn.ghost-ink {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ——— Hero ——— */
.hero {
  background: var(--navy);
  color: var(--snow);
  padding: 56px 0 72px;
}
.hero h1 { color: var(--snow); max-width: 14ch; }
.hero .kicker { color: var(--red); }

.band {
  background: var(--navy);
  color: var(--snow);
  padding: 64px 0;
}
.band h2, .band h3 { color: var(--snow); }
.band .lead { color: rgba(255,255,255,0.8); }
.section { padding: 64px 0; }
.section.paper { background: var(--paper); }
.section-head { margin-bottom: 28px; }

/* ——— Cards ——— */
.sport-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.sport-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--snow);
  border: 1.5px solid var(--navy);
  border-radius: 16px;
  padding: 18px 16px 16px;
  text-decoration: none;
  min-height: 210px;
  color: var(--ink);
}
.sport-card:hover { box-shadow: inset 4px 0 0 var(--red); }
.sport-card .mark {
  width: 44px;
  height: 44px;
  color: var(--navy);
}
.sport-card .mark svg { width: 44px; height: 44px; }
.sport-card h3 { margin: 8px 0 0; font-size: 22px; }
.sport-card p { color: var(--muted); font-size: 15px; flex: 1; }
.sport-card .go {
  font-family: var(--yearbook);
  letter-spacing: 0.16em;
  color: var(--red);
  font-size: 15px;
  margin-top: 4px;
}

.path-grid, .split, .steps, .price-grid, .rule-grid {
  display: grid;
  gap: 14px;
}
.path-grid, .split, .price-grid { grid-template-columns: 1fr 1fr; }
.steps { grid-template-columns: repeat(3, 1fr); }
.rule-grid { grid-template-columns: 1fr 1fr; }

.card, .path-card, .step, .price, .rule {
  background: var(--snow);
  border: 1.5px solid var(--navy);
  border-radius: 16px;
  padding: 22px 20px;
  min-width: 0;
}
#bring, #deal, #join { scroll-margin-top: 96px; }
.band .path-card {
  background: transparent;
  border-color: rgba(255,255,255,0.28);
}
.band .path-card h3 { color: var(--snow); }
.band .path-card p { color: rgba(255,255,255,0.78); }
.path-card .btn { margin-top: 16px; }

.step .n {
  font-family: var(--yearbook);
  font-size: 36px;
  color: var(--red);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 8px;
}

.price .amt {
  font-family: var(--yearbook);
  font-size: 64px;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 0.9;
}
.price .amt span {
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.price .when { color: var(--muted); font-size: 15px; margin-top: 6px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.pill {
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.pill.hot { background: var(--navy); color: var(--snow); border-color: var(--navy); }

.house-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  border-top: 1.5px solid var(--navy);
  padding: 18px 0;
}
.house-row:last-child { border-bottom: 1.5px solid var(--navy); }
.house-row .who { font-weight: 700; color: var(--navy); }
.house-row .meta { color: var(--muted); font-size: 15px; }

/* ——— Forms ——— */
form.stack { display: grid; gap: 10px; }
form.stack label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: grid;
  gap: 6px;
}
form.stack input,
form.stack select,
form.stack textarea {
  min-height: 48px;
  border: 1.5px solid var(--navy);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--snow);
  width: 100%;
}
form.stack textarea { min-height: 96px; padding: 12px; resize: vertical; }
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
form.stack .check-row label,
.check-row label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
}
form.stack .check-row input,
.check-row input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
form.stack .check-row label:has(input:checked),
.check-row label:has(input:checked) {
  background: var(--navy);
  color: var(--snow);
}
.form-ok, .form-err {
  display: none;
  border-radius: 12px;
  padding: 14px;
  font-weight: 600;
  margin-top: 10px;
}
.form-ok { background: #e8eef6; color: var(--navy); }
.form-err { background: #fff5f4; color: var(--navy); }
.form-ok.show, .form-err.show { display: block; }
.play-bar {
  display: none;
  position: sticky;
  bottom: 0;
  z-index: 30;
  background: var(--navy);
  border-top: 4px solid var(--red);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
}
.play-bar .btn { width: 100%; }

/* ——— Footer ——— */
.site-foot {
  background: var(--navy);
  color: var(--snow);
  padding: 36px 0 28px;
  border-top: 4px solid var(--red);
}
.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: end;
}
.site-foot a { color: rgba(255,255,255,0.8); text-decoration: none; }
.site-foot .name {
  font-family: var(--varsity);
  letter-spacing: 0.2em;
  font-size: 16px;
}
.site-foot .fine { color: rgba(255,255,255,0.55); font-size: 14px; margin-top: 6px; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 600; font-size: 14px; }

@media (max-width: 1100px) {
  .sport-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .hero { padding: 36px 0 48px; }
  .section, .band { padding: 44px 0; }
  .path-grid, .split, .steps, .price-grid, .rule-grid, .sport-grid {
    grid-template-columns: 1fr;
  }
  .house-row { flex-direction: column; gap: 4px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .play-bar { display: block; }
  .lead, .rule p, .step p, .price .when { font-size: 16px; overflow-wrap: break-word; }
  .price .amt { font-size: 52px; }
  h2 { letter-spacing: 0.02em; }
}
