:root {
  color-scheme: light;
  --ink: #1e1a1d;
  --muted: #5f5a60;
  --accent: #f28b8b;
  --accent-2: #5fb6a7;
  --accent-3: #f3b46b;
  --surface: #fffdfb;
  --surface-2: #f6f1f2;
  --border: rgba(30, 26, 29, 0.12);
  --shadow: 0 24px 60px rgba(33, 28, 32, 0.08);
  --radius: 24px;
}

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

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  min-height: 100vh;
}

.food-page .container {
  width: min(1680px, 94vw);
}

.food-page .section-plain {
  max-width: none;
}

.kombucha-page .container {
  width: min(1280px, 94vw);
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, #fbe3c9 0%, #f8d2c3 40%, #f3c1c6 70%, #f1c9dd 100%);
  border-bottom: 1px solid rgba(30, 26, 29, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.site-main {
  position: relative;
  padding: 48px 0 96px;
  background: #fff;
}

.hero {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.7s ease both;
}

.hero-title {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(2rem, 1.6vw + 1.4rem, 2.8rem);
  margin: 0 0 12px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 20px;
}

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

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-image {
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 12px;
  box-shadow: var(--shadow);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(242, 139, 139, 0.2), rgba(95, 182, 167, 0.15));
}

.section {
  margin-top: 72px;
}

.section-title {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.45rem;
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 28px;
  text-align: center;
}

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

.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(33, 28, 32, 0.06);
  min-height: 180px;
  animation: fadeUp 0.7s ease both;
}

.card-grid .card:nth-child(1) {
  animation-delay: 0.05s;
}

.card-grid .card:nth-child(2) {
  animation-delay: 0.12s;
}

.card-grid .card:nth-child(3) {
  animation-delay: 0.19s;
}

.card-grid .card:nth-child(4) {
  animation-delay: 0.26s;
}

.card-title {
  font-weight: 600;
  margin-bottom: 10px;
}

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

.accent-link {
  color: var(--accent-2);
  font-weight: 600;
}

.two-column {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.section-plain {
  max-width: 780px;
  margin: 56px auto 0;
}

.projects-section {
  max-width: 1100px;
}

.charts-wrapper {
  max-width: 1100px;
}

.books-log.section-plain {
  max-width: 1100px;
}

.food-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.food-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(33, 28, 32, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.food-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.food-title {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.1rem;
  margin: 0;
}

.food-card .project-images picture {
  flex: 0 0 100%;
}

.food-card .project-images img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
}

.food-card .project-images.is-static {
  justify-content: flex-start;
}

.flavor-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.flavor-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(33, 28, 32, 0.06);
  text-align: center;
}

.flavor-card img {
  border-radius: 16px;
  margin-bottom: 12px;
}

.flavor-title {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.1rem;
  margin: 0;
}

.flavor-review {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 10px 0 0;
}

.photo-gallery .project-images {
  gap: 0;
}

.photo-gallery .project-images img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
  border-radius: 20px;
}

.split {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.list li {
  margin-bottom: 10px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.project {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 28px 0;
  border-bottom: 1px solid rgba(30, 26, 29, 0.08);
}

.project:first-child {
  padding-top: 0;
}

.project:last-child {
  border-bottom: none;
}

.project-title {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.project-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.project-images {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.project-images picture {
  flex: 0 0 100%;
}

.project-images.is-static {
  overflow-x: hidden;
  justify-content: center;
}

.project-images img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  scroll-snap-align: start;
  border-radius: 16px;
  box-shadow: 0 12px 22px rgba(33, 28, 32, 0.08);
}

.projects-section .project-images {
  gap: 12px;
}

.projects-section .project-images picture {
  flex: 0 0 auto;
}

.projects-section .project-images img {
  width: 220px;
  height: 220px;
  object-fit: cover;
}

.project-gallery {
  position: relative;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 6px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(30, 26, 29, 0.25);
  border: none;
  cursor: pointer;
}

.gallery-dot.is-active {
  background: var(--accent);
}

.book-section {
  margin-top: 40px;
}

.year-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: center;
  overflow-x: auto;
  padding: 8px 0 16px;
  margin: 8px 0 12px;
  -webkit-overflow-scrolling: touch;
}

.year-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(30, 26, 29, 0.12);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.year-nav button:hover {
  border-color: rgba(30, 26, 29, 0.2);
}

.year-nav button.is-active {
  background: #000;
  border-color: #000;
  box-shadow: none;
  color: #fff !important;
}

.book-year {
  display: none;
}

.book-year.is-active {
  display: block;
}

.book-section details {
  border-bottom: 1px solid rgba(30, 26, 29, 0.08);
  padding: 16px 0;
}

.book-section summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.book-section summary::-webkit-details-marker {
  display: none;
}

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

.book-columns ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.charts {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

.chart-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(30, 26, 29, 0.08);
  border-radius: 18px;
  padding: 0;
  width: 100%;
}

.chart-title {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.25rem;
  margin: 0;
  padding: 18px 24px;
  text-align: left;
  cursor: pointer;
  list-style: none;
}

.chart {
  min-height: 380px;
  padding: 0 24px 24px;
}

.chart-card summary::-webkit-details-marker {
  display: none;
}

.chart-card summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-size: 1rem;
}

.chart-card[open] summary::after {
  content: "–";
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(30, 26, 29, 0.92);
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 8px;
  border-radius: 8px;
  transform: translate(-50%, -120%);
  white-space: nowrap;
  z-index: 10;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
  background: transparent;
  color: var(--ink);
}

.button.secondary {
  border-color: transparent;
  color: var(--muted);
}

.site-footer {
  background: transparent;
  border-top: 1px solid rgba(30, 26, 29, 0.08);
  padding: 24px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
  justify-content: center;
}

.footer-easter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.easter-links {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.easter-links[hidden] {
  display: none !important;
}

.easter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 0.85rem;
}

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

@media (max-width: 720px) {
  .site-nav {
    gap: 12px;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }

  .hero-card {
    padding: 24px;
  }

  .food-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .food-card .project-images img {
    width: 100%;
    height: auto;
  }

  .photo-gallery .project-images img {
    max-height: 60vh;
  }
}

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

  .flavor-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }
}

@media (max-width: 900px) {
  .food-grid {
    grid-template-columns: repeat(1, minmax(220px, 1fr));
  }

  .flavor-grid {
    grid-template-columns: repeat(1, minmax(200px, 1fr));
  }
}
