:root {
  color-scheme: light;
  --ink: #1d2a22;
  --muted: #66736a;
  --line: #e2e9e1;
  --paper: #fbfcf7;
  --surface: #ffffff;
  --leaf: #3f8f4f;
  --leaf-dark: #2e6f3d;
  --mint: #eff7ee;
  --sun: #f4b84a;
  --clay: #c86f4b;
  --shadow: 0 22px 70px rgba(44, 66, 47, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 233, 225, 0.86);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 62px;
  padding: 12px clamp(18px, 4vw, 64px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.filter-bar,
.chip-row,
.lumina-actions {
  align-items: center;
  display: flex;
}

.brand {
  color: #3d6f45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  gap: 8px;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background: var(--leaf);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  font-family: Inter, sans-serif;
  font-size: 0.78rem;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.nav {
  color: #59665f;
  font-size: 0.9rem;
  font-weight: 700;
  gap: clamp(12px, 2.4vw, 30px);
}

.nav a {
  border-bottom: 2px solid transparent;
  padding: 10px 2px;
}

.nav a.active,
.nav a:hover {
  border-color: var(--leaf);
  color: var(--ink);
}

.app-shell {
  min-height: calc(100vh - 62px);
}

.bubble-stage {
  min-height: calc(100vh - 62px);
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px) clamp(18px, 4vw, 64px) 80px;
  position: relative;
}

.food-orbit {
  height: min(690px, calc(100vh - 145px));
  min-height: 560px;
  position: relative;
}

.food-bubble {
  --size: 108px;
  --delay: 0s;
  --float: 11px;
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(226, 233, 225, 0.95);
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(65, 86, 70, 0.16);
  cursor: pointer;
  display: inline-flex;
  height: var(--size);
  justify-content: center;
  left: var(--x);
  padding: 7px;
  position: absolute;
  top: var(--y);
  transform: scale(1);
  translate: -50% -50%;
  transition: transform 210ms ease, opacity 210ms ease, filter 210ms ease, box-shadow 210ms ease, translate 210ms ease;
  width: var(--size);
  animation: bubble-float 6.8s ease-in-out infinite;
  animation-delay: var(--delay);
}

.food-bubble img {
  border-radius: 50%;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.food-bubble.is-center {
  --size: min(34vw, 245px);
  box-shadow: 0 26px 78px rgba(37, 70, 42, 0.22);
  z-index: 5;
}

.food-bubble.is-focused,
.food-bubble:hover,
.food-bubble:focus-visible {
  animation-play-state: paused;
  box-shadow: 0 30px 82px rgba(37, 70, 42, 0.24);
  filter: saturate(1.12) contrast(1.03);
  transform: scale(1.15);
  z-index: 8;
}

.food-bubble.is-muted {
  filter: saturate(0.48) blur(0.5px);
  opacity: 0.27;
  translate: -50% calc(-50% + 12px);
}

.bubble-label {
  align-items: center;
  bottom: -42px;
  color: var(--ink);
  display: none;
  flex-direction: column;
  font-weight: 800;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.is-center .bubble-label,
.is-focused .bubble-label {
  display: flex;
}

.mini-action {
  background: var(--leaf);
  border-radius: 999px;
  color: white;
  font-size: 0.78rem;
  margin-top: 7px;
  padding: 8px 14px;
}

.detail-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 233, 225, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: grab;
  padding: 20px;
  position: absolute;
  right: clamp(18px, 4vw, 80px);
  top: 128px;
  width: min(300px, calc(100vw - 36px));
  z-index: 12;
  animation: detail-in 240ms ease both;
}

.detail-card.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.detail-card.is-hidden {
  display: none;
}

.detail-card h2 {
  font-size: 1.1rem;
  margin: 0 28px 16px 0;
}

.detail-image {
  aspect-ratio: 1.35;
  border-radius: 8px;
  display: block;
  margin-bottom: 16px;
  object-fit: cover;
  width: 100%;
}

.close-detail {
  position: absolute;
  right: 12px;
  top: 12px;
}

.icon-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}

.benefit-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.benefit-list li {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  gap: 10px;
}

.benefit-list li::before {
  align-items: center;
  background: var(--mint);
  border: 1px solid #d8ead8;
  border-radius: 50%;
  color: var(--leaf);
  content: "+";
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
}

.button.primary {
  background: var(--leaf);
  color: white;
  width: 100%;
}

.button.primary:hover,
.button.ghost:hover,
.filter-button:hover {
  transform: translateY(-1px);
}

.button.ghost {
  background: white;
  border-color: var(--line);
  color: var(--ink);
  margin-bottom: 9px;
  width: 100%;
}

.saved-note {
  color: var(--leaf-dark);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 10px 0 0;
  min-height: 1.1em;
}

.filter-bar {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 12px 34px rgba(65, 86, 70, 0.09);
  gap: 6px;
  left: 50%;
  padding: 7px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 14;
}

.filter-button,
.chip {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  padding: 10px 18px;
  white-space: nowrap;
}

.filter-button.active,
.chip.active {
  background: var(--leaf);
  color: white;
}

.page-shell {
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 76px);
}

.page-heading {
  margin-bottom: 34px;
  max-width: 820px;
}

.eyebrow {
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  line-height: 0.98;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 3.4rem);
  line-height: 1.03;
}

