:root {
  --navy: #0c1f3d;
  --navy-deep: #071221;
  --navy-mid: #143056;
  --silver: #c9d2de;
  --silver-bright: #eef2f6;
  --muted: #9aabc0;
  --line: rgba(232, 237, 243, 0.12);
  --line-strong: rgba(232, 237, 243, 0.22);
  --card: rgba(10, 24, 45, 0.72);
  --gold: #c9b896;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--silver-bright);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(201, 184, 150, 0.07), transparent 46%),
    radial-gradient(800px 380px at 100% 12%, rgba(20, 48, 86, 0.55), transparent 42%),
    var(--navy-deep);
  line-height: 1.65;
  color-scheme: dark;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--silver-bright);
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: rgba(201, 184, 150, 0.28);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--silver-bright);
  color: var(--navy-deep);
  padding: 0.6rem 1rem;
  z-index: 30;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 18, 33, 0.86);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 2.7rem;
  height: 2.7rem;
  object-fit: cover;
  border-radius: 999px;
  background: var(--silver-bright);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 3px rgba(232, 237, 243, 0.05);
}

.brand-type {
  display: grid;
  line-height: 1.12;
}

.brand-name,
.eyebrow,
.nav a,
.btn,
.sponsor-role,
.cal-month,
.cal-num,
.stat-grid dt {
  font-family: "Barlow Condensed", "Segoe UI", sans-serif;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.84rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav a {
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--silver);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--silver-bright);
  background: rgba(232, 237, 243, 0.06);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-family: "Barlow Condensed", "Segoe UI", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero > img {
  width: 100%;
  height: min(68vh, 720px);
  object-fit: cover;
  object-position: center 46%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  background: linear-gradient(transparent, var(--navy-deep));
  pointer-events: none;
}

.intro {
  padding: 2.4rem 0 2.6rem;
}

.page {
  padding: 2.1rem 0 3.8rem;
}

.page section,
.page > .info-split {
  scroll-margin-top: 4.7rem;
}

.page > section,
.page > .info-split {
  padding: 2.1rem 0;
}

.page > section:first-child {
  padding-top: 0.4rem;
}

.page > section + section,
.page > section + .info-split,
.page > .info-split + section {
  border-top: 1px solid var(--line);
}

.intro-inner {
  display: grid;
  gap: 1.4rem;
  align-items: end;
}

.intro .actions {
  margin-top: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold);
}

.eyebrow::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

h1,
h2 {
  margin: 0 0 0.85rem;
  font-weight: 600;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 4.8rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: "Barlow Condensed", "Segoe UI", sans-serif;
  font-weight: 700;
}

