/* ==========================================================================
   RiDough — "The Night Bake"
   Dark ground, ember accent. The bread ferments in the dark; so does the page.
   ========================================================================== */

:root {
  /* Ground */
  --oven:       #14100c;   /* deepest — page ground */
  --slate:      #1e1813;   /* raised surfaces */
  --slate-2:    #29211a;   /* hover / inset */
  --hairline:   #3a2f26;   /* borders */

  /* Ink */
  --chalk:      #f0ebe3;   /* primary text */
  --ash:        #a2958a;   /* muted — warm-biased, not neutral grey */
  --ash-dim:    #6f645b;

  /* Accent — spend boldness here only */
  --ember:      #e2603a;
  --ember-lo:   #b8452a;
  --malt:       #c9a227;

  /* Type */
  --display: "Bahnschrift", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  --body:    "Constantia", "Palatino Linotype", "Sitka Text", Georgia, serif;
  --util:    "Corbel", "Candara", system-ui, sans-serif;

  /* Scale — 1.25 minor third */
  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1.0625rem;
  --t-md:   1.33rem;
  --t-lg:   1.75rem;
  --t-xl:   2.4rem;
  --t-2xl:  3.4rem;
  --t-3xl:  clamp(3rem, 9vw, 7rem);

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --rule: 1px solid var(--hairline);
}

/* Light theme — a genuine daytime counterpart, not an inversion */
@media (prefers-color-scheme: light) {
  :root {
    --oven:     #f7f3ec;
    --slate:    #fffdf9;
    --slate-2:  #f0e9de;
    --hairline: #ddd1c0;
    --chalk:    #241c15;
    --ash:      #6b5d52;
    --ash-dim:  #93857a;
    --ember:    #c2451f;
    --ember-lo: #9c3517;
    --malt:     #9a7710;
  }
}

:root[data-theme="light"] {
  --oven:     #f7f3ec;
  --slate:    #fffdf9;
  --slate-2:  #f0e9de;
  --hairline: #ddd1c0;
  --chalk:    #241c15;
  --ash:      #6b5d52;
  --ash-dim:  #93857a;
  --ember:    #c2451f;
  --ember-lo: #9c3517;
  --malt:     #9a7710;
}

:root[data-theme="dark"] {
  --oven:     #14100c;
  --slate:    #1e1813;
  --slate-2:  #29211a;
  --hairline: #3a2f26;
  --chalk:    #f0ebe3;
  --ash:      #a2958a;
  --ash-dim:  #6f645b;
  --ember:    #e2603a;
  --ember-lo: #b8452a;
  --malt:     #c9a227;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--oven);
  color: var(--chalk);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

::selection { background: var(--ember); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
  color: var(--chalk);
}

h1 { font-size: var(--t-3xl); }
h2 { font-size: clamp(2rem, 4.5vw, var(--t-xl)); }
h3 { font-size: var(--t-md); letter-spacing: 0; }

p { margin: 0; max-width: 66ch; }

a { color: var(--ember); text-underline-offset: 3px; }

.lead {
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--ash);
}

/* Eyebrow doubles as a numbered index where content is a real sequence */
.eyebrow {
  font-family: var(--util);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ember);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--hairline), transparent);
}

.eyebrow--plain::after { display: none; }

/* --------------------------------------------------------- Layout -------- */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 11vh, 128px);
  border-top: var(--rule);
}

.section--flush { border-top: none; }
.section--raised { background: var(--slate); }

