/* Terrace Espresso — concept preview styles.
   Tokens first; palette values are candidates, not an approved brand palette.
   Contrast (computed, solid colours): white/red 7.61 · cacao/cream 14.89 · cacao/gold 8.98
   cacao/coral 4.81 · white/terra-deep 5.83 · muted/cream 6.19. White on coral (3.29)
   and white on terra (4.24) are NOT used for text. */

@font-face { font-family: 'Bree Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/bree-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/source-sans-3-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/source-sans-3-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/source-sans-3-latin-700-normal.woff2') format('woff2'); }

:root {
  --red: #9E2436;
  --red-deep: #7E1A2B;
  --coral: #E66744;
  --terra: #C75A3B;
  --terra-deep: #A8472C;
  --gold: #F4BA3C;
  --cream: #FFF7ED;
  --cream-2: #F8E9D4;
  --cacao: #29211C;
  --muted: #6B5A4E;
  --white: #FFFFFF;

  --font-display: 'Bree Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.875rem, 0.84rem + 0.15vw, 0.95rem);
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
  --step-3: clamp(1.875rem, 1.5rem + 1.9vw, 3rem);
  --step-4: clamp(2.25rem, 1.6rem + 3.2vw, 4.25rem);

  --space-s: clamp(0.75rem, 0.7rem + 0.3vw, 1rem);
  --space-m: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
  --space-l: clamp(2rem, 1.6rem + 2vw, 3.5rem);
  --space-xl: clamp(3rem, 2.2rem + 4vw, 6.5rem);

  --radius: 6px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --max: 76rem;
  --focus: var(--cacao);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--cacao);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--cacao); color: var(--cream); padding: 0.6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; --focus: var(--gold); }

/* ---------- concept banner ---------- */
.preview-banner { background: var(--gold); color: var(--cacao); font-size: var(--step--1); border-bottom: 2px solid var(--cacao); }
.preview-banner p { max-width: var(--max); margin: 0 auto; padding: 0.55rem var(--gutter); }
.preview-banner strong { font-weight: 700; }

/* ---------- header ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid rgba(41, 33, 28, 0.14); position: relative; z-index: 10; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; flex-wrap: wrap; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; padding-block: 0.6rem; margin: 0; }
.wordmark__main { font-family: var(--font-display); font-size: 1.85rem; color: var(--red); letter-spacing: -0.02em; }
.wordmark__sub { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; margin-top: 0.25rem; }

.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a { display: inline-block; padding: 0.55rem 0.1rem; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--coral); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--red); }

.nav-toggle { display: none; }

@media (max-width: 47.99rem) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0.4rem 0.9rem;
    background: transparent; color: var(--cacao); border: 2px solid var(--cacao); border-radius: var(--radius);
    font: 600 1rem var(--font-body); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative; content: '';
  }
  .nav-toggle__bars::before { position: absolute; top: -6px; }
  .nav-toggle__bars::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

  .site-nav { width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; padding-bottom: 1rem; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li + li { border-top: 1px solid rgba(41, 33, 28, 0.14); }
  .site-nav a { display: block; padding: 0.85rem 0; font-size: 1.15rem; border-bottom: 0; }
  .site-nav a[aria-current="page"]::before { content: '→ '; }
  /* No-JS fallback: links stay visible as a compact row. */
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 0 1.1rem; }
  html:not(.js) .site-nav li + li { border-top: 0; }
  html:not(.js) .site-nav a { padding: 0.4rem 0; font-size: 1rem; }
}

/* ---------- buttons, tags, shared type ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-m); }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3rem; padding: 0.7rem 1.35rem;
  font-weight: 700; font-size: 1.0625rem; text-decoration: none; border-radius: var(--radius);
  border: 2px solid transparent; transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: var(--white); border-color: var(--red); box-shadow: 3px 3px 0 var(--cacao); }
.btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--secondary { background: transparent; color: var(--cacao); border-color: var(--cacao); }
.btn--secondary:hover { background: var(--cacao); color: var(--cream); }
.btn--gold { background: var(--gold); color: var(--cacao); border-color: var(--gold); box-shadow: 3px 3px 0 var(--cacao); }
.btn--gold:hover { background: var(--cream); border-color: var(--cream); }
.i-arrow { width: 1.15em; height: 0.75em; flex: none; }

.kicker { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.9rem; }
.kicker--red { color: var(--red); }
.kicker--gold { color: var(--gold); }
.h-display { font-size: var(--step-3); }
.h-section { font-size: var(--step-2); }
.lede { font-size: var(--step-1); line-height: 1.45; max-width: 38ch; }
.fine { font-size: var(--step--1); color: var(--muted); }
.text-link { font-weight: 700; display: inline-flex; gap: 0.5rem; align-items: center; }
.pending-line { font-size: var(--step--1); font-style: italic; border-left: 3px solid currentColor; padding-left: 0.75rem; max-width: 46ch; }

.tag { display: inline-block; font: 700 0.72rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.5rem; border-radius: 3px; vertical-align: middle; white-space: nowrap; }
.tag--pending { background: var(--cacao); color: var(--gold); }
.tag--demo { background: var(--cream-2); color: var(--cacao); border: 1px dashed var(--cacao); }
.tag--occasional { background: var(--gold); color: var(--cacao); }
.tag--candidate { background: var(--gold); color: var(--cacao); }
.tag + .tag { margin-left: 0.4rem; }

/* ---------- photo slots (honest placeholders) ---------- */
.slot { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; color: var(--cacao); width: 100%; }
.slot--coral { background: var(--coral); }
.slot--gold { background: var(--gold); }
.slot--terra { background: var(--terra-deep); color: var(--white); }
.slot--red { background: var(--red); color: var(--white); }
.slot__inner { position: absolute; inset: 0.9rem; display: flex; flex-direction: column; justify-content: space-between; padding: 1.1rem; }
/* crop marks, like a photographer's frame */
.slot__inner::before, .slot__inner::after { content: ''; position: absolute; width: 1.6rem; height: 1.6rem; border: 2px solid currentColor; }
.slot__inner::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.slot__inner::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.slot__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.slot__brief { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.2; max-width: 22ch; }
.slot__rule { font-size: 0.8rem; font-weight: 600; }

