@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #020617;
  --muted: #475569;
  --line: #cbd5e1;
  --line-strong: #0f172a;
  --blue: #0369a1;
  --blue-strong: #075985;
  --yellow: #facc15;
  --green: #16a34a;
  --ring: rgba(3, 105, 161, 0.22);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 8%, rgba(250, 204, 21, 0.18), transparent 22rem),
    radial-gradient(circle at 78% 18%, rgba(3, 105, 161, 0.12), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(980px, calc(100vw - 32px));
  min-height: 56px;
  margin: 18px auto 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  background: var(--yellow);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  fill: var(--ink);
}

.nav-pill {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-home {
  display: grid;
  width: min(980px, calc(100vw - 32px));
  min-height: calc(100vh - 154px);
  margin: 0 auto;
  place-items: start center;
  padding: clamp(48px, 10vh, 118px) 0 44px;
}

.search-stage {
  display: grid;
  width: min(780px, 100%);
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.lede {
  max-width: 620px;
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.45;
}

.search-form {
  width: 100%;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box svg {
  position: absolute;
  top: 50%;
  left: 22px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  fill: none;
  stroke: #334155;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  min-height: 68px;
  padding: 16px 24px 16px 62px;
  border: 2px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-box input::placeholder {
  color: #64748b;
  opacity: 1;
}

.search-box input:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 6px var(--ring), var(--shadow);
}

.quick-picks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.quick-picks button {
  min-height: 42px;
  padding: 9px 16px;
  border: 2px solid #0f172a;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.quick-picks button:hover,
.quick-picks button:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.results {
  display: grid;
  width: 100%;
  gap: 10px;
  min-height: 76px;
  margin-top: 2px;
}

.result {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  gap: 14px;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.result:hover,
.result:focus-visible {
  border-color: var(--blue);
  background: #f0f9ff;
  box-shadow: 0 18px 42px rgba(3, 105, 161, 0.14);
}

.result-art {
  width: 42px;
  height: 52px;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.75), transparent 40%),
    linear-gradient(180deg, #38bdf8, #2563eb);
}

.result-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.result-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-tag {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border: 1px dashed #94a3b8;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.search-note {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.site-footer {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

:focus-visible {
  outline: 4px solid rgba(3, 105, 161, 0.28);
  outline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f172a;
    --panel: #ffffff;
    --ink: #f8fafc;
    --muted: #cbd5e1;
    --line: #94a3b8;
    --line-strong: #f8fafc;
    --blue: #0ea5e9;
    --blue-strong: #7dd3fc;
    --ring: rgba(14, 165, 233, 0.28);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  }

  body {
    background:
      radial-gradient(circle at 20% 8%, rgba(250, 204, 21, 0.12), transparent 22rem),
      radial-gradient(circle at 78% 18%, rgba(14, 165, 233, 0.18), transparent 26rem),
      linear-gradient(180deg, #020617 0%, #0f172a 100%);
  }

  .brand,
  h1 {
    color: #f8fafc;
  }

  .nav-pill {
    border-color: #334155;
    background: #111827;
    color: #e2e8f0;
  }

  .search-box svg {
    stroke: #475569;
  }

  .search-box input {
    border-color: #e2e8f0;
    background: #ffffff;
    color: #020617;
  }

  .search-box input::placeholder {
    color: #64748b;
  }

  .quick-picks button {
    border-color: #ffffff;
    background: #ffffff;
    color: #020617;
  }

  .quick-picks button:hover,
  .quick-picks button:focus-visible {
    border-color: var(--blue);
    background: var(--blue);
    color: #020617;
  }

  .result {
    border-color: #e2e8f0;
    background: #ffffff;
    color: #020617;
  }

  .result:hover,
  .result:focus-visible {
    border-color: var(--blue);
    background: #f0f9ff;
  }

  .result-copy strong {
    color: #020617;
  }

  .result-copy span {
    color: #334155;
  }

  .result-tag {
    background: #075985;
    color: #ffffff;
  }

  .empty-state {
    border-color: #64748b;
    background: rgba(15, 23, 42, 0.78);
    color: #e2e8f0;
  }
}

@media (max-width: 640px) {
  .site-nav,
  .search-home,
  .site-footer {
    width: min(100% - 24px, 980px);
  }

  .site-nav {
    margin-top: 12px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .nav-pill {
    padding: 7px 10px;
    font-size: 12px;
  }

  .search-home {
    min-height: calc(100vh - 146px);
    padding-top: clamp(34px, 8vh, 72px);
  }

  .search-stage {
    gap: 15px;
  }

  .lede {
    margin-bottom: 6px;
  }

  .search-box input {
    min-height: 60px;
    padding-left: 54px;
  }

  .search-box svg {
    left: 19px;
    width: 22px;
    height: 22px;
  }

  .quick-picks {
    gap: 8px;
  }

  .quick-picks button {
    min-height: 39px;
    padding: 8px 13px;
    font-size: 14px;
  }

  .result {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 11px;
    border-radius: 18px;
  }

  .result-art {
    width: 38px;
    height: 48px;
  }

  .result-tag {
    grid-column: 2;
    justify-self: start;
  }
}

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