:root {
  color-scheme: light;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --navy: #17233a;
  --muted: #5b6676;
  --orange: #b9540e;
  --orange-dark: #923d07;
  --blue: #405bb2;
  --line: rgba(23, 35, 58, 0.16);
  --soft-orange: rgba(185, 84, 14, 0.08);
  --shadow: 0 26px 70px rgba(23, 35, 58, 0.12);
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --shell: min(1140px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--navy);
  background: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(23, 35, 58, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 35, 58, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

a {
  color: inherit;
}

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

::selection {
  color: var(--paper);
  background: var(--orange);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--navy);
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

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

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.brand-mark::before {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(185, 84, 14, 0.68);
}

.brand-mark::after {
  width: 5px;
  height: 5px;
  background: var(--orange);
  box-shadow: 8px -5px 0 -1px var(--cream), 8px -5px 0 0 var(--orange);
}

.brand-word {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand-word span {
  color: var(--orange);
}

.header-action {
  padding: 9px 18px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 9vw, 122px) 0 clamp(68px, 10vw, 132px);
}

.hero::after {
  position: absolute;
  top: -18%;
  right: -14%;
  width: min(50vw, 720px);
  aspect-ratio: 1;
  z-index: -1;
  content: "";
  border: 1px solid rgba(185, 84, 14, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 72px rgba(185, 84, 14, 0.025),
    0 0 0 144px rgba(64, 91, 178, 0.022);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(56px, 9vw, 120px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(58px, 7vw, 98px);
  line-height: 0.96;
}

.hero-lede {
  max-width: 670px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.55;
}

.plain-promise {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
}

.donation-card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.donation-heading p {
  margin-bottom: 6px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.donation-heading h2 {
  margin-bottom: 26px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
}

.donation-options {
  display: grid;
  gap: 12px;
}

.donation-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.donation-option:hover:not([aria-disabled="true"]),
.donation-option:focus-visible:not([aria-disabled="true"]) {
  border-color: var(--orange);
  box-shadow: 0 10px 24px rgba(23, 35, 58, 0.09);
  transform: translateY(-2px);
}

.donation-option.featured {
  color: var(--paper);
  border-color: var(--navy);
  background: var(--navy);
}

.donation-option[aria-disabled="true"] {
  cursor: not-allowed;
}

.amount {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.amount-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.featured .amount-note {
  color: rgba(255, 253, 248, 0.74);
}

.checkout-status {
  min-height: 24px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.simple-loop {
  padding: clamp(64px, 8vw, 104px) 0;
  color: var(--paper);
  background: var(--navy);
}

.loop-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(50px, 9vw, 130px);
}

.simple-loop .eyebrow {
  color: #efb17a;
}

.simple-loop h2 {
  max-width: 560px;
  margin-bottom: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.03;
}

.steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 253, 248, 0.18);
}

.steps li:last-child {
  border-bottom: 1px solid rgba(255, 253, 248, 0.18);
}

.steps span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 253, 248, 0.38);
  border-radius: 50%;
  color: #efb17a;
  font-family: var(--display);
}

.steps p {
  margin: 0;
  color: rgba(255, 253, 248, 0.72);
  line-height: 1.6;
}

.steps strong {
  color: var(--paper);
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner strong {
  color: var(--navy);
}

.noscript-note {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  max-width: 340px;
  margin: 0;
  padding: 14px 16px;
  color: var(--paper);
  background: var(--navy);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero-layout,
  .loop-layout {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 50px;
  }

  .donation-card {
    max-width: 620px;
  }

  .loop-layout {
    gap: 42px;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: min(100% - 28px, 1140px);
  }

  .header-inner {
    min-height: 66px;
  }

  .hero {
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(50px, 16vw, 72px);
  }

  .hero-lede {
    font-size: 18px;
  }

  .donation-card {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .donation-option {
    min-height: 72px;
    padding-inline: 16px;
  }

  .amount {
    font-size: 32px;
  }

  .amount-note {
    max-width: 130px;
    text-align: right;
  }

  .loop-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
