:root {
  --bg: #fafaf7;
  --fg: #1a1a1a;
  --muted: #8a8a85;
  --line: #e6e5e0;
  --accent: #1a1a1a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--fg);
  text-decoration: none;
}

a:hover { opacity: 0.6; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 2.5rem;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-header nav {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
}

.site-header nav a.active { color: var(--fg); }
.site-header nav a:not(.active) { color: var(--muted); }
.site-header nav a:hover { color: var(--fg); opacity: 1; }

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
}

.hero {
  margin-bottom: 5rem;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 3rem 2rem;
}

.sections {
  display: flex;
  gap: 2.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.section-tab {
  font-size: 0.95rem;
  padding: 0 0 1rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.section-tab:hover { color: var(--fg); opacity: 1; }
.section-tab.active { color: var(--fg); border-bottom-color: var(--fg); }

.filters {
  margin-bottom: 3rem;
}

.filter-chips {
  display: flex;
  gap: 2.5rem;
  padding-top: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  padding: 0 0 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.chip:hover { color: var(--fg); }
.chip.active { color: var(--fg); border-bottom-color: var(--fg); }

.chip-count {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.product-card .ings {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
  letter-spacing: 0.01em;
}

.empty-grid {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 3rem 0;
}

.ingredient-list {
  margin: 0 0 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ingredient-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.ingredient-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.ingredient-list li::before { content: "·"; margin-right: 0.5rem; color: var(--muted); }
.ingredient-list li:first-child::before { content: ""; margin: 0; }

.product-card {
  display: block;
}

.product-card .thumb {
  aspect-ratio: 4 / 5;
  background: #ecebe4;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(0, 0, 0, 0.18);
  transition: opacity 0.2s ease;
  overflow: hidden;
}

.product-card .thumb.has-image { background: #fff; }
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
}

.product-card:hover .thumb { opacity: 0.85; }

.product-card .name {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
  font-weight: 500;
}

.product-card .price {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 720px) {
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .site-header { padding: 1.25rem 1.5rem; }
  main { padding: 3rem 1.5rem; }
}

.product-detail .thumb {
  aspect-ratio: 1 / 1;
  background: #ecebe4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  color: rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.product-detail .thumb.has-image { background: #fff; }
.product-detail .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2rem;
}

.product-detail h1 {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.product-detail .price {
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 1rem;
}

.product-detail .description {
  color: #4a4a47;
  margin: 0 0 2.5rem;
  max-width: 42ch;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fafaf7;
  border: none;
  padding: 0.95rem 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s ease;
}

.btn:hover { opacity: 0.85; }

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

.buy-missing {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ── Values ──────────────────────────────────────────────────────── */

.principles {
  max-width: 720px;
  margin: 0 auto;
}

.principle {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.principle:last-child { border-bottom: 1px solid var(--line); }

.principle-num {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  padding-top: 0.4rem;
}

.principle-body h2 {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.principle-body p {
  font-size: 1rem;
  line-height: 1.65;
  color: #4a4a47;
  margin: 0;
  max-width: 56ch;
}

@media (max-width: 560px) {
  .principle { grid-template-columns: 1fr; gap: 0.5rem; padding: 2rem 0; }
  .principle-num { padding-top: 0; }
}

/* ── People ──────────────────────────────────────────────────────── */

.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 3rem 2.5rem;
}

.person-card {
  display: flex;
  flex-direction: column;
}

.person-avatar {
  aspect-ratio: 1 / 1;
  background: #ecebe4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 1rem;
  overflow: hidden;
}

.person-avatar.has-image { background: #fff; padding: 0; }
.person-avatar img { width: 100%; height: 100%; object-fit: cover; }

.person-name {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 0.2rem;
}

.person-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.person-bio {
  font-size: 0.9rem;
  color: #4a4a47;
  margin: 0;
  line-height: 1.5;
}

/* ── Blog ────────────────────────────────────────────────────────── */

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3rem 2.5rem;
}

.post-card {
  display: block;
  color: var(--fg);
}

.post-card:hover { opacity: 1; }
.post-card:hover .post-cover img { opacity: 0.85; }
.post-card:hover .post-more { color: var(--fg); }

.post-cover {
  aspect-ratio: 3 / 2;
  background: #ecebe4;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.post-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.post-title {
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  line-height: 1.2;
}

.post-excerpt {
  color: #4a4a47;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.post-more {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.post {
  max-width: 640px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2.5rem;
}

.post-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.post-lead {
  font-size: 1.15rem;
  color: #4a4a47;
  margin: 0;
  line-height: 1.5;
}

.post-hero {
  aspect-ratio: 3 / 2;
  background: #ecebe4;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2a2a28;
}

.post-body p { margin: 0 0 1.4rem; }
.post-body em { font-style: italic; color: var(--fg); }

.post-related {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.post-related-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.related-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  color: var(--fg);
}

.related-card:hover { opacity: 1; }
.related-card:hover .name { text-decoration: underline; text-underline-offset: 4px; }
.related-card:hover .arrow { transform: translateX(4px); }

.related-card .thumb {
  aspect-ratio: 1 / 1;
  width: 96px;
  background: #ecebe4;
  overflow: hidden;
}

.related-card .thumb.has-image { background: #fff; }
.related-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

.related-card .name {
  font-weight: 500;
  font-size: 1rem;
  margin: 0 0 0.3rem;
  letter-spacing: -0.005em;
}

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

.related-card .arrow {
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4rem;
}

.site-footer p { margin: 0; }

/* ── Mobile ──────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
  }
  .site-header nav {
    width: 100%;
    gap: 1.5rem;
    font-size: 0.9rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sections, .filter-chips { gap: 1.5rem; }
  .section-tab, .chip { font-size: 0.9rem; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { white-space: nowrap; }

  main { padding: 2.5rem 1.25rem; }

  .hero { margin-bottom: 3rem; }
  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.5rem); }
  .hero p { font-size: 0.95rem; }

  .sections { gap: 1.25rem; margin-bottom: 2rem; }
  .filters { margin-bottom: 2rem; }

  .products { gap: 2.5rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  .product-detail h1 { font-size: 1.6rem; }
  .product-detail .price { margin-bottom: 1.5rem; }
  .product-detail .description { margin-bottom: 2rem; }
  .product-detail .thumb { font-size: 5rem; }

  .posts { grid-template-columns: 1fr; gap: 2.5rem; }
  .post-title { font-size: 1.25rem; }

  .people {
    gap: 2.5rem 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .person-name { font-size: 1rem; }

  .post { padding: 0; }
  .post-header { margin-bottom: 1.75rem; }
  .post-lead { font-size: 1rem; }
  .post-body { font-size: 1rem; }
  .post-hero { margin-bottom: 1.75rem; }

  .related-card {
    grid-template-columns: 64px 1fr auto;
    gap: 1rem;
  }
  .related-card .thumb { width: 64px; }
  .related-card .name { font-size: 0.95rem; }

  .site-footer {
    padding: 1.5rem 1.25rem;
    margin-top: 3rem;
    flex-direction: column;
    gap: 0.25rem;
  }

  .btn { padding: 0.85rem 1.5rem; }
}
