:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --surface-soft: #f5efe6;
  --text: #1f1a17;
  --text-soft: #6b6259;
  --accent: #c8553d;
  --accent-soft: #f2d6cf;
  --border: rgba(31, 26, 23, 0.08);
  --shadow-sm: 0 1px 2px rgba(31, 26, 23, 0.04), 0 2px 8px rgba(31, 26, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(31, 26, 23, 0.08), 0 2px 8px rgba(31, 26, 23, 0.04);
  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15110f;
    --surface: #1f1a17;
    --surface-soft: #2a2320;
    --text: #f4ede4;
    --text-soft: #b3a89d;
    --accent: #e88a76;
    --accent-soft: #3a2520;
    --border: rgba(244, 237, 228, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 10%, #f3e3c8 0%, transparent 60%);
  opacity: 0.7;
}

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 32px 48px;
  text-align: center;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  margin: 0 0 16px;
  font-weight: 500;
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.accent {
  color: var(--accent);
  font-style: italic;
}

.lede {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px 80px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.5s ease backwards;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-soft);
  overflow: hidden;
}

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

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

.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.card-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.card-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.price {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.price:empty {
  display: none;
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.15s ease;
}

.link:hover {
  opacity: 0.7;
}

.link[hidden] {
  display: none;
}

.empty {
  text-align: center;
  color: var(--text-soft);
  padding: 60px 20px;
}

.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px 60px;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 64px 20px 32px;
  }
  main {
    padding: 0 20px 60px;
  }
  .grid {
    gap: 16px;
  }
}

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