:root {
  color-scheme: light;
  --background: #f7f5ef;
  --text: #1d211f;
  --muted: #555d58;
  --accent: #456448;
  --accent-dark: #34513a;
  --line: #ced2c6;
  --focus: #254f31;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--background);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem);
}

.memorial {
  width: min(70rem, 100%);
}

.introduction {
  max-width: 70rem;
  margin: 0 auto clamp(3rem, 7vw, 5rem);
  text-align: center;
}

h1 {
  max-width: 70rem;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-wrap: balance;
}

.memorial-rule {
  display: grid;
  grid-template-columns: minmax(3rem, 12rem) 0.75rem minmax(3rem, 12rem);
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: clamp(1.75rem, 4vw, 2.75rem) auto;
  color: var(--accent);
}

.memorial-rule::before,
.memorial-rule::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.memorial-rule span {
  width: 0.55rem;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.introduction p {
  max-width: 41rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  text-wrap: balance;
}

.donation-links {
  border-top: 1px solid var(--line);
}

.donation-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 27rem);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.donation-copy {
  display: grid;
  gap: 0.6rem;
}

.donation-name {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.donation-description {
  max-width: 31rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.5;
}

.donation-action {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 0.6rem;
  background: var(--accent);
  color: #fff;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.donation-action svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.donation-link:hover .donation-action {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.donation-link:focus-visible {
  border-radius: 0.25rem;
  outline: 3px solid var(--focus);
  outline-offset: 0.5rem;
}

@media (max-width: 46rem) {
  .page-shell {
    padding-block: 3.5rem;
  }

  .introduction {
    margin-bottom: 3rem;
  }

  .donation-link {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .donation-action {
    min-height: 4.5rem;
  }
}

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