:root {
  color-scheme: light;
  --ink: #253c31;
  --paper: #f5f1e8;
  --cream: #fffdf8;
  --tomato: #bc4f38;
  --sage: #dce3d7;
  --muted: #59675e;
  --line: #d5dbd3;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

button,
input,
textarea { font: inherit; }

button,
a,
input,
textarea { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #c88236;
  outline-offset: 3px;
}

.site-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(22px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.brand,
.footer-brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
}

.header-link {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  text-decoration-color: var(--tomato);
  text-underline-offset: 5px;
}

main { padding-bottom: 72px; }

.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 56px clamp(22px, 6vw, 88px) 42px;
  background: var(--cream);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  font-weight: 500;
  line-height: 1.03;
}

.intro-copy {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.preview-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #d1d9ce;
  background: #f1f4ef;
  color: #46564b;
  font-size: .79rem;
  white-space: nowrap;
}

.drop-meta {
  display: grid;
  flex: 0 0 auto;
  justify-items: start;
  gap: 8px;
  max-width: 310px;
}

.drop-pickup {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

.preview-note-small {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .72rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b97736;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  align-items: start;
  gap: clamp(26px, 4vw, 56px);
  padding: 42px clamp(22px, 6vw, 88px) 0;
}

.menu-panel { min-width: 0; }

.section-head {
  display: block;
  margin-bottom: 26px;
}

.section-head h2,
.summary-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
}

.availability-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--tomato);
  background: #f3e7d8;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.45;
}

.order-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  background: #e5e9e3;
}

.mode-button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}

.mode-button.is-active {
  background: var(--cream);
  box-shadow: 0 1px 4px #253c3118;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  border-bottom: 1px solid var(--line);
}

.category-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 15px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .87rem;
  font-weight: 600;
  cursor: pointer;
}

.category-tab.is-active { color: var(--ink); }

.category-tab.is-active::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  background: var(--tomato);
  content: "";
}

.menu-items { display: grid; }

.menu-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 142px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.item-photo {
  width: 104px;
  height: 104px;
  overflow: hidden;
  background: var(--sage);
}

.item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-photo.no-photo {
  display: grid;
  align-content: end;
  padding: 10px;
  background: linear-gradient(145deg, #e8e3d4, #dce3d7);
  color: #526156;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.3;
}

.item-copy { min-width: 0; }

.item-copy h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}

.item-copy p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
}

.stock-label {
  color: #58685d;
  font-size: .74rem;
  font-weight: 600;
}

.stock-label.is-low { color: #98442f; }
.stock-label.is-sold-out { color: #963c2c; font-weight: 700; }

.item-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.item-price {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-control button {
  width: 38px;
  height: 38px;
  border: 1px solid #bbc4bb;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}

.quantity-control button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.quantity-control output {
  min-width: 22px;
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
}

.order-summary {
  position: sticky;
  top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--cream);
}

.summary-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.summary-head h2 { font-size: 1.6rem; }

.item-count {
  color: var(--muted);
  font-size: .78rem;
  white-space: nowrap;
}

.cart-list {
  display: grid;
  gap: 10px;
  min-height: 76px;
  max-height: 230px;
  overflow: auto;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink);
  font-size: .84rem;
}

.cart-row span:last-child {
  color: var(--muted);
  white-space: nowrap;
}

.cart-empty {
  align-self: center;
  color: var(--muted);
  font-size: .84rem;
}

.pickup-context {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0 0;
  color: var(--ink);
  font-size: .9rem;
}

.cart-total span { color: var(--muted); }

.pickup-fields {
  display: grid;
  gap: 8px;
  padding-top: 17px;
}

.pickup-fields label {
  margin-top: 5px;
  font-size: .79rem;
  font-weight: 700;
}

.pickup-fields label span {
  color: var(--muted);
  font-weight: 400;
}

.pickup-fields input,
.pickup-fields textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 11px;
  border: 1px solid #bbc4bb;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font-size: .85rem;
}

.pickup-fields textarea {
  min-height: 76px;
  resize: vertical;
}

.submit-button {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  border: 1px solid var(--tomato);
  border-radius: 2px;
  background: var(--tomato);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}

.submit-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.submit-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.45;
}

.preview-footnote {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .76rem;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(22px, 6vw, 88px);
  background: var(--ink);
  color: #fff;
}

.footer-brand { color: #fff; font-size: 1.1rem; }
footer p { margin: 0; color: #d4ded5; font-size: .8rem; }

@media (max-width: 900px) {
  .intro { align-items: flex-start; flex-direction: column; gap: 18px; }
  .order-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 330px); gap: 22px; }
  .menu-item { grid-template-columns: 82px minmax(0, 1fr); gap: 14px; }
  .item-photo { width: 82px; height: 82px; }
  .quantity-control { grid-column: 2; justify-self: start; }
}

@media (max-width: 680px) {
  .site-header { min-height: 64px; padding: 12px 18px; }
  .brand { font-size: 1.15rem; }
  .header-link { font-size: .8rem; }
  .intro { padding: 38px 18px 28px; }
  h1 { font-size: 2.65rem; }
  .drop-meta { max-width: none; }
  .preview-note { white-space: normal; }
  .order-layout { grid-template-columns: 1fr; gap: 30px; padding: 24px 18px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-head h2 { font-size: 1.8rem; }
  .category-tabs { gap: 0; }
  .category-tab { padding-right: 12px; padding-left: 12px; font-size: .81rem; }
  .menu-item { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 11px; min-height: 110px; padding: 14px 0; }
  .item-photo { width: 72px; height: 72px; }
  .item-copy h3 { font-size: 1.05rem; }
  .item-copy p { font-size: .78rem; }
  .quantity-control { grid-column: auto; gap: 5px; }
  .quantity-control button { width: 34px; height: 38px; }
  .order-summary { position: static; padding: 18px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 390px) {
  .menu-item { grid-template-columns: 60px minmax(0, 1fr); }
  .item-photo { width: 60px; height: 60px; }
  .quantity-control { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}