:root {
  --paper: #f3efe5;
  --paper-deep: #e9e1d1;
  --ink: #24342b;
  --muted: #667066;
  --forest: #315a43;
  --forest-dark: #234231;
  --clay: #b9684f;
  --line: rgba(36, 52, 43, 0.18);
  --card: rgba(255, 253, 247, 0.72);
  --shadow: 0 22px 60px rgba(50, 56, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(185, 104, 79, 0.10), transparent 26rem),
    radial-gradient(circle at 88% 82%, rgba(49, 90, 67, 0.11), transparent 28rem),
    var(--paper);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(49, 90, 67, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 90, 67, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.site-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 64px 24px 36px;
}

.hero {
  width: min(100%, 920px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--forest);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

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

h1 {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 22px;
  font-family:
    Iowan Old Style, Baskerville, "Times New Roman", ui-serif, Georgia, serif;
  font-size: clamp(3.4rem, 9vw, 7rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.intro {
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
  text-wrap: balance;
}

.divider {
  width: min(100%, 620px);
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.divider > span:not(.diamond) {
  height: 1px;
  background: var(--line);
}

.diamond {
  width: 8px;
  height: 8px;
  border: 1px solid var(--clay);
  transform: rotate(45deg);
}

.donation-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
  text-align: left;
  background: var(--card);
  border: 1px solid rgba(49, 90, 67, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.donation-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -70px;
  bottom: -90px;
  border-radius: 50%;
  border: 34px solid rgba(185, 104, 79, 0.07);
  pointer-events: none;
}

.kicker {
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 12px;
  font-family:
    Iowan Old Style, Baskerville, "Times New Roman", ui-serif, Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}

.donation-copy > p:not(.kicker):not(.small-note) {
  max-width: 470px;
  margin-bottom: 24px;
  color: var(--muted);
}

.donate-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px 14px;
  color: #fffdf8;
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.donate-button:hover {
  background: var(--forest-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(35, 66, 49, 0.18);
}

.donate-button:focus-visible,
.qr-link:focus-visible {
  outline: 3px solid rgba(185, 104, 79, 0.45);
  outline-offset: 4px;
}

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

.qr-link {
  position: relative;
  z-index: 1;
  display: inline-block;
  border-radius: 22px;
}

.qr-frame {
  display: grid;
  place-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(36, 52, 43, 0.12);
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(36, 52, 43, 0.08);
}

.qr-frame img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
  image-rendering: pixelated;
}

footer {
  margin-top: 32px;
  color: var(--muted);
  font-family:
    Iowan Old Style, Baskerville, "Times New Roman", ui-serif, Georgia, serif;
  font-size: 1rem;
  font-style: italic;
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 680px) {
  .site-shell {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .donation-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
    text-align: center;
  }

  .donation-copy > p:not(.kicker):not(.small-note) {
    margin-inline: auto;
  }

  .qr-link {
    justify-self: center;
  }

  .small-note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .donate-button {
    transition: none;
  }
}
