/* Donation-page presentation */
:root {
  --ink: #111111;
  --paper: #ffffff;
  --soft: #f4f2f1;
  --muted: #625d62;
  --line: #d8d3d7;
  --accent: #ad11ad;
  --accent-dark: #820d82;
  --danger: #9d1b35;
  --max-width: 76rem;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section-space: clamp(4.5rem, 9vw, 9rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent);
}

button,
input,
textarea,
select {
  font: inherit;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-200%);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
  border-bottom: 1px solid var(--line);
}

.site-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-nav a {
  position: relative;
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.wordmark {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-decoration: none;
}

.hero,
.method-nav,
.content-section,
.form-section,
.site-footer {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero {
  display: grid;
  grid-template-columns: minmax(1rem, 0.3fr) minmax(0, 1.7fr);
  min-height: min(50rem, calc(100vh - 5rem));
  padding-block: var(--section-space);
}

.hero__marker {
  align-self: end;
  justify-self: start;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero__content {
  align-self: center;
  max-width: 56rem;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1,
h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 12vw, 9.5rem);
}

h2 {
  max-width: 14ch;
  font-size: clamp(2.45rem, 7vw, 5.6rem);
}

h3 {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__intro {
  max-width: 39rem;
  margin: 2rem 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.button {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid transparent;
  padding: 0.95rem 1.25rem;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button--primary {
  color: var(--paper);
  background: var(--accent-dark);
}

.button--primary:hover {
  color: var(--paper);
  background: var(--accent);
}

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

.button--light:hover {
  color: var(--paper);
  background: var(--accent-dark);
}

.button--dark {
  color: var(--paper);
  background: var(--ink);
}

.button--dark:hover {
  color: var(--paper);
  background: #373237;
}

.button--compact {
  min-height: 3rem;
  margin-top: 1.5rem;
  color: var(--paper);
  background: var(--ink);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.method-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 5rem;
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 34rem;
  margin: 0;
}

.method-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.method-grid a {
  display: flex;
  min-height: 9rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.method-grid a:hover {
  color: var(--paper);
  background: var(--accent-dark);
}

.method-grid span {
  color: var(--muted);
  font-size: 0.62rem;
}

.method-grid a:hover span {
  color: var(--paper);
}

.content-section {
  display: grid;
  grid-template-columns: minmax(3rem, 0.35fr) minmax(0, 1.65fr);
  gap: 2rem;
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
}

.content-section--dark {
  position: relative;
  color: var(--paper);
  background: var(--ink);
}

.content-section--dark::before {
  position: absolute;
  z-index: -1;
  inset: 0 50%;
  width: 100vw;
  background: var(--ink);
  content: "";
  transform: translateX(-50%);
}

.content-section--dark .eyebrow {
  color: #e253df;
}

.section-number {
  padding-top: 0.4rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.section-body > p:not(.eyebrow) {
  max-width: 43rem;
  margin: 2rem 0 0;
}

.section-body > .button {
  margin-top: 2rem;
}

.small-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.content-section--dark .small-note {
  color: #bfb8bf;
}

.instruction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.two-step-note {
  max-width: 43rem;
  margin: 1.5rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.check-transition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.8fr);
  gap: 2rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--paper);
  background: var(--accent-dark);
}

.check-transition .eyebrow {
  margin-bottom: 0.6rem;
  color: var(--paper);
}

.check-transition h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  letter-spacing: 0.04em;
}

.check-transition p:last-child {
  max-width: 38rem;
  margin: 0;
}

.check-transition .button {
  width: 100%;
}

.info-card {
  min-height: 21rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
}

.info-card--accent {
  border-color: var(--accent-dark);
  background: #fff8ff;
}

dl {
  margin: 0;
}

dl > div {
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  margin: 0.25rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
}

address {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-style: normal;
  line-height: 1.75;
}

.text-button {
  padding: 0.25rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--accent-dark);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.warning {
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--danger);
  border-left-width: 0.4rem;
}

.warning ul {
  margin: 0;
  padding-left: 1.2rem;
}

.warning li + li {
  margin-top: 0.55rem;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.form-section::before {
  position: absolute;
  z-index: -1;
  inset: auto 50%;
  width: 100vw;
  height: 100%;
  background: inherit;
  content: "";
  transform: translateX(-50%);
}

.form-section {
  position: relative;
  isolation: isolate;
}

.form-section--accent {
  background: #f8eaf8;
}

.form-intro {
  align-self: start;
  position: sticky;
  top: 2rem;
}

.form-intro h2,
.form-intro h3 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-transform: uppercase;
}

.form-intro > p:last-child {
  max-width: 28rem;
  margin-top: 1.75rem;
}

.donation-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 1rem;
}

.field {
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field > label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

.field-note {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #a9a2a8;
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
}

input,
select {
  min-height: 3.25rem;
  padding: 0.65rem 0.75rem;
}

textarea {
  min-height: 7rem;
  padding: 0.75rem;
  resize: vertical;
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-dark);
  outline: 3px solid rgba(173, 17, 173, 0.22);
  outline-offset: 1px;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.checkbox-field input {
  width: 1.2rem;
  min-height: 1.2rem;
  margin: 0.2rem 0 0;
  accent-color: var(--accent-dark);
}

.checkbox-field label {
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.form-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.form-status {
  display: none;
  padding: 1rem;
  border: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: #176b3a;
  background: #f1fff7;
}

.form-status.is-error {
  color: #8b152d;
  background: #fff5f6;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin-top: 2.5rem;
  color: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-to-top:hover {
  color: var(--accent);
}

.method-nav > .back-to-top,
.form-section > .back-to-top {
  grid-column: 1 / -1;
  justify-self: end;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.copy-status {
  position: fixed;
  z-index: 20;
  right: 1rem;
  bottom: 1rem;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.8rem 1rem;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.18);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.copy-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 1.3fr;
  gap: 3rem;
  padding-block: 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}

.site-footer p {
  max-width: 31rem;
  margin: 0;
}

.site-footer .wordmark {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.server-response {
  width: min(100% - 2.5rem, 50rem);
  margin: 0 auto;
  padding-block: clamp(5rem, 15vw, 10rem);
}

.server-response h1 {
  font-size: clamp(3rem, 9vw, 6rem);
}

.server-response .form-status {
  margin-block: 2rem;
}

.footer-label {
  margin-bottom: 0.8rem !important;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 52rem) {
  .hero {
    grid-template-columns: 2rem minmax(0, 1fr);
    min-height: 42rem;
  }

  .method-nav,
  .form-section {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-intro {
    position: static;
  }

  .check-transition {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

  .site-footer > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 36rem) {
  .site-header {
    align-items: flex-start;
    gap: 1rem;
  }

  .site-header p {
    max-width: 8rem;
    text-align: right;
  }

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

  .hero__marker {
    display: none;
  }

  .method-grid,
  .instruction-grid,
  .donation-form,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .method-grid a {
    min-height: 6.5rem;
  }

  .content-section {
    grid-template-columns: 1fr;
  }

  .section-number {
    padding-top: 0;
  }

  .field {
    grid-column: 1 / -1;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .check-transition {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }

  .site-footer > div:last-child {
    grid-column: auto;
  }
}

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

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

@media print {
  @page {
    margin: 0.7in;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 10pt;
  }

  .site-header,
  .hero,
  .method-nav,
  .form-section,
  .site-footer,
  .button,
  .text-button,
  .copy-status {
    display: none !important;
  }

  .content-section {
    display: block;
    padding: 0 0 1.5rem;
    border: 0;
    break-inside: avoid;
  }

  .content-section--dark {
    color: #000;
    background: #fff;
  }

  .content-section--dark::before {
    display: none;
  }

  .content-section .eyebrow,
  .content-section .small-note {
    color: #000;
  }

  .content-section h2 {
    max-width: none;
    font-size: 23pt;
  }

  .section-number {
    display: none;
  }

  .instruction-grid {
    gap: 0.2in;
    margin-top: 0.25in;
  }

  .info-card,
  .warning {
    min-height: 0;
    padding: 0.2in;
    border-color: #000;
    background: #fff;
    break-inside: avoid;
  }

  a {
    color: #000;
  }
}