/* ---------- home: hero ---------- */
.hero { padding-block: var(--space-l) var(--space-xl); overflow: hidden; }
.hero__grid { display: grid; gap: var(--space-l); align-items: center; }
.hero__title { font-size: var(--step-4); line-height: 1.02; max-width: 15ch; margin-bottom: 0.4em; }
.mark { position: relative; display: inline-block; color: var(--red); white-space: nowrap; }
.scribble { position: absolute; left: -2%; bottom: -0.22em; width: 104%; height: 0.3em; color: var(--gold); z-index: -1; }
.hero__copy { position: relative; z-index: 0; }
.hero__lede { font-size: var(--step-1); line-height: 1.45; max-width: 34ch; }

.hero__board { position: relative; padding: 0 0 2.5rem; }
.board {
  background: var(--red); color: var(--cream); border-radius: var(--radius); padding: var(--space-m) var(--space-m) 1.1rem;
  box-shadow: 6px 6px 0 var(--cacao);
}
.board__title { font-family: var(--font-display); font-size: var(--step-1); color: var(--gold); margin-bottom: 0.8rem; }
.board__list { list-style: none; }
.board__list li { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px dashed rgba(255, 247, 237, 0.4); }
.board__name { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; white-space: nowrap; }
.board__dots { flex: 1; border-bottom: 2px dotted rgba(255, 247, 237, 0.55); transform: translateY(-0.3em); min-width: 0.75rem; }
.board__what { font-style: italic; font-size: var(--step--1); text-align: right; }
.board__foot { font-size: var(--step--1); margin: 0.9rem 0 0; }
.board__foot a { font-weight: 700; }
.board :focus-visible { --focus: var(--gold); }
.sticker {
  position: absolute; right: 0.5rem; bottom: 0; margin: 0; transform: rotate(-4deg);
  background: var(--gold); border: 2px solid var(--cacao); border-radius: 4px; padding: 0.55rem 0.85rem;
  font-family: var(--font-display); font-size: 1.05rem; line-height: 1.15; box-shadow: 3px 3px 0 var(--cacao);
}
.sticker a { text-decoration: none; }
.sticker a::after { content: ' ↘'; }

.hero__visual { position: relative; }
/* The board sits below the photo and never covers Héctor and María. */
.hero__board { margin: 1.25rem 0.5rem 0; z-index: 1; }

@media (min-width: 56rem) {
  .hero { padding-bottom: var(--space-l); }
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero__board { width: min(27rem, 90%); margin: 1.5rem 0 0 -2rem; }
  .board { transform: rotate(-2deg); padding: 1.1rem 1.25rem 0.9rem; }
  .board__name { font-size: var(--step-1); }
  .board__list li { padding: 0.35rem 0; }
  .sticker { right: -1.25rem; bottom: -0.75rem; transform: rotate(5deg); }
}

/* ---------- home: infobar ---------- */
.infobar { background: var(--cacao); color: var(--cream); --focus: var(--gold); }
.infobar__grid { display: grid; gap: 0; }
.infobar__item { padding-block: 1.25rem; border-bottom: 1px solid rgba(255, 247, 237, 0.18); }
.infobar__item:last-child { border-bottom: 0; }
.infobar__h { font-family: var(--font-body); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.35rem; }
.infobar p { margin: 0; }
.infobar a { font-weight: 700; white-space: nowrap; }
.infobar .tag--pending { background: var(--gold); color: var(--cacao); }
@media (min-width: 48rem) {
  .infobar__grid { grid-template-columns: repeat(3, 1fr); }
  .infobar__item { border-bottom: 0; padding: 1.6rem 1.5rem 1.6rem 0; }
  .infobar__item + .infobar__item { border-left: 1px solid rgba(255, 247, 237, 0.18); padding-left: 1.5rem; }
}

/* ---------- home: mesa ---------- */
.mesa { padding-block: var(--space-xl); }
.mesa__grid { display: grid; gap: var(--space-l); align-items: center; }
.mesa .h-display { max-width: 18ch; }
@media (min-width: 56rem) {
  .mesa__grid { grid-template-columns: 0.85fr 1.15fr; }
}

