/* Hallmark · shape: Catalogue · genre: playful · theme: Piste (deal 1/3, seed pretzel-girl-soft-pretzel-eec3·6f028d38·2026-12-01·r0) · job: visit · draw: b2a095
 * hero: Stage · nav: masthead · footer: mast · imagery: photographs (the owner's own product shots) · signature: the branded cup of cream cheese sticks, set tall beside "Now at DXB Winter Festival" · piste: snow
 * brand: Pretzel Girl (spec 2026-12-01, from public/app.css) sets the accent (brand blue), gold rules, pretzel-brown prices and the faces: Lobster display, Poppins body, Baloo Bhaijaan 2 Arabic
 * axes: light/display-script/cool · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a festival stand page argues little; led with the place and the real prices instead of a slogan */
/* Hallmark · waive 44c · photograph runs to 838px of 900 · the hero photograph of the pretzel cup fills the first screen; the check measures the text column beside it */
/* Hallmark · waive 79 · photograph bottom at 838px · the empty band is beside the text, not under the hero; the pretzel photograph sits within 62px of the fold */
/* Hallmark · answered F13 · the brand's own wordmark face Lobster replaces Piste's Barlow Condensed under brand truth; Arabic uses Baloo Bhaijaan 2 only */
/* Hallmark · dismissed 58 · the price list's four rows carry English and Arabic, and only one language shows at a time */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- Brand tokens (from the project's own palette, converted to OKLCH) ---------- */
:root {
  --color-paper: oklch(99.4% 0.003 250);
  --color-paper-2: oklch(97.2% 0.012 250);
  --color-paper-3: oklch(93.6% 0.025 250);
  --color-ink: oklch(24% 0.06 258);
  --color-ink-2: oklch(35% 0.1 258);
  --color-muted: oklch(46% 0.05 258);
  --color-rule: oklch(89% 0.02 250);
  --color-accent: oklch(48.6% 0.16 258);
  --color-accent-deep: oklch(36% 0.13 260);
  --color-accent-ink: oklch(99.4% 0.003 250);
  --color-bright: oklch(60% 0.16 254);
  --color-gold: oklch(70% 0.14 80);
  --color-gold-ink: oklch(52% 0.11 75);
  --color-gold-light: oklch(92.5% 0.05 88);
  --color-brown: oklch(46% 0.1 52);
  --color-focus: oklch(58% 0.22 28);
  --color-field: var(--color-accent);
  --color-fill-line: color-mix(in oklch, var(--color-muted) 70%, transparent);
  --color-photo-edge: color-mix(in oklab, var(--color-ink) 10%, transparent);
  --font-display: "Lobster", "Georgia", serif;
  --font-body: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-arabic: "Baloo Bhaijaan 2", "Geeza Pro", sans-serif;
  --font-arabic-display: var(--font-arabic);
  --display-weight: 400;
  --tracking-display: 0;
}

/* ---------- Language switch: English by default, Arabic when <html lang="ar"> ---------- */
html:not([lang="ar"]) [lang="ar"]:not(html) { display: none; }
html[lang="ar"] [lang="en"]:not(html) { display: none; }
html[lang="ar"] body { font-family: var(--font-arabic); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--font-arabic-display); font-weight: 800; }
html[lang="ar"] .lead, html[lang="ar"] p { line-height: 1.8; }

body { font-size: 1.0625rem; }
h1, h2, h3 { color: var(--color-accent); text-transform: none; }

