:root {
  --teal: #1B3238;
  --teal-dark: #122327;
  --cream: #F5EFE1;
  --cream-alt: #EDE4CF;
  --gold: #C9973F;
  --gold-text: #7A5620;
  --terracotta: #B5482F;
  --ink: #201C16;
  --ink-muted: #5C5548;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; }

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

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }

/* Accessibility: visible focus for keyboard users everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 100;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Header */
.site-header {
  background: var(--teal);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { border-radius: 8px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0; color: var(--cream); }
.brand-tag { font-size: 13px; margin: 2px 0 0; color: #C9C2B0; }

.cart-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  flex: none;
}
.cart-button:hover { background: #D9A94F; }
.cart-count {
  background: var(--teal);
  color: var(--cream);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0 6px;
}
.cart-button-label { display: none; }
@media (min-width: 480px) {
  .cart-button-label { display: inline; }
}

.announcement-banner {
  background: var(--terracotta);
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 12px 18px;
  font-size: 15px;
}
.announcement-banner[hidden] { display: none; }

.ordering-closed-notice {
  max-width: 560px;
  margin: 60px auto;
  padding: 0 24px;
  text-align: center;
}
.ordering-closed-notice h1 { font-size: 24px; margin-bottom: 12px; }
.ordering-closed-notice p { color: var(--ink-muted); margin-bottom: 20px; font-size: 16px; }
.ordering-closed-notice[hidden] { display: none; }

/* Category nav */
.category-nav {
  background: var(--cream-alt);
  border-bottom: 1px solid #DCD1B4;
  position: sticky;
  top: 68px;
  z-index: 19;
}
.category-nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  padding: 10px 18px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.category-link {
  flex: none;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid #C9BC97;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.category-link:hover { background: #E2D7B8; }

/* Main */
main { max-width: 900px; margin: 0 auto; padding: 24px 18px 60px; }
.menu-status { text-align: center; color: var(--ink-muted); padding: 40px 0; }

.menu-category { margin-bottom: 36px; }
.menu-category h2 {
  font-size: 26px;
  margin-bottom: 4px;
  scroll-margin-top: 130px;
}
.menu-list { list-style: none; margin: 16px 0 0; padding: 0; }
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #DCD1B4;
}
.menu-item-info { flex: 1; min-width: 0; }
.menu-item-name { font-family: var(--serif); font-size: 18px; font-weight: 600; margin: 0; }
.menu-item-tag { font-size: 13px; color: var(--ink-muted); margin: 4px 0 0; }
.menu-item-right { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.menu-item-price { font-family: var(--sans); font-weight: 700; color: var(--gold-text); font-size: 16px; }
.add-button {
  background: var(--teal);
  color: var(--cream);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--sans);
}
.add-button:hover { background: var(--teal-dark); }

/* Footer */
.site-footer {
  background: var(--teal);
  color: #C9C2B0;
  text-align: center;
  padding: 30px 18px 40px;
  font-size: 14px;
}
.site-footer p { margin: 4px 0; }

/* Dialogs (cart, item picker, checkout, confirmation) */
dialog.sheet {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  color: var(--ink);
  font-family: var(--sans);
}
dialog.sheet::backdrop { background: rgba(18,35,39,0.55); }
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #E4DAC0;
}
.sheet-head h2 { font-size: 20px; }
.icon-button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink-muted);
  padding: 6px;
  line-height: 1;
}
.sheet-body { padding: 18px 20px; overflow-y: auto; max-height: 55vh; }
.sheet-foot { padding: 16px 20px 20px; border-top: 1px solid #E4DAC0; display: flex; flex-direction: column; gap: 12px; }

.primary-button {
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  font-family: var(--sans);
}
.primary-button:hover:not(:disabled) { background: #D9A94F; }
.primary-button:disabled { background: #E4DAC0; color: #9A917D; cursor: not-allowed; }

/* Item dialog: modifiers / required choices */
.mod-group { margin-bottom: 18px; }
.mod-group-title { font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.mod-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #EDE4CF;
}
.mod-row label { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.mod-row input { width: 18px; height: 18px; cursor: pointer; }

.qty-stepper { display: flex; align-items: center; justify-content: center; gap: 20px; }
.qty-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ink-muted);
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink);
}
.qty-btn:hover { background: var(--cream-alt); }
#item-qty-value { font-size: 18px; font-weight: 700; min-width: 24px; text-align: center; }

/* Cart */
.cart-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EDE4CF; }
.cart-line-info { flex: 1; }
.cart-line-name { font-weight: 600; }
.cart-line-mods { font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.cart-line-controls { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.cart-line-controls button { border: 1px solid var(--ink-muted); background: none; border-radius: 6px; width: 28px; height: 28px; cursor: pointer; }
.cart-line-price { font-weight: 700; color: var(--gold-text); white-space: nowrap; }
.cart-empty { text-align: center; color: var(--ink-muted); padding: 30px 0; }
.cart-totals { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.cart-totals-row { display: flex; justify-content: space-between; }
.cart-totals-row.total { font-weight: 700; font-size: 18px; padding-top: 8px; border-top: 1px solid #E4DAC0; margin-top: 4px; }

/* Checkout form */
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="time"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #C9BC97;
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--sans);
}
.field-hint { font-size: 13px; color: var(--ink-muted); margin: 6px 0 0; }
.radio-row { display: flex; align-items: center; gap: 10px; font-weight: 400; margin-bottom: 10px; cursor: pointer; font-size: 15px; }
.radio-row input { width: 18px; height: 18px; cursor: pointer; }
.scheduled-time-input { margin-top: 4px; margin-left: 28px; width: calc(100% - 28px); }
.scheduled-time-input:disabled { opacity: 0.5; }
.checkout-summary { background: var(--cream-alt); border-radius: 8px; padding: 14px; font-size: 14px; }
.checkout-error { color: var(--terracotta); font-weight: 600; min-height: 1.2em; }

@media (max-width: 480px) {
  dialog.sheet { max-width: 100%; }
}

/* Landing page */
.landing-main { max-width: 700px; margin: 0 auto; padding: 40px 20px 60px; }
.landing-hero { text-align: center; margin-bottom: 44px; }
.landing-hero h1 { font-size: 32px; margin-bottom: 16px; }
.landing-story-text { font-size: 17px; line-height: 1.7; color: var(--ink-muted); white-space: pre-line; }
.landing-info { background: var(--cream-alt); border-radius: 12px; padding: 24px 28px; margin-bottom: 40px; }
.landing-info h2 { font-size: 20px; margin-bottom: 16px; }
.landing-info-list { margin: 0; }
.landing-info-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #DCD1B4; }
.landing-info-row:last-child { border-bottom: none; }
.landing-info-row dt { font-weight: 700; flex: none; }
.landing-info-row dd { margin: 0; text-align: right; color: var(--ink-muted); }
.landing-cta { text-align: center; }
.landing-order-button { display: inline-block; width: auto; padding: 16px 40px; text-decoration: none; font-size: 18px; }
.landing-ordering-status { margin-top: 14px; color: var(--terracotta); font-weight: 600; font-size: 14px; min-height: 1.2em; }
