:root {
  --ink: #121410;
  --text: #252821;
  --muted: #63695d;
  --paper: #f6f8ef;
  --panel: #fffef8;
  --line: #dce4d1;
  --court: #e8f0e2;
  --court-blue: #4d8d99;
  --lime: #c3df24;
  --lime-soft: #edf7bf;
  --black: #0e100d;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(18, 20, 16, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--paper);
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  z-index: -1;
  height: 36vh;
  background: var(--court);
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--black);
  color: white;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 3.25rem);
  background: rgba(246, 248, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-name,
.footer-brand {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--lime-soft);
  color: #40513a;
  font-size: 0.82rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.site-nav a,
.site-footer nav a,
.text-link {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer nav a:hover,
.text-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.header-buy,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.35rem;
  border: 2px solid var(--black);
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.header-buy,
.button-dark {
  background: var(--black);
  color: #fbfff2;
}

.button-light {
  background: var(--panel);
  color: var(--black);
}

.header-buy:hover,
.button:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 2px solid var(--black);
  border-radius: 6px;
  background: var(--panel);
}

.nav-toggle-line {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0.27rem auto;
  background: var(--black);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3.25rem) 4rem;
}

.hero-copy {
  max-width: 43rem;
}

.kicker {
  position: relative;
  display: inline-block;
  margin: 0 0 1.5rem;
  color: #456342;
  font-weight: 900;
  text-transform: uppercase;
}

.kicker::after {
  content: "";
  display: block;
  width: 9rem;
  height: 0.38rem;
  margin-top: 0.5rem;
  background: var(--lime);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 0.98;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.45rem;
  font-size: clamp(4rem, 7vw, 5.9rem);
  font-weight: 950;
}

.event-title {
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.hero-lede,
.page-hero p {
  max-width: 39rem;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.25;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin: 1.85rem 0 1.4rem;
}

.price {
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 950;
}

.price-note {
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hero-actions,
.play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding: 0.45rem 0.8rem;
  border: 1px solid #cfdbc1;
  border-radius: 999px;
  background: #f0f6df;
  color: #394235;
  font-size: 0.95rem;
}

.hero-photo {
  position: relative;
  margin: 0;
  border: 3px solid var(--black);
  border-radius: var(--radius);
  background: var(--black);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-photo img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 4rem) clamp(1rem, 4vw, 3.25rem);
}

.intro-band,
.play-section,
.newsletter {
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 248, 0.72);
}