/* ---------- two rhythms ---------- */
.ritmos { padding-block: 0 var(--space-xl); }
.ritmos__title { max-width: 20ch; }
.ritmos__grid { display: grid; gap: 1rem; }
.ritmo { padding: var(--space-m); border-radius: var(--radius); }
.ritmo p:last-child { margin-bottom: 0; }
.ritmo--out { background: var(--cream-2); border: 2px solid var(--cacao); }
.ritmo--in { background: var(--cacao); color: var(--cream); --focus: var(--gold); }
.ritmo__where { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 0.4rem; }
.ritmo--in .ritmo__where { color: var(--gold); }
.ritmo__h { font-size: var(--step-2); }
.ritmo__hours { font-size: var(--step--1); font-weight: 600; border-top: 1px solid currentColor; padding-top: 0.75rem; margin-top: 1rem; opacity: 0.9; }
@media (min-width: 48rem) { .ritmos__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- del pasillo a la mesa ---------- */
.pasillo { background: var(--red); color: var(--cream); padding-block: var(--space-xl); --focus: var(--gold); }
.pasillo__grid { display: grid; gap: var(--space-l); align-items: center; }
.pasillo .h-display { font-size: var(--step-4); max-width: 12ch; }
.route { list-style: none; position: relative; display: grid; gap: 0; }
.route::before { content: ''; position: absolute; left: 1.35rem; top: 1.5rem; bottom: 1.5rem; border-left: 3px dashed rgba(255, 247, 237, 0.55); }
.route__step { position: relative; display: flex; align-items: center; gap: 1rem; padding-block: 0.75rem; }
.route__n {
  flex: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--cream); color: var(--red); font-family: var(--font-display); font-size: 1.35rem; position: relative;
}
.route__step:last-child .route__n { background: var(--gold); color: var(--cacao); }
.route__t { font-family: var(--font-display); font-size: var(--step-1); }
@media (min-width: 56rem) { .pasillo__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- people ---------- */
.gente { padding-block: var(--space-xl); }
.gente__grid { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 56rem) {
  .gente__grid { grid-template-columns: 0.95fr 1.05fr; }
}

/* ---------- occasional events ---------- */
.fiesta { background: var(--cacao); color: var(--cream); padding-block: var(--space-xl); --focus: var(--gold); position: relative; overflow: hidden; }
.fiesta::after {
  /* a few confetti-like strokes, purely decorative */
  content: ''; position: absolute; right: -3rem; top: 2rem; width: 16rem; height: 16rem; opacity: 0.9; pointer-events: none;
  background:
    linear-gradient(var(--coral), var(--coral)) 20% 10% / 4rem 0.45rem no-repeat,
    linear-gradient(var(--gold), var(--gold)) 70% 30% / 0.45rem 3rem no-repeat,
    linear-gradient(var(--red), var(--red)) 30% 65% / 3.2rem 0.45rem no-repeat,
    linear-gradient(var(--gold), var(--gold)) 80% 80% / 2.4rem 0.45rem no-repeat;
  transform: rotate(-18deg);
}
.fiesta__inner { position: relative; z-index: 1; }
.fiesta .h-display { max-width: 16ch; }
.fiesta .lede { max-width: 46ch; }
@media (max-width: 47.99rem) { .fiesta::after { opacity: 0.35; } }

/* ---------- inner page heads ---------- */
.page-head { padding-block: var(--space-l); border-bottom: 2px solid var(--cacao); }
.page-head__grid { display: grid; gap: var(--space-m); align-items: end; }
.page-title { font-size: var(--step-4); line-height: 1.02; max-width: 16ch; }
.page-title--xl { max-width: 14ch; }
@media (min-width: 56rem) { .page-head__grid { grid-template-columns: 1.1fr 0.9fr; } }

.demo-notice { background: var(--gold); border: 2px solid var(--cacao); border-radius: var(--radius); padding: var(--space-m); box-shadow: 5px 5px 0 var(--cacao); }
.demo-notice__h { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.2; }
.demo-notice p:last-child { margin: 0; }

/* ---------- menu ---------- */
.cat-nav { background: var(--cream-2); border-bottom: 1px solid rgba(41, 33, 28, 0.14); }
.cat-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding-block: 0.85rem; }
.cat-nav a { display: inline-block; padding: 0.45rem 0.85rem; border: 2px solid var(--cacao); border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--cream); }
.cat-nav a:hover { background: var(--cacao); color: var(--cream); }

.menu-body { padding-block: var(--space-l); display: grid; gap: var(--space-xl); }
.menu-cat { scroll-margin-top: 5rem; }
.menu-cat__head { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; margin-bottom: var(--space-m); }
.menu-cat__n { font-family: var(--font-display); font-size: var(--step-4); line-height: 0.9; color: var(--coral); margin: 0; }
.menu-cat__intro { color: var(--muted); max-width: 52ch; margin: 0; }
.menu-cat .h-section { margin-bottom: 0.3em; }

.dishes { list-style: none; display: grid; gap: 0; border-top: 2px solid var(--cacao); }
.dish { padding-block: 1.1rem; border-bottom: 1px solid rgba(41, 33, 28, 0.2); }
.dish__top { display: flex; align-items: baseline; gap: 0.6rem; }
.dish__name { font-size: var(--step-2); margin: 0; }
.dish__leader { flex: 1; border-bottom: 2px dotted rgba(41, 33, 28, 0.4); min-width: 1rem; transform: translateY(-0.25em); }
.dish__price { font-weight: 700; font-size: var(--step--1); white-space: nowrap; color: var(--muted); }
.dish__say { font-size: var(--step--1); font-style: italic; color: var(--red); margin: 0.2rem 0 0.4rem; }
.dish__what { margin-bottom: 0.5rem; max-width: 60ch; }
.dish__label { font-weight: 700; }
.dish__tags { margin: 0; }
.dish__occ { font-size: var(--step--1); margin: 0.6rem 0 0; padding: 0.5rem 0.75rem; background: var(--cream-2); border-left: 4px solid var(--gold); max-width: 60ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--cream-2); padding-block: var(--space-l); border-top: 2px solid var(--cacao); }
.cta-band__inner .h-section { max-width: 24ch; }

/* ---------- visit ---------- */
.where-card { background: var(--cream-2); border: 2px solid var(--cacao); border-radius: var(--radius); padding: var(--space-m); }
.where-card__h { font-family: var(--font-body); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.address { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.3; margin-bottom: 0.5rem; }
.address__line { margin-right: 0.4rem; }
.where-card .pending-line { margin: 1rem 0 0; }
.two-ways { padding-block: var(--space-l) 0; }
.steps { padding-block: var(--space-xl); }
.steps__note { max-width: 60ch; }
.steps__list { list-style: none; display: grid; gap: var(--space-l); margin-top: var(--space-l); }
.step { display: grid; gap: var(--space-m); align-items: center; }
.step__n { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--red); color: var(--white); font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 0.75rem; }
.step__h { font-size: var(--step-2); }
.step__text p { max-width: 42ch; }
@media (min-width: 48rem) {
  .steps__list { grid-template-columns: repeat(2, 1fr); gap: var(--space-l) var(--space-xl); }
}

