:root {
  color-scheme: light;
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  line-height: 1.55;
  --ink: #0b1c2c;
  --muted: #506071;
  --accent: #1a6b7b;
  --accent-strong: #12515c;
  --cream: #f5f2ec;
  --paper: #ffffff;
  --soft: #f0f4f7;
  --line: #d9e1e7;
  --shadow: 0 24px 60px rgba(11, 28, 44, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 15% -10%, #e5f1f4 0%, transparent 55%),
    radial-gradient(900px 500px at 90% 0%, #f4eadc 0%, transparent 50%),
    linear-gradient(180deg, #f7f3ee 0%, #f5f2ec 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: -20% auto auto -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(26, 107, 123, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: auto 5% -20% auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(230, 197, 142, 0.25), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

.donate-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent-strong);
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.donate-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(18, 81, 92, 0.18);
}

.container {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 22px;
}

.hero {
  margin: 28px 0 18px;
  animation: fade-up 700ms ease forwards;
  opacity: 0;
  transform: translateY(12px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  color: var(--accent-strong);
  font-weight: 700;
  margin: 0 0 10px;
}

h1 {
  font-family: "Source Serif 4", "Georgia", serif;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.2;
  margin: 0 0 12px;
}

.lede {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 640px;
}

.search-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: fade-up 700ms ease forwards;
  animation-delay: 120ms;
  opacity: 0;
  transform: translateY(12px);
}

.is-hidden {
  display: none;
}

.search-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="search"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input[type="search"]:focus {
  outline: none;
  border-color: rgba(26, 107, 123, 0.6);
  box-shadow: 0 0 0 4px rgba(26, 107, 123, 0.15);
}

.hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  background: var(--soft);
  border: 1px solid transparent;
}

.status:empty {
  display: none;
}

.status.ok {
  color: #0d5d2b;
  background: #e6f6ec;
  border-color: #bfe7cd;
}

.status.bad {
  color: #8c1f2a;
  background: #fbecef;
  border-color: #f1c2c7;
}

.available-cta {
  margin: 18px 0 6px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(26, 107, 123, 0.55);
  background: linear-gradient(135deg, rgb(0, 209, 36, 0.25), rgba(255, 255, 255, 0.92));
  box-shadow: 0 18px 36px rgba(11, 28, 44, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.available-cta.is-hidden {
  display: none;
}

.available-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.available-title {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 700;
}

.available-name {
  font-size: 20px;
  font-weight: 700;
  font-family: "Source Serif 4", "Georgia", serif;
}

.available-suffix {
  color: var(--muted);
  font-weight: 600;
}

.available-sub {
  color: var(--muted);
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid var(--accent);
  color: #fff;
  background: var(--accent);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(26, 107, 123, 0.25);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 26px;
}

.panel {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fbfaf8;
}

.panel h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.panel-note {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.result-item,
.result-link {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: fade-up 460ms ease forwards;
  opacity: 0;
  transform: translateY(6px);
  animation-delay: var(--delay, 0ms);
}

.result-link {
  color: var(--ink);
  transition: border-color 160ms ease, transform 160ms ease;
}

.result-link:hover {
  border-color: rgba(26, 107, 123, 0.5);
  transform: translateY(-1px);
}

.result-name {
  font-weight: 600;
}

.result-action {
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 13px;
}

.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f2f4;
  color: #6a7684;
}

.data-source {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.footer {
  position: relative;
  z-index: 1;
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .available-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}
