:root {
  --bg: #fffaf3;
  --ink: #1d1b18;
  --muted: #675f55;
  --line: #dfd3c3;
  --panel: #ffffff;
  --accent: #8d221e;
  --accent-dark: #631713;
  --gold: #d59c35;
  --green: #2f6757;
  --shadow: 0 16px 45px rgba(42, 31, 20, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-dark);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(141, 34, 30, 0.18);
  background: rgba(255, 250, 243, 0.94);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.96rem;
}

.nav-links a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.nav-links a.button {
  color: #fff;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  padding: 0.75rem 1.05rem;
  cursor: pointer;
}

.button:hover,
button:hover {
  background: var(--accent-dark);
  color: #fff;
}

.button.secondary {
  background: var(--green);
}

.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 1.25rem 2rem;
}

.compact-hero {
  padding-bottom: 0.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 3rem;
  align-items: center;
}

.hero-mark {
  width: min(100%, 360px);
  margin: 0 auto 2rem;
  text-align: center;
}

.hero-logo {
  width: min(100%, 360px);
  margin: 0 auto 0.8rem;
}

.hero-mark .eyebrow {
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(1.96rem, 4.8vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  max-width: 730px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.event-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.event-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.event-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 0.8rem;
  margin: 0;
  padding: 1.1rem;
}

.event-card dt {
  color: var(--muted);
  font-weight: 800;
}

.event-card dd {
  margin: 0;
}

.section {
  padding: 4rem 1.25rem;
}

.section.alt {
  background: #f2eadf;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
}

.narrow {
  max-width: 850px;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.schedule {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.schedule-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  border-left: 4px solid var(--gold);
  background: var(--panel);
  padding: 1rem;
}

.time {
  color: var(--accent);
  font-weight: 900;
}

.system-logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 1.4rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 1rem;
}

.system-logo-strip img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
}

.game-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.game-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: #fffdf8;
  font-size: 0.92rem;
  line-height: 1.45;
}

.game-table th,
.game-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.game-table th {
  background: #f4eadb;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-table td:first-child {
  color: var(--ink);
  font-weight: 800;
}

.game-table td:nth-child(2),
.game-table td:nth-child(3),
.game-table td:nth-child(4) {
  white-space: nowrap;
}

.game-table tr:last-child td {
  border-bottom: 0;
}

.game-detail-table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
}

.game-detail-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: #fffdf8;
}

.game-detail-table th,
.game-detail-table td {
  border-bottom: 1px solid var(--line);
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

.game-detail-table th {
  background: #f4eadb;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-detail-table h3 {
  margin-bottom: 0.45rem;
}

.game-detail-table p {
  margin: 0;
  color: var(--muted);
}

.game-detail-table td:nth-child(1),
.game-detail-table td:nth-child(3),
.game-detail-table td:nth-child(4) {
  white-space: nowrap;
}

.game-detail-table tr:last-child td {
  border-bottom: 0;
}

.game-system-logo {
  max-height: 100px;
  width: auto;
  max-width: 166px;
  object-fit: contain;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.event-description {
  max-width: 100%;
}

.gallery-button {
  display: block;
  min-height: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 0;
}

.gallery-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.86);
  padding: 1rem;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 1600px);
  max-height: 92vh;
  border-radius: 6px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  object-fit: contain;
}

.feature-photo {
  margin: 2rem 0;
}

.feature-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.table-scroll {
  overflow-x: auto;
}

.sponsor-summary {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--panel);
}

.sponsor-summary th,
.sponsor-summary td {
  border: 1px solid var(--line);
  padding: 0.8rem;
  text-align: left;
  vertical-align: top;
}

.sponsor-summary th {
  background: #f2eadf;
}

.sponsor-summary td:nth-child(2),
.sponsor-summary th:nth-child(2) {
  text-align: right;
}

.stripe-pricing {
  margin-top: 2rem;
}

.partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.charity-partner {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  border: 4px solid #25bcd0;
  background: #eefcff;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.charity-partner-head {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.charity-partner-head .eyebrow {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.18em;
}

.charity-partner-head img {
  width: min(100%, 300px);
}

.charity-partner h3 {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  text-align: center;
  text-transform: uppercase;
}

.charity-partner p {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.charity-partner p strong {
  color: #148fa2;
}

.charity-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  border-top: 4px solid #25bcd0;
  padding-top: 1rem;
}

.charity-values div {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  justify-items: center;
  min-height: 120px;
  background: #fff;
  padding: 1rem;
  text-align: center;
}

.charity-values span {
  font-size: 1.6rem;
  line-height: 1;
}

.charity-values strong {
  color: #148fa2;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partner {
  display: grid;
  gap: 1rem;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 1.25rem;
}

.partner img {
  max-height: 96px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.signup-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.8rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #241d18;
  color: #f9efe2;
  padding: 2rem 1.25rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1160px;
  margin: 0 auto;
}

.site-footer a {
  color: #f9efe2;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-grid,
  .partners,
  .form-grid,
  .charity-partner {
    grid-template-columns: 1fr;
  }

  .charity-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    gap: 2rem;
  }

  .schedule-item {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .nav {
    gap: 0.85rem;
    padding: 0.7rem 1rem;
  }

  .nav-links {
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
  }

  .nav-links a {
    font-size: 0.92rem;
  }

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

  .hero {
    padding: 2.25rem 1rem 1.5rem;
  }

  .hero-logo {
    width: min(100%, 280px);
  }

  .hero-mark {
    width: min(100%, 280px);
  }

  .hero-actions,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .event-card dl {
    grid-template-columns: 1fr;
  }

  .event-card dt {
    margin-top: 0.25rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .charity-partner-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .charity-values {
    grid-template-columns: 1fr;
  }
}
