@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --bg: #f7f3ed;
  --bg-soft: #efe7dc;
  --panel: #ffffff;
  --panel-light: #f8f2e9;
  --text: #2b2a27;
  --muted: #6f6a63;
  --accent: #f2b880;
  --accent-2: #9fd3c7;
  --stroke: rgba(43, 42, 39, 0.12);
  --shadow: 0 24px 60px rgba(77, 64, 50, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #fff8ee, #f3eadf 55%, #efe5d7);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  letter-spacing: -0.02em;
}

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

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.35;
  z-index: 0;
}

.orb-a {
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, #f2b880 0%, transparent 70%);
}

.orb-b {
  bottom: -160px;
  left: -120px;
  background: radial-gradient(circle, #9fd3c7 0%, transparent 70%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 6vw;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f2b880, #f8d9b3);
  color: #2b1b0c;
  font-weight: 700;
}

.brand-text strong {
  display: block;
  font-size: 1.1rem;
}

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

.top-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.top-links a {
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.top-links a:hover {
  background: rgba(255, 255, 255, 0.08);
}

main {
  position: relative;
  z-index: 1;
  padding: 40px 6vw 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  font-size: 0.72rem;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.3rem, 2.5vw + 1rem, 3.4rem);
  margin: 0 0 18px;
}

.sub {
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-card {
  background: linear-gradient(160deg, #ffffff, #f6efe6);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-card-body {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.panel {
  background: var(--panel);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.panel.highlight {
  background: linear-gradient(135deg, rgba(242, 184, 128, 0.18), rgba(159, 211, 199, 0.12));
}

.panel-header h2 {
  margin: 0 0 6px;
}

.panel-header p {
  margin: 0;
  color: var(--muted);
}

.filter-grid {
  margin-top: 18px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.filter-block label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--panel-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag.active {
  background: rgba(242, 184, 128, 0.35);
  border-color: rgba(242, 184, 128, 0.7);
}

.filter-actions {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.btn {
  border: none;
  background: var(--panel-light);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #f2b880, #f8d9b3);
  color: #2b1b0c;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--stroke);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--bg-soft);
  color: var(--text);
}

.card {
  background: var(--panel-light);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
}

.card h4 {
  margin: 0 0 6px;
}

.card .meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(159, 211, 199, 0.4);
  color: #2b5c52;
  font-size: 0.75rem;
}

.taste-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.taste {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(43, 42, 39, 0.06);
  font-size: 0.78rem;
}

.random-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
  margin-top: 18px;
}

.inline-result {
  margin-top: 24px;
}

.random-card {
  background: rgba(255, 255, 255, 0.6);
  padding: 20px;
  border-radius: 16px;
  border: 1px dashed rgba(43, 42, 39, 0.2);
}

.muted {
  color: var(--muted);
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.ad-slot {
  height: 120px;
  border-radius: 24px;
  border: 1px dashed rgba(43, 42, 39, 0.2);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}


.footer {
  text-align: center;
  color: var(--muted);
  padding: 40px 20px 60px;
}


@media (max-width: 800px) {
  .topbar {
    flex-direction: column;
    gap: 16px;
  }

  .top-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  main {
    padding: 24px 5vw 60px;
  }

  .panel {
    padding: 20px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 5vw, 2.4rem);
  }

  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .brand {
    flex-direction: column;
    text-align: center;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .ad-slot {
    height: 90px;
  }
}