.stack   { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.stack-s { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* --------------------------------------------------------- Buttons ------- */

.btn {
  font-family: var(--util);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: color .25s, background .25s, border-color .25s;
}

.btn--primary { background: var(--ember); color: #fff; }
.btn--primary:hover { background: var(--ember-lo); }

.btn--ghost { border-color: var(--hairline); color: var(--chalk); background: transparent; }
.btn--ghost:hover { border-color: var(--ember); color: var(--ember); }

/* --------------------------------------------------------- Header -------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--oven) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }

.brand__name {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--chalk);
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  font-family: var(--util);
  font-size: var(--t-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ash);
  padding: 9px 15px;
  border-radius: 2px;
  transition: color .2s, background .2s;
}

.nav a:hover { color: var(--chalk); background: var(--slate-2); }
.nav a.is-active { color: var(--ember); }
.nav .btn { color: #fff; margin-left: 10px; }
.nav .btn:hover { background: var(--ember-lo); color: #fff; }

.theme-toggle {
  background: none;
  border: var(--rule);
  border-radius: 2px;
  color: var(--ash);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 9px 11px;
  margin-left: 8px;
  transition: color .2s, border-color .2s;
}

.theme-toggle:hover { color: var(--ember); border-color: var(--ember); }

.nav-toggle {
  display: none;
  background: none;
  border: var(--rule);
  border-radius: 2px;
  color: var(--chalk);
  font-size: 1.2rem;
  padding: 8px 13px;
  cursor: pointer;
}

/* --------------------------------------------------------- Hero ---------- */

.hero {
  position: relative;
  /* svh accounts for mobile browser chrome; vh fallback for older engines */
  min-height: min(88vh, 860px);
  min-height: min(88svh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: var(--rule);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(226,96,58,.20), transparent 55%),
    linear-gradient(to top, var(--oven) 6%, color-mix(in srgb, var(--oven) 55%, transparent) 48%, transparent);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(48px, 9vh, 96px); width: 100%; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.hero h1 {
  margin: 18px 0 22px;
  max-width: 15ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--ember);
  display: block;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* Fermentation clock — the most characteristic thing in this subject's world */
.clock {
  border: var(--rule);
  border-radius: 3px;
  background: color-mix(in srgb, var(--slate) 72%, transparent);
  backdrop-filter: blur(8px);
  padding: 22px 24px;
}

.clock__label {
  font-family: var(--util);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 14px;
}

.clock__time {
  display: flex;
  gap: 14px;
  font-variant-numeric: tabular-nums;
}

.clock__unit { display: flex; flex-direction: column; gap: 3px; }

.clock__n {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--chalk);
}

.clock__u {
  font-family: var(--util);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-dim);
}

.clock__note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: var(--rule);
  font-family: var(--util);
  font-size: var(--t-xs);
  color: var(--ash);
  line-height: 1.5;
}

/* --------------------------------------------------------- Menu list ----- */
/* A price list, not a card grid — how bakeries actually present a menu */

.menu-list { border-top: var(--rule); margin-top: 44px; }

.item {
  display: grid;
  /* Fixed price column so every row's price shares one left edge —
     `auto` would size each row to its own text and leave the column ragged. */
  grid-template-columns: 88px minmax(0, 1fr) 128px;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: 26px 0;
  border-bottom: var(--rule);
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: background .3s;
}

.item:hover { background: var(--slate); }

.item__thumb {
  width: 88px;
  height: 66px;
  flex: none;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(.9) contrast(1.05);
  transition: filter .3s, transform .3s;
}

.item:hover .item__thumb { filter: saturate(1.1); transform: scale(1.04); }

.item__name {
  font-family: var(--display);
  font-size: var(--t-md);
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.item__desc {
  font-size: var(--t-sm);
  color: var(--ash);
  margin-top: 5px;
  line-height: 1.55;
  max-width: 58ch;
}

.item__price {
  font-family: var(--display);
  font-size: var(--t-md);
  font-weight: 700;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
  text-align: right;
  /* Nudge onto the item name's baseline — the row is top-aligned */
  padding-top: 2px;
}

.item__price small {
  display: block;
  font-family: var(--util);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash-dim);
  margin-top: 4px;
  white-space: nowrap;
}

.chip {
  font-family: var(--util);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  border: 1px solid var(--ember);
  color: var(--ember);
  white-space: nowrap;
}

.chip--malt { border-color: var(--malt); color: var(--malt); }
.chip--quiet { border-color: var(--hairline); color: var(--ash); }

/* --------------------------------------------------------- Cards --------- */

.grid {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: var(--rule);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}

.grid > * { background: var(--oven); padding: 32px; }
.section--raised .grid > * { background: var(--slate); }

.card__k {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ember);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------- Split --------- */

.split {
  display: grid;
  gap: clamp(32px, 6vw, 80px);
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.split--offset { grid-template-columns: 1.15fr .85fr; }
.split img { border-radius: 3px; }

.framed {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
}

.framed::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--hairline);
  border-radius: 3px;
  pointer-events: none;
}

