:root {
  --cream: #fdf5ec; /* matches the logo background */
  --paper: #ffffff;
  --ink: #3b2a1e;
  --ink-soft: #6b5646;
  --line: #e8dccb;
  --harvest: #b85c24;
  --harvest-dark: #964a1c;
  --sage: #5f7350;
  --sage-soft: #e7ecdf;
  --danger: #a3302a;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(59, 42, 30, 0.08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

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

a { color: var(--harvest-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 7vw, 3rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
h3 { font-size: 1.25rem; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }

/* ---------- header / nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

.hero-logo { width: min(220px, 60vw); height: auto; margin: -12px auto 0; }
@media (min-width: 680px) { .hero-logo { width: 300px; } }
h1:has(.hero-logo) { margin: 0; }

/* photo + text side by side on wider screens */
.split { display: grid; gap: 20px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; }
@media (min-width: 680px) {
  .split { grid-template-columns: 2fr 3fr; gap: 32px; }
  .split-reverse { grid-template-columns: 3fr 2fr; }
  .split-reverse > :first-child { order: 2; }
}
.feature-photo { margin: 0; }
.feature-photo figcaption { margin-top: 8px; font-style: italic; color: var(--ink-soft); font-size: 0.95rem; text-align: center; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 24px; }
.gallery img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a[aria-current="page"] { background: var(--sage-soft); color: var(--sage); }

/* ---------- hero ---------- */
.hero {
  padding: 28px 0 20px;
  text-align: center;
}
@media (min-width: 680px) { .hero { padding: 48px 0 32px; } }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36rem; margin: 0 auto 1.5rem; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--harvest);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font: 700 1.05rem var(--sans);
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
}
.btn:hover { background: var(--harvest-dark); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- cards / sections ---------- */
section { padding: 24px 0; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.event-card { text-align: center; }
.event-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  text-align: left;
}
.event-facts div { background: var(--cream); border-radius: 10px; padding: 12px 14px; }
.event-facts dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 700; }
.event-facts dd { margin: 2px 0 0; font-weight: 600; }

/* ---------- countdown ---------- */
.countdown { margin: 12px auto 0; }
.countdown-label { font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.countdown-units {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.countdown-unit {
  background: var(--ink);
  color: var(--cream);
  border-radius: 12px;
  padding: 10px 6px 8px;
  min-width: 68px;
  text-align: center;
}
.countdown-unit .num {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-unit .lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.countdown.urgent .countdown-unit { background: var(--harvest); }
.countdown-closed { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--danger); }

.organic-badge {
  display: inline-block;
  background: var(--sage-soft);
  color: var(--sage);
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 16px;
}
.organic-badge::before { content: "🌿 "; }

/* ---------- menu ---------- */
.menu { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .menu { grid-template-columns: 1fr 1fr; } }

.item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.item-photo {
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: linear-gradient(135deg, #f0dcc0, #e3c39b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 3rem;
  color: rgba(59, 42, 30, 0.35);
}
.item-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.item-price { font-weight: 700; white-space: nowrap; color: var(--harvest-dark); }
.item-price small { font-weight: 400; color: var(--ink-soft); }
.item-desc { color: var(--ink-soft); margin: 0; flex: 1; }

.qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.qty button {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty output {
  min-width: 2ch;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.item.selected { border-color: var(--sage); box-shadow: 0 0 0 2px var(--sage-soft), var(--shadow); }

/* ---------- single order card: menu rows + details + review ---------- */
.order-card { padding: 20px 16px; }
@media (min-width: 680px) { .order-card { padding: 28px; } }

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  margin: 24px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.order-card > .step:first-of-type { border-top: none; padding-top: 0; margin-top: 4px; }
.step-num {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--harvest);
  color: #fff;
  font: 700 0.95rem var(--sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-list { display: grid; gap: 10px; }
.menu-list .item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  box-shadow: none;
  background: var(--cream);
  border: 1.5px solid transparent;
  overflow: visible;
}
@media (min-width: 680px) { .menu-list .item { grid-template-columns: 140px 1fr; } }
.menu-list .item-photo {
  aspect-ratio: 1;
  border-radius: 10px;
  font-size: 2rem;
  align-self: start;
}
.menu-list .item-body { padding: 0; gap: 2px; }
.menu-list .item-head { flex-direction: column; gap: 0; }
.menu-list .item-head h3 { font-size: 1.1rem; margin: 0; }
.menu-list .item-desc { font-size: 0.92rem; line-height: 1.4; }
.menu-list .qty { margin-top: 8px; }
.menu-list .qty button { width: 44px; height: 44px; background: var(--paper); }
.menu-list .item.selected { border-color: var(--sage); background: var(--sage-soft); box-shadow: none; }

/* ---------- form ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: 0.9rem; margin-top: 4px; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--cream);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  cursor: pointer;
  font-weight: 600;
}
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--sage); flex: none; }
.check .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.summary { margin: 0 0 16px; padding: 0; list-style: none; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.summary .total { font-weight: 700; font-size: 1.15rem; border-bottom: none; padding-top: 10px; }
.summary-empty { color: var(--ink-soft); }

.alert {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: #fbe9e7;
  color: var(--danger);
  font-weight: 600;
}
.note { color: var(--ink-soft); font-size: 0.95rem; }

/* sticky mobile total bar */
.cart-bar {
  position: sticky;
  bottom: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -2px 10px rgba(59, 42, 30, 0.08);
  z-index: 5;
}
.cart-bar[hidden] { display: none; }
.cart-bar strong { font-size: 1.1rem; }
.cart-bar .btn { padding: 10px 20px; min-height: 44px; }

/* ---------- about ---------- */
.prose { max-width: 40rem; }
.prose p { margin: 0 0 1rem; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

.closed .order-only { display: none !important; }
.open .closed-only { display: none !important; }