.hours { padding-block: 0 var(--space-xl); }
.hours__status { margin-bottom: 0.75rem; }
.table-wrap { margin-top: var(--space-m); }
.hours__table { width: 100%; border-collapse: collapse; }
.hours__table th, .hours__table td { text-align: left; padding: 0.9rem 1rem 0.9rem 0; border-bottom: 1px solid rgba(41, 33, 28, 0.2); vertical-align: top; }
.hours__table thead th { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 2px solid var(--cacao); }
.hours__table td { font-style: italic; color: var(--muted); }
.hours__name { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); }
.hours__where { display: block; font-size: var(--step--1); font-weight: 400; color: var(--muted); }

/* ---------- story ---------- */
.page-head--story, .page-head--404 { padding-block: var(--space-xl) var(--space-l); }
.lede--xl { font-size: var(--step-2); line-height: 1.3; max-width: 30ch; font-family: var(--font-display); }
.draft-note { font-size: var(--step--1); color: var(--muted); max-width: 60ch; margin-top: var(--space-m); }
.chapter { padding-block: var(--space-xl); }
.chapter__grid { display: grid; gap: var(--space-l); align-items: center; }
.chapter__copy p { max-width: 48ch; }
.chapter__narrow { max-width: 52rem; }
.chapter--red { background: var(--red); color: var(--cream); --focus: var(--gold); }
.chapter--dark { background: var(--cacao); color: var(--cream); --focus: var(--gold); }
.chapter--red .lede, .chapter--dark .lede { max-width: 48ch; }
.chapter--photo { padding-bottom: var(--space-l); }
@media (min-width: 56rem) {
  .chapter__grid { grid-template-columns: 0.9fr 1.1fr; }
  .chapter__grid--flip { grid-template-columns: 1.1fr 0.9fr; }
}
.cta-band--story .h-section { font-size: var(--step-3); }

/* ---------- footer ---------- */
.site-footer { background: var(--cacao); color: var(--cream); padding-top: var(--space-l); --focus: var(--gold); }
.site-footer .wordmark__main { color: var(--gold); }
.site-footer__grid { display: grid; gap: var(--space-m); padding-bottom: var(--space-l); }
.site-footer__h { font-family: var(--font-body); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.site-footer__links { list-style: none; display: grid; gap: 0.3rem; }
.site-footer__links a { display: inline-block; padding-block: 0.2rem; }
.site-footer__line { max-width: 22ch; margin-top: 0.6rem; }
.site-footer .fine { color: rgba(255, 247, 237, 0.78); }
.site-footer__fine { border-top: 1px solid rgba(255, 247, 237, 0.2); padding-block: 1.25rem; font-size: var(--step--1); color: rgba(255, 247, 237, 0.85); }
.site-footer__fine p { margin-bottom: 0.4rem; max-width: 80ch; }
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1.3fr 1fr; } }

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

/* =====================================================================
   v0.2 visual refinement: reference photos, food spread, polaroids,
   chalk board, stacked hours on small screens, story rhythm.
   ===================================================================== */

/* ---------- reference photos (always labelled + credited) ---------- */
.ref { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--cream-2); }
.ref img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ref__cap {
  position: absolute; left: 0; bottom: 0; max-width: 100%; margin: 0;
  background: var(--cacao); color: var(--cream); --focus: var(--gold);
  font-size: 0.72rem; line-height: 1.35; padding: 0.35rem 0.6rem; border-top-right-radius: var(--radius);
}
.ref__badge { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.ref__cap a { color: inherit; }


/* ---------- two rhythms: photo + big type ---------- */
.ritmo__photo { aspect-ratio: 16 / 9; margin: calc(-1 * var(--space-m)) calc(-1 * var(--space-m)) var(--space-m); border-radius: var(--radius) var(--radius) 0 0; }
.ritmo--in { display: flex; flex-direction: column; }
.ritmo__big { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; color: var(--gold); margin: auto 0 var(--space-m); padding-top: var(--space-m); }

/* ---------- menu: sticky category heads, plate thumbs, chalk board ---------- */
.dish { display: grid; grid-template-columns: 4.75rem 1fr; gap: 1rem; align-items: start; }
.dish__thumb {
  width: 4.75rem; height: 4.75rem; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--cacao);
}
.dish__thumb--empty {
  display: grid; place-items: center; text-align: center; background: var(--coral); color: var(--cacao);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.15;
}
.dish__body { min-width: 0; }
.dish__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dish__tags .tag + .tag { margin-left: 0; }
.dish__tags .tag { white-space: normal; line-height: 1.2; }
.credits { font-size: var(--step--1); color: var(--muted); border-top: 1px solid rgba(41, 33, 28, 0.2); padding-top: 1rem; max-width: 80ch; }
@media (min-width: 56rem) {
  .menu-cat { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-l); align-items: start; }
  .menu-cat__head { margin: 0; position: sticky; top: 5rem; }
  .dish { grid-template-columns: 6rem 1fr; gap: 1.25rem; }
  .dish__thumb { width: 6rem; height: 6rem; }
}

/* ---------- hours: stacked rows on small screens (nothing cut off) ---------- */

