/* ==========================================================================
   Chinaski Deli — base tokens, reset, fonts, shared version switcher
   ========================================================================== */

@font-face {
  font-family: "Neue Montreal Squeezed";
  src: url("../fonts/OTNeueMontreal-BoldSemiSqueezed.woff2") format("woff2"),
       url("../fonts/OTNeueMontreal-BoldSemiSqueezed.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette (from moodboard)
     --blush history: #fac7b9 (original moodboard, through Jun 2026) → #eeb6a0 (current) */
  --blush: #eeb6a0;
  --plum: #511c35;
  --white: #ffffff;

  /* Secondary accents */
  --coral: #d90b17;
  --red: #c4231f;
  --acai: #8a5a6d;
  --sage: #b9c4a8;
  --cream: #fdf3ee;
  --ink: #2a121e;

  /* Roles */
  --bg: var(--blush);
  --fg: var(--plum);
  --accent: var(--coral);

  /* Type — Neue Montreal shouts (identity); Hanken Grotesk speaks (warm, not banned Inter/DM default) */
  --display: "Neue Montreal Squeezed", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --fs-display-xl: clamp(2.75rem, 9vw, 7.5rem);
  --fs-display-lg: clamp(2.25rem, 6.5vw, 5.5rem);
  --fs-display-md: clamp(1.5rem, 3vw, 2.4rem);
  --fs-lead: clamp(1.05rem, 1.35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-body-sm: 0.9375rem;
  --fs-caption: 0.8125rem;
  --fs-kicker: 0.6875rem;
  --lh-display: 0.88;
  --lh-body: 1.55;
  --ls-display: -0.02em;
  --ls-kicker: 0.18em;
  --measure: 65ch;
  --measure-narrow: 42ch;

  /* Role tokens (brand coral stays for fills) */
  --coral-ink: #a20811; /* ≥4.5:1 on blush for small text */

  /* Spacing / layout */
  --pad-x: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1600px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --section-y: clamp(4rem, 9vw, 7rem);
  --cdock-clearance: 5.5rem;
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--coral);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  margin: 0;
}

.u-vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

a.btn, .cdock__ver { cursor: pointer; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

html { scroll-padding-bottom: var(--cdock-clearance); }

body:has(.cdock) .foot {
  padding-bottom: calc(2rem + var(--cdock-clearance));
}

.u-vh { /* visually hidden */
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Version switcher (shared across all three concepts)
   -------------------------------------------------------------------------- */
.vswitch {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(81, 28, 53, 0.08);
  font-family: var(--body);
}
.vswitch__label {
  display: none;
  align-items: center;
  padding: 0 0.75rem 0 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}
.vswitch__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.vswitch__no { font-weight: 700; opacity: 0.55; }
.vswitch__name { display: none; }
.vswitch__item.is-active {
  background: var(--plum);
  color: var(--blush);
}
.vswitch__item.is-active .vswitch__no { opacity: 1; }
.vswitch__item:not(.is-active):hover { background: rgba(81, 28, 53, 0.12); }

/* dark variant for plum/photo navs */
.vswitch--dark { background: rgba(250, 199, 185, 0.16); }
.vswitch--dark .vswitch__item:not(.is-active) { color: var(--blush); }
.vswitch--dark .vswitch__item.is-active { background: var(--blush); color: var(--plum); }
.vswitch--dark .vswitch__item:not(.is-active):hover { background: rgba(250, 199, 185, 0.22); }

@media (min-width: 760px) {
  .vswitch__label { display: inline-flex; }
  .vswitch__name { display: inline; }
}

/* Logo (SVG lockup, ~2.48:1) — sized by height */
.logo { display: block; width: auto; height: 100%; }

/* --------------------------------------------------------------------------
   Shared hero background layer (redesign concepts v4–v7)
   -------------------------------------------------------------------------- */
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero > *:not(.hero__bg) { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Concept demo dock — jump between redesigns + flip the palette.
   Palette-neutral chrome so it reads on both light and dark concepts.
   -------------------------------------------------------------------------- */
.cdock {
  position: fixed; z-index: 70;
  left: 50%; bottom: max(0.7rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: rgba(20, 10, 15, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  font-family: var(--body);
  max-width: calc(100vw - 1.5rem);
}
.cdock__versions { display: inline-flex; align-items: center; gap: 2px; }
.cdock__ver {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.7rem; border-radius: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem; letter-spacing: 0.02em; white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.cdock__no { font-weight: 700; }
.cdock__name { display: none; }
.cdock__ver:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.cdock__ver.is-active { background: #fff; color: #1a0d13; }
.cdock__palette {
  display: inline-flex; align-items: center; gap: 2px;
  padding-left: 0.4rem; margin-left: 0.15rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.cdock__palette-label {
  display: none;
  padding: 0 0.35rem; font-size: 0.58rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.5);
}
.cdock__pal {
  border: 0; background: transparent; color: rgba(255, 255, 255, 0.72);
  padding: 0.4rem 0.7rem; border-radius: 7px;
  font: inherit; font-size: 0.7rem; letter-spacing: 0.04em;
  text-transform: uppercase; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.cdock__pal:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.cdock__pal.is-active { background: var(--coral); color: #fff; }

@media (min-width: 760px) {
  .cdock__name { display: inline; }
  .cdock__palette-label { display: inline; }
}
.cdock__ver,
.cdock__pal {
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
}
.cdock__ver:focus-visible,
.cdock__pal:focus-visible {
  box-shadow: 0 0 0 2px rgba(20, 10, 15, 0.9), 0 0 0 4px #fff;
}

@media (max-width: 420px) {
  .cdock { gap: 0.2rem; padding: 0.3rem; }
  .cdock__ver, .cdock__pal { padding: 0.45rem 0.55rem; }
}

/* Easter egg: Shift+P peeks a framed poster (see concepts-egg.js) */
.poster-peek {
  position: fixed; z-index: 65;
  right: var(--pad-x); bottom: calc(var(--cdock-clearance) + 0.5rem);
  width: min(11rem, 42vw);
  aspect-ratio: 71 / 100;
  margin: 0;
  padding: 0.35rem;
  background: var(--cream, #fdf3ee);
  border: 1px solid color-mix(in srgb, var(--plum, #511c35) 20%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
}
.poster-peek.is-on {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.poster-peek img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}
@media (prefers-reduced-motion: reduce) {
  .poster-peek { transition: opacity 0.2s linear; }
  .poster-peek.is-on { transform: none; }
}

/* Shared hours rows */
.hours__row { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.2rem 0; }
