:root {
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-muted: #edf3ec;
  --ink: #16231c;
  --muted: #5f6b63;
  --line: #d9e0d8;
  --forest: #19573a;
  --forest-dark: #0f3826;
  --sun: #f2b84b;
  --berry: #a83246;
  --sky: #d9ebef;
  --shadow: 0 18px 48px rgba(22, 35, 28, 0.13);
  --radius: 8px;
  --container: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: var(--container);
  min-height: 72px;
  margin: 16px auto 0;
  padding: 12px 16px;
  color: #ffffff;
  background: rgba(15, 56, 38, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 56, 38, 0.18);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(25, 87, 58, 0.12);
}

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

.brand__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--sun) 0 45%, transparent 46%),
    linear-gradient(45deg, transparent 0 45%, #ffffff 46% 55%, transparent 56%),
    var(--forest);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.32);
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 1rem;
}

.brand__text small {
  color: currentColor;
  font-size: 0.74rem;
  opacity: 0.76;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: currentColor;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(242, 184, 75, 0.2);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  color: currentColor;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background: var(--forest-dark);
}

.hero__image,
.hero picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 34, 23, 0.82) 0%, rgba(9, 34, 23, 0.52) 45%, rgba(9, 34, 23, 0.2) 100%),
    linear-gradient(0deg, rgba(9, 34, 23, 0.44) 0%, rgba(9, 34, 23, 0.08) 38%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 170px 0 96px;
}

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

.hero .eyebrow {
  color: var(--sun);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  max-width: 820px;
  font-size: clamp(3.4rem, 9vw, 7.2rem);
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.22rem;
}

.hero__lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button--primary {
  color: #1a261f;
  background: var(--sun);
  box-shadow: 0 10px 22px rgba(242, 184, 75, 0.25);
}

.button--ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.quick-info {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: var(--container);
  margin: -44px auto 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.quick-info article {
  min-height: 116px;
  padding: 22px;
  background: var(--surface);
}

.quick-info span {
  display: block;
  color: var(--forest);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 950;
  line-height: 1;
}

.quick-info p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 96px 0;
}

.section--muted {
  width: 100%;
  padding-right: max(20px, calc((100vw - 1120px) / 2));
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  background: var(--surface-muted);
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
}

.section__heading {
  margin-bottom: 36px;
}

.section__heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-note {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.about-grid {
  display: grid;
  gap: 28px;
}

.about-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.about-copy p {
  margin: 0 0 18px;
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.event-facts div {
  padding: 20px;
  background: var(--surface);
}

.event-facts dt {
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-facts dd {
  margin: 8px 0 0;
  color: var(--ink);
  font-weight: 800;
}

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

.program-item,
.team-card,
.contact-card {
  border: 1px solid rgba(25, 87, 58, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(22, 35, 28, 0.06);
}

.program-item {
  min-height: 230px;
  padding: 24px;
}

.program-item time {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--forest);
  background: rgba(25, 87, 58, 0.1);
  font-size: 0.8rem;
  font-weight: 900;
}

.program-item p,
.results-intro p,
.contact-section p {
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-auto-rows: 250px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--forest);
  cursor: zoom-in;
}

.gallery-item--large {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 24, 17, 0.76), rgba(5, 24, 17, 0.02) 62%);
}

.gallery-item span {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
  font-weight: 900;
  text-align: left;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

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

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(25, 87, 58, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
}

.tab {
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.tab.is-active {
  color: #ffffff;
  background: var(--forest);
}

.results-intro {
  max-width: 760px;
  margin: -12px 0 28px;
}

.results-intro p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}

.year-panel {
  display: none;
}

.year-panel.is-active {
  display: block;
}

.results-year {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(25, 87, 58, 0.16);
}

.results-year span {
  color: var(--muted);
  font-weight: 850;
}

.results-year strong {
  color: var(--forest);
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1;
}

.team-results-grid {
  display: grid;
  gap: 18px;
}

.team-card {
  overflow: hidden;
}

.team-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}

.team-card__header span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--forest);
  background: rgba(25, 87, 58, 0.1);
  font-size: 0.82rem;
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(22, 35, 28, 0.06);
}

.team-card .table-wrap {
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

caption {
  padding: 18px 20px;
  color: var(--muted);
  font-weight: 800;
  text-align: left;
}

th,
td {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--forest);
  background: rgba(25, 87, 58, 0.08);
  font-size: 0.85rem;
  text-transform: uppercase;
}

td:first-child {
  font-weight: 900;
}

td:last-child {
  color: var(--forest);
  font-weight: 950;
}

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

.contact-section p {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  font-style: normal;
}

.contact-card a {
  color: var(--forest);
  font-weight: 900;
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: var(--container);
  margin: 0 auto;
  padding: 28px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--forest);
  font-weight: 900;
  text-decoration: none;
}

.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(5, 24, 17, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: min(780px, 82vh);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  :root {
    --container: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: 64px;
    margin-top: 10px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    padding: 8px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    color: var(--ink);
    border-radius: 6px;
  }

  .section--split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .quick-info,
  .program-list,
  .event-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }

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

@media (max-width: 620px) {
  .brand__text small {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero__content {
    padding: 140px 0 78px;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .quick-info {
    grid-template-columns: 1fr;
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

  .section,
  .section--muted {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .program-list,
  .event-facts,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 240px;
  }

  .gallery-item--large {
    grid-row: span 1;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1;
  }

  .team-card__header {
    align-items: start;
    flex-direction: column;
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
  }
}
