:root {
  --ink: #1c1612;
  --paper: #f3eee6;
  --card: #fffdf9;
  --line: #e4d9cb;
  --signal: #c5342b;
  --signal-dark: #8e241e;
  --muted: #6e6258;
  --open: #1d6b43;
  --shadow: 0 18px 40px rgba(48, 28, 14, 0.12);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --header-offset: 7.6rem;
  color-scheme: light;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.5;
}

img { max-width: 100%; }

a { color: inherit; }

h1, h2, h3, .brand-name, .footer-name {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin: 0.2rem 0 0.6rem; }

h2 { font-size: 1.7rem; margin: 0 0 0.35rem; }

p { margin: 0.4rem 0; }

button, input, select, textarea { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: white;
  padding: 0.5rem 0.8rem;
  z-index: 50;
}

.skip:focus { top: 0.5rem; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ink);
  color: #f7f2ea;
}

.utility, .site-header, .order-hero, .location-strip, .order-layout, .prose, .contact-layout, .checkout, .kitchen {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.utility {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  align-items: center;
  padding: 0.55rem 0 0.2rem;
  font-size: 0.92rem;
}

.utility p { margin: 0; }

.utility .is-open { color: #b7e2c7; }

.utility .is-closed { color: #f3c1b4; }

.utility-nav { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-left: auto; }

.utility-nav a { text-underline-offset: 0.18em; }

.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark { display: flex; gap: 0.28rem; }

.brand-mark span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #f7f2ea;
}

.brand-mark span:nth-child(2) { background: var(--signal); }

.brand-name { display: block; font-size: 1.35rem; }

.brand-sub {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d9cfc3;
}

.main-nav { display: flex; gap: 1rem; }

.main-nav a { text-decoration: none; }

.main-nav a[aria-current="page"],
.utility-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.2em; }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  border: 1px solid #f7f2ea;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}

#cart-count {
  background: var(--signal);
  color: white;
  border-radius: 999px;
  min-width: 1.4rem;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.05rem 0.35rem;
}

.order-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  padding: 2.2rem 0 1rem;
}

.eyebrow, .updated {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--signal-dark);
}

.lede { font-size: 1.15rem; max-width: 42rem; }

.fulfillment { display: flex; background: white; border-radius: 999px; padding: 0.25rem; border: 1px solid var(--line); }

.fulfillment button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.fulfillment button[aria-pressed="true"] { background: var(--ink); color: white; }

.location-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  padding: 0.8rem 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.location-strip p { margin: 0; }

.order-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1.4rem;
  padding: 1.2rem 0 4rem;
}

.menu-side { position: sticky; top: var(--header-offset); align-self: start; }

.search { display: grid; gap: 0.35rem; font-size: 0.92rem; }

#category-nav { display: grid; gap: 0.2rem; margin-top: 1rem; }

#category-nav a {
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

#category-nav a[aria-current="true"] { border-color: var(--signal); }

.menu-section { scroll-margin-top: var(--header-offset); margin-bottom: 2rem; }

.menu-section header p { color: var(--muted); }

.item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

.item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.85rem;
}

.item-mark {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--serif);
  background: var(--ink);
}

