/* Mills Oakley Charity Gala 2027 — donation page.
   Palette taken from the banner: the warm gold of the colonnade, the pale blue of the script,
   on near-black. Kept deliberately plain under the banner so the artwork is the thing you look
   at and the donate button is the thing you find. */
:root {
  --ink: #15171c;
  --paper: #fbfaf7;
  --card: #ffffff;
  --muted: #5c6270;
  --line: #e3e6ec;
  --navy: #10131a;
  --gold: #c9922f;
  --gold-bright: #efd79a;
  --gold-soft: #f3e2c0;
  --sky: #9fd4ea;
  --ok: #1f8a5a;
  --focus: #2563eb;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eceef2;
    --paper: #14161b;
    --muted: #9aa1b1;
    --line: #2b303a;
    --gold-soft: #3a2f1a;
  }
}
:root[data-theme="dark"] {
  --ink: #eceef2; --paper: #14161b; --muted: #9aa1b1; --line: #2b303a; --gold-soft: #3a2f1a;
  --card: #191c22;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 ui-serif, Georgia, "Times New Roman", serif;
  -webkit-text-size-adjust: 100%;
}

/* The hero.
   A letterboxed banner on a flat black slab looked like a mistake — hard edges, dead space, and
   the artwork marooned in the middle of it. The backdrop is now the banner itself, blown up,
   blurred and darkened, so the colour behind the frame is the colour of the frame. Nothing is
   cropped: Mills Oakley's artwork is shown whole, and what surrounds it belongs to it. */
.banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0a0c11;
  padding: clamp(18px, 3.5vw, 44px) clamp(16px, 4vw, 40px) clamp(26px, 4.5vw, 56px);
}

.banner::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: -2;
  background: url("/img/gala-banner.jpg") center / cover no-repeat;
  filter: blur(44px) saturate(118%) brightness(0.42);
  transform: scale(1.12);
}

/* A vignette, so the eye goes to the middle instead of the corners. */
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(130% 90% at 50% 40%, transparent 38%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 22%, rgba(0, 0, 0, 0.35) 100%);
}

.banner img {
  display: block;
  width: min(100%, 980px);
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow:
    0 2px 2px rgba(0, 0, 0, 0.28),
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.10);
}

/* A hairline of the banner's gold where the hero meets the page, so one does not just stop. */
.banner-edge {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-bright) 50%, var(--gold) 80%, transparent);
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

h1 {
  font-size: clamp(1.45rem, 4.4vw, 2.1rem);
  /* The banner sets "MILLS OAKLEY" in wide caps; the page echoes it rather than arguing. */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  margin: clamp(28px, 5vw, 44px) 0 0;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

/* The diamond-and-rule motif from the artwork, reused once so the page feels of a piece. */
.rule {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 14px auto clamp(28px, 5vw, 40px);
  max-width: 320px; color: var(--gold);
}
.rule::before, .rule::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.rule::after { background: linear-gradient(90deg, currentColor, transparent); }
.rule span { font-size: 0.6rem; line-height: 1; }

h2 {
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
  font-weight: 600;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---- thermometer ---------------------------------------------------- */
.progress-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px 22px;
  margin: 0 0 40px;
  text-align: center;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(16, 19, 26, 0.04), 0 12px 32px rgba(16, 19, 26, 0.07);
  overflow: hidden;
}
/* A gold cap on the card, picked from the colonnade in the banner. */
.progress-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
}
.figures { margin-bottom: 12px; }
.raised { margin: 0; font-size: clamp(2rem, 7vw, 2.9rem); font-weight: 700; letter-spacing: -0.01em; }
.raised .of { font-size: 0.95rem; font-weight: 400; color: var(--muted); display: block; margin-top: 4px; }
.donors { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }

.thermometer {
  height: 18px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin: 16px 0;
}
.fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, #e0b457 100%);
  transition: width .6s ease;
}
/* Half a percent of a bar is invisible. The width stays honest; this just makes the first
   donation of the campaign show up to the person who gave it. */
.fill.has-some { min-width: 10px; }

.donate-jump {
  display: inline-block;
  margin-top: 6px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  font-size: 0.95rem;
}

/* ---- the words ------------------------------------------------------ */
.spiel p { margin: 0 0 18px; }
.spiel .closing { font-size: 1.08rem; border-left: 3px solid var(--gold); padding-left: 16px; }

/* ---- donate --------------------------------------------------------- */
.donate-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 30px);
  margin: 40px 0;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(16, 19, 26, 0.04), 0 12px 32px rgba(16, 19, 26, 0.07);
}
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-weight: 600; padding: 0; margin-bottom: 10px; }

.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.preset {
  flex: 1 1 86px;
  padding: 12px 8px;
  font: inherit; font-size: 1rem;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
}
.preset:hover { border-color: var(--gold); }
.preset[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); font-weight: 700; }

.amount-label { display: block; font-size: 0.92rem; color: var(--muted); margin-bottom: 6px; }
.amount-input { display: flex; align-items: center; gap: 6px; }
.amount-input span { font-size: 1.3rem; color: var(--muted); }
input[type="number"], input[type="text"] {
  background: var(--paper);
  flex: 1; width: 100%;
  font: inherit; font-size: 1.1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
input:focus-visible, .preset:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}

.radio { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.radio input { width: 20px; height: 20px; accent-color: var(--gold); }
#name-row { margin-top: 12px; }
#name-row label { display: block; font-size: 0.92rem; color: var(--muted); margin-bottom: 6px; }

.help { font-size: 0.86rem; color: var(--muted); margin: 8px 0 0; }
.sub-legend { font-weight: 600; margin: 22px 0 10px; }
.recognition > label[for="donorName"] {
  display: block; font-size: 0.92rem; color: var(--muted); margin-bottom: 6px;
}

.give {
  width: 100%;
  padding: 16px;
  font: inherit; font-size: 1.1rem; font-weight: 700;
  color: #fff;
  background: var(--navy);
  border: 0; border-radius: 10px;
  cursor: pointer;
}
.give:hover { background: #000; }
.secure { font-size: 0.86rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

.error {
  margin: 0 0 16px; padding: 12px 14px;
  border-radius: 10px; border: 1.5px solid #e4b4b4; background: #fdf1f1; color: #8a1f1f;
  font-size: 0.95rem;
}

/* ---- supporters ----------------------------------------------------- */
.supporters ul { list-style: none; padding: 0; margin: 0; }
.supporters li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.supporters li span:last-child { color: var(--muted); white-space: nowrap; }
.supporters li .anon { font-style: italic; color: var(--muted); }

.about { margin-top: 40px; }

footer {
  border-top: 1px solid var(--line);
  padding: 24px 16px 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
footer p { margin: 4px 0; }
footer a { color: inherit; }

/* ---- thank you ------------------------------------------------------ */
.thanks { text-align: center; padding: 48px 0; }
.thanks .tick {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ok); color: #fff;
  display: grid; place-items: center; margin: 0 auto 20px;
  font-size: 1.8rem;
}
