:root {
  color-scheme: light;
  --ink: #101a2d;
  --muted: #52637e;
  --blue: #2258e7;
  --blue-hover: #1748c9;
  --red: #bd243d;
  --line: #dce3ee;
  --page: #f6f8fc;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100svh; margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 3px solid #4077ff; outline-offset: 4px; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(24px, calc((100% - 1312px) / 2));
  position: relative;
}

.site-header { min-height: 80px; gap: 12px; border-bottom: 1px solid var(--line); }
.header-start { display: flex; align-items: center; gap: 24px; }
.header-brand { display: flex; align-items: center; gap: 8px; }
.header-brand img { display: block; border-radius: 50%; }
.brand-name { color: #000; font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 750; line-height: 1; letter-spacing: -.06em; text-decoration: none; }
.results-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  padding: 14px 24px;
}
.results-header .header-brand { grid-column: 2; }
.results-header .brand-name { font-size: clamp(2.25rem, 4.5vw, 2.75rem); }
.results-header .donate-button { grid-column: 3; justify-self: end; }
.startup-donation-link { color: var(--blue-hover); font-size: .9rem; font-weight: 650; line-height: 1.25; text-decoration: none; }
.startup-donation-link:hover { text-decoration: underline; }
.site-footer { min-height: 64px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; gap: 12px; }
.site-footer a, .back-link { text-decoration: none; }
.site-footer a:hover, .back-link:hover { text-decoration: underline; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  color: white;
  text-align: center;
  text-decoration: none;
  font-weight: 650;
  min-height: 46px;
  padding: .65rem 1.25rem;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.donate-button { background: var(--red); }
.donate-button:hover { background: #a31c33; }
.search-button { background: var(--blue); }
.search-button:hover { background: var(--blue-hover); }
.button:disabled { opacity: .68; cursor: default; }
.back-link { color: var(--blue-hover); font-size: .9rem; font-weight: 650; }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vh, 38px) 24px clamp(48px, 8vh, 100px);
  background:
    radial-gradient(ellipse at 50% 36%, #dfeaff 0%, transparent 48%),
    linear-gradient(180deg, #f3f7ff 0%, var(--page) 74%);
}
.globe-stage {
  display: block;
  width: min(100%, 340px, 46vh);
  aspect-ratio: 1;
  position: relative;
  top: -8px;
  isolation: isolate;
  border-radius: 50%;
  margin-bottom: clamp(26px, 4vh, 38px);
}
.globe-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 16%;
  right: 16%;
  top: 14%;
  bottom: 8%;
  border-radius: 50%;
  background: #6a98f4;
  filter: blur(44px);
  opacity: .25;
}
#globe { display: block; width: 100%; height: auto; border-radius: 50%; }
.hero-copy { width: min(100%, 690px); text-align: center; }
.hero .search-field, .hero .search-button { border-radius: 999px; }
.donation-intro h1 { font-weight: 770; letter-spacing: -.085em; line-height: 1.04; }
.donation-intro h1 span { color: var(--blue); }

.search-form { display: flex; align-items: stretch; gap: 10px; }
.search-form .search-button { min-width: 112px; }
.search-field {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  padding-inline: 17px 13px;
  gap: 14px;
  background: #e9edf3;
  border: 1px solid #d6dfeb;
  border-radius: 13px;
}
.search-field:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.search-icon { display: inline-block; position: relative; flex: none; width: 16px; height: 16px; border: 2px solid #596c89; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; top: 11px; left: 11px; width: 7px; height: 2px; background: #596c89; transform: rotate(45deg); transform-origin: center left; border-radius: 2px; }
.search-field input { width: 100%; flex: 1; min-width: 0; min-height: 56px; color: var(--ink); background: transparent; border: 0; outline: none; }
.search-field input::placeholder { color: #52637e; }

.results-page { flex: 1; width: min(calc(100% - 48px), 830px); margin: 0 auto; padding: 44px 0 64px; }
.search-status { margin: 28px 0 9px; color: var(--muted); font-size: .94rem; overflow-wrap: anywhere; }
.results-list { padding: 0; margin: 0; list-style: none; }
.results-list li { padding: 19px 0 20px; border-bottom: 1px solid var(--line); }
.result-source { color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.results-list h2 { margin: 4px 0 5px; font-size: 1.23rem; font-weight: 700; overflow-wrap: anywhere; }
.results-list h2 a { color: var(--blue-hover); text-decoration: none; }
.results-list h2 a:hover { text-decoration: underline; }
.result-snippet { line-height: 1.55; color: #33445d; overflow-wrap: anywhere; }
.pagination, .page-numbers { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pagination { align-items: center; gap: 10px; margin-top: 28px; }
.pagination a { display: grid; place-items: center; min-width: 40px; min-height: 42px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--blue-hover); background: white; font-weight: 600; text-decoration: none; }
.pagination a:hover { border-color: var(--blue); }
.pagination a[aria-current="page"] { background: var(--blue-hover); border-color: var(--blue-hover); color: white; }

.donation-page {
  width: min(calc(100% - 48px), 1010px);
  margin: 0 auto;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-content: center;
  align-items: center;
  gap: clamp(24px, 6vw, 92px);
  padding-block: 64px;
}
.donation-total { grid-column: 1 / -1; text-align: center; }
#donation-total-label { font-size: 1rem; font-weight: 650; color: var(--muted); }
#donation-total-value {
  margin-top: 6px;
  color: var(--blue-hover);
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 770;
  letter-spacing: -.065em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.donation-intro h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.donation-intro p { color: var(--muted); max-width: 33ch; margin-top: 21px; line-height: 1.6; }
.donation-motif { display: block; margin-bottom: 21px; border-radius: 50%; }
.donation-card { background: white; padding: clamp(22px, 4vw, 35px); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 48px #17346a0c; }
.donation-card fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.donation-card legend { padding: 0; font-size: 1.25rem; letter-spacing: -.025em; font-weight: 730; }
.donation-meta { color: var(--muted); margin: 6px 0 18px; font-size: .9rem; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.amounts label { position: relative; cursor: pointer; }
.amounts span { display: grid; place-items: center; min-height: 54px; border: 1px solid var(--line); border-radius: 10px; font-weight: 650; }
.amounts label:hover span { border-color: #7794d1; }
.amounts input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.amounts input:checked + span { background: #edf2ff; color: var(--blue-hover); border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.amounts input:focus-visible + span { outline: 3px solid #4077ff; outline-offset: 3px; }
.paypal-button { width: 100%; margin-top: 18px; min-height: 52px; }
.payment-brands { display: flex; justify-content: center; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.payment-brands li { padding: 4px; border: 1px solid var(--line); border-radius: 6px; }
.payment-brands img { display: block; object-fit: contain; }
.payment-note { margin-top: 8px; color: var(--muted); font-size: .875rem; line-height: 1.45; text-align: center; }
.payment-status { color: #8e2034; font-size: .9rem; margin-top: 8px; text-align: center; }
.payment-status:empty { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 700px) {
  .site-header { min-height: 68px; }
  .donation-page { grid-template-columns: 1fr; max-width: 470px; padding-block: 36px; }
  .donation-intro br { display: none; }
  .donation-intro p { margin-top: 12px; }
  .donation-motif { margin-bottom: 12px; }
}

@media (max-width: 440px) {
  .results-header { padding: 12px 16px; gap: 8px; grid-template-columns: 1fr; }
  .results-header .header-brand { grid-column: 1; justify-self: center; }
  .results-header .donate-button { grid-column: 1; }
  .site-header, .site-footer { padding-inline: 16px; }
  .header-start { align-items: flex-start; flex-direction: column; gap: 3px; }
  .hero { padding-inline: 16px; }
  .results-page, .donation-page { width: calc(100% - 32px); }
  .search-form .search-button { min-width: 0; padding-inline: .85rem; }
  .search-field { padding-inline: 12px 8px; gap: 11px; }
  .site-footer { font-size: .8rem; }
}

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