/* --------------------------------------------------------- Process ------- */
/* Numbered because it genuinely is a sequence — order carries meaning */

.steps { display: grid; gap: 1px; background: var(--hairline); border: var(--rule); margin-top: 44px; }
.steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.step { background: var(--oven); padding: 34px 30px; position: relative; }
.section--raised .step { background: var(--slate); }

.step__n {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ember);
  display: block;
  margin-bottom: 18px;
}

.step h3 { margin-bottom: 10px; }
.step p { font-size: var(--t-sm); color: var(--ash); }

/* Proof bar — fills on scroll; the dough rising */
.step__bar { height: 2px; background: var(--hairline); margin-bottom: 22px; overflow: hidden; }
.step__bar i { display: block; height: 100%; width: 0; background: var(--ember); transition: width 1.1s cubic-bezier(.22,.61,.36,1); }
.is-visible .step__bar i { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .step__bar i { transition: none; width: 100%; }
}

/* --------------------------------------------------------- Quotes -------- */

.quotes { display: grid; gap: 1px; background: var(--hairline); border: var(--rule); margin-top: 44px;
          grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.quote { background: var(--oven); padding: 34px 30px; margin: 0; }
.section--raised .quote { background: var(--slate); }

.quote p {
  font-size: var(--t-md);
  line-height: 1.5;
  margin-bottom: 18px;
  text-wrap: pretty;
}

.quote p::before { content: "“"; color: var(--ember); }
.quote p::after  { content: "”"; color: var(--ember); }

.quote cite {
  font-family: var(--util);
  font-style: normal;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash-dim);
}

/* --------------------------------------------------------- Page head ----- */

.page-head { padding-block: clamp(56px, 9vh, 104px) clamp(40px, 6vh, 64px); border-bottom: var(--rule); }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin: 16px 0 20px; }
.page-head .lead { max-width: 62ch; }

/* --------------------------------------------------------- Forms --------- */

.form { display: flex; flex-direction: column; gap: 4px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 22px; }

.field label {
  font-family: var(--util);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

.field input, .field select, .field textarea {
  font-family: var(--body);
  /* Never below 16px: iOS Safari auto-zooms the page on focus otherwise */
  font-size: max(16px, var(--t-base));
  color: var(--chalk);
  background: var(--slate);
  border: var(--rule);
  border-radius: 2px;
  padding: 13px 15px;
  width: 100%;
  transition: border-color .2s, background .2s;
}

.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ash-dim); }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ember);
  background: var(--slate-2);
}

.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.field-row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }

.hint { font-family: var(--util); font-size: var(--t-xs); color: var(--ash-dim); }

/* Order rows */
.order-line {
  display: grid;
  /* 44px + 46px + 44px stepper + 2 borders = 136px */
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: var(--rule);
  transition: background .25s;
}

.order-line:hover { background: var(--slate); }
.order-line.has-qty { background: color-mix(in srgb, var(--ember) 7%, transparent); }

.order-line__name { font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.order-line__meta { font-family: var(--util); font-size: var(--t-xs); color: var(--ash); margin-top: 4px; }

.stepper { display: flex; align-items: center; border: var(--rule); border-radius: 2px; overflow: hidden; }

.stepper button {
  background: var(--slate);
  border: none;
  color: var(--ash);
  font-size: 1.1rem;
  line-height: 1;
  padding: 11px 13px;
  min-width: 44px;    /* WCAG 2.5.8 minimum touch target */
  min-height: 44px;
  cursor: pointer;
  transition: background .2s, color .2s;
  touch-action: manipulation;   /* kills the 300ms double-tap-zoom delay */
}

.stepper button:hover { background: var(--ember); color: #fff; }

.stepper input {
  width: 46px;
  text-align: center;
  background: transparent;
  border: none;
  border-inline: var(--rule);
  color: var(--chalk);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 10px 0;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; background: var(--slate-2); }

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 26px 0 8px;
  border-bottom: 2px solid var(--ember);
  margin-bottom: 30px;
}

.order-total__label { font-family: var(--util); font-size: var(--t-xs); letter-spacing: 0.2em;
                      text-transform: uppercase; color: var(--ash); }
.order-total__n { font-family: var(--display); font-size: 2.4rem; font-weight: 700;
                  color: var(--ember); font-variant-numeric: tabular-nums; line-height: 1; }

.notice { border: var(--rule); border-left: 2px solid var(--ember); border-radius: 2px;
          padding: 16px 20px; font-size: var(--t-sm); color: var(--ash); background: var(--slate); }

.notice--warn { border-left-color: var(--malt); color: var(--chalk); }
.notice--ok   { border-left-color: var(--ember); }
.notice h3 { margin-bottom: 8px; }
.notice p { color: var(--ash); }

[hidden] { display: none !important; }

/* --------------------------------------------------------- FAQ ----------- */

.faq { border-top: var(--rule); margin-top: 40px; }

.faq details { border-bottom: var(--rule); }

.faq summary {
  font-family: var(--display);
  font-size: var(--t-md);
  font-weight: 700;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  position: relative;
  list-style: none;
  transition: color .2s;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ember); }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ember);
  transition: rotate .3s;
}

