/* Layout: a sky-blue brand band with the round logo (as in the printed menu), a sticky category bar,
   then a photo-led grid of platters. Ordering lives in a cart sheet. */
:root {
  --sky: #90d7ee;          /* the owner's chosen blue, sampled from the menu PDF */
  --sky-soft: #e3f5fb;
  --surface: #ffffff;
  --bg: #f4fafc;
  --ink: #0d3344;          /* main text: 12.9:1 on white */
  --ink-soft: #3f5e6c;     /* secondary text: 6.8:1 on white */
  --action: #0b5878;       /* buttons: white text 7.6:1 */
  --action-ink: #ffffff;
  --line: #c3e4f0;
  --dots: #ffffff;
  --ok: #1d6b3a;
  --warn: #8a4b00;
  --danger: #a3241b;
  --focus: #0d3344;
  --focus-halo: #ffd84d;
  --shadow: 0 1px 2px rgb(13 51 68 / .08), 0 6px 20px rgb(13 51 68 / .07);
  --font-body: "Assistant", "Segoe UI", Arial, sans-serif;
  --font-display: "Rubik", "Assistant", Arial, sans-serif;
  --font-logo: "Varela Round", "Rubik", Arial, sans-serif;
  --radius: 14px;
  --scale: 1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sky: #1d5267; --sky-soft: #163846; --surface: #11262f; --bg: #0b1a21;
    --ink: #e6f5fb; --ink-soft: #a9c6d2; --action: #90d7ee; --action-ink: #062330;
    --line: #24485a; --dots: #90d7ee; --ok: #7fd49c; --warn: #f2b766; --danger: #ff9a8f;
    --focus: #ffffff; --focus-halo: #ffd84d; --shadow: 0 1px 2px rgb(0 0 0 / .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --sky: #1d5267; --sky-soft: #163846; --surface: #11262f; --bg: #0b1a21;
  --ink: #e6f5fb; --ink-soft: #a9c6d2; --action: #90d7ee; --action-ink: #062330;
  --line: #24485a; --dots: #90d7ee; --ok: #7fd49c; --warn: #f2b766; --danger: #ff9a8f;
  --focus: #ffffff; --focus-halo: #ffd84d; --shadow: 0 1px 2px rgb(0 0 0 / .4);
  color-scheme: dark;
}

/* ----- accessibility toolbar modes ----- */
html { font-size: calc(100% * var(--scale)); }
html.a11y-contrast {
  --sky: #ffffff; --sky-soft: #ffffff; --surface: #ffffff; --bg: #ffffff; --ink: #000000; --ink-soft: #000000;
  --action: #000000; --action-ink: #ffffff; --line: #000000; --dots: #000000; --shadow: none; color-scheme: light;
}
html.a11y-contrast img { filter: contrast(1.1); }
html.a11y-contrast .card, html.a11y-contrast .panel { border: 2px solid #000; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; font-weight: 700; outline: 2px dashed currentColor; outline-offset: 2px; }
html.a11y-font body, html.a11y-font button, html.a11y-font input, html.a11y-font select, html.a11y-font textarea { font-family: Arial, sans-serif !important; letter-spacing: .02em; word-spacing: .08em; line-height: 1.7; }
html.a11y-nomotion *, html.a11y-nomotion *::before, html.a11y-nomotion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ----- base ----- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; text-wrap: balance; margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100;
  background: var(--action); color: var(--action-ink); padding: .75rem 1.25rem; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 1rem); }
.wrap { max-width: 1180px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; border: 2px solid var(--action);
  background: var(--action); color: var(--action-ink); font: 700 1rem/1.2 var(--font-body);
  cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn.small { min-height: 38px; padding: .35rem .85rem; font-size: .95rem; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ----- logo (vector copy of the original round logo) ----- */
.logo { display: block; border-radius: 50%; flex: none; max-width: 100%; height: auto; aspect-ratio: 1; }
html.a11y-contrast .logo { outline: 2px solid #000; }
.nav-links { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.nav-links a { display: inline-flex; align-items: center; min-height: 36px; padding: .15rem .75rem; border-radius: 999px;
  background: var(--surface); color: var(--ink); border: 2px solid var(--action); font-weight: 700; text-decoration: none; font-size: .95rem; }
.nav-links a:hover { background: var(--sky-soft); }

/* ----- forms ----- */
label, legend { font-weight: 700; }
.field { display: grid; gap: .3rem; }
.field small { color: var(--ink-soft); font-weight: 400; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], input[type="time"], input[type="password"], input[type="url"], select, textarea {
  width: 100%; min-height: 44px; padding: .55rem .75rem; border: 2px solid var(--ink-soft); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit;
}
textarea { min-height: 90px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--focus); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.error-text { color: var(--danger); font-weight: 700; font-size: .95rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* ----- accessibility toolbar ----- */
.a11y-toggle {
  position: fixed; z-index: 60; inset-inline-end: calc(1rem + env(safe-area-inset-left, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; background: #0b4f9c; color: #fff;
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
}
.a11y-toggle svg { width: 30px; height: 30px; }
.a11y-panel {
  position: fixed; z-index: 61; inset-inline-end: calc(1rem + env(safe-area-inset-left, 0px));
  bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); width: min(320px, calc(100vw - 2rem));
  background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem;
  box-shadow: 0 10px 40px rgb(0 0 0 / .25); display: grid; gap: .5rem; max-height: 75vh; overflow: auto;
}
.a11y-panel h2 { font-size: 1.15rem; }
.a11y-panel .row { display: flex; gap: .5rem; }
.a11y-panel .row > * { flex: 1; }
.a11y-panel button[aria-pressed] { justify-content: flex-start; background: var(--surface); color: var(--ink); border-color: var(--line); border-radius: 10px; }
.a11y-panel button[aria-pressed="true"] { background: var(--action); color: var(--action-ink); border-color: var(--action); }
.a11y-panel a { font-weight: 700; }

@media print {
  .a11y-toggle, .a11y-panel, .skip-link { display: none !important; }
}
