:root {
  --navy: #031a33;
  --navy-deep: #021226;
  --navy-soft: #092746;
  --gold: #f5b323;
  --gold-light: #ffc94a;
  --paper: #fbfaf6;
  --white: #ffffff;
  --ink: #071b34;
  --muted: #52606d;
  --line: rgba(245, 179, 35, 0.7);
  --display: "Oswald", "Arial Narrow", sans-serif;
  --sans: "DM Sans", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --max-width: 1240px;
  --header-height: 88px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

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

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 16px;
  color: var(--navy);
  background: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 5vw;
  color: var(--white);
  background: rgba(3, 26, 51, 0.98);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 10px 30px rgba(2, 18, 38, 0.12);
}

.brand {
  justify-self: start;
  display: inline-flex;
  flex-direction: column;
  color: var(--white);
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand strong {
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 4vw, 58px);
}

.site-nav a,
.site-footer nav a {
  position: relative;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a::after,
.site-footer nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-footer nav a:hover::after,
.site-footer nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-donate {
  justify-self: end;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 12px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 180ms var(--ease);
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    transform 180ms var(--ease),
    background-color 180ms var(--ease),
    color 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

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

.button-gold {
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 8px 26px rgba(245, 179, 35, 0.16);
}

.button-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 12px 30px rgba(245, 179, 35, 0.25);
}

.button-outline {
  color: var(--white);
  background: transparent;
  border-color: var(--gold);
}

.button-outline:hover {
  color: var(--navy);
  background: var(--gold);
}

.button-navy {
  color: var(--white);
  background: var(--navy);
}

.button-navy:hover {
  background: var(--navy-soft);
}

.hero {
  display: grid;
  min-height: clamp(720px, calc(100svh - 200px), 840px);
  grid-template-columns: minmax(0, 1.13fr) minmax(420px, 0.87fr);
  color: var(--white);
  background: var(--navy);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 6vw, 88px) clamp(34px, 3vw, 54px) clamp(54px, 6vw, 88px)
    clamp(48px, 5.3vw, 82px);
}

.hero h1,
.priorities h2,
.experience h2,
.about h2,
.campaign-cta h2,
.legacy h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.97;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(4rem, 5.6vw, 6.2rem);
}

.hero h1 span,
.hero h1 strong {
  display: block;
}

.hero h1 strong {
  color: var(--gold);
  font-weight: 600;
}

.star-rule,
.section-rule {
  display: flex;
  width: min(100%, 670px);
  align-items: center;
  gap: 18px;
  margin: 30px 0 22px;
  color: var(--gold);
}

.star-rule::before,
.star-rule::after,
.section-rule::before,
.section-rule::after {
  height: 1px;
  flex: 1;
  content: "";
  background: currentColor;
}

.star-rule span,
.section-rule span {
  font-size: 1.3rem;
}

.hero-lede {
  max-width: 600px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1.3;
}

.hero-lede strong {
  color: var(--gold);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.hero-media,
.priorities-media,
.about-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--navy-soft);
}

.hero-media {
  align-self: center;
  aspect-ratio: 1;
}

.hero-media::after,
.priorities-media::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  content: "";
  background: var(--gold);
}

.hero-media img,
.priorities-media img {
  width: 100%;
  object-fit: cover;
  object-position: 100% 30%;
}

.hero-media img {
  display: block;
  height: 100%;
  object-position: 98% 50%;
}

.priorities-media img {
  height: 135%;
}

.legacy {
  max-width: 900px;
  margin: 0 auto;
  padding: 82px 30px 92px;
  text-align: center;
}

.legacy .section-rule {
  width: 58%;
  margin: 0 auto 20px;
}

.legacy h2 {
  color: var(--navy);
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.legacy h2 span {
  display: block;
  color: #c88709;
  font-size: 0.55em;
  letter-spacing: 0.11em;
}

.legacy p {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.7;
}

.section-dark {
  color: var(--white);
  background: var(--navy);
}

.priorities {
  display: grid;
  min-height: 760px;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.priorities-copy {
  align-self: center;
  padding: 76px clamp(36px, 6vw, 90px);
}

.section-rule-left {
  width: 220px;
  margin: 0 0 22px;
}

.priorities h2,
.experience h2,
.about h2 {
  font-size: clamp(3.2rem, 5.3vw, 6.2rem);
}

.priorities h2 strong,
.experience h2 strong {
  display: block;
  color: var(--gold);
  font-weight: 600;
}

.priority-list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.priority-list li {
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
}

.priority-list li > span {
  align-self: stretch;
  display: flex;
  align-items: center;
  color: var(--gold);
  border-right: 1px solid var(--gold);
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 600;
}

.priority-list p {
  margin: 0 0 0 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
}

.priority-list li:last-child p {
  border-bottom: 0;
}

.experience {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(50px, 8vw, 130px);
  padding: 108px max(6vw, calc((100vw - var(--max-width)) / 2));
}

.experience-heading {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 44px);
}

.experience-heading p {
  max-width: 420px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 32px;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 10px;
  left: 0;
  width: 1px;
  content: "";
  background: var(--gold);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 0 0 30px;
  border-bottom: 1px solid rgba(245, 179, 35, 0.42);
  margin-bottom: 30px;
}

.timeline li::before {
  position: absolute;
  top: 11px;
  left: -37px;
  width: 11px;
  height: 11px;
  content: "";
  background: var(--gold);
  border: 3px solid var(--navy);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold);
}

