/* ===== Fonts (self-hosted, Fontsource variable Latin woff2) ===== */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2-variations"),
       url("/fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/public-sans-latin-wght-italic.woff2") format("woff2-variations"),
       url("/fonts/public-sans-latin-wght-italic.woff2") format("woff2");
}

/* ===== Tokens ===== */
:root {
  --color-red: #B91522;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-stone: #EDE8E1;
  --color-stone-dark: #5E574F;

  --color-accent: var(--color-red);
  --color-surface: var(--color-white);
  --color-surface-alt: var(--color-stone);
  --color-text: var(--color-black);
  --color-text-muted: var(--color-stone-dark);

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--color-red); text-decoration: underline; }
a:hover { text-decoration: none; }

/* ===== Typography ===== */
h1, h2, .display, .stat-number {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin: 0 0 0.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 0.75rem; }
h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}
p { margin: 0 0 1rem; }

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 3rem 0; }
.section-alt { background: var(--color-surface-alt); }

/* ===== Header / Nav ===== */
.site-header {
  background: var(--color-black);
  color: var(--color-white);
  border-bottom: 4px solid var(--color-red);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--color-white);
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.brand:hover { text-decoration: none; color: var(--color-white); }

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  border-bottom-color: var(--color-red);
}

/* CSS-only mobile menu */
.nav-toggle-label {
  display: none;
  color: var(--color-white);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
}
#nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle-label { display: block; }
  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .nav-list a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-stone-dark);
  }
  #nav-toggle:checked ~ .nav-list { display: flex; }
  .site-header .container { flex-wrap: wrap; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-white);
  color: var(--color-red);
  border-color: var(--color-red);
}
.btn-outline {
  background: transparent;
  border-color: var(--color-black);
  color: var(--color-black);
}
.btn-outline:hover { background: var(--color-black); color: var(--color-white); }

/* ===== Hero ===== */
.hero {
  /* --hero-image is set inline per-page from site.heroImage (CMS: Settings → Team Info) */
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.88)),
    var(--hero-image, url("/images/uploads/hero-action.jpg")) center 30% / cover no-repeat;
  color: var(--color-white);
  padding: 5rem 0;
  text-align: center;
}
.hero h1 { color: var(--color-white); }
.hero .tagline {
  color: var(--color-stone);
  font-size: 1.1rem;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
}
.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Cards ===== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-stone);
  padding: 1.5rem;
  border-radius: 4px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ===== Results ===== */
.results-list { list-style: none; padding: 0; margin: 0; }
.result-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-stone);
}
.result-badge {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-white);
  background: var(--color-stone-dark);
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
  font-size: 0.9rem;
  min-width: 2rem;
  text-align: center;
}
.result-badge.win { background: var(--color-red); }
.result-badge.loss { background: var(--color-black); }
.result-score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
}
.result-meta { color: var(--color-text-muted); font-size: 0.9rem; }

/* ===== Roster ===== */
.divider {
  border: none;
  border-top: 1px solid var(--color-stone);
  margin: 1.5rem 0 2rem;
}
.roster-group {
  margin-bottom: 2.5rem;
}
.roster-group:last-child {
  margin-bottom: 0;
}
.player-card {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--color-surface-alt);
  border-radius: 4px;
}
.player-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--color-red);
  min-width: 2.5rem;
}
.player-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--color-red);
  color: var(--color-white);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  margin-left: 0.5rem;
}

/* ===== News ===== */
.news-card .news-date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ===== Post / page body (news articles, about pages) ===== */
.post-body h2 {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: none;
  font-size: 1.4rem;
  margin-top: 2rem;
}
.post-body h3 {
  margin-top: 1.5rem;
}
.post-body .bio-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0.5rem 0 1rem;
}

/* ===== Schedule ===== */
.calendar-embed {
  width: 100%;
  border: 1px solid var(--color-stone);
  min-height: 600px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-black);
  color: var(--color-stone);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}
.site-footer a { color: var(--color-white); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-disclaimer {
  color: var(--color-stone-dark);
  border-top: 1px solid var(--color-stone-dark);
  padding-top: 1rem;
  font-size: 0.8rem;
}

/* ===== Focus states ===== */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
label:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 2px;
}
