@font-face {
  font-family: 'Alfa Slab One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/alfa-slab-one-400.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: 'Barlow';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-400-italic.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: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-400.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: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/barlow-500.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: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-600.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: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/barlow-condensed-500.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: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-condensed-600.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;
}
/* Brasa Roja Grill: "the painted wall".
   Each section is one solid painted wall; the fire video opens the page. */

:root {
  --rojo: #A3201B;        /* chile-red wall paint */
  --rojo-deep: #7E1712;
  --rojo-ink: #F0C7BD;    /* secondary text tinted from the red wall */
  --verde: #183F31;       /* bottle-green wall */
  --verde-ink: #BFD3C8;   /* secondary text tinted from the green wall */
  --ascua: #E8A33D;       /* ember gold, used sparingly */
  --cal: #EDE6DC;         /* limewash */
  --cal-shade: #DED3C3;
  --carbon: #1C1714;      /* charcoal */
  --carbon-ink: #B3A79A;
  --humo: #6E625A;        /* smoke, secondary text on limewash */

  --display: "Alfa Slab One", "Rockwell", serif;
  --body: "Barlow", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --wall-pad: clamp(4.5rem, 10vw, 8.5rem);
  --max: 76rem;
  --radius: 4px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  scrollbar-color: var(--rojo) var(--carbon);
  -webkit-text-size-adjust: 100%;
  accent-color: var(--rojo);
}

body {
  margin: 0;
  background: var(--carbon);
  color: var(--carbon);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
p { margin: 0; }

::selection { background: var(--ascua); color: var(--carbon); }

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

h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }

h2 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.625rem;
  line-height: 1.15;
}

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

.skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 100;
  transform: translateY(-200%);
  background: var(--cal); color: var(--carbon);
  padding: 0.75rem 1rem; border-radius: var(--radius); font-weight: 600;
  transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: none; }

/* ---------- Icons + buttons ---------- */

.btn svg, .header-call svg {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0 1.4rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--cond); font-weight: 600; font-size: 1.1875rem; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out),
              border-color 180ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn-fire { background: var(--rojo); color: var(--cal); border-color: var(--rojo); }
.btn-fire:hover { background: var(--rojo-deep); border-color: var(--rojo-deep); }

.btn-cal { background: var(--cal); color: var(--carbon); border-color: var(--cal); }
.btn-cal:hover { background: #fff; border-color: #fff; }

.btn-ghost { background: transparent; color: var(--cal); border-color: currentColor; }
.btn-ghost:hover { background: rgba(237, 230, 220, 0.14); }

.btn-big { min-height: 3.5rem; font-size: 1.3125rem; padding: 0 1.75rem; }

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

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  height: var(--header-h);
  display: flex; align-items: center; gap: 2rem;
  padding: 0 var(--gutter);
  color: var(--cal);
  transition: background-color 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.site-header.is-solid {
  background: var(--carbon);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.wordmark {
  font-family: var(--display);
  font-size: 1.5rem; line-height: 1;
  text-decoration: none;
  color: var(--cal);
}

.site-header nav { display: flex; gap: 1.75rem; margin-left: auto; }
.site-header nav a {
  font-family: var(--cond); font-weight: 500; font-size: 1.125rem;
  text-decoration: none; padding: 0.5rem 0; position: relative;
}
.site-header nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.3rem; height: 2px;
  background: var(--ascua); transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.site-header nav a:hover::after { transform: scaleX(1); }

.header-call {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 1rem;
  border: 2px solid var(--cal); border-radius: var(--radius);
  font-family: var(--cond); font-weight: 600; font-size: 1.0625rem;
  text-decoration: none;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.header-call:hover { background: var(--cal); color: var(--carbon); }

/* ---------- Hero: scroll-driven fire ---------- */

.hero { position: relative; height: 300vh; background: var(--carbon); }

.hero-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  /* the clip's own first frame, so nothing is ever blank */
  background: var(--carbon) url("img/hero-flames-1600.webp") center / cover no-repeat;
}

.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 400ms var(--ease-out);
}
.hero-canvas.is-ready { opacity: 1; }

.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(28, 23, 20, 0.82) 0%, rgba(28, 23, 20, 0.45) 38%, rgba(28, 23, 20, 0) 62%),
    linear-gradient(to top, rgba(28, 23, 20, 0.7) 0%, rgba(28, 23, 20, 0) 30%);
}

