/* Canpol Polish Food: "Kurpie Ink, Łowicz Bloom"
   Order: fonts → tokens → base → layout → components → sections → illustration motion → print */

/* ---------- Fonts (self-hosted, from Google Fonts; no vietnamese subset) ---------- */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/atkinson-hyperlegible-next-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/atkinson-hyperlegible-next-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/fraunces-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/fraunces-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --paper: #FBF6EC;
  --paper-alt: #F3EAD7;
  --card: #FFFDF8;
  --ink: #1E1A16;
  --ink-soft: #4A4038;
  --heading: #14254F;
  --accent: #9B1C2B;
  --accent-hover: #7E1622;
  --on-accent: #FFFDF8;
  --night: #14254F;
  --night-soft: #C9D2E6;
  --focus: #1F4FA3;
  --focus-on-dark: #F5C518;
  --open: #155C36;
  --soon: #7A4300;
  --closed: #9B1C2B;
  --line: #B9A88C;

  /* shapes only: never text */
  --lw-red: #D7262E;
  --lw-magenta: #C2185B;
  --lw-orange: #EE7623;
  --lw-emerald: #0F8A5F;
  --lw-cobalt: #1F4FA3;
  --lw-gold: #F5C518;
  --lw-sky: #6E93C9;
  --crust: #A8562A;
  --crust-light: #D9914F;
  --dough: #F2DDB0;

  --cut: var(--paper);

  --font-body: "Atkinson Hyperlegible Next", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --fs-body: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-small: 1.125rem;
  --fs-micro: 1rem;
  --fs-eyebrow: clamp(1.125rem, 1.05rem + 0.25vw, 1.25rem);
  --fs-h3: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  --fs-h2: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --fs-h1: clamp(2.75rem, 1.9rem + 3.6vw, 5rem);
  --fs-rating: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --fs-btn: 1.25rem;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 3rem + 5vw, 8rem);
  --header-h: 64px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-card: 0 1px 0 rgb(20 37 79 / .06), 0 12px 28px -16px rgb(20 37 79 / .25);
  --shadow-card-hover: 0 1px 0 rgb(20 37 79 / .08), 0 20px 36px -16px rgb(20 37 79 / .32);
}
@media (min-width: 768px) {
  :root { --header-h: 72px; }
}
@media (max-width: 767px) {
  /* no-JS: the nav links wrap under the logo, so the sticky header is taller */
  html:not(.js) { --header-h: 124px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper) url(../svg/paper-grain.svg) repeat;
  background-size: 240px 240px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); line-height: 1.1; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }

p, ul, ol, dl, dd, address, figure { margin: 0; }
p { text-wrap: pretty; }
address { font-style: normal; }
b, strong { font-weight: 700; }
img, svg { display: block; max-width: 100%; }

a { color: var(--heading); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--focus-on-dark); }
main:focus { outline: none; }

[role="list"] { list-style: none; padding: 0; }

