:root {
  color-scheme: light;
  --ink: #182528;
  --muted: #5c6766;
  --paper: #fbf7ef;
  --soft: #f1eadf;
  --teal: #0b5963;
  --teal-deep: #07383f;
  --gold: #c98f2d;
  --gold-soft: #f3dca8;
  --coral: #ce5d45;
  --white: #ffffff;
  --line: rgba(24, 37, 40, 0.14);
  --shadow: 0 24px 70px rgba(24, 37, 40, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(7, 19, 22, 0.78), rgba(7, 19, 22, 0));
}

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

.brand-logo {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--teal-deep);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/level-up-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 23, 27, 0.92) 0%, rgba(6, 23, 27, 0.74) 38%, rgba(6, 23, 27, 0.16) 72%),
    linear-gradient(0deg, rgba(6, 23, 27, 0.78) 0%, rgba(6, 23, 27, 0) 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding-top: 84px;
  color: var(--white);
}

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

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

h1,
h2 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.5rem, 9vw, 7.8rem);
}

h2 {
  font-size: clamp(2rem, 4.8vw, 4.2rem);
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}

.hero-actions,
.donate-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 20px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  color: #19120b;
  background: var(--gold-soft);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

.section-shell {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-band,
.pathways,
.impact-band,
.story-section,
.donate-band {
  padding: clamp(64px, 10vw, 118px) 0;
}

.intro-grid,
.impact-grid,
.story-grid,
.donate-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

.intro-copy p,
.impact-grid p,
.story-grid p,
.donate-grid p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 38px;
}

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

.event-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(24, 37, 40, 0.08);
}

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

.event-card a {
  margin-top: auto;
  color: var(--teal);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.event-icon {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: var(--teal);
}

.event-icon span,
.event-icon::before,
.event-icon::after {
  position: absolute;
  content: "";
  background: var(--gold-soft);
}

.event-icon span {
  left: 24px;
  top: 10px;
  width: 10px;
  height: 36px;
  border-radius: 8px;
}

.event-icon::before {
  left: 16px;
  top: 14px;
  width: 30px;
  height: 8px;
  border-radius: 999px;
}

.event-icon::after {
  right: 10px;
  bottom: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.event-icon.game {
  background: var(--coral);
}

.event-icon.game span {
  left: 13px;
  top: 26px;
  width: 32px;
  height: 10px;
  border-radius: 999px;
}

.event-icon.game::before,
.event-icon.game::after {
  border-radius: 50%;
}

.event-icon.game::before {
  left: 14px;
  top: 17px;
  width: 9px;
  height: 9px;
}

.event-icon.game::after {
  right: 14px;
  bottom: 16px;
  width: 10px;
  height: 10px;
}

.event-icon.math {
  background: var(--gold);
}

.event-icon.math span {
  left: 16px;
  top: 25px;
  width: 26px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal-deep);
}

.event-icon.math::before,
.event-icon.math::after {
  background: var(--teal-deep);
  border-radius: 999px;
}

.event-icon.math::before {
  left: 26px;
  top: 15px;
  width: 6px;
  height: 26px;
}

.event-icon.math::after {
  right: 13px;
  bottom: 11px;
  width: 12px;
  height: 12px;
}

.impact-band {
  color: var(--white);
  background: var(--teal-deep);
}

.impact-band h2,
.impact-band p {
  color: var(--white);
}

.impact-band p {
  color: rgba(255, 255, 255, 0.76);
}

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

.impact-list div {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.impact-list strong,
.impact-list span {
  display: block;
}

.impact-list strong {
  color: var(--gold-soft);
  font-size: 1.1rem;
}

.impact-list span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
}

.story-section {
  background: var(--soft);
}

.story-stat {
  position: sticky;
  top: 110px;
  padding: 32px;
  border-left: 8px solid var(--gold);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.story-stat span,
.story-stat strong {
  display: block;
}

.story-stat span {
  margin-bottom: 18px;
  color: var(--coral);
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
}

.story-stat strong {
  font-size: 1.16rem;
  line-height: 1.4;
}

.donate-band {
  background:
    linear-gradient(135deg, rgba(201, 143, 45, 0.14), rgba(206, 93, 69, 0.12)),
    var(--paper);
}

.donate-grid {
  align-items: center;
}

.donate-panel {
  justify-content: flex-end;
  margin-top: 0;
}

.donate-panel .button-secondary {
  color: var(--teal-deep);
  border-color: rgba(7, 56, 63, 0.28);
  background: rgba(255, 255, 255, 0.66);
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #10191b;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: var(--white);
  object-fit: contain;
}

.footer-grid p {
  margin: 0;
}

.footer-grid strong {
  color: var(--white);
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
    max-width: 230px;
  }

  .hero {
    min-height: 820px;
  }

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

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(6, 23, 27, 0.94), rgba(6, 23, 27, 0.62)),
      linear-gradient(0deg, rgba(6, 23, 27, 0.86), rgba(6, 23, 27, 0) 50%);
  }

  .hero-content {
    margin-left: 18px;
    padding-top: 160px;
  }

  .intro-grid,
  .impact-grid,
  .story-grid,
  .donate-grid,
  .event-grid {
    grid-template-columns: 1fr;
  }

  .story-stat {
    position: static;
  }

  .donate-panel {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  .site-header {
    display: block;
    padding: 16px 18px;
  }

  .site-nav {
    justify-content: flex-start;
    margin-top: 18px;
    max-width: none;
    font-size: 0.86rem;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .hero {
    min-height: 780px;
  }

  .hero-content {
    padding-top: 178px;
  }

  h1 {
    font-size: 3.35rem;
  }

  .button {
    width: 100%;
  }

  .event-card {
    min-height: 0;
  }

  .footer-grid {
    display: grid;
  }

  .footer-brand {
    align-items: flex-start;
  }
}
