:root {
  --ink: #17212b;
  --muted: #5d6c74;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --navy: #14324d;
  --blue: #245f9b;
  --green: #0b7048;
  --green-dark: #084732;
  --yellow: #f2cd48;
  --lime: #d5e86a;
  --clay: #c8643f;
  --line: #dfe8e3;
  --shadow: 0 24px 70px rgba(14, 31, 45, 0.16);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 50;
  transform: translateY(-160%);
  background: var(--surface);
  color: var(--navy);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: 92px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 12px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(20, 50, 77, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--green);
  color: var(--yellow);
  border: 3px solid var(--yellow);
  border-radius: 50%;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-name {
  font-weight: 800;
  line-height: 1.05;
  color: var(--navy);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(8, 71, 50, 0.22);
}

.button-small {
  min-height: 42px;
  padding-inline: 16px;
}

.button-light {
  background: #fff;
  border-color: #fff;
  color: var(--green-dark);
}

.button-outline {
  background: transparent;
  color: var(--green-dark);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(760px, calc(100svh - 76px));
  padding-block: clamp(58px, 8vw, 92px);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 32, 49, 0.92) 0%, rgba(8, 32, 49, 0.78) 37%, rgba(8, 71, 50, 0.36) 68%, rgba(8, 71, 50, 0.16) 100%),
    linear-gradient(0deg, rgba(8, 32, 49, 0.36), rgba(8, 32, 49, 0.08)),
    url("assets/community-tennis-hero-safe.jpg") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  bottom: -1px;
  z-index: -1;
  height: 86px;
  background: var(--paper);
  transform: skewY(-3deg);
  transform-origin: 100% 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

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

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: 5.8rem;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero h1 {
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.32);
}

h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.1;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.22rem;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.24);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
}

.hero-metrics div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--yellow);
  font-size: 1.3rem;
  line-height: 1.1;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.82);
}

.hero-event {
  display: grid;
  gap: 4px;
  width: min(680px, 100%);
  margin-top: clamp(26px, 4vw, 44px);
  padding: 18px 20px;
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius);
  background: rgba(8, 32, 49, 0.58);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  color: inherit;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.hero-event:hover,
.hero-event:focus-visible {
  background: rgba(8, 32, 49, 0.76);
  transform: translateY(-2px);
}

.hero-event span {
  color: var(--yellow);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-event strong {
  color: #fff;
  font-size: 1.7rem;
  line-height: 1.1;
}

.hero-event p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.hero-event small {
  margin-top: 6px;
  color: var(--yellow);
  font-weight: 900;
}

.impact-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 0.75fr 1.35fr;
  gap: 1px;
  overflow: hidden;
  margin-top: -26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 0 16px 42px rgba(14, 31, 45, 0.09);
}

.impact-strip div {
  padding: clamp(18px, 3vw, 26px);
  background: var(--surface);
}

.impact-strip span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.impact-strip strong {
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.15;
}

.section {
  padding-block: clamp(76px, 9vw, 118px);
}

.announcement {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
}

.announcement-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.announcement-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-block: 24px;
}

.announcement-facts div {
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius);
  background: var(--surface);
}

.announcement-facts strong,
.announcement-facts span {
  display: block;
}

.announcement-facts strong {
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1.1;
}

.announcement-facts span {
  color: var(--muted);
  font-weight: 700;
}

.announcement-flyer img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

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

.program-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.program-card p {
  color: var(--muted);
}

.card-link {
  width: fit-content;
  margin-top: auto;
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--clay);
}

.card-rule {
  width: 70px;
  height: 6px;
  margin-bottom: 42px;
  border-radius: 999px;
}

.card-rule-yellow {
  background: var(--yellow);
}

.card-rule-green {
  background: var(--green);
}

.card-rule-clay {
  background: var(--clay);
}

.calendar-section {
  background: #eef5f1;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #b8c7bf;
  border-radius: 999px;
  background: transparent;
  color: var(--green-dark);
  font-weight: 850;
  cursor: pointer;
}

.filter-button.is-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
}

.month-card,
.event-card,
.donation-card,
.contact-card,
.legacy-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(14, 31, 45, 0.08);
}

.month-card {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 22px;
}

.month-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.month-card-header span {
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 900;
}

.month-card-header small {
  color: var(--muted);
  font-weight: 700;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.month-cell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 42px;
  color: var(--muted);
  border-radius: var(--radius);
  font-weight: 800;
}

