/* Reset, type, buttons, header, mobile order bar, footer */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font: var(--w-regular) var(--fs-body) / 1.6 var(--font);
  text-align: right;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--black); font-weight: var(--w-bold); line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); font-weight: var(--w-light); max-width: 34ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--black); color: var(--cream); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--mustard); }

/* Wordmark painted in any palette colour (mask keeps the designer's paths) */
.wm { display: block; background: currentColor; -webkit-mask: url("../brand/wordmark.svg") center / contain no-repeat; mask: url("../brand/wordmark.svg") center / contain no-repeat; aspect-ratio: 1352 / 332; }

/* Buttons: soft block corners, like the wordmark strokes */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-sm);
  font: var(--w-bold) 1.0625rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid var(--black); background: var(--black); color: var(--cream);
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--cream); }
.btn--mustard { background: var(--mustard); border-color: var(--mustard); color: var(--black); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.btn--icon { padding: 0; width: 52px; }
/* Order buttons per device: phone first on mobile, the delivery site alone on desktop.
   .btn--alt = secondary (ghost) next to the phone button on mobile, the primary on desktop. */
.only-desktop { display: none !important; }
@media (max-width: 1023px) {
  .btn--alt { background: transparent; color: var(--black); }
}
@media (min-width: 1024px) {
  .only-mobile { display: none !important; }
  .only-desktop { display: inline-flex !important; }
}
.text-link { font-weight: var(--w-bold); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--cream); border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--stone); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .brand { color: var(--black); width: 128px; flex: none; opacity: 0; transition: opacity 0.25s; }
.past-title .site-header .brand, .site-header .brand:focus-visible { opacity: 1; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: var(--w-regular); }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.header-cta { display: none; align-items: center; gap: 10px; }
.menu-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: var(--black); cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }
.mobile-nav { position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49; background: var(--cream); border-bottom: 1px solid var(--stone); padding: 8px var(--gutter) 24px; display: none; }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a { display: block; padding: 14px 0; font-size: 1.25rem; font-weight: var(--w-bold); text-decoration: none; color: var(--black); border-bottom: 1px solid var(--stone); }
@media (min-width: 1024px) {
  .nav { display: block; }
  .header-cta { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* Mobile order bar: the quick order button stays under the thumb */
.order-bar {
  position: fixed; inset: auto 0 0 0; z-index: 60; height: var(--bar-h);
  display: flex; align-items: center; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--cream); border-top: 1px solid var(--stone);
  transform: translateY(100%); visibility: hidden; transition: transform 0.3s var(--ease), visibility 0s 0.3s;
}
.past-actions .order-bar { transform: none; visibility: visible; transition: transform 0.3s var(--ease); }
.order-bar .btn { flex: 1; padding: 0 12px; font-size: 1rem; gap: 8px; }
.order-bar .btn:first-child { flex: 1.25; }
body { padding-bottom: var(--bar-h); }
@media (min-width: 1024px) {
  .order-bar { display: none; }
  body { padding-bottom: 0; }
}

/* Live status: a black sign with a mustard block that pings, like the wordmark's nikud dot */
.status {
  display: inline-flex; width: fit-content; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: var(--r-sm);
  background: var(--stone); color: var(--charcoal);
  font-size: var(--fs-small); font-weight: var(--w-bold); line-height: 1.2;
}
.status__dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--charcoal-60); }
.status.is-open { background: var(--black); color: var(--cream); }
.status.is-open .status__dot { background: var(--mustard); }
.status.is-open .status__dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 4px; border: 2px solid var(--mustard);
  opacity: 0; animation: live-ping 1.8s var(--ease) infinite;
}
@keyframes live-ping { 0% { transform: scale(0.5); opacity: 0.9; } 80%, 100% { transform: scale(1.5); opacity: 0; } }

/* Footer */
.site-footer { background: var(--black); color: var(--cream-70); padding-block: 56px 40px; }
.site-footer .wm { color: var(--cream); width: min(100%, 420px); }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: end; margin-top: 40px; font-size: var(--fs-small); }
.site-footer a { color: var(--cream); }
/* Studio credit: Mainstream logotype (brand/mainstream/logo/wordmark.svg), clickable */
.credit { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream-70); transition: color 0.2s; }
.credit:hover { color: var(--cream); }
.credit__logo { display: block; width: 132px; aspect-ratio: 1270.64 / 111.27; background: var(--cream); -webkit-mask: url("../brand/mainstream-wordmark.svg") center / contain no-repeat; mask: url("../brand/mainstream-wordmark.svg") center / contain no-repeat; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