.page-heading p,
.recipe-feature p,
.lumina-panel p,
.catalog-card p {
  color: var(--muted);
  line-height: 1.65;
}

.catalog-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(65, 86, 70, 0.08);
  min-height: 280px;
  padding: 18px;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.catalog-card:hover {
  box-shadow: 0 20px 52px rgba(65, 86, 70, 0.13);
  transform: translateY(-3px);
}

.catalog-card img {
  aspect-ratio: 1;
  border-radius: 8px;
  display: block;
  margin-bottom: 16px;
  object-fit: cover;
  width: 100%;
}

.tag-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--mint);
  border: 1px solid #d8ead8;
  border-radius: 999px;
  color: var(--leaf-dark);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 7px 10px;
}

.supplement-grid .catalog-card {
  min-height: 360px;
}

.recipe-feature {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: clamp(26px, 5vw, 64px);
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  padding: clamp(18px, 4vw, 40px);
}

.recipe-gallery > img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: 100%;
}

.gallery-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
}

.gallery-strip img {
  aspect-ratio: 1;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  width: 100%;
  object-fit: cover;
}

.lumina-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 238, 0.98));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 980px;
  padding: clamp(28px, 6vw, 72px);
}

.lumina-logo {
  display: block;
  height: 82px;
  margin-bottom: 28px;
  width: 82px;
}

.lumina-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.lumina-actions .button {
  width: auto;
}

.empty-state {
  background: white;
  border: 1px dashed #c9d8ca;
  border-radius: 8px;
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 28px;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@keyframes bubble-float {
  0%,
  100% {
    translate: -50% -50%;
  }

  50% {
    translate: -50% calc(-50% - var(--float));
  }
}

@keyframes detail-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1080px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-card {
    right: 18px;
    top: auto;
    bottom: 92px;
  }
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
  }

  .bubble-stage {
    padding-bottom: 180px;
  }

  .food-orbit {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
    min-height: 0;
  }

  .food-bubble,
  .food-bubble.is-center {
    --size: auto;
    aspect-ratio: 1;
    left: auto;
    position: relative;
    top: auto;
    animation: none;
    transform: none;
    translate: none;
    width: 100%;
  }

  .food-bubble:hover,
  .food-bubble:focus-visible,
  .food-bubble.is-focused {
    transform: scale(1.04);
  }

  .food-bubble.is-muted {
    translate: none;
  }

  .bubble-label {
    display: none;
  }

  .detail-card {
    bottom: 92px;
    cursor: auto;
    left: 18px;
    position: fixed;
    right: 18px;
    top: auto;
    width: auto;
  }

  .filter-bar {
    border-radius: 8px;
    bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
    width: calc(100% - 36px);
  }

  .catalog-grid,
  .recipe-feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .food-orbit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  h1 {
    font-size: 2.45rem;
  }
}