/* ---------- story rhythm ---------- */
.story-head--split { display: grid; gap: var(--space-l); align-items: center; }
.chapter--quote { padding-block: var(--space-xl) var(--space-l); }
.pull { font-family: var(--font-display); font-size: var(--step-4); line-height: 1.05; color: var(--red); max-width: 18ch; margin-bottom: var(--space-m); }
.columns { display: grid; gap: 0 var(--space-l); max-width: 52rem; }
.chapter__photo { aspect-ratio: 4 / 5; }
@media (min-width: 48rem) { .columns { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56rem) {
  .story-head--split { grid-template-columns: 1.25fr 0.75fr; }
  .chapter__photo--tilt { transform: rotate(-1.5deg); box-shadow: 8px 8px 0 var(--gold); }
  .chapter__photo--tilt-r { transform: rotate(1.5deg); box-shadow: -8px 8px 0 var(--coral); }
}

/* =====================================================================
   v0.3: real material — owners photo, plate wall from the menu,
   supplied illustration, reference menu (dishes, price tables).
   ===================================================================== */

/* ---------- owners photo (real, permission confirmed) ---------- */
.owners { position: relative; margin: 0; }
.owners img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.owners__cap { margin: 0.6rem 0 0; font-size: var(--step--1); color: var(--muted); }
.owners__name { font-family: var(--font-display); font-size: var(--step-0); color: var(--cacao); }
.hero__photo .owners__cap {
  position: absolute; top: 0; right: 0; margin: 0; max-width: 85%; padding: 0.4rem 0.7rem;
  background: var(--cacao); color: rgba(255, 247, 237, 0.85); border-radius: 0 var(--radius) 0 var(--radius);
}
.hero__photo .owners__name { color: var(--cream); font-size: 0.95rem; }
.hero__photo .owners__credit { display: block; font-size: 0.72rem; }
@media (min-width: 56rem) {
  .hero__visual { padding-bottom: 0; }
  .hero__photo { box-shadow: 8px 8px 0 var(--gold); }
}

/* ---------- plate wall (dish photos cropped from the supplied menu) ---------- */
.plates { margin: 0; }
.plates__grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; }
.plate { text-align: center; }
.plate__img {
  display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--cacao), 4px 6px 0 2px var(--coral);
}
.plate__name { display: block; margin-top: 0.6rem; font-family: var(--font-display); font-size: var(--step-0); line-height: 1.15; }
.plates__cap { margin-top: var(--space-m); font-size: var(--step--1); color: var(--muted); max-width: 52ch; }
.chapter--red .plates__cap { color: rgba(255, 247, 237, 0.85); }
.chapter--red .plate__img { box-shadow: 0 0 0 2px var(--cacao), 4px 6px 0 2px var(--gold); }
.mesa__fine { margin-top: 1rem; }
@media (min-width: 40rem) {
  .plates__grid { grid-template-columns: repeat(4, 1fr); }
  .plate:nth-child(even) { transform: translateY(1.5rem); }
}

/* ---------- supplied illustration ---------- */
.illu { margin: 0; max-width: 20rem; justify-self: center; text-align: center; }
.illu img { display: block; width: 100%; height: auto; border-radius: 50%; background: var(--white); box-shadow: 6px 6px 0 var(--gold); }
.illu__cap { margin-top: 0.9rem; font-size: var(--step--1); color: var(--muted); }
.chapter__quote-grid { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 56rem) {
  .gente__grid { grid-template-columns: 0.7fr 1.3fr; }
  .chapter__quote-grid { grid-template-columns: 1.4fr 0.6fr; }
  .story-head--split { grid-template-columns: 1.1fr 0.9fr; }
  .story-head__photo { box-shadow: -8px 8px 0 var(--red); }
}

/* ---------- reference menu ---------- */
.tag--review { background: var(--coral); color: var(--cacao); }
.menu-cat__source { font-size: var(--step--1); color: var(--muted); margin: 0.75rem 0 0; max-width: 46ch; }
.menu-group + .menu-group, .menu-group + .menu-extras { margin-top: var(--space-l); }
.menu-group__h { font-size: var(--step-1); color: var(--red); border-bottom: 2px solid var(--cacao); padding-bottom: 0.4rem; margin-bottom: 0.4rem; }
.menu-group__blurb { color: var(--muted); font-size: var(--step--1); margin-bottom: 0.5rem; }
.dish__name { flex: 0 1 auto; font-size: var(--step-1); }
.dish__price { color: var(--cacao); font-size: var(--step-0); }
.dish__what { margin-bottom: 0.3rem; color: var(--cacao); }
.dish__note { font-size: var(--step--1); font-style: italic; color: var(--muted); margin: 0.3rem 0 0; }
.dishes { border-top: 0; }
.menu-extras { margin-top: var(--space-m); background: var(--cream-2); border-radius: var(--radius); padding: var(--space-m); }
.menu-extras p { margin-bottom: 0.4rem; }

.lines { list-style: none; margin: 0 0 var(--space-m); }
.line { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(41, 33, 28, 0.15); }
.line__name { font-family: var(--font-display); font-size: var(--step-1); }
.line__detail { display: block; font-family: var(--font-body); font-size: var(--step--1); color: var(--muted); }
.line__dots { flex: 1; border-bottom: 2px dotted rgba(41, 33, 28, 0.35); min-width: 0.75rem; transform: translateY(-0.3em); }
.line__price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.line__more { font-weight: 400; color: var(--muted); }

.price-table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-m); font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 0.6rem 0.5rem; border-bottom: 1px solid rgba(41, 33, 28, 0.15); text-align: right; vertical-align: top; }
.price-table thead th { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 2px solid var(--cacao); }
.price-table th:first-child { text-align: left; padding-left: 0; }
.price-table tbody th { font-weight: 400; }
.price-table__name { display: block; font-family: var(--font-display); font-size: var(--step-1); }
.price-table__detail { display: block; font-size: var(--step--1); color: var(--muted); }
.price-table__review { display: block; font-size: var(--step--1); font-style: italic; color: var(--muted); margin-top: 0.25rem; }