.month-cell.weekday {
  min-height: 28px;
  color: var(--green-dark);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.month-cell.has-event {
  color: var(--navy);
  background: #f4f0d7;
}

.month-cell.has-event::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.month-cell.is-today {
  outline: 2px solid var(--clay);
  outline-offset: -2px;
}

.month-cell.is-muted {
  opacity: 0.35;
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.event-card.is-past {
  opacity: 0.7;
}

.event-card.is-next {
  border-color: rgba(11, 112, 72, 0.58);
  box-shadow: 0 18px 42px rgba(8, 71, 50, 0.14);
}

.event-card.is-next .date-tile {
  background: var(--green);
}

.date-tile {
  display: grid;
  place-items: center;
  min-height: 86px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}

.date-tile span {
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 900;
}

.date-tile strong {
  font-size: 2rem;
  line-height: 1;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.event-meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #e9f1ed;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.event-meta .event-status {
  background: var(--yellow);
  color: var(--navy);
}

.event-meta .event-status.is-recent {
  background: #dfe5e2;
  color: var(--muted);
}

.event-card h3 {
  margin-bottom: 6px;
}

.event-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.event-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #bed0c7;
  border-radius: var(--radius);
  background: transparent;
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.text-button-primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.empty-state {
  padding: 28px;
  border: 1px dashed #aac3b7;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
}

.split-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

blockquote {
  margin: 32px 0 0;
  padding: 22px;
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  background: #eef5f1;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
}

blockquote cite {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: normal;
}

.legacy-panel {
  overflow: hidden;
}

.legacy-panel-header {
  min-height: 230px;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 24%, var(--yellow) 0 18px, transparent 19px),
    linear-gradient(135deg, transparent 0 43%, rgba(255, 255, 255, 0.9) 43% 44%, transparent 44% 100%),
    linear-gradient(145deg, var(--blue), var(--green));
}

.legacy-panel-header span,
.legacy-panel-header strong {
  display: block;
}

.legacy-panel-header span {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legacy-panel-header strong {
  max-width: 360px;
  font-size: 4.4rem;
  line-height: 0.9;
}

.legacy-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.legacy-list div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 24px;
  background: #fff;
}

.legacy-list span {
  color: var(--clay);
  font-weight: 900;
}

.legacy-list p {
  margin: 0;
  color: var(--navy);
  font-weight: 850;
}

.donate-section {
  background:
    linear-gradient(135deg, rgba(20, 50, 77, 0.98), rgba(8, 71, 50, 0.98)),
    var(--navy);
  color: #fff;
}

.donate-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.donate-copy h2 {
  color: #fff;
}

.donate-copy p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.donation-uses {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.donation-uses span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.donation-card {
  padding: clamp(22px, 4vw, 34px);
  color: var(--ink);
}

.donation-card-kicker {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.donation-checkout h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.85rem;
}

.donation-card-copy {
  margin: 0 0 22px;
  color: var(--muted);
}

.gift-impact-list {
  display: grid;
  margin-bottom: 22px;
  border-block: 1px solid var(--line);
}

.gift-impact-list div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 50px;
  border-bottom: 1px solid var(--line);
}

.gift-impact-list div:last-child {
  border-bottom: 0;
}

.gift-impact-list strong {
  color: var(--green-dark);
  font-size: 1.05rem;
}

.gift-impact-list span {
  color: var(--navy);
  font-weight: 800;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(242, 205, 72, 0.7);
  outline-offset: 3px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.donation-submit {
  width: 100%;
}

.donation-assurance {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  gap: 32px;
  align-items: center;
}

.contact-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-card {
  display: grid;
  gap: 6px;
  padding: 28px;
}

.contact-card span {
  color: var(--muted);
  font-weight: 800;
}

.contact-card strong {
  color: var(--navy);
  font-size: 1.7rem;
}

.contact-card a {
  color: var(--green-dark);
  font-size: 1.5rem;
  font-weight: 900;
  text-decoration: none;
}

.contact-card small {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 750;
}

.site-footer {
  padding-block: 28px;
  background: var(--navy);
  color: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner > div {
  display: grid;
  gap: 4px;
}

.footer-inner > div span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.86rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 940px) {
  section[id] {
    scroll-margin-top: 138px;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .announcement,
  .calendar-layout,
  .split-section,
  .donate-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 4.7rem;
  }

  h2 {
    font-size: 3rem;
  }

  .impact-strip,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .month-card {
    position: static;
  }

  .legacy-panel-header strong {
    font-size: 3.8rem;
  }
}

@media (max-width: 640px) {
  .section-wrap {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    min-height: auto;
    gap: 12px;
    padding-inline: 14px;
  }

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

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.35rem;
  }

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

  .hero {
    padding-block: 44px 68px;
  }

  .hero::after {
    height: 54px;
  }

  .hero::before {
    background-position: 62% center;
  }

  .hero-copy {
    margin-bottom: 20px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-bottom: 20px;
  }

  .hero-event {
    margin-top: 18px;
    padding: 14px 16px;
  }

  .hero-event strong {
    font-size: 1.28rem;
  }

  .hero-event p,
  .hero-event small {
    font-size: 0.84rem;
  }

  .event-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .event-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .date-tile {
    min-height: 72px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .legacy-panel-header strong {
    font-size: 3.2rem;
  }
}

@media (max-width: 460px) {
  .brand-name {
    display: none;
  }

  .site-header .button-small {
    min-height: 40px;
    padding-inline: 13px;
  }

  h1 {
    font-size: 2.3rem;
    line-height: 0.98;
  }

  .hero .eyebrow {
    margin-bottom: 8px;
    font-size: 0.68rem;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-metrics div {
    padding: 10px 8px;
  }

  .hero-metrics strong {
    font-size: 1rem;
  }

  .hero-metrics span {
    font-size: 0.72rem;
    line-height: 1.2;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
