@font-face {
  font-family: "RallyOne Inter";
  src: url("./assets/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8faf4;
  --sage: #e2f0cc;
  --apple: #8bc53d;
  --forest: #012f13;
  --ink: #011207;
  --muted: #52604c;
  --rule: #d8e0d0;
  --page-gutter: clamp(20px, 5vw, 64px);
  font-family: "RallyOne Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, a { outline-offset: 5px; }
a:focus-visible, button:focus-visible { outline: 3px solid #315f18; }
.sport-button:focus-visible { outline-color: var(--sage); }
::selection { color: var(--ink); background: var(--apple); }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(100% - 2 * var(--page-gutter), 1216px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 20px; padding: 16px; background: var(--ink); color: var(--sage); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); outline-color: var(--apple); }
main:focus { outline: none; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 92px; padding-top: env(safe-area-inset-top); }
.brand { display: flex; align-items: center; justify-content: center; width: 154px; height: 48px; overflow: hidden; flex-shrink: 0; margin-left: -12px; }
.brand img { width: 178px; max-width: none; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 32px; }
.nav-about { display: none; }
.nav-open { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; white-space: nowrap; font-size: 12px; font-weight: 650; }
.nav-open span { font-size: 19px; }
.nav-open:hover, .text-link:hover { color: #315f18; }

.hero { display: grid; gap: 36px; padding-top: 26px; padding-bottom: 32px; }
.hero-copy { padding-block: 8px 0; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 1.6; font-weight: 650; letter-spacing: 0.095em; text-transform: uppercase; }
.location-mark { color: #315f18; font-size: 18px; line-height: 1; }
h1 { margin-top: 22px; font-size: clamp(42px, 10vw, 64px); line-height: 1.07; letter-spacing: -0.065em; font-weight: 650; }
h1 span { color: #315f18; }
.hero-description { max-width: 420px; margin-top: 24px; font-size: 16px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 36px; min-height: 56px; padding: 16px 24px; border-radius: 8px; font-weight: 650; font-size: 15px; line-height: 1.5; transition: background 160ms ease, transform 160ms ease; }
.button-primary { color: var(--ink); background: var(--apple); }
.button-primary:hover { background: #9ad24c; transform: translateY(-2px); }
.button-primary:active { transform: translateY(0); }
.hero-action { margin-top: 28px; width: 100%; }
.action-note { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.sport-stage { position: relative; isolation: isolate; display: flex; flex-direction: column; background: var(--forest); color: var(--sage); border-radius: 12px; overflow: hidden; }
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 22px 0; font-size: 9px; letter-spacing: 0.095em; font-weight: 600; }
.stage-location { display: flex; align-items: center; gap: 8px; opacity: 0.7; }
.sport-art { min-width: 0; }
.court-art { display: block; width: 100%; height: auto; stroke: none; }
.art-grid { stroke: #e2f0cc; opacity: 0.06; stroke-width: 1; }
.orbit { stroke: #e2f0cc; opacity: 0.13; stroke-width: 1; }
.orbit-outer { stroke-dasharray: 2 8; }
.court-shadow { fill: #011207; opacity: 0.6; }
.table-surface { fill: #527d31; stroke: #bdd89b; stroke-width: 1; }
.court-line { fill: none; stroke: #e2f0cc; stroke-width: 1.5; opacity: 0.85; }
.net-shadow { stroke: #011207; stroke-width: 12; }
.table-net { stroke: #e2f0cc; stroke-width: 2; }
.net-post { stroke: #8bc53d; stroke-width: 4; }
.paddle { fill: #8bc53d; stroke: #b7db82; stroke-width: 2; }
.paddle-handle { fill: #e2f0cc; stroke: #012f13; stroke-width: 2; }
.paddle-detail { stroke: #012f13; stroke-width: 1.5; opacity: 0.45; }
.ball { fill: #f8faf4; }
.ball-shadow { fill: #011207; opacity: 0.5; }
.ball-trail { stroke: #e2f0cc; stroke-width: 1.5; stroke-dasharray: 3 6; opacity: 0.5; }
.art-cross { stroke: #8bc53d; stroke-width: 1; opacity: 0.6; }
.racket { fill: #012f13; stroke: #8bc53d; stroke-width: 5; }
.racket-string { stroke: #e2f0cc; stroke-width: 0.8; opacity: 0.5; }
.racket-shaft { stroke: #e2f0cc; stroke-width: 5; }
.shuttle-feathers { fill: #e2f0cc; stroke: #e2f0cc; stroke-width: 2; }
.shuttle-lines { stroke: #527d31; stroke-width: 1; }
.stage-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 22px 22px; margin-top: -8px; }
.stage-caption { display: block; font-size: 10px; color: #b7cba5; line-height: 1.6; }
.stage-sport { display: block; margin-top: 3px; font-size: 19px; font-weight: 550; letter-spacing: -0.035em; }
.sport-controls { display: flex; gap: 6px; }
.sport-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #688455; border-radius: 7px; background: transparent; color: var(--sage); cursor: pointer; transition: background 160ms ease; }
.sport-button[aria-pressed="true"] { background: var(--sage); color: var(--forest); border-color: var(--sage); }
.sport-button:hover:not([aria-pressed="true"]) { background: #264d27; }

.sport-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-block: 20px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 11px; font-weight: 500; }
.strip-divider { color: #87947c; }
.strip-location { margin-left: auto; font-size: 10px; }
.game-section { display: grid; gap: 40px; padding-block: 64px; }
h2 { font-size: clamp(34px, 7.8vw, 46px); line-height: 1.12; letter-spacing: -0.055em; font-weight: 600; }
.section-intro h2 { margin-top: 17px; }
.section-intro > p:not(.eyebrow) { max-width: 340px; margin-top: 20px; color: var(--muted); font-size: 14px; line-height: 1.8; text-wrap: pretty; }
.text-link { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; margin-top: 14px; font-size: 12px; font-weight: 650; }
.text-link span { font-size: 18px; }
.feature-list { border-top: 1px solid var(--rule); }
.feature { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-block: 26px; border-bottom: 1px solid var(--rule); }
.feature-number { padding-top: 4px; font-family: ui-monospace, monospace; font-size: 10px; color: var(--muted); }
.feature h3 { font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -0.035em; }
.feature p { margin-top: 10px; font-size: 13px; line-height: 1.85; color: var(--muted); max-width: 375px; text-wrap: pretty; }
.feature-icon { display: none; color: #315f18; }

.closing { display: flex; flex-direction: column; gap: 30px; padding: 32px 24px; background: var(--sage); border-radius: 12px; }
.closing h2 { margin-top: 17px; }
.closing p:not(.eyebrow) { color: #46543d; max-width: 300px; font-size: 13px; line-height: 1.8; margin-top: 18px; }
.closing .button { width: 100%; }
.site-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding-top: 40px; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.footer-identity { display: flex; align-items: center; gap: 8px; }
.footer-identity img { object-fit: contain; }
.footer-identity p { font-size: 13px; font-weight: 650; }
.footer-identity span { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; letter-spacing: 0.08em; font-weight: 500; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; margin-left: auto; }
.site-footer nav a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; font-size: 11px; color: var(--muted); }
.site-footer nav a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.footer-note { width: 100%; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 10px; line-height: 1.8; color: var(--muted); }

/* The missing-page surface shares the static site, not an application router. */
.error-page { min-height: 65svh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 48px; }
.error-page h1 { margin-block: 20px; }
.error-page > p:not(.eyebrow) { max-width: 400px; color: var(--muted); line-height: 1.8; }
.error-page .button { margin-top: 28px; }

@media (max-width: 359px) {
  .brand { width: 125px; }
  .brand img { width: 149px; }
  .nav-open { font-size: 11px; gap: 5px; }
  .sport-strip { column-gap: 8px; font-size: 10px; }
  .strip-location { font-size: 9px; }
  .stage-bottom { padding-inline: 18px; }
  .stage-sport { font-size: 17px; }
  .sport-controls { gap: 4px; }
  .site-footer nav { column-gap: 14px; }
}

@media (min-width: 600px) {
  .brand { width: 186px; }
  .brand img { width: 210px; }
  .nav-about { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--muted); }
  .nav-open { font-size: 13px; }
  .hero { gap: 42px; padding-top: 40px; }
  .hero-action { width: auto; }
  .sport-stage { max-width: 580px; width: 100%; }
  .stage-top { font-size: 10px; padding: 26px 28px 0; }
  .stage-bottom { padding: 0 28px 26px; }
  .stage-caption { font-size: 11px; }
  .stage-sport { font-size: 23px; }
  .sport-strip { font-size: 13px; gap: 20px; }
  .strip-location { font-size: 12px; }
  .feature { grid-template-columns: 26px 1fr 32px; gap: 18px; padding-block: 30px; }
  .feature-icon { display: block; margin-top: 4px; }
  .closing { padding: 44px; }
  .closing .button { width: fit-content; }
  .site-footer { padding-top: 42px; }
}

@media (min-width: 960px) {
  .site-header { min-height: 108px; }
  .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 58px; padding-top: 42px; padding-bottom: 46px; }
  .hero-copy { padding-bottom: 28px; }
  h1 { font-size: clamp(62px, 5.8vw, 82px); margin-top: 26px; }
  .hero-description { font-size: 16px; margin-top: 28px; }
  .hero-action { margin-top: 32px; }
  .action-note { margin-top: 14px; font-size: 11px; }
  .eyebrow { font-size: 11px; }
  .game-section { grid-template-columns: 0.95fr 1.05fr; gap: 74px; padding-block: 86px; }
  .section-intro { padding-top: 24px; }
  h2 { font-size: 44px; }
  .feature h3 { font-size: 21px; }
  .feature p { font-size: 14px; }
  .closing { flex-direction: row; justify-content: space-between; align-items: center; padding: 54px 58px; }
  .closing .button { flex-shrink: 0; }
  .closing p:not(.eyebrow) { max-width: 370px; }
  .site-footer { gap: 32px; padding-block: 44px 28px; }
  .site-footer nav { order: 3; }
  .footer-note { width: auto; border: 0; padding-top: 0; margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .button, .sport-button, .sport-stage { border: 1px solid CanvasText; }
  .sport-button[aria-pressed="true"] { border: 3px solid Highlight; }
}
