:root {
  --rose-900: #6b3a3e;
  --rose-700: #a85a62;
  --rose-500: #c97b82;
  --rose-300: #e8c4c6;
  --rose-100: #f6e8e6;
  --cream: #fbf7f4;
  --paper: #fffdfa;
  --ink: #2c1f21;
  --muted: #7a6568;
  --line: rgba(107, 58, 62, 0.12);
  --display: "Fraunces", "Times New Roman", serif;
  --sans: "Red Hat Text", "Segoe UI", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --pad: clamp(16px, 3.2vw, 40px);
  --max: 1180px;
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background:
    radial-gradient(ellipse 70% 45% at 8% -10%, #f0d4d2 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 110% 110%, #ead3c6 0%, transparent 50%),
    var(--cream);
}

body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 50;
  padding: 8px 14px;
  background: var(--rose-700);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.is-hidden {
  display: none !important;
}

.app {
  position: relative;
  min-height: 100dvh;
}

.shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 12px 24px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
  display: block;
}

.brand-wordmark {
  display: block;
  height: 22px;
  width: auto;
  max-width: min(230px, 54vw);
  object-fit: contain;
}

.search-bar {
  min-width: 0;
  width: 100%;
}

.search-bar input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--paper);
  font: 500 15px/1 var(--sans);
  color: var(--ink);
  outline: none;
}

.search-bar input:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 3px var(--rose-100);
}

.main {
  padding: 16px 0 40px;
}

.hero {
  position: relative;
  margin-bottom: 18px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--rose-100);
}

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 70% 50%;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 18px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(44, 31, 33, 0.42) 100%);
}

.hero-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f6e8e6;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--display);
  font-size: clamp(1.45rem, 5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fffdfa;
}

.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 16px;
  margin: 0 -2px 4px;
  scrollbar-width: none;
}

.cats::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font: 600 13px/1 var(--sans);
  white-space: nowrap;
  cursor: pointer;
}

.chip.is-active {
  background: var(--rose-700);
  border-color: var(--rose-700);
  color: var(--paper);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 4px 0 14px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
}

.section-head span {
  color: var(--muted);
  font-size: 0.85rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}

.grid > .empty {
  grid-column: 1 / -1;
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1.08;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--rose-100);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.card:active .card-media img {
  transform: scale(1.04);
}

.store {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.92);
  color: var(--rose-900);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-body {
  padding: 10px 2px 0;
}

.card-cat {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-700);
  font-weight: 600;
}

.card-title {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
}

.card-desc {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
}

.card-price.is-free {
  color: var(--rose-700);
}

.empty {
  margin: 28px 8px;
  text-align: center;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--rose-100) 62%, var(--cream));
  padding: 36px 0 calc(28px + var(--safe-b));
}

.footer-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
}

.footer-logo {
  display: block;
  width: min(96px, 34vw);
  height: auto;
  object-fit: contain;
}

.footer-info {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.footer-about {
  max-width: 52ch;
  width: 100%;
}

.footer-about h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-about p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-about strong {
  color: var(--rose-900);
  font-weight: 600;
}

.footer-faq {
  margin-top: 4px;
  display: grid;
  gap: 0;
  text-align: left;
  max-width: 52ch;
  width: 100%;
}

.footer-faq h2 {
  margin: 10px 0 6px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-faq details {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}

.footer-faq summary {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.footer-faq summary::-webkit-details-marker {
  display: none;
}

.footer-faq details p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.footer-meta {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-700);
  font-weight: 600;
}

button,
a {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--rose-500);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 18px;
  }
}

@media (min-width: 768px) {
  .topbar-inner {
    grid-template-columns: auto minmax(220px, 420px);
    justify-content: space-between;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    padding-bottom: 14px;
  }

  .hero {
    margin-bottom: 24px;
    border-radius: 28px;
  }

  .hero-banner {
    aspect-ratio: 21 / 9;
    object-position: 65% 48%;
  }

  .hero-overlay {
    padding: 56px 40px 32px;
  }

  .cats {
    padding-bottom: 18px;
  }

  .card-title {
    font-size: 1.05rem;
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    text-align: left;
    gap: 28px;
  }

  .footer-info {
    justify-items: start;
  }

  .footer-logo {
    width: 110px;
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 22px;
  }

  .hero-overlay {
    padding: 64px 52px 36px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .brand-wordmark {
    height: 26px;
    max-width: 280px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .card-media img {
    transform: scale(1.045);
  }

  .card:hover .card-title {
    color: var(--rose-700);
  }

  .chip:hover:not(.is-active) {
    border-color: var(--rose-500);
    color: var(--rose-900);
  }
}
