:root {
  color-scheme: light;
  --paper: #f6f0e5;
  --ivory: #fffaf1;
  --ink: #26342a;
  --forest: #293d30;
  --forest-hover: #3b5643;
  --wine: #773a33;
  --muted: #60594d;
  --rule: #cec1ae;
  --serif: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --sans: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; }
button, select, input, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .25em; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.shell { width: min(100% - 5rem, 76rem); margin-inline: auto; min-width: 0; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 20; padding: .6rem 1rem; background: var(--ivory); transform: translateY(-160%); }
.skip:focus { transform: none; }

.topbar { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--rule); background: var(--paper); }
.topbar-inner { display: flex; min-height: 4.65rem; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { display: flex; align-items: center; gap: .7rem; font: 1.4rem/1.1 var(--serif); white-space: nowrap; }
.brand img { width: 2.7rem; height: 2.9rem; object-fit: contain; mix-blend-mode: multiply; }
.brand em { color: var(--wine); }
.cart-trigger { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .45rem .7rem .45rem .9rem; background: var(--ivory); border: 1px solid var(--rule); color: var(--ink); font-weight: 680; cursor: pointer; }
.cart-trigger:hover { border-color: var(--forest); }
.cart-trigger span { display: grid; min-width: 1.65rem; min-height: 1.65rem; padding-inline: .25rem; place-items: center; background: var(--forest); color: var(--ivory); font-size: .86rem; font-variant-numeric: tabular-nums; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); align-items: stretch; margin-block: 1.8rem 3.35rem; background: var(--forest); }
.hero-copy { align-self: center; padding: clamp(2.15rem, 5vw, 4.4rem); color: var(--ivory); }
.eyebrow { font-size: .83rem; font-weight: 740; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { color: #efd2b9; }
h1 { margin-top: .8rem; font-size: clamp(3.55rem, 7.5vw, 6.85rem); line-height: .96; letter-spacing: -.061em; }
h1 em { display: block; color: #efd2b9; }
.intro { max-width: 38ch; margin-top: 1.3rem; color: #fbf2e7; font-size: 1.02rem; }
.button { display: inline-flex; min-height: 2.8rem; align-items: center; justify-content: center; border: 1px solid var(--forest); padding: .6rem 1rem; line-height: 1.25; color: var(--forest); background: transparent; font-size: .94rem; font-weight: 680; text-decoration: none; cursor: pointer; }
.button:hover:not(:disabled) { background: #e9e9dc; }
.button.primary { border-color: var(--forest); color: var(--ivory); background: var(--forest); }
.button.primary:hover:not(:disabled) { background: var(--forest-hover); }
.button:disabled { opacity: .58; cursor: default; }
.hero-button.button.primary { margin-top: 1.55rem; border-color: #f3e5d2; background: #f3e5d2; color: var(--forest); }
.hero-button.button.primary:hover { background: #fff6ea; }
.hero-button:focus-visible { outline-color: #f3e5d2; }
.hero-dates { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .65rem 1.45rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #718477; }
.hero-dates dt { color: #f0ddce; font-size: .88rem; }
.hero-dates dd { font-weight: 670; }
.hero-photo { position: relative; min-height: 30rem; overflow: hidden; background: #8d7964; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }

.catalogue-heading { display: flex; justify-content: space-between; align-items: end; gap: .65rem 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
h2 { font-size: clamp(2.4rem, 4.5vw, 4.2rem); line-height: 1; letter-spacing: -.045em; }
.catalogue-heading p { max-width: 33ch; color: var(--muted); }
.categories { display: flex; gap: .5rem; flex-wrap: wrap; margin-block: 1.15rem 2rem; }
.categories a { display: inline-flex; min-height: 2.6rem; align-items: center; padding: .4rem .8rem; border: 1px solid var(--rule); text-decoration: none; font-size: .92rem; font-weight: 640; }
.categories a:hover, .categories a:focus-visible { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.banner { margin-bottom: 1.5rem; padding: .75rem 1rem; border-left: 3px solid var(--wine); background: var(--ivory); }
.category { padding-block: 1.45rem 2.1rem; border-block-start: 1px solid var(--rule); }
.category h3 { margin-bottom: 1.05rem; font-size: clamp(1.95rem, 3.6vw, 3.15rem); line-height: 1; letter-spacing: -.042em; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.dish { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--rule); background: var(--ivory); }
.dish img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 57%; background: #d7c8b6; }
.dish-copy { display: flex; flex: 1; flex-direction: column; gap: .58rem; padding: 1rem; }
.dish h4 { font-size: clamp(1.3rem, 2.28vw, 1.82rem); line-height: 1.08; letter-spacing: -.027em; }
.dish-buy { display: grid; gap: .6rem; margin-top: auto; padding-top: .32rem; }
.dish-format { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .5rem; font-size: .91rem; }
.dish-format strong { font-variant-numeric: tabular-nums; }
.format-select { display: grid; gap: .15rem; color: var(--muted); font-size: .9rem; font-weight: 620; }
select { appearance: none; padding: .57rem 1.65rem .57rem .55rem; background: linear-gradient(45deg, transparent 50%, var(--forest) 50%) calc(100% - 14px) 50% / 5px 5px no-repeat, linear-gradient(135deg, var(--forest) 50%, transparent 50%) calc(100% - 9px) 50% / 5px 5px no-repeat, var(--ivory); }
.format-select select { min-width: 0; min-height: 2.65rem; width: 100%; border: 1px solid #a99a85; border-radius: 0; color: var(--ink); }
.dish-buy .button { width: 100%; }
.order-info { display: grid; gap: .82rem; padding-block: 2rem 2.5rem; border-top: 1px solid var(--rule); }
.order-info h2 { font-size: clamp(2rem, 4vw, 3.15rem); }
.order-info p { max-width: 67ch; }
.contact-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-weight: 650; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.25rem; padding-block: 1rem 1.8rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .88rem; }
.toast { z-index: 6; position: fixed; right: 1rem; bottom: 1rem; max-width: min(24rem, 100% - 2rem); padding: .65rem .95rem; border: 1px solid #637968; background: var(--forest); color: var(--ivory); box-shadow: 0 .4rem 2rem #17261d2b; }

.cart { position: fixed; inset: 0 0 0 auto; width: min(100%, 34rem); height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ivory); color: var(--ink); }
.cart::backdrop { background: #18251bd0; }
.cart-panel { display: grid; height: 100%; grid-template-rows: auto minmax(0, 1fr); }
.cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.65rem; border-bottom: 1px solid var(--rule); }
.cart-heading h2 { font-size: clamp(2rem, 5vw, 2.7rem); }
.dismiss { width: 2.75rem; height: 2.75rem; border: 1px solid var(--rule); color: var(--ink); background: transparent; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.dismiss:hover, .quantity button:hover:not(:disabled) { background: #eee8db; }
.cart-scroll { overflow: auto; overscroll-behavior: contain; padding: 1.25rem 1.65rem 2rem; }
.cart-lines { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .55rem .85rem; padding-bottom: .8rem; border-bottom: 1px solid var(--rule); }
.cart-line strong { display: block; font-size: .96rem; }
.cart-line span { font-size: .88rem; color: var(--muted); }
.line-controls { display: grid; gap: .25rem; justify-items: end; }
.line-controls .line-price { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.quantity { display: grid; grid-template-columns: 2.45rem minmax(1.7rem, auto) 2.45rem; align-items: center; text-align: center; }
.quantity button { height: 2.45rem; border: 1px solid var(--rule); padding: 0; background: transparent; color: var(--ink); font-size: 1.14rem; cursor: pointer; }
.quantity button:disabled { opacity: .45; }
.totals { display: grid; gap: .35rem; margin-block: 1.15rem .5rem; }
.totals div { display: flex; justify-content: space-between; gap: .7rem; }
.totals dd { font-weight: 670; font-variant-numeric: tabular-nums; }
.deposit { color: var(--wine); font-weight: 730; }
.help { color: var(--muted); font-size: .88rem; }
.stretch { width: 100%; margin-top: .85rem; }
#checkout { display: grid; gap: .78rem; margin-top: 1.35rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
#checkout h3, .receipt h3 { font-size: 2rem; line-height: 1.05; letter-spacing: -.039em; }
#checkout label, .manage-login label { display: grid; gap: .22rem; font-size: .9rem; font-weight: 650; }
.optional { display: contents; font-weight: 400; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .7rem; }
.date-row { grid-template-columns: minmax(0, 1fr) minmax(6.4rem, .45fr); }
input, select, textarea { min-width: 0; max-width: 100%; min-height: 2.75rem; border: 1px solid #a99a85; border-radius: 0; color: inherit; }
input, textarea { padding: .5rem .55rem; background: var(--ivory); }
#checkout input, #checkout select, #checkout textarea { width: 100%; font-size: 1rem; }
textarea { resize: vertical; }
.payment-note { padding: .65rem .8rem; background: #eee9dc; font-size: .9rem; }
.form-error { color: #8b2520; font-weight: 670; }
.receipt { display: grid; justify-items: start; gap: .8rem; }
.receipt .eyebrow { color: var(--wine); }

.manage { padding-block: 2rem; }
.manage-login { display: grid; gap: .65rem; max-width: 26rem; margin-top: 1.25rem; }
.manage-login .button { justify-self: start; }
.manage-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1rem; margin-block: 1rem; }
.manage-toolbar select { margin-left: .35rem; }
.manage-list { display: grid; gap: .9rem; margin-top: .85rem; }
.manage-order { display: grid; gap: .45rem; max-width: 64rem; padding: .95rem; background: var(--ivory); border: 1px solid var(--rule); overflow-wrap: anywhere; }
.manage-order h2 { font-size: 1.6rem; }
.manage-order ul { margin-block: .2rem; padding-left: 1.15rem; }
.manage-order form { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-block-start: .2rem; }

@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 2.6rem); }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding: 1.6rem; }
  h1 { font-size: clamp(2.8rem, 7vw, 4.1rem); }
  .hero-photo { min-height: 23rem; }
  .hero-dates { grid-template-columns: 1fr; gap: .55rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 535px) {
  .shell { width: calc(100% - 1.65rem); }
  .topbar-inner { min-height: 4.15rem; }
  .brand { gap: .45rem; font-size: 1.18rem; }
  .brand img { width: 2.15rem; height: 2.5rem; }
  .cart-trigger { padding-inline: .55rem; font-size: .9rem; }
  .hero { grid-template-columns: minmax(0, 1fr); margin-block: 1rem 2.4rem; }
  .hero-copy { padding: 1.55rem 1.25rem 1.2rem; }
  h1 { font-size: clamp(3rem, 12vw, 4rem); }
  .hero-dates { grid-template-columns: max-content minmax(0, 1fr); gap: .55rem 1.15rem; margin-top: 1.45rem; }
  .hero-dates dd { font-size: .92rem; }
  .hero-photo { min-height: 0; aspect-ratio: 1.39; }
  .hero-photo img { object-position: center 61%; }
  .catalogue-heading { align-items: start; flex-direction: column; }
  .categories { gap: .4rem; margin-bottom: 1.4rem; }
  .categories a { padding-inline: .58rem; font-size: .86rem; }
  .card-grid { grid-template-columns: 1fr; gap: .95rem; }
  .dish img { aspect-ratio: 1.15; }
  .dish h4 { font-size: 1.67rem; }
  .cart-heading, .cart-scroll { padding-inline: 1rem; }
}
@media (max-width: 365px) {
  .brand { font-size: 1.06rem; }
  .field-row:not(.date-row) { grid-template-columns: 1fr; }
}