.intro-band p,
.play-section p,
.newsletter p,
.story-copy p,
.policy-list li {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.feature,
.policy-grid article,
.policy-list,
.story-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.feature,
.policy-grid article,
.policy-list {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.feature {
  border-left: 8px solid var(--lime);
}

.feature h2,
.policy-grid h2,
.policy-list h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.feature p,
.policy-grid p,
.policy-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.product-story {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(18rem, 0.9fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: stretch;
}

.founder-story {
  grid-template-columns: minmax(18rem, 0.82fr) minmax(18rem, 1fr);
}

.founder-story .story-image {
  min-height: 42rem;
}

.story-caption {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.story-image {
  min-height: 32rem;
  border: 3px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.story-image img {
  height: 100%;
  object-fit: cover;
}

.qr-story-image {
  display: grid;
  place-items: center;
  background: var(--panel);
}

.qr-story-image img {
  width: min(78%, 24rem);
  height: auto;
  object-fit: contain;
}

.story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.spec-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.7rem;
  padding: 0;
  list-style: none;
}

.spec-list li {
  padding-left: 1.2rem;
  border-left: 5px solid var(--lime);
  color: var(--text);
  font-weight: 750;
}

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

.photo-strip img {
  aspect-ratio: 4 / 3;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  object-fit: cover;
}

.newsletter-form {
  display: grid;
  gap: 0.65rem;
}

.newsletter-form label {
  color: var(--ink);
  font-weight: 900;
}

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

input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  border: 2px solid var(--black);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-note,
.copyright {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 3rem clamp(1rem, 4vw, 3.25rem);
  background: var(--black);
  color: #f8faef;
}

.site-footer p {
  color: #cdd4bf;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: flex-end;
}

.site-footer nav a,
.footer-brand {
  color: #f8faef;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
}

.page-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3.25rem);
}

.page-hero {
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.page-hero h1 {
  max-width: 13ch;
}

.policy-list ul {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding-left: 1.15rem;
}

.tournament-page {
  background: var(--paper);
}

.tournament-header {
  background: rgba(14, 16, 13, 0.94);
  border-bottom-color: rgba(195, 223, 36, 0.42);
}

.tournament-header .brand,
.tournament-header .site-nav a,
.tournament-header .brand-name {
  color: #fbfff2;
}

.tournament-header .brand-pill {
  background: var(--lime);
  color: var(--black);
}

.tournament-header .nav-toggle {
  background: var(--lime);
}

.tournament-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  max-width: none;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 4vw, 3.25rem) clamp(2rem, 5vw, 4rem);
  background: var(--black);
  color: #fbfff2;
}

.tournament-hero h1,
.tournament-hero h2,
.tournament-hero p {
  color: inherit;
}

.tournament-hero h1 {
  max-width: 12ch;
}

.tournament-hero-copy {
  min-width: 0;
}

.tournament-hero .kicker {
  color: var(--lime);
}

.tournament-hero .kicker::after {
  background: #fbfff2;
}

.tournament-hero-photo,
.tournament-product {
  margin: 0;
  border: 3px solid var(--lime);
  border-radius: var(--radius);
  background: var(--black);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tournament-hero-photo img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.tournament-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.signup-pill {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  border: 2px solid var(--lime);
  border-radius: 6px;
  color: var(--lime);
  font-weight: 900;
}

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

.tournament-stats article,
.tournament-card,
.rules-list article,
.waiver-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.tournament-stats article {
  padding: clamp(1rem, 2vw, 1.5rem);
  border-top: 8px solid var(--lime);
}

.tournament-stats span,
.fine-note {
  color: var(--muted);
  font-weight: 800;
}

.tournament-stats strong {
  display: block;
  margin: 0.25rem 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 0.95;
}

.tournament-stats p,
.tournament-card p,
.rules-list p,
.legal-copy p {
  color: var(--muted);
}

.tournament-detail-grid,
.rules-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.62fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.detail-copy {
  align-self: center;
}

.detail-copy p {
  max-width: 47rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.tournament-card {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.tournament-card img {
  width: min(100%, 18rem);
  margin: 0 auto;
  border: 2px solid var(--black);
}

.tournament-card h2,
.rules-list h3 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.rules-section {
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 248, 0.72);
}

.rules-list {
  display: grid;
  gap: 1rem;
}

.rules-list article {
  padding: clamp(1.2rem, 3vw, 1.75rem);
  border-left: 8px solid var(--lime);
}

.rules-list p {
  margin-bottom: 0;
}

.tournament-product img {
  min-height: 34rem;
  object-fit: cover;
}

.waiver-section {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.waiver-section h2 {
  max-width: 22ch;
}

.legal-copy {
  display: grid;
  gap: 0.85rem;
}

.legal-copy p {
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem;
    border: 2px solid var(--black);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 0.85rem;
  }

  .hero,
  .tournament-hero,
  .tournament-detail-grid,
  .rules-section,
  .product-story,
  .intro-band,
  .play-section,
  .newsletter,
  .feature-grid,
  .policy-grid,
  .tournament-stats {
    grid-template-columns: 1fr;
  }

  .hero,
  .tournament-hero {
    padding-top: 2rem;
  }

  .tournament-page {
    background: var(--paper);
  }

  .tournament-header .site-nav a {
    color: var(--text);
  }

  h1 {
    max-width: 10ch;
  }

  .tournament-hero h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 13vw, 3.5rem);
    overflow-wrap: normal;
  }

  .founder-story .story-image {
    min-height: 28rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 0.65rem;
    padding: 0.75rem 1rem;
  }

  .brand-name {
    font-size: 2rem;
  }

  .brand-pill {
    display: none;
  }

  .header-buy {
    min-height: 2.8rem;
    padding: 0.65rem 0.85rem;
  }

  .tournament-header .header-buy {
    display: none;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5rem);
  }

  .event-title {
    max-width: 100%;
    font-size: clamp(3.05rem, 13.8vw, 4.4rem);
  }

  .price-row,
  .form-row,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .price-row {
    display: grid;
    gap: 0.15rem;
  }

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

  .tournament-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tournament-actions .button,
  .signup-pill {
    width: 100%;
  }

  .photo-strip {
    grid-template-columns: 1fr;
  }

  .story-image {
    min-height: 20rem;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
