:root {
  color-scheme: dark;
  --ink: #f8f1e8;
  --muted: #b8aea4;
  --surface: #211d19;
  --surface-2: #2b2520;
  --line: rgba(255, 255, 255, 0.13);
  --orange: #ff6030;
  --yellow: #e4dc1f;
  --green: #9fcf58;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #15120f; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(circle at 72% 12%, rgba(228, 220, 31, 0.2), transparent 21rem),
    radial-gradient(circle at 14% 80%, rgba(255, 96, 48, 0.14), transparent 24rem),
    linear-gradient(135deg, #211914 0%, #151513 54%, #101714 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

a { color: inherit; }

.sandbox-banner {
  position: relative;
  z-index: 2;
  padding: 9px 16px;
  color: #17130d;
  background: var(--yellow);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { text-decoration: none; font: 700 22px/1 "Playfair Display", serif; letter-spacing: -0.04em; }
.brand span { color: var(--orange); }
.brand strong { color: var(--green); }
.back-link { color: var(--muted); font-size: 14px; text-underline-offset: 5px; }
.back-link:hover { color: var(--ink); }

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 58px;
  display: grid;
  grid-template-columns: 1fr minmax(380px, 500px);
  gap: clamp(48px, 8vw, 118px);
  align-items: center;
}

.intro { max-width: 630px; }
.eyebrow { margin: 0 0 16px; color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; }

h1, h2 { margin: 0; font-family: "Playfair Display", serif; }
h1 { font-size: clamp(48px, 6vw, 82px); line-height: 0.98; letter-spacing: -0.045em; }
h1 em { color: var(--yellow); font-style: normal; }
.lede { max-width: 570px; margin: 28px 0 0; color: var(--muted); font-size: clamp(17px, 1.8vw, 21px); line-height: 1.65; }

.trust-list { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px 22px; color: #ddd3c8; font-size: 14px; }
.trust-list b { display: inline-grid; width: 21px; height: 21px; margin-right: 7px; place-items: center; color: #10140d; background: var(--green); border-radius: 50%; font-size: 12px; }

.donation-card {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(160deg, rgba(46, 40, 34, 0.98), rgba(29, 26, 23, 0.98));
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.donation-card::before { content: ""; position: absolute; top: -1px; left: 34px; width: 86px; height: 3px; background: var(--orange); }
.donation-card h2 { margin-bottom: 28px; font-size: 32px; line-height: 1.15; }

.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px; }
.preset-grid button {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
  font: 600 15px/1 "DM Sans", sans-serif;
  cursor: pointer;
}
.preset-grid button:hover, .preset-grid button:focus-visible { border-color: rgba(255, 96, 48, 0.7); }
.preset-grid button.selected { border-color: var(--orange); background: var(--orange); color: white; }

label { display: block; margin-bottom: 8px; color: #ddd3c8; font-size: 13px; font-weight: 600; }
.amount-field { display: flex; align-items: center; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); }
.amount-field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 96, 48, 0.12); }
.amount-field span { padding-left: 18px; color: var(--muted); font-size: 18px; }
.amount-field input { width: 100%; border: 0; outline: 0; padding: 16px 18px 16px 10px; color: var(--ink); background: transparent; font: 600 25px/1 "DM Sans", sans-serif; }
.hint, .error { margin: 8px 0 0; font-size: 12px; }
.hint { color: #948a81; }
.error { color: #ff9c80; }

.primary-button, .secondary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 25px;
  padding: 18px 20px;
  border: 0;
  border-radius: 2px;
  color: white;
  background: var(--orange);
  font: 700 13px/1 "DM Sans", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.primary-button:hover, .primary-button:focus-visible { background: #ff7147; }
.primary-button:disabled { cursor: wait; opacity: 0.65; }
.secondary-button { justify-content: center; background: transparent; border: 1px solid var(--line); }

.provider-note { margin-top: 22px; display: flex; align-items: center; gap: 12px; color: #9e958c; font-size: 11px; line-height: 1.5; }
.provider-note p { margin: 0; }
.provider-note strong { color: #d8cfc6; font-size: 12px; }
.provider-symbol { flex: 0 0 auto; width: 30px; height: 30px; border: 6px solid #f1d91f; border-right-color: #a8cbd2; border-radius: 50%; }

.return-panel { text-align: center; padding: 12px 0; }
.return-panel .eyebrow { margin-top: 20px; }
.return-panel h2 { margin-bottom: 16px; }
.return-panel > p:not(.eyebrow):not(.reference) { color: var(--muted); line-height: 1.6; }
.status-mark { width: 70px; height: 70px; margin: 0 auto; display: grid; place-items: center; border: 1px solid var(--green); border-radius: 50%; color: var(--green); font-size: 28px; }
.reference { margin: 20px 0 0; color: #8f867e; font: 500 11px/1.5 monospace; word-break: break-all; }

footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 36px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #80776f; font-size: 11px; }
footer p { margin: 0; }

@media (max-width: 860px) {
  main { grid-template-columns: 1fr; padding-top: 48px; }
  .intro { text-align: center; margin: 0 auto; }
  .trust-list { justify-content: center; }
  .donation-card { width: min(100%, 540px); margin: 0 auto; }
}

@media (max-width: 520px) {
  .sandbox-banner { font-size: 9px; }
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { padding: 22px 0; }
  main { padding: 42px 0; gap: 38px; }
  h1 { font-size: 45px; }
  .donation-card { padding: 26px 20px; }
  .preset-grid { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; text-align: center; }
}

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