/* Brand palette locked by Clip — see assets/PALETTE.md */
:root {
  --navy: #0b1f3a;
  --navy-deep: #071527;
  --cream: #f5e6c8;
  --cream-soft: #faf3e4;
  --cream-deep: #e8d4a8;
  --red: #c41e3a;
  --sky: #7eb8d4;
  --grass: #3e6e3a;
  --dirt: #a67c52;
  --gold: #d4a84b;
  --gold-warm: #e8b84a;
  --ink: #0b1f3a;
  --muted: #4a5560;
  --card: #fffdf6;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(11, 31, 58, 0.16);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(196, 30, 58, 0.06), transparent 55%),
    radial-gradient(ellipse 70% 40% at 0% 30%, rgba(126, 184, 212, 0.12), transparent 50%),
    var(--cream-soft);
  line-height: 1.6;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: var(--navy);
  padding: 0.85rem 0;
  border-bottom: 4px solid var(--red);
  box-shadow: 0 4px 0 var(--gold);
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 96px;
  width: auto;
  max-width: min(420px, 92vw);
}

.hero {
  position: relative;
  color: var(--cream);
  padding: 0;
  overflow: hidden;
  background: #3a2410;
  min-height: clamp(22rem, 52vw, 34rem);
  border-bottom: 6px solid var(--gold);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(11, 31, 58, 0.82) 0%, rgba(11, 31, 58, 0.55) 38%, rgba(58, 36, 16, 0.15) 72%, transparent 100%),
    linear-gradient(to top, rgba(11, 31, 58, 0.45), transparent 42%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding: 4.75rem 0 4.25rem;
  margin-left: max(1rem, calc((100% - 1100px) / 2));
  width: min(40rem, calc(100% - 2rem));
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  background: var(--gold);
  border-radius: 999px;
  border: 2px solid rgba(245, 230, 200, 0.35);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5.8vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-shadow: 0 2px 0 rgba(11, 31, 58, 0.35);
}

.hero-sub {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: rgba(245, 230, 200, 0.95);
  max-width: 36rem;
  text-shadow: 0 1px 2px rgba(11, 31, 58, 0.4);
}

.history {
  padding: 3.75rem 0;
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%);
  border-bottom: 4px dashed rgba(196, 30, 58, 0.28);
}

.prose h2,
.teams h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  color: var(--navy);
  letter-spacing: -0.01em;
}

.prose h2::after,
.teams h2::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 5px;
  margin-top: 0.7rem;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 999px;
}

.prose p {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  color: #243040;
  max-width: 65ch;
}

.prose p:last-child {
  margin-bottom: 0;
}

.teams {
  padding: 3.25rem 0 4.25rem;
  background:
    radial-gradient(circle at 10% 20%, rgba(126, 184, 212, 0.18), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(212, 168, 75, 0.16), transparent 42%),
    var(--cream-soft);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-hawks {
    grid-column: 1 / -1;
  }
}

.team-card {
  display: flex;
  gap: 1rem;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
  border: 2px solid rgba(11, 31, 58, 0.1);
  border-top: 5px solid var(--sky);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(212, 168, 75, 0.18);
  pointer-events: none;
}

.team-hawks {
  border-top-color: var(--red);
  background: linear-gradient(135deg, #fffdf6 0%, #fff5e0 100%);
}

.team-comets {
  border-top-color: var(--gold);
}

.team-timberwolves {
  border-top-color: var(--grass);
}

.team-dust-devils {
  border-top-color: var(--dirt);
}

.team-logo {
  flex: 0 0 5rem;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 3px var(--navy);
}

.team-body {
  flex: 1;
  min-width: 0;
}

.team-body h3 {
  margin: 0 0 0.2rem;
  font-size: 1.22rem;
  color: var(--navy);
}

.region {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--red);
}

.team-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.players {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 2px dashed rgba(196, 30, 58, 0.25);
}

.players h4 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--navy);
}

.player-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 900px) {
  .player-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.player-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.player-avatar {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy), #16365f);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.player-list strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.player-list .meta {
  display: block;
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 600;
  margin: 0.1rem 0 0.35rem;
}

