:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --surface: rgba(255, 253, 247, 0.94);
  --surface-strong: #f1e4d0;
  --text: #1f1a14;
  --muted: #685f52;
  --accent: #0f766e;
  --danger: #963737;
  --border: #dbcab1;
  --shadow: rgba(52, 40, 22, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.16), transparent 30%),
    radial-gradient(circle at bottom left, rgba(202, 138, 4, 0.1), transparent 28%),
    linear-gradient(180deg, #fcf8f1 0%, var(--bg) 100%);
}

.site-header {
  padding: 24px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent);
  color: #f7fffd;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-title,
.brand-subtitle,
.description,
.eyebrow {
  margin: 0;
}

.brand-subtitle,
.description,
.helper-text,
.status-text {
  color: var(--muted);
}

.page-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 8px 24px 56px;
}

.donation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.hero-card,
.result-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 80px var(--shadow);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--accent);
}

h1 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.96;
}

.description {
  font-size: 1.04rem;
  line-height: 1.7;
  max-width: 58ch;
}

.donation-card {
  display: grid;
  gap: 16px;
}

.field-group {
  display: grid;
  gap: 10px;
}

.field-label {
  font-size: 0.95rem;
  font-weight: 700;
}

.amount-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: #fffdf9;
}

.amount-prefix {
  padding: 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.amount-input input {
  width: 100%;
  border: 0;
  padding: 18px 20px 18px 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.5rem;
}

.amount-input input:focus {
  outline: none;
}

.amount-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.helper-text,
.status-text {
  font-size: 0.94rem;
}

.error-banner {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(150, 55, 55, 0.1);
  color: var(--danger);
}

.paypal-button-stack {
  min-height: 44px;
}

.result-card {
  width: min(100%, 720px);
}

.result-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface-strong);
}

.return-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 840px) {
  .donation-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .page-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-card,
  .result-card {
    padding: 24px;
  }

  .result-row {
    flex-direction: column;
  }
}
