:root {
  font-family: Helvetica-neue, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
  color: #f3f5f8;
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --orange: #ff7b24;
  --orange-dark: #ff9a54;
  --ink: #f3f5f8;
  --muted: #b2bdcc;
  --page: #121b28;
  --surface: #151e2b;
  --surface-raised: #1b2635;
  --surface-control: #111a26;
  --line: #334052;
  --header-bg: rgba(11, 17, 26, 0.96);
  --header-bg-top: rgba(11, 17, 26, 0.55);
  --footer-bg: #080d14;
  --focus: #ff9a54;
  --modal-overlay: rgba(10, 15, 23, 0.82);
  --header-height: 60px;
}

:root[data-theme="light"] {
  color-scheme: light;
  color: #172033;
  background: #f7f8fa;
  --orange: #f76902;
  --orange-dark: #c94f00;
  --ink: #172033;
  --muted: #596579;
  --page: #f7f8fa;
  --surface: #edf0f4;
  --surface-raised: #fff;
  --surface-control: #fff;
  --line: #d3d9e1;
  --header-bg: rgba(224, 229, 236, 0.98);
  --header-bg-top: rgba(224, 229, 236, 0.78);
  --footer-bg: #e9edf2;
  --focus: #c94f00;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  min-width: 320px;
  margin: 0;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

button,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: Bebas-neue, Impact, sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.015em;
}

p {
  margin: 0 0 1rem;
}

.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: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(1.25rem, 5vw, 5.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  transition: background-color 180ms ease;
}

.site-header.is-at-top {
  background: var(--header-bg-top);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--ink);
}

.wordmark img {
  width: 111px;
  max-height: 48px;
  object-fit: contain;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
}

.primary-navigation a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.primary-navigation a:hover {
  color: var(--orange-dark);
}

.primary-navigation a[aria-current="page"] {
  color: var(--orange-dark);
}

.primary-navigation .nav-cta {
  padding: 0.62rem 1rem;
  border-radius: 4px;
  background: var(--orange);
  color: #111827;
}

.primary-navigation .nav-cta:hover {
  background: var(--orange-dark);
  color: #111827;
}

.theme-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle:hover .theme-toggle-track {
  border-color: var(--orange-dark);
}

.theme-toggle-track {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-control);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.theme-toggle-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted);
  transform: translateX(0);
  transition: background-color 160ms ease, transform 160ms ease;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-track {
  border-color: var(--orange);
  background: var(--orange);
}

.theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
  background: #111827;
  transform: translateX(18px);
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-toggle-icon.is-active {
  color: var(--orange);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.theme-toggle:hover {
  color: var(--orange-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  cursor: pointer;
}

.button-primary {
  background: var(--orange);
  color: #111827;
}

.button-primary:hover {
  background: var(--orange-dark);
}

.button-light {
  background: var(--surface-raised);
  color: var(--ink);
}

.button-light:hover {
  background: var(--line);
}

.button-outline {
  border-color: var(--ink);
  color: var(--ink);
}

.button-outline:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.section {
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1.5rem, 8vw, 8rem);
}

.page-intro {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.page-intro h1,
.page-intro h2 {
  color: var(--ink);
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  text-transform: uppercase;
}

.page-intro-copy {
  max-width: 660px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.contact-page,
.sponsorships-page,
.team-banner,
.team-sections,
.gallery-page {
  padding-left: clamp(1.25rem, 5vw, 5.5rem);
  padding-right: clamp(1.25rem, 5vw, 5.5rem);
}

.contact-card {
  display: flex;
  width: 100%;
  min-height: 195px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  background:
    radial-gradient(circle, rgba(255, 123, 36, 0.1) 1px, transparent 1.5px)
      right top / 9px 9px,
    radial-gradient(ellipse at 100% 0%, rgba(255, 123, 36, 0.3), transparent 68%),
    var(--surface);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 10px 4px var(--orange), 0 10px 28px rgba(0, 0, 0, 0.18);
}

.contact-card .eyebrow {
  margin-bottom: 0.55rem;
}

.contact-card h2 {
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  text-transform: uppercase;
}

.contact-card > p:not(.eyebrow) {
  max-width: 460px;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  color: var(--orange-dark);
  font-weight: 700;
  text-decoration: none;
}

.contact-card-link span {
  transition: transform 160ms ease;
}

.contact-card:hover .contact-card-link span {
  transform: translateX(4px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  color: var(--orange-dark);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.section-sponsors {
  background: var(--surface);
}

.sponsor-tier {
  margin-top: 2rem;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.sponsor-tier h3 {
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: 1.75rem;
  text-transform: capitalize;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 0.8rem;
}

.sponsor-card {
  display: grid;
  min-height: 98px;
  place-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-raised);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.sponsor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.sponsor-card img {
  width: 100%;
  height: 64px;
  object-fit: contain;
}

.results-heading,
.gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.select-label {
  display: grid;
  min-width: 150px;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.select-label select {
  min-height: 44px;
  padding: 0.5rem 2rem 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface-control);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.5rem, 8vw, 8rem);
  background: var(--footer-bg);
  color: var(--ink);
  font-size: 0.78rem;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 1.25rem;
  background: var(--modal-overlay);
}

.modal-panel {
  width: min(650px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-raised);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.modal-heading h2 {
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 3rem);
  text-transform: uppercase;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.icon-button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.pdf-viewer-dialog {
  display: flex;
  width: min(1000px, 100%);
  height: min(88vh, 900px);
  flex-direction: column;
  overflow: hidden;
}

.pdf-viewer-dialog iframe {
  width: 100%;
  flex: 1;
  border: 0;
}