.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--ash); padding-bottom: 26px; margin-top: -4px; }

/* --------------------------------------------------------- Footer -------- */

.site-footer { border-top: var(--rule); padding-block: 72px 32px; background: var(--slate); }

.footer-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 1.6fr 1fr 1fr;
  align-items: start;
}

.footer-mark { width: 46px; height: 46px; margin-bottom: 18px; }

.site-footer h4 {
  font-family: var(--util);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash-dim);
  margin-bottom: 16px;
}

.site-footer p { font-size: var(--t-sm); color: var(--ash); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer li { font-size: var(--t-sm); color: var(--ash); }
.site-footer a { color: var(--ash); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--ember); }

.legal {
  font-family: var(--util);
  font-size: var(--t-xs);
  color: var(--ash-dim);
  line-height: 1.6;
  margin-top: 18px;
  padding-top: 16px;
  border-top: var(--rule);
  max-width: 44ch;
}

.footer-bottom {
  border-top: var(--rule);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--util);
  font-size: var(--t-xs);
  color: var(--ash-dim);
}

/* --------------------------------------------------------- Reveal -------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------- Responsive ---- */

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .split, .split--offset { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    /* header min-height (78px) + its 1px bottom border */
    inset: 79px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--oven);
    border-bottom: var(--rule);
    padding: 8px var(--gutter) 20px;
    max-height: calc(100svh - 79px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav.is-open { display: flex; }
  .nav a { padding: 15px 0; border-bottom: var(--rule); }
  .nav .btn { margin: 14px 0 0; text-align: center; }
  .theme-toggle { margin: 14px 0 0; align-self: flex-start; padding: 12px 15px; }

  /* Price drops to its own row and aligns left with the text column */
  .item {
    grid-template-columns: 64px minmax(0, 1fr);
    row-gap: 10px;
    padding: 22px 0;
  }
  .item__thumb { width: 64px; height: 52px; }
  .item__name { font-size: 1.15rem; }
  .item__price {
    grid-column: 2;
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-align: left;
    padding-top: 0;
  }
  .item__price small { margin-top: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  /* Clock is decorative at this width — let it breathe rather than cramp */
  .clock { padding: 18px 20px; }
  .clock__n { font-size: 1.75rem; }
  .clock__time { gap: 10px; }

  .order-total__n { font-size: 2rem; }
}

/* Very narrow phones — the clock is the first thing that breaks */
@media (max-width: 380px) {
  .clock__time { gap: 7px; }
  .clock__n { font-size: 1.5rem; }
  .clock__u { font-size: 0.55rem; letter-spacing: 0.12em; }
  .item { grid-template-columns: 1fr; }
  .item__thumb { width: 100%; height: 130px; }
  .item__price { grid-column: 1; }
}

/* Touch devices: hover styles stick after tap, so gate them to real pointers */
@media (hover: none) {
  .item:hover { background: transparent; }
  .item:hover .item__thumb { filter: saturate(.9) contrast(1.05); transform: none; }
  .order-line:hover { background: transparent; }
  .order-line.has-qty { background: color-mix(in srgb, var(--ember) 7%, transparent); }
}
