:root {
  --evergreen: #123b35;
  --evergreen-deep: #092b28;
  --civic-blue: #24475a;
  --limestone: #f2f2eb;
  --paper: #fffefa;
  --saddle: #846044;
  --brass: #b89552;
  --brass-soft: #dfcca2;
  --ink: #171a19;
  --muted: #56615e;
  --line: #d7d5ca;
  --focus: #0b6aa2;
  --font-display: "EB Garamond", "Palatino Linotype", Georgia, serif;
  --font-headline: "Playfair Display", Georgia, serif;
  --font-body: Inter, "Segoe UI", system-ui, sans-serif;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgb(18 59 53 / 3%) 1px, transparent 1px), var(--limestone);
  background-size: 100% 2.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

#top {
  margin-bottom: 0;
  box-shadow: none;
}

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

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

.appeal {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(
    118deg,
    var(--evergreen-deep),
    var(--evergreen) 62%,
    #1c4d46
  );
}

.appeal-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2.5rem), 76rem);
  margin-inline: auto;
  padding: clamp(4.5rem, 10vw, 6rem) 0 clamp(5rem, 11vw, 6.5rem);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--brass-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.appeal h1 {
  max-width: 15ch;
  margin: 0;
  font-family: var(--font-headline);
  font-size: clamp(3rem, 7vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.appeal-lead {
  max-width: 48rem;
  margin: 1.75rem 0 0;
  color: rgb(255 255 255 / 82%);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  line-height: 1.45;
}

.appeal-lead em {
  color: #fff;
  font-style: normal;
  font-weight: 700;
}

.limit {
  display: inline-flex;
  gap: 0.85rem;
  align-items: center;
  margin-top: 2.2rem;
  padding: 0.65rem 0.7rem 0.65rem 1rem;
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.limit strong {
  display: grid;
  min-width: 4.3rem;
  min-height: 2.55rem;
  padding-inline: 0.65rem;
  border-radius: 999px;
  color: var(--evergreen-deep);
  background: var(--brass-soft);
  font-size: 1rem;
  place-items: center;
}

.page-shell {
  width: min(calc(100% - 2.5rem), 76rem);
  margin: clamp(-2rem, -4vw, -3.5rem) auto clamp(3rem, 8vw, 7rem);
}

.letter {
  position: relative;
  border: 1px solid #dedbcf;
  background: var(--paper);
  box-shadow: 0 1.5rem 4rem rgb(30 45 41 / 14%);
  font-size: clamp(1rem, 2vw, 1.28rem);
  margin: 0;
  padding: 0;
}

.letter::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.5rem;
  height: 9rem;
  background: var(--brass);
  content: "";
}

.letter-body {
  padding: clamp(2rem, 7vw, 6rem);
}

.letter-body > p,
.closing > p {
  max-width: 72ch;
  margin: 0 0 1.35em;
  font-family: var(--font-display);
  font-size: clamp(1.16rem, 2vw, 1.36rem);
  line-height: 1.62;
}

.letter-opening::first-letter {
  float: left;
  margin: 0.1em 0.1em 0 0;
  color: var(--evergreen);
  font-family: var(--font-headline);
  font-size: 4.4em;
  font-weight: 600;
  line-height: 0.72;
}

.letter strong {
  color: var(--evergreen);
}

cite {
  font-family: inherit;
}

.ways-to-contribute,
.closing {
  margin-top: clamp(3.75rem, 8vw, 6.5rem);
}

.section-heading {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.section-heading h2 {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0;
  color: var(--civic-blue);
  font-family: var(--font-headline);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
}

.section-heading h2::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

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

.contribute-card {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-top: 0.35rem solid var(--brass);
  background: #f8f7f1;
}

.contribute-card a {
  font-size: 0.9em;
}

.contribute-card-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.35rem;
  border-radius: 50%;
  color: var(--evergreen);
  background: #e8ece6;
  place-items: center;
}

.contribute-card-icon svg {
  width: 1.8rem;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.contribute-card-label {
  margin: 0 0 0.35rem;
  color: var(--saddle);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contribute-card h3 {
  margin: 0 0 1.25rem;
  color: var(--evergreen);
  font-family: var(--font-headline);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.2;
}

.contribute-card p,
.giving-card address {
  margin: 0 0 1em;
}

.contribute-card address {
  font-style: normal;
}

.payment-handle {
  overflow-wrap: anywhere;
  color: var(--evergreen-deep);
  font-weight: 800;
}

.contribute-card-note {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.closing .signature {
  width: min(100%, 24rem);
  margin: 2.25rem 0 0 auto;
  text-align: right;
}

.signature p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
}

.signature img {
  width: clamp(13rem, 30vw, 17rem);
  margin: 0.3rem 0 0 auto;
  transform: rotate(-2deg);
}

.signature .signature-tag {
  margin-top: 0.3rem;
  color: var(--evergreen);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.fine-print {
  display: grid;
  grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.28fr);
  gap: 1.25rem clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 6vw, 4rem) clamp(2rem, 7vw, 6rem);
  color: rgb(255 255 255 / 78%);
  background: var(--evergreen-deep);
  font-size: 1rem;
  line-height: 1.55;
}

.fine-print-heading {
  grid-row: 1 / span 4;
}

.fine-print-label {
  margin: 0 0 0.5rem;
  color: var(--brass-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fine-print h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 500;
  line-height: 1.05;
}

.fine-print p {
  margin: 0;
}

.fine-print strong {
  color: #fff;
}

.fine-print ol {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding-left: 1.25rem;
}

.reporting-note {
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 16%);
}

@media (width <= 760px) {
  .appeal-inner,
  .page-shell {
    width: min(calc(100% - 1.5rem), 76rem);
  }

  .appeal-inner {
    padding-block: 3.75rem 4.5rem;
  }

  .appeal h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .limit {
    align-items: center;
    border-radius: 1rem;
  }

  .letter::before {
    width: 0.35rem;
    height: 6rem;
  }

  .letter-body {
    padding: 2rem 1.35rem 2.75rem;
  }

  .letter-opening::first-letter {
    font-size: 3.6em;
  }

  .contribute-grid,
  .fine-print {
    grid-template-columns: 1fr;
  }

  .fine-print-heading {
    grid-row: auto;
  }

  .fine-print {
    padding: 2rem 1.35rem 2.5rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .section-heading h2::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .appeal {
    color: var(--ink);
    background: #fff;
  }

  .appeal::after {
    display: none;
  }

  .appeal-inner {
    padding-block: 1rem 2rem;
  }

  .appeal-lead {
    color: var(--ink);
  }

  .appeal-lead em,
  .eyebrow {
    color: var(--evergreen);
  }

  .limit {
    color: var(--ink);
    border-color: var(--line);
  }

  .page-shell {
    width: 100%;
    margin: 0;
  }

  .letter {
    border: 0;
    box-shadow: none;
  }

  .giving-card,
  .fine-print {
    break-inside: avoid;
  }
}