.timeline-year {
  color: var(--gold);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline p {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.45;
}

.about {
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 0.9fr);
  gap: clamp(55px, 8vw, 120px);
  padding: 112px max(6vw, calc((100vw - var(--max-width)) / 2));
  background: var(--navy-deep);
  border-top: 1px solid rgba(245, 179, 35, 0.42);
}

.about-copy {
  align-self: center;
}

.about h2 {
  max-width: 720px;
}

.about-copy > p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.83);
  font-family: var(--serif);
  font-size: 1.08rem;
}

.about-copy > p:first-of-type {
  margin-top: 28px;
}

blockquote {
  position: relative;
  max-width: 650px;
  margin: 34px 0 0;
  padding: 2px 0 2px 28px;
  color: var(--white);
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.25;
}

.about-media {
  align-self: center;
  aspect-ratio: 1206 / 1194;
  min-height: 0;
  border: 2px solid var(--gold);
}

.about-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.campaign-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(50px, 10vw, 150px);
  padding: 64px 7vw;
  color: var(--navy);
  background: var(--gold);
  text-align: center;
}

.campaign-cta > div:first-child {
  max-width: 670px;
}

.section-rule-navy {
  width: 65%;
  margin: 0 auto 16px;
  color: rgba(3, 26, 51, 0.48);
}

.campaign-cta h2 {
  font-size: clamp(2.6rem, 4.8vw, 5rem);
}

.campaign-cta p {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.campaign-cta-actions {
  display: flex;
  min-width: 260px;
  flex-direction: column;
  gap: 16px;
}

.campaign-cta-actions a {
  font-weight: 800;
  text-underline-offset: 5px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 48px max(6vw, calc((100vw - var(--max-width)) / 2));
  color: var(--white);
  background: var(--navy);
}

.footer-brand {
  padding-right: 34px;
  border-right: 1px solid var(--gold);
}

.site-footer p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.site-footer p span {
  color: var(--gold);
}

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

.donation-dialog {
  width: min(92vw, 540px);
  padding: 48px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(2, 18, 38, 0.5);
  text-align: center;
}

.donation-dialog::backdrop {
  background: rgba(2, 18, 38, 0.82);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--navy);
  background: transparent;
  border: 0;
  font-size: 2rem;
  line-height: 1;
}

.dialog-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0 auto 22px;
  color: var(--gold);
  background: var(--navy);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
}

.donation-dialog h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1;
  text-transform: uppercase;
}

.donation-dialog p {
  margin: 22px 0 28px;
  color: var(--muted);
}

.not-found {
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: 32px;
  flex-direction: column;
  color: var(--white);
  background: var(--navy);
  text-align: center;
}

.not-found .brand {
  margin-bottom: 60px;
  font-size: 1.6rem;
}

.not-found h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  text-transform: uppercase;
}

.not-found p {
  margin: 20px 0 32px;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero-copy {
    padding-right: 40px;
    padding-left: 42px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 6.4vw, 4.7rem);
  }

  .priorities {
    grid-template-columns: 1fr 0.9fr;
  }

  .experience {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 55px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .about {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
  }

  .site-footer {
    grid-template-columns: auto 1fr;
  }

  .site-footer nav {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 74px;
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
    min-height: var(--header-height);
    padding: 0 20px;
  }

  .brand {
    font-size: 1.15rem;
  }

  .menu-toggle {
    display: block;
    margin-right: 10px;
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: flex;
    padding: 26px 24px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    background: var(--navy);
    border-bottom: 2px solid var(--gold);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 240ms var(--ease), visibility 240ms;
  }

  .site-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .site-nav a {
    width: 100%;
    font-size: 1.2rem;
  }

  .header-donate {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    min-height: auto;
    padding: 64px 24px 54px;
  }

  .hero h1 {
    font-size: clamp(3.45rem, 15vw, 5.4rem);
  }

  .hero-lede {
    font-size: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-media {
    width: 100%;
    min-height: 0;
  }

  .hero-media::after,
  .priorities-media::after {
    inset: 0 0 auto;
    width: auto;
    height: 1px;
  }

  .legacy {
    padding: 68px 24px 76px;
  }

  .legacy .section-rule {
    width: 80%;
  }

  .legacy h2 {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

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

  .priorities-copy {
    padding: 70px 24px 64px;
  }

  .priorities h2,
  .experience h2,
  .about h2 {
    font-size: clamp(3.1rem, 13vw, 4.7rem);
  }

  .priorities-media {
    min-height: 460px;
  }

  .experience {
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 84px 24px;
  }

  .experience-heading {
    position: static;
  }

  .timeline {
    padding-left: 26px;
  }

  .timeline li::before {
    left: -31px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 55px;
    padding: 84px 24px;
  }

  .about-media {
    min-height: 0;
  }

  .campaign-cta {
    flex-direction: column;
    gap: 34px;
    padding: 64px 24px;
  }

  .campaign-cta-actions {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 50px 24px;
  }

  .footer-brand {
    padding-right: 0;
    border-right: 0;
  }

  .site-footer nav {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .donation-dialog {
    padding: 44px 24px 30px;
  }
}

@media (max-width: 420px) {
  .header-donate {
    padding-right: 10px;
    padding-left: 10px;
  }

  .hero h1 {
    font-size: 3.18rem;
  }

  .priority-list li {
    grid-template-columns: 56px 1fr;
  }

  .priority-list li > span {
    font-size: 1.45rem;
  }

  .about-media {
    min-height: 0;
  }
}

@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;
  }
}