.item[data-category="breakfast"] .item-mark { background: #c4843a; }
.item[data-category="mains"] .item-mark { background: #8e241e; }
.item[data-category="sides"] .item-mark { background: #3e4b38; }
.item[data-category="coffee"] .item-mark { background: #4a3428; }
.item[data-category="cold"] .item-mark { background: #2f6f62; }
.item[data-category="bar"] .item-mark { background: #24324a; }
.item[data-category="bottomless"] .item-mark { background: #c5342b; }

.item-copy h3 { margin: 0; font-size: 1.25rem; }

.item-copy p { color: var(--muted); margin: 0.2rem 0; }

.flags { display: flex; gap: 0.35rem; }

.flags span, .flag {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
}

.item-buy { text-align: right; }

.price { font-weight: 700; margin: 0 0 0.4rem; }

.btn, button.btn, a.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  background: var(--signal);
  color: white;
  border-radius: 999px;
  padding: 0.7rem 1.05rem;
  font-weight: 700;
}

.btn:hover, button.btn:hover { background: var(--signal-dark); }

.icon-btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.drawer[hidden], .modal[hidden] { display: none; }

.drawer, .modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.drawer-backdrop { position: absolute; inset: 0; background: rgba(28, 22, 18, 0.46); }

.drawer-panel, .modal-panel {
  position: absolute;
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  max-height: 100%;
}

.drawer-panel { top: 0; right: 0; width: min(420px, 100%); height: 100%; }

.modal-panel {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100% - 1.5rem));
  border-radius: 20px;
  padding-bottom: 1rem;
}

.drawer-head, .drawer-foot, #item-form, .drawer-lines { padding: 1rem 1.1rem; }

.drawer-head { display: flex; justify-content: space-between; align-items: center; }

.drawer-lines { overflow: auto; flex: 1; }

.cart-row, .summary-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.qty-controls { display: flex; gap: 0.35rem; align-items: center; }

.qty-controls button, .text-btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  min-width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.text-btn { padding: 0 0.7rem; }

.drawer-total, .summary-line p { margin: 0; }

.drawer-total { display: flex; justify-content: space-between; font-size: 1.2rem; }

.drawer-foot .btn { width: 100%; margin-top: 0.6rem; }

.fine, .optional { color: var(--muted); font-size: 0.92rem; }

.prose { padding: 2.2rem 0 4rem; max-width: 760px; }

.prose table { width: 100%; border-collapse: collapse; }

.prose th, .prose td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }

.faq details { border-top: 1px solid var(--line); padding: 0.7rem 0; }

.faq summary { cursor: pointer; font-weight: 700; }

.identity {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}

.identity dl, .contact-facts, .invoice-meta { margin: 0; }

.identity dl div, .contact-facts div, .invoice-meta div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.identity dt, .contact-facts dt, .invoice-meta dt { color: var(--muted); }

.contact-layout, .checkout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  padding: 2rem 0 4rem;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem 1.1rem 1.2rem;
}

.email-callout {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.email-callout a { color: var(--signal-dark); }

label { display: block; margin: 0.8rem 0 0.3rem; font-weight: 600; }

input, select, textarea {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
}

.card-field {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 0 0.75rem;
}

.card-field.is-invalid { border-color: var(--signal); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

fieldset { border: 1px solid var(--line); border-radius: 14px; margin: 0.8rem 0; }

.choice { font-weight: 500; }

.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; }

.check input { width: auto; margin-top: 0.25rem; }

.field-error { color: var(--signal-dark); min-height: 0; margin: 0.2rem 0 0; }

.field-error:empty { display: none; }

.banner, .form-status, .noscript {
  background: #fff4e8;
  border: 1px solid #efd3b4;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}

.checkout-pay { display: grid; gap: 0.8rem; position: sticky; top: var(--header-offset); }

#paypal-button-container { min-height: 3rem; margin-bottom: 0.6rem; }

.site-footer {
  background: var(--ink);
  color: #f7f2ea;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.2rem;
  padding: 2rem max(1rem, calc((100% - 1120px) / 2)) 1.2rem;
}

.site-footer h2 { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }

.footer-name { font-size: 1.8rem; margin: 0 0 0.4rem; }

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(247, 242, 234, 0.2);
  padding-top: 1rem;
  font-size: 1.05rem;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.empty { padding: 1rem; background: white; border-radius: 12px; }

.kitchen { padding: 1.5rem 0 3rem; }

.kitchen-list { display: grid; gap: 0.7rem; }

.ticket {
  background: white;
  border-left: 6px solid var(--ink);
  border-radius: 12px;
  padding: 0.8rem 1rem;
}

.ticket header { display: flex; justify-content: space-between; gap: 1rem; }

.status-completed { border-color: var(--open); }
.status-failed { border-color: var(--signal); }
.status-pending, .status-created { border-color: #c4843a; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

@media (max-width: 860px) {
  .order-layout, .contact-layout, .checkout, .site-footer { grid-template-columns: minmax(0, 1fr); }
  .order-layout, .menu-side, .menu, .item-grid, .item, .item-copy, .contact-layout, .checkout, .prose { min-width: 0; }
  #category-nav { max-width: 100%; }
  .item-grid, .split, .identity dl div, .contact-facts div, .invoice-meta div { grid-template-columns: minmax(0, 1fr); }
  .email-callout { overflow-wrap: anywhere; }
  .order-hero, .site-header { flex-wrap: wrap; }
  .menu-side {
    position: sticky;
    top: 6.5rem;
    background: var(--paper);
    z-index: 15;
    padding-bottom: 0.4rem;
  }
  #category-nav { display: flex; gap: 0.8rem; overflow-x: auto; }
  .checkout-pay { position: static; }
  .utility-nav { margin-left: 0; }
  .item { grid-template-columns: auto 1fr; }
  .item-buy { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .topbar, .site-footer, .btn { display: none; }
  body { background: white; }
}
