:root {
  --surface: rgba(255, 250, 240, 0.84);
  --surface-strong: #fff8ed;
  --surface-soft: rgba(255, 252, 246, 0.68);
  --ink: #1f2a1f;
  --muted: #5d645f;
  --line: rgba(31, 42, 31, 0.12);
  --accent: #c55a11;
  --accent-deep: #8f3b08;
  --accent-soft: #f3d8b9;
  --court: #204b3d;
  --court-soft: #356756;
  --shadow: 0 18px 50px rgba(36, 28, 18, 0.12);
  --shadow-soft: 0 12px 30px rgba(36, 28, 18, 0.08);
  --radius-lg: 28px;
  --radius-sm: 999px;
  --page-gutter: clamp(14px, 2vw, 28px);
  --section-space: clamp(24px, 2.5vw, 40px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--ink);
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(197, 90, 17, 0.22), transparent 24%),
    radial-gradient(circle at top right, rgba(32, 75, 61, 0.2), transparent 26%),
    radial-gradient(circle at center right, rgba(197, 90, 17, 0.12), transparent 20%),
    linear-gradient(180deg, #f9f4e9 0%, #f4efe4 40%, #efe9dc 100%);
}

body.modal-is-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), rgba(255, 255, 255, 0.16) calc(50% - 1px), rgba(255, 255, 255, 0.16) calc(50% + 1px), transparent calc(50% + 1px)),
    radial-gradient(circle at 50% 16%, transparent 0 84px, rgba(255, 255, 255, 0.11) 84px 86px, transparent 86px),
    radial-gradient(circle at 50% 84%, transparent 0 84px, rgba(255, 255, 255, 0.11) 84px 86px, transparent 86px);
  opacity: 0.45;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: Consolas, monospace;
}

.page-shell {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: var(--page-gutter) var(--page-gutter) 32px;
}

