:root {
  --bg: #101c38;
  --text: #ffffff;
  --muted: #b9c3de;
  --brand: #0a1430;
  --brand-text: #ffffff;
  --accent: #ffa400;
  --link: #c0a8f2;
  --line: #2c3f6b;
  --focus: #d2c0fa;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 4.5rem;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
}
h1,
h2,
h3 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}
h1,
h2 {
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2.8rem, 8vw, 5rem);
}
h2 {
  font-size: 2.2rem;
}
p {
  margin: 0 0 1rem;
  max-width: 62ch;
}
a {
  color: var(--link);
}
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 30;
  background: var(--accent);
  color: var(--brand);
  font-weight: 600;
  padding: 0.5rem 1rem;
  text-decoration: none;
}
.skip-link:focus {
  top: 0.5rem;
}

/* navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--brand);
  color: var(--brand-text);
  border-bottom: 4px solid var(--accent);
}
.nav .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: 3.5rem;
}
.logo {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: inherit;
  text-decoration: none;
}
.nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
}
.nav ul a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav ul a:hover {
  border-bottom-color: var(--accent);
}
.nav a:focus-visible {
  outline-color: var(--brand-text);
}

/* sections */
section {
  padding: 3.5rem 0;
}
.hero {
  padding: 4rem 0 2rem;
}
.hero-grid,
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hero-logo {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  justify-self: start;
}
.img-right {
  display: block;
  width: 100%;
  max-width: 24rem;
  height: auto;
  justify-self: end;
}
@media (max-width: 700px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .hero-logo {
    max-width: 14rem;
  }
  .img-right {
    justify-self: start;
  }
}

/* sponsors */
.sponsor-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-top: 1.5rem;
}
.sponsor-card {
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 10rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.3s ease;
}
.sponsor-card:hover {
  border-color: var(--accent);
  color: var(--text);
}
.sponsor-card img {
  /* forces SVGs and transparent PNGs/WebPs to black, then inverts to white */
  filter: brightness(0) invert(1);
  display: block;
  width: 100%;
  max-width: 15rem;
  height: 6rem;
  object-fit: contain;
}
/* for images with a solid background (e.g. JPEGs): add class="jpg" to the <img> */
.sponsor-card img.jpg {
  filter: grayscale(1) contrast(1000%) invert(1);
  mix-blend-mode: screen;
}
.sponsor-card span {
  font-size: 0.95rem;
}

/* footer */
footer {
  background: var(--brand);
  color: var(--text);
  border-top: 4px solid var(--accent);
  padding: 2rem 0;
  margin-top: 2rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
footer p {
  margin: 0;
  font-size: 0.95rem;
}
footer a {
  color: var(--link);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .sponsor-card {
    transition: none;
  }
}