.skip { position: absolute; inset-inline-start: var(--space-md); top: -100px; z-index: var(--z-modal); padding: var(--space-xs) var(--space-md); background: var(--color-accent); color: var(--color-accent-ink); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border: 0; border-radius: 0; font: 700 var(--text-md)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-deep); }
.btn--primary:active { background: var(--color-ink); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn--secondary { background: transparent; color: var(--color-accent); box-shadow: inset 0 0 0 var(--rule-bar) var(--color-accent); }
.btn--secondary:hover { background: var(--color-paper-2); color: var(--color-accent-deep); }
.btn--secondary:active { background: var(--color-paper-3); }
.btn:focus-visible, .lang:focus-visible, .mast-nav a:focus-visible, .foot a:focus-visible, .wordmark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
html[lang="ar"] .btn { font-family: var(--font-arabic); }

/* ---------- Masthead ---------- */
.mast { border-bottom: var(--rule-bar) solid var(--color-gold); background: var(--color-paper); }
.mast-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-lg); padding-block: var(--space-sm); }
.mast-hours { font-size: var(--text-sm); color: var(--color-brown); }
.wordmark { display: inline-flex; align-items: flex-end; gap: var(--space-xs); text-decoration: none; }
.wordmark-mascot { width: auto; height: 64px; }
.wordmark-word { display: inline-flex; flex-direction: column; align-items: flex-end; font: 400 2.5rem/0.95 var(--font-display); color: var(--color-accent); }
.wordmark-girl { font-size: 0.7em; color: var(--color-gold-ink); margin-top: -0.12em; }
.mast-nav { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-lg); font-size: var(--text-sm); }
.mast-nav a { color: var(--color-ink); text-decoration: none; }
.mast-nav a:hover { color: var(--color-accent); text-decoration: underline; }
.lang { min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-accent); border-radius: 0; background: transparent; color: var(--color-accent); font: 700 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out); }
.lang [lang="en"] { font-family: var(--font-arabic); font-size: 1rem; }
.lang:hover { background: var(--color-paper-2); }
.lang:active { background: var(--color-paper-3); }

/* ---------- Hero (Stage: text on five columns, the photograph on seven) ---------- */
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; min-height: calc(100svh - 92px); padding-block: var(--space-2xl); }
.hero-text { display: grid; gap: var(--space-lg); justify-items: start; }
.hero h1 { font-size: clamp(3rem, 4.6vw + 1rem, 5.75rem); line-height: 1.02; max-width: 11ch; }
html[lang="ar"] .hero h1 { line-height: 1.35; max-width: 13ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }
.photo { outline: 1px solid var(--color-photo-edge); outline-offset: -1px; background: var(--color-paper-2); }
.hero-photo { margin: 0; justify-self: end; width: 100%; max-width: 640px; aspect-ratio: 5 / 6; max-height: 76svh; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Catalogue rails ---------- */
.cat { padding-top: var(--section-gap-s); }
.cat--sticks { padding-top: var(--section-gap); }
.cat-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.cat-head .lead { color: var(--color-ink-2); }
.rail { list-style: none; margin: 0 auto; max-width: var(--container); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 22%); gap: var(--gap-columns); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) var(--space-lg); overscroll-behavior-x: contain; scrollbar-color: var(--color-rule) transparent; }
.rail--wide { grid-auto-columns: minmax(17rem, 30%); }
.rail > * { scroll-snap-align: start; }
.rail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.item { display: grid; gap: var(--space-xs); align-content: start; min-width: 0; }
.item .photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: var(--space-xs); }
.item h3 { font-size: var(--text-xl); }
.price { font-weight: 700; color: var(--color-brown); font-variant-numeric: tabular-nums; }

/* ---------- Cookies, drinks and dips (rows) ---------- */
.also { padding-top: var(--section-gap); }
.also-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.rows { list-style: none; margin: 0; padding: 0; border-top: var(--rule-bar) solid var(--color-accent); }
.rows li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 2fr); gap: var(--space-lg); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows h3 { font-size: var(--text-xl); }
.rows p { color: var(--color-ink-2); }
.rows .price { text-align: end; color: var(--color-brown); }

/* ---------- Visit (the close: where and when) ---------- */
.visit { padding-block: var(--section-gap-l) var(--section-gap); }
.visit-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: start; }
.visit-text { display: grid; gap: var(--space-lg); }
.visit-order { color: var(--color-ink-2); max-width: 44ch; }
.fill { padding: 0 0.25em; border: 1px dashed var(--color-fill-line); border-radius: 3px; color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hours { width: 100%; border-collapse: collapse; font-size: var(--text-lead); }
.hours caption { text-align: start; font-size: var(--text-sm); color: var(--color-muted); padding-bottom: var(--space-sm); border-bottom: var(--rule-bar) solid var(--color-accent); caption-side: top; }
.hours th, .hours td { padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: start; font-weight: 400; vertical-align: baseline; }
.hours td { text-align: end; font-weight: 700; color: var(--color-ink); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--color-accent); font-weight: 700; }