.fridge { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.fridge li { padding: 0.4rem 0.8rem; border: 2px solid var(--cacao); border-radius: 999px; background: var(--white); font-weight: 600; }
.fridge__price { display: block; color: var(--muted); white-space: normal; }

/* Peruvian Kitchen gets the whole width: the feast, not a sidebar. */
@media (min-width: 56rem) {
  .menu-cat--peruvian-kitchen { display: block; }
  .menu-cat--peruvian-kitchen .menu-cat__head { position: static; margin-bottom: var(--space-l); }
  .menu-cat--peruvian-kitchen .dishes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-l); }
}

/* ---------- small screens ----------
   Hours: rows become labelled blocks (nothing cut off).
   Price tables: stay real tables (easier to compare sizes), just compacted. */
@media (max-width: 40rem) {
  .hours__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hours__table, .hours__table tbody, .hours__table tr, .hours__table th, .hours__table td { display: block; width: 100%; }
  .hours__table tr { border-bottom: 1px solid rgba(41, 33, 28, 0.2); padding-block: 0.9rem; }
  .hours__table th, .hours__table td { border: 0; padding: 0; }
  .hours__table th { margin-bottom: 0.4rem; }
  .hours__table td { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.2rem; }
  .hours__table td::before { content: attr(data-label); font-style: normal; font-weight: 700; color: var(--cacao); }
  .price-table { font-size: 0.875rem; }
  .price-table th, .price-table td { padding: 0.5rem 0.2rem; }
  .price-table thead th { letter-spacing: 0.04em; }
  .price-table__name { font-size: 1.05rem; line-height: 1.2; }
  .price-table__detail, .price-table__review { font-size: 0.78rem; }
}
.menu-cat__head > div, .menu-cat__body { min-width: 0; }
.menu-cat .h-section, .dish__name { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 22rem) { .menu-cat__n { font-size: var(--step-3); } }
/* Long Peruvian dish names on the board: description drops under the name on phones. */
@media (max-width: 30rem) {
  .board__list li { flex-wrap: wrap; gap: 0 0.6rem; }
  .board__name { white-space: normal; }
  .board__dots { display: none; }
  .board__what { flex-basis: 100%; text-align: left; }
}
@media (min-width: 56rem) { .hero__grid { align-items: start; } .hero__copy { padding-top: var(--space-l); } }

/* =====================================================================
   v1.0: Terrace's own photography, logo, confirmed opening hours.
   ===================================================================== */

/* Logo (supplied file that matches the café's signage) */
.brand { display: inline-flex; align-items: center; padding-block: 0.4rem; }
.brand__logo { display: block; height: 3.4rem; width: auto; }

/* Hero: overhead shot of the table, board overlapping only the food */
.spread-photo { margin: 0; }
.spread-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.hero__board { margin: -2.5rem 0.75rem 0; }
.hero__hours { margin: 1rem 0 0; font-size: var(--step--1); font-weight: 600; }
.hero__hours a { text-decoration-color: var(--coral); }
@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: 0.9fr 1.1fr; }
  .hero__photo { margin-right: calc(-1 * var(--gutter)); }
  .hero__photo img { border-radius: var(--radius) 0 0 var(--radius); }
  .hero__board { width: min(26rem, 80%); margin: -2.5rem 0 0 -2.5rem; }
}

/* Opening hours list (Home bar, Visit card, footer) */
.hours-list { margin: 0; display: grid; gap: 0.15rem; }
.hours-list div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.15rem; border-bottom: 1px dotted rgba(41, 33, 28, 0.25); }
.hours-list dt { font-weight: 700; }
.hours-list dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours-list .is-closed dd { font-style: italic; }
.hours-list--bar div, .hours-list--footer div { border-bottom-color: rgba(255, 247, 237, 0.2); }
.hours-list--footer { font-size: var(--step--1); max-width: 20rem; }
.where-card .hours-list { margin-bottom: 1rem; }
.where-card__h + .address { margin-top: 0; }
.hours__table tr.is-closed td { font-style: italic; }
.hours__table td { font-style: normal; color: var(--cacao); font-variant-numeric: tabular-nums; }

/* Coffee van artwork */
.van-pic { margin: 0; }
.van-pic img { display: block; width: 100%; height: auto; }
.van-pic__cap { font-size: 0.75rem; color: var(--muted); padding: 0.35rem 0 0; }
.ritmo__photo.van-pic { aspect-ratio: auto; overflow: hidden; }
.ritmo__photo.van-pic .van-pic__cap { padding: 0.35rem var(--space-m) 0; }

/* Héctor and María on Home */
.gente__photo { max-width: 28rem; justify-self: center; }
@media (min-width: 56rem) { .gente__grid { grid-template-columns: 0.85fr 1.15fr; } .gente__photo { box-shadow: 8px 8px 0 var(--coral); } }

/* Price shown differently on the current website */
.dish__note--price { font-style: normal; color: var(--red); }
.dish__note--price::before { content: '\2192  '; }
.brand__logo { mix-blend-mode: multiply; }
.ritmo__subh { font-family: var(--font-body); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: auto 0 0.5rem; padding-top: var(--space-m); }

/* =====================================================================
   v1.1: Google reviews (dated snapshot + link) and 15 years in Milton.
   ===================================================================== */
