/* Restaurant websites. Three styles (data-style on <html>) and one accent colour (--accent) per restaurant. */
:root {
  --accent: #9a3412;
  --ink: #1d1a17;
  --ink-2: #4a443d;
  --muted: #7a7268;
  --paper: #fbf8f3;
  --card: #ffffff;
  --line: #e9e2d6;
  --soft: #f3ede3;
  --ok: #1f7a4d;
  --bad: #b3261e;
  --radius: 14px;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display-weight: 600;
  --shadow: 0 1px 2px rgba(29, 26, 23, 0.05), 0 8px 24px rgba(29, 26, 23, 0.06);
  color-scheme: light;
}
html[data-style='modern'] { --display: 'DM Sans', system-ui, sans-serif; --body: 'DM Sans', system-ui, sans-serif; --display-weight: 700; --paper: #fafafa; --soft: #f1f1f1; --line: #e5e5e5; --radius: 10px; }
html[data-style='warm'] { --display: Fraunces, Georgia, serif; --body: 'Nunito Sans', system-ui, sans-serif; --display-weight: 600; --paper: #fdf6ec; --soft: #f7ead7; --line: #eedfc8; --radius: 20px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.1; margin: 0 0 0.4em; letter-spacing: -0.01em; }
p { margin: 0 0 0.8em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, white); outline-offset: 2px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* header */
.announce { background: var(--accent); color: #fff; text-align: center; padding: 8px 16px; font-size: 0.9rem; font-weight: 600; }
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.35rem; margin-right: auto; }
.brand .logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.nav { display: flex; gap: 18px; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 700; }
.cart-btn #cart-count { min-width: 1ch; }
@media (max-width: 640px) { .nav { display: none; } }

/* hero */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #2a221c; }
.hero.plain { min-height: 340px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, black), color-mix(in srgb, var(--accent) 45%, black)); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.7) 100%); }
.hero-in { position: relative; z-index: 1; padding-block: 56px 48px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 0.15em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.tagline { font-size: clamp(1.1rem, 2.4vw, 1.4rem); max-width: 40ch; opacity: 0.95; }
.addr { opacity: 0.85; font-size: 0.95rem; margin-top: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin: 0 0 8px; font-family: var(--body); }
.eyebrow.light { color: rgba(255, 255, 255, 0.85); }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; margin: 6px 0 18px; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #9ca3af; }
.status.open .dot { background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25); }
.hero .status { background: rgba(0, 0, 0, 0.35); padding: 6px 12px; border-radius: 999px; }
.credit { position: absolute; right: 12px; bottom: 10px; z-index: 1; font-size: 0.72rem; color: rgba(255, 255, 255, 0.75); }
.credit a { color: inherit; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; transition: transform 0.12s ease, background 0.12s ease; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn.ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn.big { width: 100%; padding: 15px 22px; font-size: 1.05rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* sections */
.section-title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 20px; }
.featured, .menu, .visit, .faq, .deals { margin-block: 56px; }
.deals { margin-block: 32px 0; }
.deal-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.deal { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.deal strong { font-family: var(--display); font-size: 1.25rem; font-weight: var(--display-weight); }
.deal span { color: var(--ink-2); }
.deal .code { align-self: flex-start; margin-top: 6px; background: var(--card); border: 1.5px dashed var(--accent); color: var(--accent); border-radius: 8px; padding: 4px 10px; font-weight: 600; }
.deal .auto { font-size: 0.85rem; color: var(--ok); font-weight: 600; }
.deal small { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card .dish-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .dish-img img { transform: scale(1.03); }
.card .dish-img { overflow: hidden; display: block; }
.card .dish-body { padding: 14px 16px 60px; }
.card h3 { font-size: 1.3rem; }
.card .add { position: absolute; right: 14px; bottom: 14px; }
.dish h3 a, .card h3 a { text-decoration: none; }
.dish h3 a:hover, .card h3 a:hover { text-decoration: underline; }
.dish-body p { color: var(--ink-2); font-size: 0.94rem; margin-bottom: 8px; }
.dish-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.price { font-weight: 700; }
.price s { color: var(--muted); font-weight: 500; }
.price ins { text-decoration: none; color: var(--accent); }
.tag { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-weight: 600; }
.tag.deal { background: color-mix(in srgb, var(--accent) 14%, white); color: var(--accent); }
.tag.out { background: #fde8e6; color: var(--bad); }
.add { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 0.9rem; }
.add:hover { background: var(--accent); }
.out { opacity: 0.6; }

/* menu */
.menu-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; }
.notice { background: #fff7e6; color: #8a5a00; border: 1px solid #f3dfb3; padding: 10px 14px; border-radius: 10px; }
.cats { position: sticky; top: 64px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; margin-bottom: 8px; background: var(--paper); scrollbar-width: none; border-bottom: 1px solid var(--line); }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; text-decoration: none; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.cats a:hover, .cats a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat { padding-top: 28px; scroll-margin-top: 130px; }
.cat-title { font-size: 1.8rem; }
.cat-desc { color: var(--muted); }
.dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
@media (max-width: 860px) { .dishes { grid-template-columns: 1fr; } }
.dish { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'body img' 'body add'; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.dish .dish-body { grid-area: body; }
.dish .dish-img { grid-area: img; }
.dish .dish-img img { width: 104px; height: 104px; object-fit: cover; border-radius: 12px; }
.dish .add { grid-area: add; justify-self: end; align-self: end; }
.dish h3 { font-size: 1.18rem; font-family: var(--body); font-weight: 700; letter-spacing: 0; margin-bottom: 4px; }
html[data-style='classic'] .dish h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }

/* about, visit, faq */
.about { background: var(--soft); padding-block: 64px; }
.about-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.about-in p { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; }
.about figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.about figure img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 800px) { .about-in { grid-template-columns: 1fr; } }
.visit-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
@media (max-width: 800px) { .visit-grid { grid-template-columns: 1fr; } }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours th { width: 40%; color: var(--ink-2); }
.visit-card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.other { margin-bottom: 40px; }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 56px; }
.loc-card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.loc-card h3 { font-size: 1.6rem; }
.loc-card h3 a { text-decoration: none; }
.empty { padding-block: 80px; text-align: center; }

/* item page */
.item-page { padding-block: 28px 56px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }
.item-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .item-grid { grid-template-columns: 1fr; gap: 20px; } }
.item-photo { margin: 0; border-radius: var(--radius); overflow: hidden; }
.item-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.item-page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.item-price { font-size: 1.3rem; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.facts { padding-left: 18px; color: var(--ink-2); }
.item-page .add { padding: 14px 28px; font-size: 1rem; margin-bottom: 16px; }

/* footer */
.foot { background: #1d1a17; color: #e8e2d8; padding-block: 44px; margin-top: 40px; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
.foot-name { font-family: var(--display); font-size: 1.5rem; font-weight: var(--display-weight); display: block; margin-bottom: 8px; }
.foot a { color: #fff; }
.social { display: flex; gap: 16px; flex-wrap: wrap; }
.fine { grid-column: 1 / -1; color: #a39b8f; font-size: 0.82rem; margin: 0; }
.plain-page { display: grid; min-height: 100vh; place-items: center; }

/* cart drawer and dialogs (app.js) */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(20, 16, 12, 0.45); display: flex; justify-content: flex-end; animation: fade 0.15s ease; }
.scrim.center { justify-content: center; align-items: flex-end; }
@media (min-width: 700px) { .scrim.center { align-items: center; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.drawer { width: min(440px, 100%); height: 100%; background: var(--paper); display: flex; flex-direction: column; box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.6rem; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.x { background: none; border: 0; font-size: 1.4rem; line-height: 1; padding: 6px; color: var(--ink-2); }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line .opts { color: var(--muted); font-size: 0.85rem; }
.line .disc { color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.qty button { background: none; border: 0; width: 32px; height: 32px; font-size: 1.1rem; }
.qty span { min-width: 2ch; text-align: center; font-weight: 700; }
.totals { width: 100%; margin: 8px 0 12px; }
.totals td { padding: 3px 0; } .totals td:last-child { text-align: right; }
.totals .grand td { font-weight: 800; font-size: 1.1rem; padding-top: 8px; }
.totals .neg td { color: var(--accent); }
.promo { display: flex; gap: 8px; margin: 10px 0; }
.promo input { flex: 1; }
.promo-msg { font-size: 0.85rem; margin: -4px 0 8px; }
.promo-msg.ok { color: var(--ok); } .promo-msg.bad { color: var(--bad); }
.dialog { width: min(560px, 100%); max-height: 92vh; overflow: auto; background: var(--paper); border-radius: 20px 20px 0 0; animation: up 0.18s ease; }
@media (min-width: 700px) { .dialog { border-radius: 20px; } }
.dialog-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dialog-body { padding: 20px; }
.group { border: 0; padding: 0; margin: 18px 0 0; }
.group legend { font-weight: 800; padding: 0; display: flex; gap: 8px; align-items: baseline; }
.group legend small { font-weight: 600; color: var(--muted); }
.group legend .req { color: var(--accent); }
.opt { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.opt input { width: 20px; height: 20px; accent-color: var(--accent); }
.opt .grow { flex: 1; }
.nested { margin-left: 30px; }
.dialog-foot { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.dialog-foot .btn { flex: 1; }
input, select, textarea { font: inherit; color: inherit; width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 80; font-weight: 600; animation: up 0.18s ease; }
.err { color: var(--bad); font-weight: 600; min-height: 1.2em; }

/* checkout */
.checkout { padding-block: 32px 64px; }
.checkout h1 { font-size: clamp(2rem, 5vw, 3rem); }
.co-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .co-grid { grid-template-columns: 1fr; } .co-summary { order: -1; } }
.co-form fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.co-form legend { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.45rem; margin-bottom: 10px; }
.co-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 12px; }
.co-form label input { margin-top: 5px; font-weight: 400; }
.co-form label small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }
.two { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; color: var(--ink-2); }
.seg button[aria-pressed='true'] { border-color: var(--ink); background: var(--ink); color: #fff; }
.co-summary { position: sticky; top: 84px; background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.co-summary h2 { font-size: 1.5rem; }
.is-checkout .cart-btn { display: none !important; }
