:root {
  color-scheme: dark;
  --ink: #130f13;
  --paper: #fff8ed;
  --muted: #d7c7af;
  --line: rgba(255, 248, 237, 0.18);
  --gold: #f0c36a;
  --coral: #ff8e73;
  --rose: #d75b66;
  --glass: rgba(19, 15, 19, 0.58);
  --glass-strong: rgba(19, 15, 19, 0.78);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  background: var(--ink);
}

button,
input,
select {
  font: inherit;
}

.shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  align-items: end;
  gap: clamp(24px, 4vw, 68px);
  padding: clamp(24px, 5vw, 72px);
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(19, 15, 19, 0.10), rgba(19, 15, 19, 0.72) 54%, rgba(19, 15, 19, 0.94)),
    linear-gradient(0deg, rgba(19, 15, 19, 0.72), rgba(19, 15, 19, 0.05) 42%, rgba(19, 15, 19, 0.36)),
    url("/static/hero-kindness.png") center / cover;
  transform: scale(1.02);
}

.grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.14) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 64%, rgba(255,255,255,0.08) 0 1px, transparent 1px);
  background-size: 26px 26px, 38px 38px;
  mix-blend-mode: screen;
}

.hero__content,
.gift-card,
.quiet-band,
.login-dialog {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 760px;
  padding-bottom: min(6vh, 54px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7.8vw, 118px);
  line-height: 0.88;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 248, 237, 0.82);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.46;
}

.donate-panel {
  width: min(100%, 690px);
  margin-top: 34px;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 248, 237, 0.14), rgba(255, 248, 237, 0.05));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.amount-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.amount-row input {
  position: absolute;
  opacity: 0;
}

.amount-row span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  color: var(--paper);
  background: rgba(19, 15, 19, 0.28);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.amount-row input:checked + span {
  border-color: rgba(240, 195, 106, 0.85);
  background: rgba(240, 195, 106, 0.18);
}

.amount-row label:hover span {
  transform: translateY(-1px);
}

.gift-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.gift-row label,
.login-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 248, 237, 0.66);
  font-size: 13px;
}

select,
input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--paper);
  background: rgba(19, 15, 19, 0.62);
  padding: 0 14px;
  outline: none;
}

select:focus,
input:focus {
  border-color: rgba(240, 195, 106, 0.82);
}

.primary {
  min-height: 50px;
  border: 0;
  color: #241710;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  padding: 0 22px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 15px 36px rgba(255, 142, 115, 0.2);
  transition: transform 160ms ease, filter 160ms ease;
}

.primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.payment-note {
  margin: 12px 2px 0;
  color: rgba(255, 248, 237, 0.55);
  font-size: 12px;
  line-height: 1.4;
}

.gift-card {
  align-self: center;
  max-width: 430px;
  min-height: 360px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(255, 248, 237, 0.22);
  background:
    linear-gradient(160deg, rgba(255, 248, 237, 0.14), rgba(255, 248, 237, 0.045)),
    var(--glass);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px);
}

.gift-card__kicker {
  margin: 0 0 28px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gift-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.gift-card p:last-child {
  margin: 22px 0 0;
  color: rgba(255, 248, 237, 0.78);
  font-size: 18px;
  line-height: 1.55;
  white-space: pre-line;
}

.gift-card.is-lit {
  animation: lift 520ms ease both;
}

@keyframes lift {
  from { transform: translateY(8px); opacity: 0.72; }
  to { transform: translateY(0); opacity: 1; }
}

.login-pin {
  position: fixed;
  z-index: 5;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 248, 237, 0.13);
  border-radius: 999px;
  background: rgba(19, 15, 19, 0.25);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.login-pin span {
  display: block;
  width: 7px;
  height: 7px;
  margin: auto;
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.42);
}

.login-pin:hover {
  border-color: rgba(240, 195, 106, 0.5);
}

.quiet-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 248, 237, 0.1);
}

.quiet-band div {
  min-height: 220px;
  padding: clamp(28px, 4vw, 52px);
  background: #171216;
}

.quiet-band span {
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
}

.quiet-band h2 {
  margin: 22px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.quiet-band p {
  max-width: 340px;
  margin: 0;
  color: rgba(255, 248, 237, 0.68);
  line-height: 1.55;
}

.login-dialog {
  width: min(92vw, 420px);
  border: 1px solid rgba(255, 248, 237, 0.18);
  color: var(--paper);
  background: var(--glass-strong);
  padding: 0;
  backdrop-filter: blur(22px);
}

.login-dialog::backdrop {
  background: rgba(8, 6, 8, 0.72);
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
}

.dialog-close button {
  width: 34px;
  height: 34px;
  border: 0;
  color: rgba(255, 248, 237, 0.72);
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.login-form {
  display: grid;
  gap: 16px;
  padding: 34px;
}

.login-form h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
}

.login-hint {
  margin: 0;
  color: rgba(255, 248, 237, 0.55);
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: center;
    min-height: auto;
    padding-top: 96px;
  }

  .hero__image {
    background:
      linear-gradient(0deg, rgba(19, 15, 19, 0.94), rgba(19, 15, 19, 0.38), rgba(19, 15, 19, 0.78)),
      url("/static/hero-kindness.png") center / cover;
  }

  .gift-card {
    max-width: none;
    min-height: 260px;
  }

  .quiet-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 88px 18px 28px;
  }

  .amount-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-row {
    grid-template-columns: 1fr;
  }

  .primary {
    width: 100%;
  }
}
