:root {
  --bg-ink: #0f1216;
  --bg-cream: #f4efe5;
  --paper: #fffaf1;
  --ink: #1f2430;
  --accent: #00734f;
  --accent-strong: #00543a;
  --line: #ddd1be;
  --chip: #ede2ce;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% -10%, #ffc069 0%, transparent 34%),
    radial-gradient(circle at 84% 0%, #6bd2ac 0%, transparent 36%),
    linear-gradient(165deg, var(--bg-cream), #ece2cf 45%, #d7c8b0 100%);
}

.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(
      120deg,
      rgba(0, 115, 79, 0.07) 0%,
      rgba(0, 115, 79, 0) 42%,
      rgba(15, 18, 22, 0.05) 100%
    );
}

.hero,
.layout,
.footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 3.25rem 0 1.75rem;
}

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

h1 {
  margin: 0;
  max-width: 16ch;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 6vw, 4.15rem);
  line-height: 0.96;
  color: var(--bg-ink);
}

.lead {
  margin: 1rem 0 0;
  max-width: 55ch;
  font-size: 1.05rem;
  line-height: 1.5;
}

.controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

input,
select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font: inherit;
  background: var(--paper);
  min-width: 220px;
}

input:focus,
select:focus {
  outline: 2px solid rgba(0, 115, 79, 0.2);
  border-color: var(--accent);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding-bottom: 2.6rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(175deg, #fffdf8, #fff6e8);
  box-shadow:
    0 1px 0 rgba(31, 36, 48, 0.06),
    0 16px 24px rgba(31, 36, 48, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(10px);
  animation: card-enter 500ms ease forwards;
}

.card-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.icon {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #d5ccbe;
}

.title {
  margin: 0;
  font-size: 1.07rem;
  font-weight: 700;
}

.subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  color: #4c5668;
}

.description {
  margin: 0;
  line-height: 1.45;
  font-size: 0.94rem;
}

.tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tags li {
  background: var(--chip);
  border: 1px solid #ddcfb6;
  color: #3c3222;
  border-radius: 999px;
  padding: 0.26rem 0.55rem;
  font-size: 0.75rem;
}

.store-link {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  text-decoration: none;
  padding: 0.72rem 0.8rem;
  font-weight: 700;
}

.store-link:hover {
  filter: saturate(1.1);
}

.hidden {
  display: none;
}

.empty {
  margin-top: 1rem;
  font-weight: 500;
}

.footer {
  border-top: 1px solid #d7c8b0;
  padding: 1rem 0 2rem;
  color: #4f5a6b;
}

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

@keyframes card-enter {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 660px) {
  .hero {
    padding-top: 2rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  input,
  select {
    flex: 1 1 100%;
  }
}