.stars {
  --pct: calc(var(--rating) / 5 * 100%);
  display: inline-block; font-size: 1.1rem; letter-spacing: 0.08em; line-height: 1;
  background: linear-gradient(90deg, var(--red) var(--pct), rgba(41, 33, 28, 0.25) var(--pct));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* First level: compact strip in the hero */
.rep-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; }
.rep-strip__item { display: flex; }
.rep-strip__link {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; padding: 0.5rem 0.8rem;
  border: 2px solid var(--cacao); border-radius: var(--radius); background: var(--white); text-decoration: none; font-size: var(--step--1);
}
.rep-strip__link:hover { background: var(--cream-2); }
.rep-strip__cta { font-weight: 700; color: var(--red); text-decoration: underline; text-underline-offset: 0.18em; }
.rep-strip__years {
  align-items: center; padding: 0.5rem 0.8rem; border-radius: var(--radius);
  background: var(--gold); color: var(--cacao); font-weight: 700; font-size: var(--step--1);
}

/* Second level: reviews + years */
.trust { background: var(--cacao); color: var(--cream); padding-block: var(--space-xl); --focus: var(--gold); }
.trust__grid { display: grid; gap: var(--space-l); align-items: start; }
.trust .stars { background: linear-gradient(90deg, var(--gold) var(--pct), rgba(255, 247, 237, 0.25) var(--pct)); -webkit-background-clip: text; background-clip: text; }
.stars--lg { font-size: 2rem; margin-bottom: 0.5rem; }
.trust__rating { margin: 0; display: flex; align-items: baseline; gap: 0.6rem; }
.trust__num { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 5vw, 6.5rem); line-height: 1; color: var(--gold); }
.trust__of { font-size: var(--step-1); }
.trust__count { font-size: var(--step-1); margin-bottom: 1rem; }
.bars { list-style: none; display: grid; gap: 0.35rem; max-width: 26rem; margin-bottom: var(--space-m); font-size: var(--step--1); }
.bars__row { display: grid; grid-template-columns: 4rem 1fr 2.5rem; align-items: center; gap: 0.6rem; }
.bars__track { height: 0.6rem; border-radius: 999px; background: rgba(255, 247, 237, 0.18); overflow: hidden; }
.bars__fill { display: block; height: 100%; background: var(--gold); }
.bars__n { text-align: right; font-variant-numeric: tabular-nums; }
.trust__note { font-size: var(--step--1); color: rgba(255, 247, 237, 0.8); max-width: 52ch; margin-top: 1rem; }
.trust__years { border: 2px solid rgba(255, 247, 237, 0.3); border-radius: var(--radius); padding: var(--space-m); }
.trust__years-num { font-family: var(--font-display); font-size: clamp(5rem, 4rem + 6vw, 8rem); line-height: 0.9; color: var(--coral); margin: 0 0 0.5rem; }
.trust__years-h { font-size: var(--step-2); color: var(--cream); }
.trust__years p { max-width: 40ch; }
@media (min-width: 56rem) { .trust__grid { grid-template-columns: 1.3fr 0.7fr; } }