.hero-copy {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  top: calc(var(--header-h) + clamp(2rem, 9vh, 6rem));
  max-width: 44rem;
  color: var(--cal);
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(3.75rem, 13vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  margin-top: 1rem;
  font-size: clamp(1.1875rem, 2.2vw, 1.4375rem);
  line-height: 1.4;
  max-width: 30ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.hero-status {
  margin-top: 1.25rem;
  font-family: var(--cond); font-weight: 500; font-size: 1.0625rem;
  color: var(--cal);
  display: flex; align-items: center; gap: 0.5rem;
}
.hero-status:empty { display: none; }
.hero-status::before {
  content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--carbon-ink);
}
.hero-status.is-open::before { background: var(--ascua); box-shadow: 0 0 0 4px rgba(232, 163, 61, 0.25); }

.hero-late {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: clamp(2rem, 8vh, 4.5rem);
  font-family: var(--display);
  font-size: clamp(1.75rem, 4.4vw, 3rem);
  line-height: 1.05;
  color: var(--cal);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(0.75rem);
}

/* ---------- Walls ---------- */

.wall { padding: var(--wall-pad) var(--gutter); }
.wall > * { max-width: var(--max); margin-inline: auto; }
.wall-red { background: var(--rojo); color: var(--cal); --focus: var(--cal); }
.wall-green { background: var(--verde); color: var(--cal); }
.wall-cal { background: var(--cal); color: var(--carbon); --focus: var(--rojo); }

/* Story */
.story-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
}
.story-text h2 { margin-bottom: 1.75rem; }
.story-text p { max-width: 58ch; font-size: 1.1875rem; }
.story-text p + p { margin-top: 1.1rem; }

.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem; margin: 2.75rem 0 0;
  border-top: 1px solid rgba(237, 230, 220, 0.4);
  padding-top: 1.5rem;
}
.facts dt { font-family: var(--cond); font-weight: 500; font-size: 1rem; color: var(--rojo-ink); }
.facts dd { margin: 0.2rem 0 0; font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.15; }

.story-photo { margin: 0; }
.story-photo img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.story-photo figcaption { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--rojo-ink); }

/* Menu */
.menu-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.menu-head p { max-width: 60ch; color: var(--humo); font-size: 1.125rem; }

.menu-photos {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.menu-photos figure { margin: 0; }
.menu-photos img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: var(--radius); }
.menu-photos figcaption {
  display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline;
  margin-top: 0.6rem;
  font-family: var(--cond); font-weight: 600; font-size: 1.1875rem; line-height: 1.2;
}
.menu-photos figcaption span { color: var(--rojo); font-variant-numeric: tabular-nums; }

.board {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.board h3 { padding-bottom: 0.6rem; border-bottom: 3px solid var(--carbon); }
.board h3:not(:first-child) { margin-top: 2.75rem; }

.items { list-style: none; padding: 0; margin: 0; }
.item { padding: 1.1rem 0; border-bottom: 1px solid var(--cal-shade); }
.item-line { display: flex; align-items: baseline; gap: 0.6rem; }
.item-line::after {
  content: ""; order: 1; flex: 1 1 1.5rem;
  border-bottom: 2px dotted rgba(110, 98, 90, 0.6);
  transform: translateY(-0.3em);
}
.item-name { order: 0; font-family: var(--cond); font-weight: 600; font-size: 1.375rem; line-height: 1.3; }
.item-price {
  order: 2; font-family: var(--cond); font-weight: 600; font-size: 1.375rem;
  color: var(--rojo); font-variant-numeric: tabular-nums lining-nums;
}
.item-desc { margin-top: 0.3rem; color: var(--humo); font-size: 1rem; max-width: 50ch; }
.item-feature .item-name { font-family: var(--display); font-weight: 400; font-size: 1.5rem; }

.sunday {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.5rem;
  margin-top: clamp(3rem, 6vw, 4rem);
  padding: 1.5rem clamp(1.25rem, 3vw, 2.25rem);
  background: var(--rojo); color: var(--cal);
  border-radius: var(--radius);
}
.sunday-day { font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1; }
.sunday-text { font-size: 1.1875rem; }

/* Gallery */
.gallery h2 { margin-bottom: clamp(2rem, 4vw, 3rem); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 1.6vw, 1.25rem); }
.shot {
  padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; display: block; width: 100%;
}
.shot-wide { grid-column: 1 / -1; }
.shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 600ms var(--ease-out), filter 600ms var(--ease-out); }
.shot-wide img { aspect-ratio: 21 / 9; }
.shot:hover img { transform: scale(1.025); filter: saturate(1.08); }

/* Visit */
.visit-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 5.5rem); }
.visit h2 { margin-bottom: 2rem; }