.icon { width: 24px; height: 24px; flex: none; fill: currentColor; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

html:not(.js) .js-only { display: none !important; }

.skip-link {
  position: absolute;
  left: 1rem; top: 1rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--card);
  color: var(--heading);
  font-weight: 700;
  border: 2px solid var(--heading);
  border-radius: 12px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Dev placeholder left by tools/inline_svg.py when an SVG file is missing */
.svg-missing {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  border: 2px dashed var(--line);
  border-radius: 12px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: var(--fs-micro);
  line-height: 1.1;
  word-break: break-all;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 1600px) {
  .container--hero { max-width: calc(1280px + 2 * var(--gutter)); }
}

.band { padding-block: var(--section-y); }
.band--alt {
  background: url(../svg/paper-grain.svg) repeat, var(--paper-alt);
  background-size: 240px 240px, auto;
}

section[id] { scroll-margin-top: 0; }

/* Scalloped edge divider: a strip at the top of each paper-alt band and the footer */
.edge {
  height: 24px;
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: 32px 24px;
}
.edge--alt { background-image: url(../svg/edge-alt.svg); }
.edge--night { background-image: url(../svg/edge-night.svg); background-color: var(--paper-alt); }
/* A band that follows a paper-alt band sits on that colour */
.edge + .band--alt { margin-top: 0; }

/* ---------- Type helpers ---------- */
.eyebrow {
  margin-bottom: .5rem;
  color: var(--accent);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
}
.eyebrow__gloss { color: var(--ink-soft); font-weight: 400; letter-spacing: 0; }

.lead { max-width: 52ch; font-size: var(--fs-lead); line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: var(--fs-btn);
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease-out, background-color .15s ease-out, color .15s ease-out, box-shadow .15s ease-out;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 3px 0 var(--accent-hover);
}
.btn--primary:hover, .btn--primary:active { background: var(--accent-hover); color: var(--on-accent); }

.btn--secondary {
  background: var(--card);
  color: var(--heading);
  border-color: var(--heading);
}
.btn--secondary:hover { background: var(--paper-alt); color: var(--heading); }

.btn--tertiary {
  min-height: 48px;
  padding: 0 4px;
  gap: 8px;
  background: none;
  color: var(--heading);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.btn--tertiary:hover { color: var(--accent); }

.btn--call { padding-block: 8px; }
.btn__label { display: flex; flex-direction: column; }
.btn__sub { font-weight: 400; font-size: var(--fs-small); }
/* never split a phone number across lines */
a[href^="tel:"]:not(.btn) { white-space: nowrap; }

.btn--compact { min-height: 48px; padding: 0 16px; gap: 8px; }

@media (max-width: 599px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .btn-row .btn--call { justify-content: center; }
  .btn-row .btn--call .btn__label { align-items: center; }
}

/* ---------- Status pill ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 6px 14px;
  background: var(--card);
  border: 2px solid var(--heading);
  border-radius: 24px;
  color: var(--heading);
  font-size: var(--fs-small);
  line-height: 1.35;
}
.status a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.status a:hover { color: var(--accent); }
.status--lg { font-size: 1.25rem; padding: 8px 18px; }

.status--open { border-color: var(--open); color: var(--open); }
.status--soon { border-color: var(--soon); color: var(--soon); }
.status--closed { border-color: var(--closed); color: var(--closed); }

.status__dot {
  flex: none;
  width: .7em; height: .7em;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.status--open .status__dot { background: currentColor; }
.status--soon .status__dot { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.status--closed .status__dot { background: transparent; }

/* ---------- Info strip ---------- */
.strip {
  background: var(--night);
  color: var(--paper);
  font-size: var(--fs-small);
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  min-height: 48px;
  padding-block: 6px;
}
.strip .status a { color: var(--heading); }
.strip .status :focus-visible { outline-color: var(--focus); }
.strip__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  color: var(--paper);
  text-decoration: none;
}
.strip__link:hover { color: var(--paper); text-decoration: underline; text-decoration-thickness: 1px; }
.strip__phone { font-weight: 700; }
.strip__address { display: none; }
@media (min-width: 768px) {
  .strip__address { display: inline-flex; }
}
@media (max-width: 1023px) {
  .strip__inner { justify-content: center; }
}
@media (max-width: 599px) {
  .strip__inner { padding-block: 4px 0; row-gap: 0; }
  .hero .lead, .hero .status { margin-bottom: 1.125rem; }
  .hero__title { margin-bottom: .75rem; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(251 246 236 / .96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 64px;
}
.js .site-header__inner { flex-wrap: nowrap; }
@media (min-width: 768px) {
  .site-header__inner { min-height: 72px; flex-wrap: nowrap; gap: 16px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  min-height: 48px;
  color: var(--heading);
  text-decoration: none;
}
.brand:hover { color: var(--heading); }
.brand__mark { display: block; width: 36px; color: var(--heading); }
.brand__mark svg { width: 36px; height: 36px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; }
.brand__sub { font-size: 1.125rem; font-weight: 700; color: var(--ink-soft); } /* 0.6em of the 30px name */
/* On small screens "Polish Food" would be under 18px, so it is read by screen readers only */
.header-call, .menu-toggle { flex: none; }
@media (max-width: 767px) {
  .site-header__inner { gap: 6px; }
  .brand { gap: 6px; min-width: 0; }
  .brand__mark, .brand__mark svg { width: 32px; height: 32px; }
  .header-call { padding: 0 12px; gap: 6px; }
  .menu-toggle { padding: 0 10px; }
}
@media (max-width: 359px) {
  .brand__mark { display: none; }
  /* keep "Canpol" whole next to the Call and Menu buttons at 320px */
  .site-header__inner { gap: 4px; }
  .brand__name { font-size: 1.375rem; }
  .header-call { padding: 0 10px; }
  .menu-toggle { padding: 0 8px; }
}
@media (max-width: 767px) {
  .brand__sub {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}
@media (min-width: 768px) {
  .brand { gap: 12px; }
  .brand__mark, .brand__mark svg { width: 44px; height: 44px; }
  .brand__name { font-size: 1.875rem; } /* 30px → "Polish Food" at 0.6em = 18px */
  .brand__sub { margin-top: 4px; }
}

.header-call__full { display: none; }
@media (min-width: 768px) {
  .header-call { display: none; }
}
@media (min-width: 1024px) {
  .header-call { display: inline-flex; padding: 0 20px; }
  .header-call__short { display: none; }
  .header-call__full { display: inline; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  background: var(--card);
  color: var(--heading);
  border: 2px solid var(--heading);
  border-radius: 12px;
  font: 700 var(--fs-small)/1 var(--font-body);
  cursor: pointer;
}
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }
@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

/* Nav: inline at ≥768 */
.nav__list { display: flex; flex-wrap: wrap; gap: 0 4px; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  color: var(--heading);
  font-size: 1.1875rem; /* 19px */
  font-weight: 700;
  text-decoration: none;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 6px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .2s ease-out;
}
.nav__link:hover { color: var(--accent); }
.nav__link[aria-current]::after { transform: none; }
.nav__extra { display: none; }

@media (max-width: 767px) {
  /* No JS: links wrap under the logo */
  html:not(.js) .nav { order: 3; width: 100%; padding-bottom: 4px; }
  html:not(.js) .nav__list { margin-left: -12px; }

  /* JS: full-width panel under the header */
  .js .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    max-height: calc(100vh - var(--header-h) - 8px);
    max-height: calc(100dvh - var(--header-h) - 8px);
    overflow-y: auto;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 2px solid var(--heading);
    box-shadow: 0 16px 32px -16px rgb(20 37 79 / .35);
  }
  .js .menu-open .nav { display: block; }
  .js .nav__list { flex-direction: column; }
  .js .nav__list li { border-bottom: 1px solid var(--line); }
  .js .nav__link { display: flex; min-height: 64px; padding: 0 4px; font-size: 1.5rem; }
  .js .nav__link::after { left: 4px; right: auto; width: 3em; bottom: 12px; }
  .js .nav__extra { display: grid; gap: 16px; padding-top: 20px; }
  .nav__phone {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 48px;
    font-size: var(--fs-lead); font-weight: 700;
    text-decoration: none;
  }
  .nav__hours { display: flex; gap: 10px; color: var(--ink); }
  .nav__hours .icon { margin-top: 4px; color: var(--heading); }
}
@media (min-width: 768px) {
  .nav { margin-left: auto; }
  .brand { margin-right: 0; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(1rem, .5rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 6rem); scroll-margin-top: 300px; }
.hero__inner { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.hero__text { min-width: 0; }
.hero__title { margin-bottom: 1rem; }
.hero .lead { margin-bottom: 1.5rem; }
.hero .status { margin-bottom: 1.5rem; }
.hero .btn-row { margin-bottom: 1.25rem; }
.hero__address { color: var(--ink-soft); }
.hero__art { width: 100%; max-width: 420px; margin-inline: auto; }
.hero__art svg { width: 100%; height: auto; }
@media (min-width: 768px) {
  .hero__art { max-width: 560px; }
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 5fr 7fr; }
  .hero__art { max-width: 680px; margin-right: 0; }
}
@media (min-width: 1600px) {
  .hero__art { max-width: 760px; }
}

/* ---------- Section heads and ornament ---------- */
.section-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head h2 { margin-bottom: 1rem; }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-inline: auto; }

.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  --cut: var(--paper);
}
.band--alt .ornament { --cut: var(--paper-alt); }
.section-head--center .ornament { justify-content: center; }
.ornament::before, .ornament::after {
  content: "";
  width: 64px;
  height: 1px;
  background: var(--line);
}
.ornament > svg, .ornament > .svg-missing { width: 48px; height: 48px; flex: none; }

/* ---------- What we carry ---------- */
.carry-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.carry-grid__item { display: flex; }

.card {
  --cut: var(--card);
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 32px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.card__art { width: 200px; max-width: 100%; margin: 0 auto 24px; }
.card__art svg { width: 100%; height: auto; }
.card h3 { margin-bottom: .75rem; }
.card__fact { margin-bottom: .75rem; }
.card__note { color: var(--ink-soft); }
.card__note b { color: var(--ink); }

@media (hover: hover) {
  .card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
}

@media (max-width: 599px) {
  .card { padding: 28px 24px; }
}
@media (min-width: 600px) {
  .carry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .carry-grid__item--wide-md { grid-column: 1 / -1; }
  .carry-grid__item--wide-md .card { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; }
  .carry-grid__item--wide-md .card__art { margin: 0; }
}
@media (min-width: 1024px) {
  .carry-grid { grid-template-columns: repeat(6, 1fr); gap: 28px; }
  .carry-grid__item { grid-column: span 2; }
  .carry-grid__item--wide-lg { grid-column: span 3; }
  .carry-grid__item--wide-lg .card { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; }
  .carry-grid__item--wide-lg .card__art { margin: 0; }
}

/* ---------- Reviews ---------- */
.reviews__grid { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 4rem); }
.reviews__intro h2 { margin-bottom: 1rem; }
.reviews__intro .lead { margin-bottom: 2rem; }

.rating { display: grid; gap: 12px; justify-items: start; }
.rating__top { display: flex; align-items: center; gap: 16px; }
.rating__num {
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-rating);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rating__birds { width: 48px; --cut: var(--paper); }
.rating__birds svg { width: 48px; height: 48px; }
.rating__stars { width: 220px; height: auto; overflow: visible; --cut: var(--paper); }
.rating__star { color: var(--accent); fill: var(--accent); }
.rating__star--empty { color: var(--line); fill: var(--paper-alt); }
.rating__caption { color: var(--ink-soft); }

.themes { display: grid; gap: 20px; grid-template-columns: 1fr; }
.theme {
  --cut: var(--card);
  padding: 28px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.theme__bullet { width: 32px; height: 32px; margin-bottom: 12px; color: var(--bullet, var(--lw-red)); fill: currentColor; }
.theme h3 { margin-bottom: .5rem; }
@media (min-width: 600px) {
  .themes { grid-template-columns: repeat(2, 1fr); }
  .theme--wide { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .reviews__grid { grid-template-columns: 4fr 8fr; align-items: start; }
  .reviews__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- Visit ---------- */
.visit__grid { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 4rem); }
.visit__details { display: grid; gap: 28px; align-content: start; }
.visit__details .section-head { margin-bottom: 0; }

.detail { display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start; }
.detail__icon { margin-top: 6px; color: var(--heading); }
.detail__main { min-width: 0; }
.detail__label {
  margin-bottom: 4px;
  color: var(--heading);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.5;
}
.detail__value { font-size: var(--fs-lead); line-height: 1.45; }
.detail__value a { font-weight: 700; }

.hours-card {
  margin-top: 8px;
  padding: 24px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.hours { width: 100%; border-collapse: collapse; scroll-margin-top: 5rem; }
.hours caption {
  padding-bottom: 12px;
  color: var(--heading);
  font-weight: 700;
  text-align: left;
}
.hours th, .hours td {
  padding: 14px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.hours th { font-weight: 700; }
.hours td { white-space: nowrap; text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { background: var(--paper-alt); }
.hours tr.is-today th { box-shadow: inset 4px 0 0 var(--accent); }
.hours__day { margin-right: 8px; }
.today-tag {
  display: block;
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 700;
}
.today-tag > span { white-space: nowrap; }
.today-tag--open { color: var(--open); }
.today-tag--soon { color: var(--soon); }
.today-tag--closed { color: var(--closed); }
@media (max-width: 599px) {
  /* let the table use the full width under the icon column */
  .detail--hours .hours-card { margin-left: -40px; padding: 16px; }
  .hours th, .hours td { padding: 12px 8px; }
}
@media (max-width: 359px) {
  .hours td { white-space: normal; }
}
/* Large text or zoom: let the times wrap once the card is narrow relative to the font size */
.hours-card { container-type: inline-size; }
@container (max-width: 17rem) {
  .hours td { white-space: normal; }
}
.hours-note { margin-top: 12px; color: var(--ink-soft); font-size: var(--fs-small); }

.map-card {
  --cut: var(--card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  min-height: 360px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--card) url(../svg/dots.svg) repeat;
  background-size: 64px 64px;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.map-card__visual { display: grid; justify-items: center; gap: 16px; }
.map-card__pin { width: 120px; }
.map-card__pin svg { width: 100%; height: auto; }
.map-card__address {
  padding: 4px 12px;
  background: var(--card);
  border-radius: 12px;
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.25;
}
.map-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.map-card__frame { display: block; width: 100%; height: 360px; border: 0; border-radius: 12px; background: var(--paper-alt); }
@media (max-width: 599px) {
  .map-card__actions { flex-direction: column; }
  .map-card__actions .btn { width: 100%; }
}
@media (min-width: 1024px) {
  .visit__grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .map-card { position: sticky; top: calc(var(--header-h) + 2rem); min-height: 520px; }
}

/* ---------- Footer ---------- */
.footer {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) 1.5rem;
  background: var(--night);
  color: var(--paper);
}
.footer a { color: var(--paper); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer a:hover { color: var(--paper); text-decoration-thickness: 2px; }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer__mark { display: block; width: 56px; margin-bottom: 12px; color: var(--paper); --cut: var(--night); }
.footer__mark svg { width: 56px; height: 56px; }
.footer__name {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.2;
}
.footer__title {
  margin-bottom: 12px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .02em;
}
.footer__col { display: grid; gap: 8px; align-content: start; }
.footer__hours { display: grid; gap: 8px; }
.footer__hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; }
.footer__hours dt { font-weight: 700; }
.footer__hours dd { margin-left: auto; } /* stays right-aligned when it wraps */
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(201 210 230 / .35);
  color: var(--night-soft);
  font-size: var(--fs-micro);
  line-height: 1.5;
}
.footer .footer__credit {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--night-soft);
  text-decoration: none;
}
.footer .footer__credit:hover, .footer .footer__credit:focus-visible { color: var(--night-soft); text-decoration: underline; text-decoration-thickness: 1px; }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

/* ---------- Illustration motion (hooks from the build contract) ----------
   Hidden states exist only under .motion (added by the inline head script when
   the user has not asked for reduced motion). Without JS, or with reduced motion,
   everything renders in its final state. Rest states never set `transform` or
   `transform-origin`, so transforms written as SVG attributes stay untouched. */
.art {
  --base: 0ms;
  --n: 4;          /* number of .layer groups (set per illustration by main.js) */
  --ls: 120ms;     /* layer stagger */
  --cs: 150ms;     /* cut-line stagger */
  --ks: 60ms;      /* dot stagger */
  --draw-dur: 1.2s;
  --after-bloom: calc(var(--base) + var(--n) * var(--ls) + 300ms);
}
.hero__art { --base: 150ms; --draw-dur: .9s; --cut: var(--paper); }

@keyframes bloom-in {
  from { opacity: 0; transform: scale(.6) rotate(-6deg); }
}
@keyframes fade-in {
  from { opacity: 0; }
}
@keyframes draw-in {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(.4); }
}
@keyframes unfold {
  from { transform: scaleX(0); }
}

/* before reveal */
.motion .art:not(.is-in) .layer,
.motion .art:not(.is-in) .dot,
.motion .art--whole:not(.is-in) > svg { opacity: 0; }
.motion .art:not(.is-in) .cut[pathLength],
.motion .art:not(.is-in) .draw[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* reveal: paper-cut bloom, bottom to top */
.motion .art.is-in .layer:not([transform]) {
  transform-box: fill-box;
  transform-origin: center;
  animation: bloom-in .9s var(--ease) both;
  animation-delay: calc(var(--base) + var(--i, 0) * var(--ls));
}
.motion .art.is-in .layer[transform] {
  animation: fade-in .9s var(--ease) both;
  animation-delay: calc(var(--base) + var(--i, 0) * var(--ls));
}
.motion .art--whole.is-in > svg {
  transform-origin: center;
  animation: bloom-in .9s var(--ease) both;
  animation-delay: var(--base);
}

/* then the scissors: cut-lines and other strokes draw in */
.motion .art.is-in .cut[pathLength],
.motion .art.is-in .draw[pathLength] {
  stroke-dasharray: 1;
  animation: draw-in var(--draw-dur) ease-in-out both;
  animation-delay: calc(var(--after-bloom) + var(--j, 0) * var(--cs));
}

/* dots pop with the cut-lines */
.motion .art.is-in .dot:not([transform]) {
  transform-box: fill-box;
  transform-origin: center;
  animation: pop-in .5s var(--ease) both;
  animation-delay: calc(var(--after-bloom) + var(--k, 0) * var(--ks));
}
.motion .art.is-in .dot[transform] {
  animation: fade-in .5s var(--ease) both;
  animation-delay: calc(var(--after-bloom) + var(--k, 0) * var(--ks));
}

/* section fade-and-rise */
.rise { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--stagger, 0) * 90ms); }
.motion .rise:not(.is-in) { opacity: 0; transform: translateY(16px); }

/* edge divider unfolds from the fold axis */
.motion .edge:not(.is-in) { transform: scaleX(0); }
.motion .edge.is-in { animation: unfold .9s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  /* no hover lift either */
  .btn:hover, .card:hover, .card:focus-within { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .strip, .nav, .menu-toggle, .header-call, .skip-link, .map-card__actions, .edge { display: none !important; }
  .site-header { position: static; backdrop-filter: none; background: none; }
  body { background: #fff; }
  .band--alt, .footer { background: #fff; color: #000; }
  .footer a, .footer__bottom, .footer__title, .footer .footer__credit { color: #000; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .art .layer, .art .dot, .art > svg { opacity: 1 !important; }
  .rise { transform: none !important; }
  .art .cut, .art .draw { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .card, .theme, .hours-card, .map-card { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  .reviews__intro, .map-card { position: static; }
}