.player-list p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(245, 230, 200, 0.85);
  padding: 2.1rem 0;
  font-size: 0.95rem;
  border-top: 4px solid var(--red);
  box-shadow: inset 0 4px 0 var(--gold);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-mark {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.site-footer p {
  margin: 0 0 0.25rem;
}

.site-footer strong {
  color: var(--cream);
}

.fineprint {
  font-size: 0.8rem;
  color: var(--sky);
}

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

@media (max-width: 520px) {
  .brand-logo {
    height: 64px;
  }

  .team-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-inner {
    padding: 3.25rem 0 3rem;
  }

  .hero {
    min-height: 20rem;
  }
}

/* ——— Teams directory / team pages / player shells ——— */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a.brand-link {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.page-hero {
  background:
    linear-gradient(135deg, var(--navy) 0%, #16365f 55%, #1a4a6e 100%);
  color: var(--cream);
  padding: 2.75rem 0 2.5rem;
  border-bottom: 6px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(212, 168, 75, 0.15);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.35rem;
  align-items: center;
  flex-wrap: wrap;
}

.page-hero .team-logo-lg {
  flex: 0 0 7rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy-deep);
  border: 4px solid var(--cream);
  box-shadow: 0 0 0 4px var(--gold);
}

.page-hero .eyebrow {
  color: var(--navy);
  background: var(--gold);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.page-hero .hero-blurb {
  margin: 0;
  max-width: 40rem;
  color: rgba(245, 230, 200, 0.92);
  font-size: 1.05rem;
}

.page-hero .region-pill {
  display: inline-block;
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.breadcrumb {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: rgba(245, 230, 200, 0.7);
}

.breadcrumb a {
  color: var(--sky);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.section-block {
  padding: 2.75rem 0 3.5rem;
}

.section-block h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  color: var(--navy);
  letter-spacing: -0.01em;
}

.section-block h2::after {
  content: "";
  display: block;
  width: 4rem;
  height: 4px;
  margin-top: 0.55rem;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 999px;
}

.teams-dir-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .teams-dir-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.team-dir-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 2px solid rgba(11, 31, 58, 0.1);
  border-top: 5px solid var(--sky);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.team-dir-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(11, 31, 58, 0.2);
}

.team-dir-card.team-hawks { border-top-color: var(--red); }
.team-dir-card.team-comets { border-top-color: var(--gold); }
.team-dir-card.team-timberwolves { border-top-color: var(--grass); }
.team-dir-card.team-dust-devils { border-top-color: var(--dirt); }

.team-dir-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.team-dir-card .cta {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
}

.roster-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .roster-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .roster-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.roster-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--card);
  border-radius: 14px;
  padding: 1rem;
  border: 2px solid rgba(11, 31, 58, 0.08);
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.08);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.roster-card:hover {
  border-color: rgba(196, 30, 58, 0.35);
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.14);
}

.roster-card .player-avatar {
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  font-size: 0.72rem;
}

.roster-card strong {
  display: block;
  color: var(--navy);
  font-size: 0.98rem;
}

.roster-card .meta {
  display: block;
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 600;
  margin: 0.1rem 0 0.25rem;
}

.roster-card .teaser {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.roster-card.is-tbd {
  border-style: dashed;
  background: #fffef9;
}

.roster-card.is-tbd .player-avatar {
  background: linear-gradient(145deg, #4a5560, #6b7785);
  border-color: var(--cream-deep);
  color: var(--cream);
}

.view-roster {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.view-roster:hover {
  color: var(--navy);
  text-decoration: underline;
}

.player-list a.player-link {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  padding: 0.15rem;
  margin: -0.15rem;
}

.player-list a.player-link:hover strong {
  color: var(--red);
  text-decoration: underline;
}

/* Player page */
.player-layout {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .player-layout {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

.player-headshot-wrap {
  text-align: center;
}

.player-avatar-lg {
  width: 11rem;
  height: 11rem;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy), #16365f);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow);
  /* data-ready: Clip headshots → assets/players/{slug}.png
     When ready, replace this span with:
     <img class="player-headshot" src="../../assets/players/{slug}.png" width="220" height="220" alt="">
  */
}

.player-headshot {
  width: 11rem;
  height: 11rem;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow);
  background: var(--navy);
}

.player-meta-block h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  color: var(--navy);
  letter-spacing: -0.02em;
}

.player-meta-block .position-line {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
}

.player-meta-block .bio {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: #243040;
  max-width: 58ch;
  line-height: 1.65;
}

.stats-shell {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.35rem;
  border: 2px solid rgba(11, 31, 58, 0.1);
  box-shadow: 0 8px 22px rgba(11, 31, 58, 0.08);
  border-top: 4px solid var(--gold);
}

.stats-shell h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--navy);
}

.stats-shell h2::after {
  display: none;
}

.stats-note {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.stats-table th,
.stats-table td {
  padding: 0.55rem 0.65rem;
  text-align: center;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
}

.stats-table th {
  background: rgba(11, 31, 58, 0.06);
  color: var(--navy);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
}

.stats-table td {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
  color: var(--navy);
}

@media (max-width: 520px) {
  .page-hero .team-logo-lg {
    width: 5.5rem;
    height: 5.5rem;
    flex-basis: 5.5rem;
  }

  .player-avatar-lg,
  .player-headshot {
    width: 8.5rem;
    height: 8.5rem;
    font-size: 1.85rem;
  }
}

/* ——— Roster polish: jersey #s, records, avatar imgs ——— */

.jersey {
  color: var(--red);
  font-variant-numeric: tabular-nums;
  margin-right: 0.15rem;
}

.jersey-lg {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin-right: 0.25rem;
}

.record-badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--gold);
  border-radius: 999px;
}

.record-line {
  margin: 0 0 0.45rem !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  color: var(--navy) !important;
}

.player-avatar-img {
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--navy);
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
}
