/* Scratch Cookery — main stylesheet. No build step for CSS. */
:root {
  --ink: #111111;
  --paper: #faf7f2;
  --white: #ffffff;
  --text: #1a1a1a;
  --muted: #5a5550;
  --line: #e4ddd2;
  --red: #d90b27;        /* logo flame #e80d2b, darkened for 5.2:1 with white */
  --red-hover: #b30820;
  --on-dark: #f4f1ec;
  --on-dark-muted: #bdb7ae;
  --radius: 6px;
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.55; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; }
p { margin: 0 0 1rem; }
address { font-style: normal; }
ul[role="list"], ol.steps { list-style: none; margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .page-head :focus-visible, .heat :focus-visible,
.order-band :focus-visible, .site-footer :focus-visible, .pop-card-text :focus-visible { outline-color: var(--white); }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; letter-spacing: .02em; text-decoration: none; text-align: center; line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-hover); }
.btn-ghost { border-color: currentColor; color: var(--on-dark); }
.btn-ghost:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.text-link { font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--red); display: inline-block; padding: 10px 0; }
.text-link::after { content: " →"; }
main p a:not(.btn):not(.text-link) { text-underline-offset: 3px; font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--on-dark); border-bottom: 1px solid #262626; }
.header-row { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.brand { flex: 0 0 auto; display: block; border-radius: 4px; }
.brand img { width: 60px; height: 60px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 600; text-decoration: none; color: var(--on-dark); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.site-nav a:hover { color: var(--white); text-decoration: underline; }
.site-nav a[aria-current="page"], .site-nav a.is-section { color: var(--white); text-decoration: underline; text-decoration-color: var(--red); }
@media (min-width: 768px) { .header-row { gap: 20px; } .site-nav { gap: 12px; } }
@media (max-width: 400px) { .hide-xs { display: none; } }
@media (max-width: 359px) {
  .header-row { gap: 4px; }
  .brand img { width: 44px; height: 44px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 0 5px; font-size: .9375rem; }
  .btn-sm { padding: 0 12px; }
}

/* Home hero */
.hero { background: var(--ink); color: var(--on-dark); padding: 40px 0 48px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.eyebrow { margin-bottom: 14px; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero h1 { font-size: clamp(2.125rem, 7.5vw, 3.75rem); font-style: italic; font-weight: 800; letter-spacing: -.01em; color: var(--white); margin-bottom: 18px; max-width: 15ch; }
.lede { font-size: 1.125rem; color: var(--on-dark); max-width: 52ch; margin-bottom: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { margin: 0; }
.hero-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 800 / 533; object-fit: cover; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; }
}
@media (max-width: 420px) { .cta-row .btn { width: 100%; } }

/* Inner page head + breadcrumbs */
.page-head { background: var(--ink); color: var(--on-dark); padding: 24px 0 40px; }
.page-head h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-style: italic; font-weight: 800; color: var(--white); margin: 18px 0 14px; }
.page-head .lede { margin-bottom: 0; color: var(--on-dark); }
@media (min-width: 900px) { .page-head { padding: 28px 0 56px; } }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: .875rem; color: var(--on-dark-muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; padding: 0 10px; color: #6f6a63; }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--on-dark); text-underline-offset: 3px; }
.crumbs [aria-current="page"] { color: var(--on-dark-muted); }

/* Sections */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 80px 0; } }
.section-title { font-size: clamp(1.625rem, 4.5vw, 2.375rem); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 28px; }
.section-title::after { content: ""; display: block; width: 48px; height: 4px; background: var(--red); margin-top: 12px; }
.sub-title { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0 24px; margin-bottom: 28px; }
.title-row .section-title { margin-bottom: 0; }
.fine { font-size: .875rem; color: var(--muted); margin: 12px 0 0; }

/* Popular cards (home) */
.pop-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .pop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pop-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.pop-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pop-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.pop-card a:hover .pop-name { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.pop-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 560px) { .pop-card img { aspect-ratio: 4 / 5; } }
.pop-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pop-name { font-size: 1.125rem; font-weight: 800; }
.pop-desc { color: var(--muted); }
.pop-body .price { font-weight: 700; margin-top: auto; }
.pop-card-text { background: var(--ink); border-color: var(--ink); }
.pop-card-text a { color: var(--on-dark); justify-content: flex-end; min-height: 220px; }
.pop-card-text .pop-body { justify-content: flex-end; padding: 22px; flex: 0; }
.pop-card-text .pop-name { font-size: 1.5rem; font-style: italic; color: var(--white); }
.pop-card-text .pop-desc { color: var(--on-dark-muted); }
.pop-card-text .price { color: var(--white); margin-top: 8px; }

/* Heat band */
.heat { background: var(--red); color: var(--white); padding: 28px 0; }
.heat-row { display: grid; gap: 14px; align-items: center; }
.heat h2 { font-size: 1.375rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.heat p { margin: 0; max-width: 60ch; }
.heat-scale { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.heat-scale li { width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.85); border-radius: 50%; font-weight: 800; }
.heat-scale li:nth-child(n+5) { background: var(--white); color: var(--red); border-color: var(--white); }
@media (max-width: 400px) { .heat-scale { gap: 4px; } .heat-scale li { width: 32px; height: 32px; font-size: .9375rem; } }
@media (min-width: 900px) { .heat-row { grid-template-columns: auto auto 1fr; gap: 32px; } }

/* Category tiles + link lists */
.cat-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.cat-tile, .cat-link, .teaser-link {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .15s;
}
.cat-tile:hover, .cat-link:hover, .teaser-link:hover { border-color: var(--ink); }
.cat-name { font-weight: 800; font-size: 1.125rem; }
.cat-name::after { content: " →"; color: var(--red); }
.cat-items { color: var(--text); }
.cat-meta { color: var(--muted); font-size: .9375rem; }
.cat-links { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cat-links { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cat-links { grid-template-columns: repeat(3, 1fr); } }
.explore { background: var(--white); }
.explore .cat-tile { background: var(--paper); }

/* Home visit teaser */
.teaser-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .teaser-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.teaser-links { display: grid; gap: 12px; }

/* Menu lists */
.menu { background: var(--white); }
.menu-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.menu-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.menu-nav a:hover { border-color: var(--ink); }
.menu-cols { display: grid; gap: 40px; }
@media (min-width: 768px) { .menu-cols { grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 48px; } }
@media (min-width: 1024px) { .menu-cols { column-gap: 64px; } }
.menu-stack { display: grid; gap: 40px; align-content: start; }
.menu-group > h2 { font-size: 1.25rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.group-more { margin: 4px 0 0; }
.items li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.items li:last-child { border-bottom: 0; }
.item-head { display: flex; align-items: baseline; gap: 16px; justify-content: space-between; }
.item-head > :first-child { font-size: 1.0625rem; font-weight: 700; }
.item-head .price { font-weight: 700; white-space: nowrap; }
.items p { margin: 6px 0 0; color: var(--muted); font-size: .9375rem; max-width: 60ch; }
.tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 7px; border-radius: 3px; background: var(--red); color: var(--white); font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.menu-foot { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.menu-foot p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Category page features */
.feature-list { display: grid; gap: 24px; }
@media (min-width: 900px) { .feature-list { grid-template-columns: 1fr 1fr; gap: 32px; } }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-body { padding: 20px 22px 22px; }
.feature-body .item-head > :first-child { font-size: 1.25rem; font-weight: 800; }
.feature-body p { margin: 10px 0 0; color: var(--muted); }

.compare-section { background: var(--paper); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.compare { width: 100%; min-width: 600px; border-collapse: collapse; font-size: .9375rem; }
.compare caption { text-align: left; padding: 14px 16px 0; color: var(--muted); font-size: .875rem; }
.compare th, .compare td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody th { font-weight: 700; }
.compare .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th, .compare td { display: flex; gap: 12px; border: 0; padding: 6px 16px; }
  .compare tbody th { font-size: 1.0625rem; padding-top: 12px; }
  .compare td::before { content: attr(data-label); flex: 0 0 76px; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 2px; }
  .compare .num { text-align: left; }
}
.pairing { background: var(--white); }
.pairing .cat-link { background: var(--paper); }

/* Salads */
.salad-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .salad-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.salad-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 24px; }
.salad-card .item-head > :first-child { font-size: 1.5rem; font-weight: 800; font-style: italic; }
.salad-card p { margin: 12px 0 0; color: var(--muted); font-size: 1.0625rem; }

/* Order band */
.order-band { background: var(--ink); color: var(--on-dark); padding: 32px 0; }
.order-band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.order-band p { margin: 0; font-size: 1.125rem; max-width: 52ch; }

/* Location */
.visit-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.addr { font-size: 1.125rem; margin-bottom: 14px; }
.contact-lines { font-size: 1.125rem; }
.contact-lines a { display: inline-block; padding: 10px 0; font-weight: 700; text-underline-offset: 4px; }
.visit .sub-title { margin-top: 12px; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-variant-numeric: tabular-nums; font-size: 1.0625rem; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; }
.hours td { text-align: right; }
.hours-note { color: var(--muted); font-size: .9375rem; }

/* Order page */
.order-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .order-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; } }
.steps { counter-reset: step; margin-bottom: 32px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 24px 56px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px;
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 800;
}
.steps h3 { font-size: 1.125rem; font-weight: 800; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }
.order-side { display: grid; gap: 20px; }
.side-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.side-block p { margin: 0; color: var(--muted); }
.notice { background: var(--white); border-left: 4px solid var(--red); padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.notice p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 48px 0 24px; font-size: .9375rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; } }
.foot-brand img { width: 80px; height: 80px; margin-bottom: 12px; }
.foot-brand p { margin: 0 0 4px; }
.foot-name { color: var(--white); font-weight: 800; font-size: 1.0625rem; }
.foot-h { color: var(--white); font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.footer-grid p { margin: 0 0 6px; }
.site-footer a { color: var(--on-dark); text-underline-offset: 4px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-grid p a { display: inline-flex; align-items: center; min-height: 36px; }
.foot-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid #2a2a2a; font-size: .8125rem; }
.foot-legal p { margin: 0; }

/* 404 */
.notfound { padding: 64px 0 80px; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); font-style: italic; font-weight: 800; margin-bottom: 16px; }
.notfound > .wrap > p { color: var(--muted); max-width: 48ch; }
.notfound .cat-links { margin: 24px 0 16px; }