/* ---------- Footer (mast on the brand field) ---------- */
.foot { background: var(--color-field); color: var(--color-accent-ink); padding-block: var(--space-3xl) var(--space-2xl); }
.foot-in { display: grid; gap: var(--space-xl); }
.foot-top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-lg); }
.foot-mascot { width: auto; height: clamp(110px, 15vw, 200px); flex: 0 0 auto; }
.foot-word { display: flex; align-items: baseline; gap: 0.2em; font: 400 clamp(3.5rem, 9vw, 8rem)/1 var(--font-display); color: var(--color-accent-ink); }
.foot-word .wordmark-girl { margin: 0; color: var(--color-gold-light); }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); font-size: var(--text-lead); }
.foot a { color: var(--color-accent-ink); text-underline-offset: 0.2em; }
.foot a:hover { color: var(--color-gold-light); }
.foot a:focus-visible { outline-color: var(--color-accent-ink); }
.foot-legal { font-size: var(--text-sm); color: color-mix(in oklch, var(--color-accent-ink) 82%, transparent); border-top: var(--rule-hair) solid color-mix(in oklch, var(--color-accent-ink) 30%, transparent); padding-top: var(--space-lg); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 60rem) {
  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: var(--space-xl); padding-block: var(--space-xl) var(--space-2xl); }
  .hero-photo { justify-self: stretch; max-width: 560px; aspect-ratio: 1; max-height: none; }
  .cat-head, .also-in, .visit-in { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .visit-in { gap: var(--space-xl); }
  .rail { grid-auto-columns: minmax(13rem, 42%); }
  .rail--wide { grid-auto-columns: minmax(15rem, 60%); }
}
@media (max-width: 40rem) {
  .mast-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "word nav" "hours hours"; gap: var(--space-xs) var(--space-md); }
  .wordmark { grid-area: word; }
  .mast-nav { grid-area: nav; gap: var(--space-md); }
  .mast-nav a { display: none; }
  .mast-hours { grid-area: hours; }
  .wordmark-mascot { height: 52px; }
  .wordmark-word { font-size: 2rem; }
  .rail { grid-auto-columns: 68%; }
  .rail--wide { grid-auto-columns: 78%; }
  .rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .rows li p:not(.price) { grid-column: 1 / -1; grid-row: 2; }
  .rows .price { grid-row: 1; grid-column: 2; }
}

/* ---------- Product photos: whole pretzel and mascot on a soft tile ----------
   The photos are shot on white with the mascot in a corner. Instead of a hard
   square crop (which cut the mascot off), each photo is shown whole and its
   white ground melts into a rounded sky tile (multiply blend). */
.photo { outline: none; background: none; }
.item .tile {
  display: block; aspect-ratio: 1; border-radius: 22px; overflow: hidden; margin-bottom: var(--space-xs);
  background: radial-gradient(120% 100% at 50% 20%, var(--color-paper) 0%, var(--color-paper-2) 70%, var(--color-paper-3) 100%);
  transition: transform var(--dur-short) var(--ease-out);
}
.item .tile .photo { width: 100%; height: 100%; aspect-ratio: auto; margin: 0; object-fit: contain; padding: var(--space-md); mix-blend-mode: multiply; }
.item:hover .tile { transform: translateY(-3px); }
.hero-photo { max-width: 600px; aspect-ratio: 1; border-radius: 32px; overflow: hidden; background: radial-gradient(120% 100% at 50% 25%, var(--color-paper) 0%, var(--color-paper-2) 65%, var(--color-paper-3) 100%); }
.hero-photo img { object-fit: contain; padding: var(--space-lg); mix-blend-mode: multiply; }
@media (max-width: 60rem) { .hero-photo { aspect-ratio: 1; max-width: 520px; } }
@media (prefers-reduced-motion: reduce) { .item:hover .tile { transform: none; } }