/* v1.1: the category bar stays on screen while scrolling the (long) menu; one swipeable row on phones. */
.cat-nav { position: sticky; top: 0; z-index: 5; }
@media (max-width: 47.99rem) {
  .cat-nav ul { flex-wrap: nowrap; overflow-x: auto; padding-block: 0.6rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cat-nav ul::-webkit-scrollbar { display: none; }
  .cat-nav li { flex: none; }
  .menu-cat { scroll-margin-top: 4rem; }
}
/* Visit: steps are text only until real route photos exist. */
.step { align-items: start; }
.step__text p { max-width: 38ch; }
.chapter__van { max-width: 34rem; }
.price-table__review .tag { white-space: normal; line-height: 1.2; }

/* =====================================================================
   v1.2 visual refinement: "mesa editorial" + wayfinding where it helps.
   ===================================================================== */

/* 1. Menu: current category in the sticky bar ---------------------- */
.cat-nav ul { position: relative; }
.cat-nav a { transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.cat-nav a.is-active { background: var(--red); border-color: var(--red); color: var(--white); box-shadow: 2px 2px 0 var(--cacao); }
.dish { scroll-margin-top: 6rem; }
.dish:target { background: linear-gradient(90deg, rgba(244, 186, 60, 0.28), transparent 70%); }

/* 2. Home: plate mosaic (one big plate, six around it) + review reveal */
.plate__link { display: block; text-decoration: none; color: inherit; border-radius: 12px; }
.plate__img { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.plate__link:hover .plate__img, .plate__link:focus-visible .plate__img { transform: rotate(-6deg) scale(1.04); }
.plate__link:hover .plate__name { color: var(--red); }
.plate--hero .plate__name { font-size: var(--step-1); }
.plates__grid { grid-template-columns: repeat(2, 1fr); }
.plate--hero { grid-column: 1 / -1; }
.plate--hero .plate__img { width: min(100%, 17rem); margin-inline: auto; }
@media (min-width: 40rem) {
  .plates__grid { grid-template-columns: repeat(4, 1fr); align-items: center; }
  .plate:nth-child(even) { transform: none; }
  .plate--hero { grid-column: span 2; grid-row: span 2; }
  .plate--hero .plate__img { width: 100%; box-shadow: 0 0 0 2px var(--cacao), 8px 10px 0 2px var(--coral); }
  .plate:nth-child(even):not(.plate--hero) { transform: translateY(0.75rem); }
}

.can-reveal .reveal .bars__fill { transform: scaleX(0); transform-origin: left center; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.can-reveal .reveal .bars__row:nth-child(2) .bars__fill { transition-delay: 0.08s; }
.can-reveal .reveal .bars__row:nth-child(3) .bars__fill { transition-delay: 0.16s; }
.can-reveal .reveal .bars__row:nth-child(4) .bars__fill { transition-delay: 0.24s; }
.can-reveal .reveal .bars__row:nth-child(5) .bars__fill { transition-delay: 0.32s; }
.can-reveal .reveal.is-in .bars__fill { transform: none; }
.can-reveal .reveal .trust__num { display: inline-block; transform: translateY(0.4rem); opacity: 0.4; transition: transform 0.6s ease, opacity 0.6s ease; }
.can-reveal .reveal.is-in .trust__num { transform: none; opacity: 1; }
/* A big quotation-free mark: the rating as a stamp, not a widget. */
.trust { position: relative; overflow: hidden; }
.trust::before {
  content: '★'; position: absolute; right: -2rem; top: -3rem; font-size: 22rem; line-height: 1;
  color: rgba(244, 186, 60, 0.07); pointer-events: none;
}
.trust__grid { position: relative; }

/* 3. Visit: the route as connected numbered steps ------------------ */
.steps__list { counter-reset: none; gap: 0; }
.step { position: relative; }
.step__text { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; padding-bottom: var(--space-l); }
.step__n { grid-row: 1 / span 2; margin: 0; width: 3rem; height: 3rem; font-size: 1.4rem; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--cream); }
.step__h { margin-top: 0.4rem; }
.step:not(:last-child)::before {
  content: ''; position: absolute; left: 1.5rem; top: 3rem; bottom: 0; transform: translateX(-1.5px);
  border-left: 3px dashed var(--coral);
}
.step:last-child .step__n { background: var(--gold); color: var(--cacao); }
.step:last-child .step__text { padding-bottom: 0; }
@media (min-width: 48rem) {
  .steps__list { grid-template-columns: repeat(4, 1fr); gap: 0 var(--space-m); }
  .step__text { grid-template-columns: 1fr; padding-bottom: 0; }
  .step__n { grid-row: auto; margin-bottom: 1rem; }
  .step:not(:last-child)::before {
    left: 3rem; right: calc(-1 * var(--space-m)); top: 1.5rem; bottom: auto; transform: translateY(-1.5px);
    border-left: 0; border-top: 3px dashed var(--coral);
  }
  .step__h { font-size: var(--step-1); margin-top: 0; }
}

/* 4. Our Story: the real photo leads; illustration and years as badges on the awning corners */
.story-photo { position: relative; padding: 1.5rem 0.5rem 0; }
.story-photo__badge {
  position: absolute; top: 0; left: 0; width: 5.5rem; height: auto; border-radius: 50%; background: var(--white);
  box-shadow: 4px 4px 0 var(--gold); transform: rotate(-8deg); z-index: 1;
}
.story-photo__years {
  position: absolute; top: 0.25rem; right: 0; margin: 0; z-index: 1; transform: rotate(4deg);
  background: var(--gold); color: var(--cacao); border: 2px solid var(--cacao); border-radius: 4px;
  padding: 0.4rem 0.7rem; font-family: var(--font-display); font-size: 1rem; box-shadow: 3px 3px 0 var(--cacao);
}
@media (min-width: 56rem) {
  .page-head--story .story-head--split { grid-template-columns: 0.85fr 1.15fr; }
  .story-photo { padding: 2rem 0 0 2rem; }
  .story-photo__badge { width: 8.5rem; left: -1rem; }
  .story-photo__years { right: -1rem; top: 0.5rem; font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .plate__link:hover .plate__img, .plate__link:focus-visible .plate__img { transform: none; }
}

/* =====================================================================
   v1.4: full menu, contact, café + coffee van hours.
   ===================================================================== */
.hours-title { font-family: var(--font-body); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; margin: 0.9rem 0 0.35rem; }
.hours-title:first-child { margin-top: 0; }
.site-footer .hours-title, .infobar .hours-title { color: var(--gold); }
.hours-list__note { display: block; font-size: 0.8em; font-style: italic; opacity: 0.85; white-space: normal; text-align: right; }
.hours-van-note { font-size: var(--step--1); margin: 0.4rem 0 0; opacity: 0.85; }
.hero__quick { margin: 0.9rem 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; align-items: center; font-weight: 700; }
.hero__quick .text-link { color: var(--red); }
.cta-band .hero__quick .text-link { color: var(--red); }
.contact-line { margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; font-weight: 700; }
.contact-line .text-link { color: var(--red); overflow-wrap: anywhere; }
.ritmo__subh--dark { color: var(--red); margin-top: var(--space-m); padding-top: 0; }
.ritmo--out .hours-list div { border-bottom-color: rgba(41, 33, 28, 0.25); }
.hours__grid { display: grid; gap: var(--space-l); }
@media (min-width: 56rem) { .hours__grid { grid-template-columns: 1fr 1fr; } }
.tag--diet { background: var(--cream-2); color: var(--cacao); border: 1px solid rgba(41, 33, 28, 0.35); font-size: 0.66rem; }
.dish__tags .tag--diet + .tag--diet, .line__name .tag--diet { margin-left: 0.3rem; }
.line--dish { align-items: flex-start; scroll-margin-top: 6rem; }
.line--dish .line__name { display: block; font-size: var(--step-0); }
.line--dish .line__detail { display: block; margin-top: 0.15rem; }
.line--dish .line__price { padding-top: 0.15rem; }
.line--dish:target { background: linear-gradient(90deg, rgba(244, 186, 60, 0.28), transparent 70%); }
.dish__thumb--empty { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0; text-transform: none; background: var(--cream-2); color: var(--red); }
.site-footer a[href^="mailto:"] { overflow-wrap: anywhere; }
/* Long price notes (wine bottle, tea sizes) wrap under the price on small screens. */
@media (max-width: 30rem) {
  .line__price { white-space: normal; text-align: right; flex: 0 1 auto; }
  .line__more { display: block; white-space: nowrap; }
}
.dish__price--note { white-space: normal; text-align: right; max-width: 6.5rem; font-size: var(--step--1); font-weight: 600; color: var(--muted); }