.hours { width: 100%; border-collapse: collapse; font-size: 1.125rem; }
.hours th, .hours td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--cal-shade); }
.hours th { text-align: left; font-weight: 500; padding-left: 0.75rem; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today { background: var(--ascua); }
.hours tr.is-today th, .hours tr.is-today td { border-bottom-color: var(--ascua); font-weight: 600; }
.today-tag { font-family: var(--cond); font-weight: 600; font-size: 0.9375rem; margin-left: 0.5rem; }
.hours-note { margin-top: 1rem; color: var(--humo); font-size: 1rem; }

.where { display: grid; gap: 1rem; align-content: start; }
.where address { font-style: normal; font-family: var(--cond); font-weight: 600; font-size: 1.625rem; line-height: 1.3; }
.where > p { color: var(--humo); max-width: 44ch; }

.map {
  position: relative; margin-top: 0.75rem;
  aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  background: var(--cal-shade);
}
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-road { fill: none; stroke: #F6F1EA; stroke-width: 14; stroke-linecap: round; }
.map-road-thin { stroke-width: 6; }
.map-pin {
  position: absolute; left: 50%; top: 50%;
  width: 3.25rem; height: 3.25rem; transform: translate(-50%, -78%);
  color: var(--rojo);
}
.map-pin svg { width: 100%; height: 100%; fill: var(--rojo); stroke: var(--cal); stroke-width: 1.4; }
.map-label {
  position: absolute; left: 1rem; bottom: 0.85rem;
  font-family: var(--cond); font-weight: 600; font-size: 1rem; color: var(--carbon);
}

/* Contact */
.contact h2 { max-width: 16ch; }
.contact-inner > p { margin-top: 1.25rem; font-size: 1.25rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }
.contact .contact-email { margin-top: 2rem; font-size: 1.0625rem; color: var(--rojo-ink); }
.contact-email a { color: var(--cal); }

/* Footer */
.site-footer {
  padding: 3.5rem var(--gutter) 3rem;
  color: var(--carbon-ink);
  display: grid; gap: 1rem;
}
.site-footer > * { max-width: var(--max); margin-inline: auto; width: 100%; }
.site-footer .wordmark { font-size: 2rem; }
.site-footer a { color: var(--cal); }
.disclaimer { margin-top: 1rem; padding-top: 1.25rem; border-top: 1px solid rgba(179, 167, 154, 0.25); font-size: 0.9375rem; }

/* Mobile dock */
.dock { display: none; }

/* Lightbox */
.lightbox {
  padding: 0; border: 0; background: transparent;
  max-width: min(92vw, 1600px); max-height: 92vh;
}
.lightbox::backdrop { background: rgba(28, 23, 20, 0.92); }
.lightbox img { max-height: 84vh; width: auto; border-radius: var(--radius); }
.lightbox form { display: flex; justify-content: flex-end; margin-bottom: 0.75rem; }
.lightbox-close {
  min-height: 2.75rem; padding: 0 1.1rem; cursor: pointer;
  background: var(--cal); color: var(--carbon); border: 0; border-radius: var(--radius);
  font-family: var(--cond); font-weight: 600; font-size: 1.0625rem;
}
.lightbox[open] { animation: lightbox-in 260ms var(--ease-out); }
@keyframes lightbox-in { from { opacity: 0; transform: scale(0.97); } }

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

@media (max-width: 900px) {
  .story-grid, .visit-grid, .board { grid-template-columns: 1fr; }
  .story-photo { max-width: 30rem; }
  .menu-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --header-h: 3.75rem; }
  .site-header nav { display: none; }
  .site-header { justify-content: space-between; }
  .header-call { padding: 0 0.85rem; }
  .header-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-call::after { content: "Call"; }

  .hero-stage { background-image: url("img/hero-flames-800.webp"); }
  .hero-actions .btn { flex: 1 1 10rem; }
  .facts { grid-template-columns: 1fr; gap: 1rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .shot-wide img { aspect-ratio: 3 / 2; }
  .contact-actions .btn { flex: 1 1 100%; }

  .dock {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
    position: fixed; inset: auto 0 0; z-index: 30;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(28, 23, 20, 0.96);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(110%);
    transition: transform 320ms var(--ease-out);
  }
  .dock.is-visible { transform: none; }
  .site-footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero-stage { position: relative; }
  .hero-late { opacity: 1; transform: none; }
  .shot img, .btn, .dock, .site-header nav a::after { transition-property: background-color, color, border-color, opacity; }
  .shot:hover img { transform: none; }
  .lightbox[open] { animation: none; }
}