main {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.site-header,
.hero,
.page-hero,
.section,
.site-footer {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-header {
  background:
    linear-gradient(135deg, rgba(255, 248, 237, 0.92), rgba(255, 250, 244, 0.82)),
    var(--surface-soft);
  border-radius: 28px;
  padding: 20px clamp(20px, 2vw, 32px);
  backdrop-filter: blur(10px);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

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

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.brand-copy span,
.season-picker span {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.95rem;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(31, 42, 31, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

body:not(.site-nav-ready) .nav-links {
  visibility: hidden;
}

body[data-page]:not(.site-content-ready) main,
body[data-page]:not(.site-content-ready) .site-footer {
  display: none;
}

.nav-links a {
  color: var(--muted);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links .nav-admin-link {
  align-self: center;
  margin-left: 4px;
  padding: 8px 12px;
  color: rgba(93, 100, 95, 0.72);
  font-size: 0.84rem;
}

.nav-links .nav-admin-link::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  margin-right: 12px;
  vertical-align: -2px;
  background: rgba(31, 42, 31, 0.18);
}

.nav-links a.is-active,
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  font-weight: 700;
  background: rgba(32, 75, 61, 0.08);
  transform: translateY(-1px);
}

.season-picker {
  display: grid;
  gap: 6px;
  justify-self: end;
}

.season-picker select {
  min-width: 120px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf2;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero,
.page-hero {
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}

.hero {
  background:
    linear-gradient(135deg, rgba(32, 75, 61, 0.96), rgba(18, 28, 24, 0.94)),
    #1b3128;
  color: #f7f3eb;
  padding: clamp(28px, 4vw, 52px);
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(32, 75, 61, 0.92), rgba(52, 38, 25, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  color: #f7f3eb;
  padding: clamp(34px, 4vw, 56px);
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 90, 17, 0.35), transparent 65%);
}

.hero-copy h1,
.page-hero h1,
.band-card h2,
.content-card h2,
.feature-card h3,
.player-card h3,
.schedule-row h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.hero-copy h1,
.page-hero h1 {
  margin: 10px 0 0;
  line-height: 0.96;
}

.hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 1.06;
}

.page-hero h1 {
  max-width: 20ch;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.08;
}

body[data-page="about"] .page-hero h1 {
  max-width: 22ch;
}

.hero-text,
.page-hero p:last-child {
  max-width: 760px;
  line-height: 1.7;
  color: rgba(247, 243, 235, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-grid,
.intro-band,
.two-column-grid {
  display: grid;
  gap: 18px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.95fr);
  align-items: stretch;
}

.intro-band,
.two-column-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
}

.hero-points,
.feature-grid,
.players-grid,
.team-grid,
.team-roster,
.sponsor-list,
.sponsor-grid,
.schedule-stack {
  display: grid;
  gap: 16px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.hero-points li,
.mini-meta span,
.contact-links a {
  border-radius: var(--radius-sm);
}

.hero-points li {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 243, 235, 0.9);
  font-size: 0.92rem;
}

.hero-panel {
  display: grid;
  gap: 18px;
  align-content: stretch;
}

.event-card,
.score-ticker,
.band-card,
.band-stats,
.content-card,
.feature-card,
.player-card,
.schedule-row,
.sponsor-card,
.site-footer {
  backdrop-filter: blur(12px);
}

.event-card {
  padding: clamp(24px, 2vw, 32px);
  border-radius: var(--radius-lg);
  background: rgba(255, 248, 237, 0.1);
  border: 1px solid rgba(255, 248, 237, 0.14);
  min-height: 100%;
}

.event-card h2 {
  margin: 8px 0 10px;
  font-size: 2rem;
}

.event-card dl {
  margin: 22px 0 0;
  display: grid;
  gap: 16px;
}

.event-card dt {
  color: rgba(247, 243, 235, 0.62);
  font-size: 0.9rem;
}

.event-card dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.score-ticker {
  padding: 18px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(197, 90, 17, 0.18), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 248, 237, 0.16);
}

.score-ticker span,
.eyebrow,
.card-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
}

.eyebrow {
  color: var(--accent);
}

.hero .eyebrow,
.page-hero .eyebrow,
.card-label,
.score-ticker span {
  color: #ffbe82;
}

.latest-results-card strong {
  display: block;
  margin: 8px 0 14px;
  color: #fffdf8;
  font-size: 1.05rem;
  line-height: 1.5;
}

.latest-results-list {
  margin: 0;
  padding-left: 18px;
  color: #fffaf2;
}

.latest-results-card .detail-list,
.latest-results-card .detail-list li {
  color: #fffaf2;
}

.latest-results-list li::marker {
  color: #ffcf9e;
}

.latest-results-list li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.section {
  background: var(--surface);
  border-radius: 30px;
  padding: var(--section-space);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.section > * {
  position: relative;
  z-index: 1;
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}

.section-heading h2,
.band-card h2,
.content-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.band-card,
.band-stats,
.content-card,
.feature-card,
.player-card,
.schedule-row,
.sponsor-card,
.site-footer {
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.band-card,
.band-stats,
.content-card,
.feature-card,
.player-card,
.schedule-row,
.sponsor-card {
  border-radius: 24px;
  padding: clamp(22px, 2vw, 30px);
  box-shadow: var(--shadow-soft);
}

.band-card p:last-child,
.content-card p,
.feature-card p,
.player-card p,
.schedule-row p,
.stack-text p,
.site-footer,
.detail-list,
.sponsor-card p {
  color: var(--muted);
  line-height: 1.7;
}

.band-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf8, #f5ebde);
  padding: 16px 12px;
}

.stat-card strong {
  font-size: 2rem;
  font-family: Georgia, "Times New Roman", serif;
}

.feature-grid,
.players-grid,
.team-grid,
.sponsor-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.sponsor-list {
  gap: 28px;
}

.sponsor-category {
  display: grid;
  gap: 16px;
}

.sponsor-category h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.team-panel {
  background:
    linear-gradient(180deg, #fffaf1, #f6ecdf),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 2vw, 32px);
  box-shadow: var(--shadow-soft);
}

.team-panel h2 {
  margin: 10px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.team-panel .card-label {
  color: var(--accent-deep);
}

.team-meta {
  color: var(--muted);
  margin-bottom: 18px;
}

.team-roster {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card a {
  color: var(--accent-deep);
  font-weight: 700;
}

.highlight-card {
  background: linear-gradient(180deg, #f1e2cf, #ead3b8);
}

.detail-list {
  margin: 0;
  padding-left: 20px;
}

.schedule-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 18px;
  align-items: center;
  background: linear-gradient(180deg, #fffaf1, #f6ecdf);
}

.schedule-row h2 {
  margin: 6px 0 10px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.schedule-row.featured-row {
  background: linear-gradient(160deg, rgba(32, 75, 61, 0.95), rgba(42, 91, 76, 0.92));
}

.schedule-row.featured-row,
.schedule-row.featured-row p,
.schedule-row.featured-row h2,
.schedule-row.featured-row .mini-meta span {
  color: #f7f3eb;
}

.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.mini-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  background: rgba(32, 75, 61, 0.1);
  color: var(--ink);
  font-weight: 700;
}

.player-card {
  background: linear-gradient(180deg, #fff9f0, #f5e9d8);
  min-height: 100%;
}

.player-card-button {
  width: 100%;
  display: grid;
  justify-items: start;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.player-card-button:hover,
.player-card-button:focus-visible {
  border-color: rgba(197, 90, 17, 0.42);
  box-shadow: 0 16px 38px rgba(36, 28, 18, 0.16);
  outline: none;
  transform: translateY(-2px);
}

.player-card-button p {
  margin: 0;
  font-weight: 700;
  color: var(--accent-deep);
}

.player-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--court), #356756);
  color: #fff8ed;
  font-weight: 800;
}

.player-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 27, 23, 0.64);
  backdrop-filter: blur(8px);
}

.player-modal {
  position: relative;
  width: min(900px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 34px);
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(255, 248, 237, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.98), rgba(246, 236, 223, 0.98)),
    var(--surface-strong);
  box-shadow: 0 30px 90px rgba(10, 14, 11, 0.34);
}

.player-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fffaf2;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.player-modal-photo {
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--court), var(--accent-deep));
  color: #fff8ed;
}

.player-modal-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.player-modal-photo-fallback {
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
}

.player-modal-copy {
  align-self: center;
  padding-right: 34px;
}

.player-modal-copy h2 {
  margin: 8px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
}

.player-modal-copy p:last-child {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.sponsor-card {
  min-height: 140px;
  display: grid;
  align-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #fffdf9, #f4ecdf);
}

.sponsor-card-uniform {
  min-height: 190px;
  background: linear-gradient(160deg, rgba(32, 75, 61, 0.98), rgba(47, 94, 78, 0.94));
  border-color: rgba(255, 248, 237, 0.18);
  color: #fffaf2;
}

.sponsor-card-uniform p,
.sponsor-card-uniform .card-label {
  color: #ffcf9e;
}

.sponsor-card-name-only {
  justify-items: center;
  text-align: center;
}

.sponsor-card strong {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sponsor-card p {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.contact-links {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  background: #f4eadc;
  font-weight: 700;
}

.contact-topics {
  margin: 0;
  padding-left: 20px;
}

.contact-topics li + li {
  margin-top: 10px;
}

.stack-text {
  display: grid;
  gap: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.button-primary {
  background: #fff1de;
  color: #392113;
}

.button-secondary {
  border: 1px solid rgba(247, 243, 235, 0.2);
  color: #fff6ea;
}

.site-footer {
  border-radius: 24px;
  margin-top: 28px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(255, 248, 237, 0.95), rgba(247, 240, 227, 0.94)),
    var(--surface-strong);
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .season-picker {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .intro-band,
  .two-column-grid,
  .schedule-row,
  .feature-grid,
  .players-grid,
  .team-grid,
  .sponsor-grid,
  .hero-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 10px 10px 24px;
  }

  .site-header,
  .hero,
  .page-hero,
  .section {
    padding: 20px;
  }

  .topbar {
    display: flex;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 8px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .nav-links .nav-admin-link {
    align-self: stretch;
    margin-left: 0;
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .nav-links .nav-admin-link::before {
    display: none;
  }

  .season-picker {
    width: 100%;
  }

  .season-picker select {
    width: 100%;
  }

  .hero-copy h1,
  .page-hero h1 {
    max-width: none;
  }

  .hero-actions {
    display: grid;
    gap: 14px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .site-footer {
    display: grid;
  }

  .player-modal {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

  .player-modal-photo,
  .player-modal-photo img {
    min-height: 260px;
  }

  .player-modal-copy {
    padding-right: 0;
  }
}