h3 {
  margin: 0 0 0.85rem;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lede {
  margin: 0 0 1.1rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.lede.tight {
  margin-bottom: 1.5rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.actions.stacked {
  flex-direction: column;
  align-items: stretch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

button.btn {
  font: inherit;
  cursor: pointer;
  color: inherit;
}

.btn.primary {
  background: var(--silver-bright);
  color: var(--navy-deep);
}

.btn.primary:hover {
  background: #fff;
  color: var(--navy-deep);
}

.btn.ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--silver-bright);
}

.btn.ghost:hover {
  border-color: var(--silver);
  background: rgba(232, 237, 243, 0.06);
  color: #fff;
}

.band,
.intro,
.hero,
.page > section,
.page > .info-split {
  scroll-margin-top: 4.7rem;
}

.band {
  padding: 3rem 0;
}

.about-grid,
.split,
.support-grid,
.contact-grid,
.info-split {
  display: grid;
  gap: 2.4rem;
}

.about-grid p,
.support-grid p,
.contact-grid p,
.info-split p,
.page p {
  color: var(--silver);
}

.stat-grid,
.gallery {
  display: grid;
  gap: 0.9rem;
}

.stat-grid {
  margin: 0;
  gap: 0;
  align-content: start;
  border-bottom: 1px solid var(--line);
}

.stat-grid > div {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.stat-card {
  padding: 0;
  border: 0;
  background: transparent;
}

.stat-grid dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.stat-grid dd {
  margin: 0.28rem 0 0;
  font-size: 1.05rem;
}

.split figure img,
.gallery img,
.support-grid img,
.sponsor-sheet {
  width: 100%;
  border-radius: 1.6rem;
  object-fit: cover;
  border: 0;
}

.sponsor-strip {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.75rem;
}

.sponsor-strip li {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  color: var(--silver-bright);
}

.tournament-list {
  max-width: 38rem;
}

.sponsor-grid {
  display: grid;
  gap: 1rem;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem 1.5rem 1.55rem;
  border-radius: 1.6rem;
  border: 0;
  background: rgba(232, 237, 243, 0.045);
}

.sponsor-card h2 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.sponsor-role {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sponsor-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  flex: 1;
}

.sponsor-join {
  margin-top: 2rem;
}

.sponsor-list {
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.sponsor-list > div {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.sponsor-list dt {
  font-family: "Barlow Condensed", "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.sponsor-list dd {
  margin: 0;
}

.sponsor-list strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
}

.sponsor-list a {
  display: inline-block;
  margin-right: 1rem;
  color: var(--muted);
}

.gallery figure {
  overflow: hidden;
  border-radius: 1.6rem;
  border: 0;
  background: transparent;
}

.gallery img {
  aspect-ratio: 1;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: #0a1a33;
  transition: transform 0.5s ease;
}

.gallery figure:first-child img {
  object-fit: cover;
}

.gallery figure:hover img {
  transform: scale(1.03);
}

.hero > img,
.split figure img {
  aspect-ratio: auto;
}

figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery figcaption {
  margin: 0;
  padding: 0.65rem 0.9rem 0.9rem;
}

.checklist {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
}

.checklist li {
  position: relative;
  margin: 0;
  padding: 0.45rem 0 0.45rem 1.45rem;
  color: var(--silver);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.95rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--gold);
}

.cal-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.cal {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cal-month {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.cal-nav {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.cal-nav:hover {
  background: rgba(232, 237, 243, 0.06);
}

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.cal-weekdays {
  margin-bottom: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.cal-day {
  min-height: 2.6rem;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0.35rem 0.1rem 0.3rem;
  text-align: center;
  font: inherit;
}

.cal-day.is-empty {
  background: transparent;
}

.cal-day.has-event {
  background: transparent;
  cursor: pointer;
}

.cal-day.has-event .cal-num {
  color: var(--gold);
}

.cal-day.has-event:hover .cal-num {
  color: #fff;
}

.cal-day.is-today .cal-num {
  box-shadow: 0 1px 0 0 var(--gold);
}

.cal-num {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}

.cal-dots {
  display: flex;
  justify-content: center;
  gap: 0.18rem;
  margin-top: 0.25rem;
}

.cal-dots i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--gold);
}

.cal-list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}

.cal-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  background: none;
  border-radius: 0;
}

.cal-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.cal-list li.is-active strong {
  color: var(--gold);
}

.cal-list time,
.cal-list span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.cal-list strong {
  display: block;
  margin: 0.15rem 0;
}

.cal-list-title {
  margin-top: 0;
}

.cal-note {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.admin {
  padding-top: 0.4rem;
}

.admin h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.admin-card {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.4rem;
  border-radius: 1.6rem;
  border: 0;
  background: rgba(232, 237, 243, 0.045);
}

.admin-card[hidden],
.admin-app[hidden] {
  display: none !important;
}

.admin-fields {
  display: grid;
  gap: 0.9rem;
}

.admin label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--silver);
}

.admin input,
.admin select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line-strong);
  background: rgba(7, 18, 33, 0.85);
  color: var(--silver-bright);
  font: inherit;
}

.form-status {
  margin: 0;
  color: var(--muted);
}

#admin-list .btn {
  margin-top: 0.7rem;
}

.contact-panel {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 18, 33, 0.7);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem 1.75rem;
  padding: 1.6rem 0 1.7rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
}

.footer-nav a {
  color: var(--silver);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Barlow Condensed", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
}

.footer-meta {
  margin: 0;
}

.footer-meta a {
  color: var(--muted);
}

.footer-note {
  flex: 1 0 100%;
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
}

@media (min-width: 800px) {
  .about-grid,
  .split,
  .support-grid,
  .contact-grid,
  .intro-inner,
  .cal-layout,
  .info-split {
    grid-template-columns: 1fr 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: 1.35fr 1fr 1fr;
  }

  .sponsor-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 799px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: rgba(7, 18, 33, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .hero > img {
    height: min(52vh, 480px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gallery img,
  .sponsor-card,
  .btn {
    transition: none;
  }
}
