/* Bay Bay's Burgers: site styles */

:root {
  /* Brand: black with flame accents, sampled from the logo */
  --black: #0a0a0a;
  --chrome: #070605; /* header, footer and menus: warm near-black, a touch darker than the page */
  --surface: #131110;
  --surface-2: #1b1817;
  --stripe: #211d1b; /* alternate table column */
  --stripe-head: #2a2421; /* alternate table header cell */
  --border: #2c2623;
  --text: #f6f1ea;
  --text-muted: #b9afa6;
  --red: #e3261b;
  --orange: #f47a1f;
  --yellow: #ffc526;
  --flame: linear-gradient(180deg, var(--yellow) 0%, var(--orange) 50%, var(--red) 100%);
  --flame-x: linear-gradient(90deg, var(--yellow) 0%, var(--orange) 50%, var(--red) 100%);
  --accent: var(--orange);
  --glow: 0 0 24px rgba(244, 122, 31, 0.55), 0 0 64px rgba(227, 38, 27, 0.35);

  --font-display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --font-label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 12px;
  --container-max: 1350px;
  --container-pad-desktop: 32px;
  --container-pad-mobile: 20px;
  --section-bg: var(--black);

  /* The logo's curling flame, in 3 colorways */
  --flame-shape-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 120' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f0531c'/%3E%3Cstop offset='1' stop-color='%23d81f1b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M38 0C36 20 56 38 56 70c0 26-12 50-26 50C14 120 4 100 4 78c0-18 10-28 12-44 6 8 8 16 8 24 6-14 4-36 14-58z'/%3E%3C/svg%3E");
  --flame-shape-orange: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 120' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f9a11b'/%3E%3Cstop offset='1' stop-color='%23ee4f1c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M38 0C36 20 56 38 56 70c0 26-12 50-26 50C14 120 4 100 4 78c0-18 10-28 12-44 6 8 8 16 8 24 6-14 4-36 14-58z'/%3E%3C/svg%3E");
  --flame-shape-yellow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 120' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffd53d'/%3E%3Cstop offset='1' stop-color='%23f7931d'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M38 0C36 20 56 38 56 70c0 26-12 50-26 50C14 120 4 100 4 78c0-18 10-28 12-44 6 8 8 16 8 24 6-14 4-36 14-58z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: 0.01em; text-transform: uppercase; }
h1 { font-size: clamp(2.75rem, 6.2vw, 5.25rem); }
h2 { font-size: clamp(2.125rem, 4vw, 3.5rem); }
h3 { font-size: 1.625rem; letter-spacing: 0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 16px; top: -64px; z-index: 400; padding: 12px 20px; background: var(--yellow); color: #000; font-weight: 700; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad-desktop); }

/* ---------- Flame effects ---------- */
.flame-text {
  background: var(--flame);
  background-size: 100% 220%;
  background-position: 50% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--orange);
  animation: heat-shimmer 3.6s ease-in-out infinite alternate;
}
@keyframes heat-shimmer {
  from { background-position: 50% 0%; }
  to   { background-position: 50% 42%; }
}

/* A row of flames along the bottom edge of a section. site.js fills it with
   individual tongues that each rise and fall on their own timing. */
.flame-edge { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; height: 144px; overflow: hidden; pointer-events: none; }
.flame-edge::before { content: ""; position: absolute; inset: auto 0 0 0; height: 100%;
  background: linear-gradient(0deg, rgba(227, 38, 27, 0.55), rgba(227, 38, 27, 0)); }
.flame-edge::after { content: ""; position: absolute; inset: auto 0 0 0; height: 14px;
  background: linear-gradient(0deg, var(--yellow), rgba(255, 197, 38, 0)); }
.flame-tongue { position: absolute; bottom: -22%; background-repeat: no-repeat; background-size: 100% 100%;
  transform-origin: 50% 100%; will-change: transform;
  animation: var(--anim, flame-rise-a) var(--dur, 1.2s) ease-in-out var(--delay, 0s) infinite alternate; }
.flame-tongue.red { background-image: var(--flame-shape-red); }
.flame-tongue.orange { background-image: var(--flame-shape-orange); }
.flame-tongue.flip { scale: -1 1; }
.flame-tongue.yellow { background-image: var(--flame-shape-yellow); }
.flame-edge.is-paused .flame-tongue { animation-play-state: paused; }
@keyframes flame-rise-a {
  0%   { transform: scale(1.04, 0.68) skewX(-2deg); }
  35%  { transform: scale(0.96, 1) skewX(3deg); }
  65%  { transform: scale(1.02, 0.78) skewX(-1deg); }
  100% { transform: scale(0.95, 0.96) skewX(4deg); }
}
@keyframes flame-rise-b {
  0%   { transform: scale(0.96, 0.94) skewX(3deg); }
  30%  { transform: scale(1.04, 0.66) skewX(-3deg); }
  70%  { transform: scale(0.95, 1) skewX(1deg); }
  100% { transform: scale(1.02, 0.74) skewX(-4deg); }
}
@keyframes flame-rise-c {
  0%   { transform: scale(1, 0.74) skewX(1deg); }
  40%  { transform: scale(0.94, 0.98) skewX(-4deg); }
  75%  { transform: scale(1.04, 0.7) skewX(2deg); }
  100% { transform: scale(0.97, 1) skewX(-1deg); }
}

.embers { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 32px; border: 0; border-radius: 999px;
  font-family: var(--font-label); font-size: 1.125rem; font-weight: 700; line-height: 1.2;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 200ms, box-shadow 200ms, color 200ms;
}
.btn-primary { background: linear-gradient(180deg, var(--yellow) 0%, var(--orange) 55%, var(--red) 130%); color: #160800; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow); animation: ignite 900ms ease-in-out infinite alternate; }
@keyframes ignite {
  from { box-shadow: 0 0 20px rgba(244, 122, 31, 0.5), 0 0 48px rgba(227, 38, 27, 0.3); }
  to   { box-shadow: 0 0 32px rgba(255, 197, 38, 0.6), 0 0 80px rgba(227, 38, 27, 0.45); }
}
.btn-secondary { color: var(--text); background: rgba(10, 10, 10, 0.4); box-shadow: inset 0 0 0 2px rgba(246, 241, 234, 0.7); }
.btn-secondary:hover { color: var(--yellow); box-shadow: inset 0 0 0 2px var(--orange), 0 0 24px rgba(244, 122, 31, 0.35); transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-label); font-weight: 700; font-size: 1.125rem;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--yellow); }
.text-link::after { content: "\2192"; transition: transform 200ms; }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Header and nav ---------- */
.nav { position: sticky; top: 0; z-index: 200; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--chrome);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; height: 96px; }
.nav-logo img { height: 86px; width: auto; }
.nav-links { display: flex; align-items: stretch; height: 100%; justify-self: end; }
.nav-item { position: relative; height: 100%; }
.nav-item > a { position: relative; display: flex; align-items: center; height: 100%; padding: 0 16px; white-space: nowrap; text-decoration: none;
  font-family: var(--font-label); font-size: 1.125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); transition: color 200ms; }
.nav-item > a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 28px; height: 3px; border-radius: 3px;
  background: var(--flame-x); transform: scaleX(0); transform-origin: left; transition: transform 240ms; }
.nav-item > a:hover, .nav-item > a[aria-current="page"] { color: var(--yellow); }
.nav-item > a:hover::after, .nav-item > a[aria-current="page"]::after { transform: scaleX(1); }

/* Dropdown (About > Reviews, Blog) */
.nav-item.has-sub { display: flex; align-items: center; }
.nav-item.has-sub > a { padding-right: 4px; }
.nav-item.has-sub > a::after { right: 4px; }
.nav-item.is-current-parent > a { color: var(--yellow); }
.nav-sub-toggle { display: grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; padding: 0;
  background: none; border: 0; border-radius: 6px; color: var(--text); cursor: pointer; transition: color 200ms; }
.nav-sub-toggle svg { width: 16px; height: 16px; transition: transform 200ms; }
.nav-sub { position: absolute; top: calc(100% - 18px); left: 4px; z-index: 10; min-width: 200px; margin: 0; padding: 8px; list-style: none;
  background: var(--chrome); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--border), 0 16px 40px rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 180ms, transform 180ms, visibility 0s linear 180ms; }
.nav-item.has-sub:hover .nav-sub, .nav-item.has-sub.is-open .nav-sub {
  opacity: 1; visibility: visible; transform: none; transition: opacity 180ms, transform 180ms, visibility 0s; }
.nav-item.has-sub:hover .nav-sub-toggle, .nav-item.has-sub.is-open .nav-sub-toggle { color: var(--yellow); }
.nav-item.has-sub:hover .nav-sub-toggle svg, .nav-item.has-sub.is-open .nav-sub-toggle svg { transform: rotate(180deg); }
.nav-sub a { display: block; padding: 12px 16px; border-radius: 8px; white-space: nowrap; text-decoration: none;
  font-family: var(--font-label); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
  transition: background 160ms, color 160ms; }
.nav-sub a:hover, .nav-sub a:focus-visible { background: var(--surface-2); color: var(--yellow); }
.nav-sub a[aria-current="page"] { color: var(--yellow); }
.nav-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 16px; }
.nav-cta { padding: 12px 24px; font-size: 1rem; }
.nav-burger { display: none; width: 48px; height: 48px; padding: 12px; background: none; border: 0; cursor: pointer; }
.nav-burger span { display: block; height: 3px; margin: 5px 0; border-radius: 3px; background: var(--text); transition: transform 240ms, opacity 240ms; }
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-backdrop { display: none; }
.nav-panel-header, .nav-panel-footer { display: none; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 88px 0; background: var(--section-bg); }
.section-raised { --section-bg: var(--surface); }
.section-header { max-width: 760px; margin-bottom: 48px; }
.section-header.center { margin-inline: auto; text-align: center; }
.section-header p { margin-top: 16px; color: var(--text-muted); }
.section-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-family: var(--font-label); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }
.section-label::before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: var(--flame-x); }
.section-footer { margin-top: 48px; text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 760px; padding: 96px 0 128px; }
.hero-bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-overlay { position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(0deg, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0) 34%),
    linear-gradient(90deg, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 1) 44%, rgba(10, 10, 10, 0) 60%); }
.hero .embers { z-index: -1; }
.hero .flame-edge { z-index: -1; }
.hero .container { width: 100%; }
.hero-content { max-width: 760px; }
.hero-eyebrow { margin-bottom: 20px; }
.hero-sub { max-width: 600px; margin-top: 24px; font-size: 1.25rem; color: rgba(246, 241, 234, 0.92); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ---------- Stats ---------- */
.stats { background: var(--surface); border-block: 1px solid var(--border); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-value { display: block; font-family: var(--font-display); font-size: clamp(2.5rem, 4.4vw, 3.75rem); line-height: 1.1; }
.stat-label { display: block; margin-top: 4px; font-family: var(--font-label); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Event cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--border); text-decoration: none; transition: transform 240ms, box-shadow 240ms; }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--orange), var(--glow); }
.card-image { aspect-ratio: 4 / 3; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms; }
.card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 24px 24px 32px; }
.card-body p { margin-top: 8px; color: var(--text-muted); }
.card-body .text-link { margin-top: 20px; }

/* ---------- Food grid ---------- */
.food-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.food-tile { position: relative; overflow: hidden; margin: 0; aspect-ratio: 1; border-radius: var(--radius); background: var(--surface); }
.food-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms; }
.food-tile:hover img { transform: scale(1.06); }
.food-tile figcaption { position: absolute; inset: auto 0 0 0; padding: 64px 20px 20px;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.94) 10%, rgba(10, 10, 10, 0));
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase; }
.food-tile::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--flame-x); transform: scaleX(0); transform-origin: left; transition: transform 320ms; }
.food-tile:hover::after { transform: scaleX(1); }
.food-note { margin-top: 32px; text-align: center; color: var(--text-muted); }

/* ---------- Timeline (centered vertical, burns like a fuse) ---------- */
.timeline { position: relative; --progress: 0; max-width: 960px; margin-inline: auto; }
.timeline-track { position: absolute; z-index: 0; width: 4px; border-radius: 4px; background: var(--border); }
.timeline-fill { position: absolute; inset: 0; border-radius: 4px; background: var(--flame);
  clip-path: inset(0 0 calc(100% - var(--progress) * 100%) 0); }
.timeline-spark { position: absolute; left: 50%; top: calc(var(--progress) * 100%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--yellow) 35%, rgba(244, 122, 31, 0) 70%);
  box-shadow: 0 0 16px 4px rgba(255, 197, 38, 0.8), 0 0 40px 12px rgba(227, 38, 27, 0.5); opacity: 0; transition: opacity 200ms; }
.timeline.is-burning .timeline-spark { opacity: 1; animation: spark 420ms ease-in-out infinite alternate; }
@keyframes spark { from { scale: 0.8; } to { scale: 1.3; } }

.timeline-steps { position: relative; z-index: 1; display: grid; gap: 64px; }
.timeline-step { display: grid; grid-template-columns: 1fr 64px 1fr; column-gap: 40px; align-items: center; }
.timeline-node { grid-column: 2; grid-row: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  font-family: var(--font-display); font-size: 1.75rem; color: var(--text-muted); background: var(--surface-2);
  box-shadow: inset 0 0 0 2px var(--border), 0 0 0 8px var(--section-bg);
  transition: color 220ms, background 220ms, box-shadow 220ms; }
.timeline-step.is-active .timeline-node { color: #160800; background: var(--flame);
  box-shadow: 0 0 0 8px var(--section-bg), 0 0 32px 8px rgba(244, 122, 31, 0.45); }
.timeline-body { grid-column: 1; grid-row: 1; justify-self: end; max-width: 360px; text-align: right; }
.timeline-step:nth-child(even) .timeline-body { grid-column: 3; justify-self: start; text-align: left; }
.timeline-body p { margin-top: 8px; color: var(--text-muted); }

/* Desktop only: give the zigzag more room so it doesn't feel crowded */
@media (min-width: 1025px) {
  .timeline { margin-top: 24px; }
  .timeline-steps { gap: 104px; }
  .timeline-step { column-gap: 64px; }
  .timeline + .section-footer { margin-top: 72px; }
}

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 32px; background: var(--black); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--border); }
.stars { display: flex; gap: 4px; color: var(--yellow); }
.stars svg { width: 20px; height: 20px; }
.review blockquote { margin: 0; font-size: 1.125rem; }
.review figcaption { margin-top: auto; font-family: var(--font-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.review figcaption span { display: block; font-family: var(--font-body); font-size: 0.9375rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-muted); }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-text p { margin-top: 16px; color: var(--text-muted); max-width: 560px; }
.split-text .btn { margin-top: 32px; }
.split-image img { width: 100%; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--border), 0 24px 80px rgba(227, 38, 27, 0.22); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border); background: var(--surface);
  font-family: var(--font-label); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 1rem; }

/* ---------- Inner page intro (Find Our Trucks) ---------- */
.page-intro { padding-top: 112px; }
.page-intro h1 { font-size: clamp(2.75rem, 5.2vw, 4.5rem); }
.page-intro-cta { display: flex; flex-direction: column; align-items: flex-start; }
.page-intro-cta .btn svg { width: 20px; height: 20px; }
.split-text .page-intro-note { margin-top: 12px; font-size: 0.9375rem; }
.social-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ---------- Catering page ---------- */
.event-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1040px; margin-inline: auto; padding: 0; list-style: none; }
.event-list li { padding: 12px 20px; background: var(--black); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border);
  font-family: var(--font-label); font-size: 1.125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-item { padding: 32px 24px; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--border); border-top: 0; }
.section-raised .info-item { background: var(--black); }
.info-item h3 { font-size: 1.5rem; }
.info-item p { margin-top: 12px; color: var(--text-muted); }
.stops-embed { max-width: 900px; margin-inline: auto; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--border); }
.stops-embed iframe { display: block; width: 100%; border: 0; }

.split-reverse .split-image { order: -1; }
/* Portrait photos (About page owners) stay a sensible size instead of filling the column */
.split-image-portrait img { max-width: 460px; margin-inline: auto; }

/* ---------- Reviews page ---------- */
.rating-summary { margin: -16px auto 48px; text-align: center; }

/* ---------- Gallery page ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-item { overflow: hidden; aspect-ratio: 1; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms; }
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- Forms (Contact, Book an Event) ---------- */
.form-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.form-aside > p { margin-top: 16px; color: var(--text-muted); max-width: 480px; }
.contact-methods { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.contact-methods li { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.contact-methods span { font-family: var(--font-label); font-size: 1rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.contact-methods a { text-decoration: none; }
.contact-methods a:hover { color: var(--yellow); }
.form-aside .form-aside-note { margin-top: 32px; }
.form-aside-note a, .form-card a { color: var(--yellow); }
.form-card { padding: 40px; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--border); }
.form-card h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.form-required-note { margin-top: 8px; font-size: 0.9375rem; color: var(--text-muted); }
.form-error { margin-top: 16px; padding: 12px 16px; border-radius: 8px; background: rgba(227, 38, 27, 0.15); box-shadow: inset 0 0 0 1px var(--red); }
.site-form { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-label); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.field:has(:required) > label::after { content: " *"; content: " *" / ""; color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 16px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--black); border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow 200ms; }
.field textarea { resize: vertical; }
.field select { appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f47a1f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 20px; }
.field input[type="date"] { color-scheme: dark; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--orange); }
.site-form .btn { align-self: flex-start; margin-top: 8px; }
.form-preview-note { padding: 12px 16px; border-radius: 8px; background: rgba(255, 197, 38, 0.1); box-shadow: inset 0 0 0 1px var(--yellow); }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Text pages (Privacy policy) ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { margin-top: 48px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose p { margin-top: 16px; color: var(--text-muted); }
.prose a { color: var(--yellow); }
.prose .prose-meta { margin-top: 12px; font-size: 0.9375rem; }

/* ---------- Coming soon placeholder pages ---------- */
.coming-soon { display: flex; align-items: center; min-height: 60vh; padding-bottom: 112px; }
.coming-soon .section-header p { margin-inline: auto; max-width: 560px; }
.coming-soon-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ---------- Closing call to action ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; padding: 128px 0 176px; text-align: center;
  background: radial-gradient(ellipse 80% 70% at 50% 110%, rgba(227, 38, 27, 0.5), rgba(10, 10, 10, 0) 70%), var(--surface); }
.cta .embers, .cta .flame-edge { z-index: -1; }
.cta-inner { max-width: 760px; margin-inline: auto; }
.cta p { margin-top: 20px; font-size: 1.25rem; color: rgba(246, 241, 234, 0.92); }
.cta .hero-cta { justify-content: center; }
.cta-email { margin-top: 24px; font-size: 1.0625rem; color: var(--text-muted); }
.cta-email a { color: var(--yellow); }

/* ---------- Footer ---------- */
.site-footer { padding: 80px 0 32px; background: var(--chrome); border-top: 1px solid var(--border); }
.footer-top { display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-bottom: 48px; margin-bottom: 56px; border-bottom: 1px solid var(--border); }
.footer-logo img { width: 200px; height: auto; }
.footer-top p { margin-top: 16px; color: var(--text-muted); text-wrap: balance; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.footer-contact svg { flex: none; width: 20px; height: 20px; color: var(--orange); transition: color 200ms; }
.footer-contact a:hover svg { color: var(--yellow); }
.footer-contact a:hover, .footer-col a:hover, .footer-legal a:hover { color: var(--yellow); }
.footer-col h2 { margin-bottom: 20px; font-family: var(--font-label); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { text-decoration: none; color: var(--text); transition: color 200ms; }
.social-links { display: flex; gap: 12px; }
.social-links a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border); transition: color 200ms, box-shadow 200ms, transform 200ms; }
.social-links a:hover { color: var(--yellow); box-shadow: inset 0 0 0 1px var(--orange), var(--glow); transform: translateY(-2px); }
.social-links svg { width: 22px; height: 22px; }
/* Flame gradient (yellow top, red bottom, like the logo lettering) on the social icons */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.social-links svg[fill="currentColor"], .social-links svg [fill="currentColor"] { fill: url(#flame-gradient); }
.social-links svg[stroke="currentColor"] { stroke: url(#flame-gradient); }
.footer-tag { margin-top: 20px; font-family: var(--font-label); font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.9375rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { text-decoration: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in-view { animation: ds-reveal-up 700ms cubic-bezier(0.4, 0, 0.2, 1) var(--reveal-delay, 0ms) forwards; }
@keyframes ds-reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Tablet and mobile (1024px and below) ---------- */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .section { padding: 64px 0; }
  .section-header { margin-inline: auto; text-align: center; }

  .nav-inner { height: 80px; }
  .nav-logo img { height: 68px; }
  .nav-cta { display: none; }
  .nav-burger { display: block; margin-right: -12px; } /* lines sit flush with the page gutter */
  .nav-links {
    position: fixed; top: 0; right: 0; left: auto;
    width: min(86vw, 380px); height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch;
    background:
      radial-gradient(120% 45% at 50% 115%, rgba(227, 38, 27, 0.32), rgba(227, 38, 27, 0) 70%),
      var(--chrome);
    box-shadow: -1px 0 0 var(--border), -16px 0 48px rgba(0, 0, 0, 0.7);
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 250; overflow-y: auto; overscroll-behavior: contain; visibility: hidden;
  }
  body.nav-open .nav-links { transform: translateX(0); visibility: visible; }
  .nav-links { transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 280ms; }
  body.nav-open .nav-links { transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); z-index: 240; }
  body.nav-open .nav-backdrop { display: block; }
  body.nav-open { overflow: hidden; }

  .nav-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
  .nav-panel-header img { height: 56px; width: auto; }
  .nav-panel-close { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
    background: var(--surface-2); color: var(--text); cursor: pointer; transition: color 200ms, box-shadow 200ms; }
  .nav-panel-close:hover { color: var(--yellow); box-shadow: inset 0 0 0 1px var(--orange); }
  .nav-panel-close svg { width: 22px; height: 22px; }
  .nav-panel-footer { display: flex; flex-direction: column; align-items: stretch; gap: 28px; margin-top: auto; padding: 40px 24px 40px; text-align: center; }
  .nav-panel-phone { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
    font-family: var(--font-label); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.06em; color: var(--text); }
  .nav-panel-phone svg { width: 20px; height: 20px; color: var(--orange); }
  .nav-panel-social { justify-content: center; }

  /* Menu items: bold display type, flame bar on the current page, staggered slide-in */
  .nav-links > .nav-item { opacity: 0; transform: translateX(24px); transition: opacity 260ms ease, transform 260ms ease; }
  body.nav-open .nav-links > .nav-item { opacity: 1; transform: none; }
  body.nav-open .nav-links > .nav-item:nth-of-type(1) { transition-delay: 60ms; }
  body.nav-open .nav-links > .nav-item:nth-of-type(2) { transition-delay: 100ms; }
  body.nav-open .nav-links > .nav-item:nth-of-type(3) { transition-delay: 140ms; }
  body.nav-open .nav-links > .nav-item:nth-of-type(4) { transition-delay: 180ms; }
  body.nav-open .nav-links > .nav-item:nth-of-type(5) { transition-delay: 220ms; }

  .nav-item { height: auto; position: relative; border-bottom: 1px solid var(--border); }
  .nav-item > a { padding: 18px 24px; height: auto; font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; letter-spacing: 0.04em; }
  .nav-item > a::after { display: none; }
  .nav-item > a[aria-current="page"]::before, .nav-item.is-current-parent > a::before {
    content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--flame); }
  .nav-item.has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .nav-item.has-sub > a { padding-right: 24px; }
  .nav-sub-toggle { width: 56px; height: 56px; margin-right: 8px; }
  .nav-sub-toggle svg { width: 22px; height: 22px; }
  .nav-item.has-sub:hover .nav-sub-toggle svg { transform: none; }
  .nav-item.has-sub.is-open .nav-sub-toggle svg { transform: rotate(180deg); }
  .nav-sub { position: static; grid-column: 1 / -1; display: none; min-width: 0; padding: 0 0 12px;
    background: none; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav-item.has-sub.is-open .nav-sub { display: block; }
  .nav-sub a { padding: 12px 24px 12px 44px; border-radius: 0; font-size: 1.125rem; color: var(--text-muted); }
  .nav-sub a:hover, .nav-sub a:focus-visible { background: none; }

  .hero { min-height: 640px; padding: 80px 0 128px; text-align: center; }
  .hero-bg { object-position: 72% center; }
  .hero-overlay { background: linear-gradient(0deg, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0) 34%), rgba(10, 10, 10, 0.62); }
  .hero-content, .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }

  .stats-grid { gap: 24px 16px; }
  .cards-grid, .reviews-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .card-body { text-align: center; }
  .food-grid { grid-template-columns: repeat(2, 1fr); }
  .info-item { text-align: center; }
  .form-layout { grid-template-columns: 1fr; gap: 48px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .form-aside { text-align: center; }
  .form-aside > p { margin-inline: auto; }
  .contact-methods { align-items: center; }

  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-image { order: -1; }
  .split-text { text-align: center; }
  .split-text p { margin-inline: auto; max-width: 640px; }
  .page-intro { padding-top: 72px; }
  .page-intro-cta { align-items: center; }
  .chips { justify-content: center; }

  .cta { padding: 96px 0 160px; }

  .site-footer { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .footer-top { padding-bottom: 40px; margin-bottom: 40px; }
  .footer-logo img { width: 170px; }
  .footer-contact { align-items: center; }
  .footer-col ul { align-items: center; }
  .site-footer .social-links { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: center; }
  .footer-legal { justify-content: center; }
}

/* ---------- Small mobile (640px and below) ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .container { padding: 0 var(--container-pad-mobile); }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }

  /* Phone hero is stacked: full-color image with the flame edge on top,
     then the text on solid black below. No overlay on the artwork. */
  .hero { --hero-img-h: 272px; display: block; min-height: 0; padding: 0 0 48px; }
  .hero-bg { position: relative; inset: auto; display: block; height: var(--hero-img-h); }
  .hero-overlay { display: none; }
  .hero .flame-edge { top: calc(var(--hero-img-h) - 88px); bottom: auto; }
  .hero-content { padding-top: 24px; }
  .hero-eyebrow { margin-bottom: 12px; }
  .hero-title br { display: none; }
  .hero-sub { margin-top: 16px; font-size: 1.125rem; }
  .hero-cta { margin-top: 28px; gap: 12px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .page-intro { padding-top: 48px; }
  .stat-label { font-size: 0.875rem; letter-spacing: 0.08em; }
  .social-buttons { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .social-buttons .btn { width: 100%; }
  .coming-soon { min-height: 0; padding-bottom: 72px; }
  .coming-soon-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .flame-edge { height: 88px; }

  .food-grid { gap: 12px; }
  .info-grid { grid-template-columns: 1fr; gap: 16px; }
  .event-list { gap: 8px; }
  .event-list li { padding: 8px 16px; font-size: 1rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .form-card { padding: 32px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .site-form .btn { align-self: stretch; }
  .food-tile figcaption { padding: 40px 12px 12px; font-size: 1.125rem; }

  .timeline-steps { gap: 52px; }
  .timeline-step { grid-template-columns: 56px 1fr; column-gap: 20px; align-items: start; }
  .timeline-node { grid-column: 1; width: 56px; height: 56px; }
  .timeline-body, .timeline-step:nth-child(even) .timeline-body { grid-column: 2; justify-self: start; max-width: none; text-align: left; padding-top: 12px; }

  .review { padding: 24px; }
  .cta { padding: 80px 0 128px; }
  .cta p { font-size: 1.125rem; }
}

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.blog-card { display: flex; }
.blog-card-link { display: flex; flex-direction: column; width: 100%; overflow: hidden; text-decoration: none;
  background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow 200ms; }
.blog-card-link:hover { box-shadow: inset 0 0 0 1px var(--orange); }
.section-raised .blog-card-link { background: var(--black); }
.blog-card-image { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms; }
.blog-card-link:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px 24px 32px; }
.blog-card-date { font-family: var(--font-label); font-size: 1rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.blog-card-title { margin-top: 8px; font-size: 1.625rem; line-height: 1.1; }
.blog-card.is-compact .blog-card-title { margin-top: 0; font-size: 1.375rem; }
.blog-card-excerpt { margin-top: 12px; color: var(--text-muted); }
.blog-card-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px;
  font-family: var(--font-label); font-size: 1.125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--yellow); }
.blog-card-more svg { width: 20px; height: 20px; transition: transform 200ms; }
.blog-card-link:hover .blog-card-more svg { transform: translateX(4px); }
.blog-empty { max-width: 560px; margin-inline: auto; padding: 48px 24px; text-align: center; }
.blog-empty p { margin-top: 12px; color: var(--text-muted); }

.blog-load-more { margin-top: 48px; text-align: center; }
.blog-card[hidden], .blog-load-more .btn[hidden] { display: none; }

/* Single post */
.post-hero { padding-bottom: 0; }
.post-head { max-width: 860px; margin-inline: auto; text-align: center; }
.post-back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--font-label); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); transition: color 200ms; }
.post-back svg { width: 20px; height: 20px; transition: transform 200ms; }
.post-back:hover { color: var(--yellow); }
.post-back:hover svg { transform: translateX(-4px); }
.post-head h1 { margin-top: 24px; font-size: clamp(2.5rem, 5vw, 4rem); }
.post-deck { margin: 20px auto 0; max-width: 720px; font-size: 1.25rem; color: var(--text-muted); }
.post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 24px;
  font-family: var(--font-label); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.post-byline { color: var(--text); }
.post-meta-group { display: inline-flex; gap: 12px; white-space: nowrap; }
.post-head .share-row { margin-top: 32px; }
.post-section { padding-top: 48px; }
.post-featured { max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.post-featured img { width: 100%; height: 100%; object-fit: cover; }

/* Share buttons */
.share-row { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.share-label { font-family: var(--font-label); font-size: 1rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.share-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.share-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); transition: color 200ms, box-shadow 200ms, transform 200ms; }
.share-btn svg { width: 18px; height: 18px; display: block; }
.share-btn:hover { color: var(--yellow); box-shadow: inset 0 0 0 1px var(--orange), 0 0 16px rgba(244, 122, 31, 0.35); transform: translateY(-2px); }
.share-status { min-height: 1.5em; font-size: 0.9375rem; color: var(--yellow); }
.share-status:empty { min-height: 0; }

/* Article body */
.post-content { max-width: 820px; margin: 56px auto 0; font-size: 1.125rem; line-height: 1.75; color: rgba(246, 241, 234, 0.9); }
.post-content > * + * { margin-top: 20px; }
.post-content h2 { margin-top: 56px; font-size: clamp(1.875rem, 3.4vw, 2.5rem); color: var(--text); }
.post-content h3 { margin-top: 40px; font-size: 1.625rem; color: var(--text); }
.post-content h4 { margin-top: 32px; font-size: 1.25rem; color: var(--text); }
.post-content h2 + *, .post-content h3 + *, .post-content h4 + * { margin-top: 16px; }
.post-content ul, .post-content ol { padding-left: 24px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li + li { margin-top: 8px; }
.post-content li::marker { color: var(--orange); font-weight: 700; }
.post-content strong { color: var(--text); }
.post-content a { color: var(--yellow); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-content a:hover { color: var(--orange); }
.post-content blockquote { margin: 32px 0; padding: 20px 24px; border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface); font-size: 1.25rem; color: var(--text); }
.post-content blockquote > * + * { margin-top: 12px; }
/* Tables: header row on a darker band, every other column shaded so rows read across easily.
   On phones, display: block lets a wide table scroll sideways instead of stretching the page. */
.post-content table { width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--border); font-size: 1rem; }
.post-content th, .post-content td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.post-content th { background: var(--surface-2); font-family: var(--font-label); font-size: 1rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); }
.post-content td { background: var(--surface); }
.post-content td:nth-child(even) { background: var(--stripe); }
.post-content th:nth-child(even) { background: var(--stripe-head); }
.post-content td:first-child { font-weight: 600; color: var(--text); }
.post-content tr:last-child td { border-bottom: 0; }
.post-content th:first-child { border-top-left-radius: var(--radius); }
.post-content th:last-child { border-top-right-radius: var(--radius); }
.post-content tr:last-child td:first-child { border-bottom-left-radius: var(--radius); }
.post-content tr:last-child td:last-child { border-bottom-right-radius: var(--radius); }
@media (max-width: 640px) {
  .post-content table { display: block; overflow-x: auto; }
  .post-content th, .post-content td { padding: 12px 16px; white-space: nowrap; }
}
.post-content img { border-radius: var(--radius); }
.post-content figure { margin: 32px 0; }
.post-content figcaption { margin-top: 8px; font-size: 0.9375rem; color: var(--text-muted); text-align: center; }
.post-content code { padding: 2px 6px; border-radius: 4px; background: var(--surface-2); font-size: 0.9em; }
.post-content pre { overflow-x: auto; padding: 20px; border-radius: var(--radius); background: var(--surface); }
.post-content pre code { padding: 0; background: none; }
.post-content hr { margin: 48px 0; border: 0; border-top: 1px solid var(--border); }
.post-content iframe, .post-content video { max-width: 100%; }
.post-foot { max-width: 820px; margin: 56px auto 0; padding-top: 40px; border-top: 1px solid var(--border); }

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .blog-card-body { text-align: center; }
  .blog-card-more { align-self: center; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-deck { font-size: 1.125rem; }
  .post-meta { flex-direction: column; align-items: center; }
  .post-meta-sep { display: none; }
  .post-section { padding-top: 32px; }
  .post-content { margin-top: 40px; font-size: 1.0625rem; }
  .post-content h2 { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card-image img, .blog-card-more svg, .post-back svg, .share-btn { transition: none; }
}
@media print {
  .nav, .site-footer, .skip-link, .share-row, .post-related, .cta, .post-back, .embers, .flame-edge { display: none !important; }
  body, .section { background: #fff !important; color: #000 !important; }
  .post-content, .post-deck, .post-meta, .post-content blockquote { color: #000 !important; background: none !important; }
  .post-head h1, .post-content h2, .post-content h3, .post-content h4 { color: #000 !important; }
  .post-content a { color: #000 !important; }
  .section { padding: 24px 0 !important; }
  .post-foot { border: 0; }
}

/* ---------- 404 page ---------- */
.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; }
.not-found { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: calc(100vh - 80px);
  padding: 96px 0 176px; text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 115%, rgba(227, 38, 27, 0.55), rgba(10, 10, 10, 0) 70%), var(--black); }
.not-found .embers, .not-found .flame-edge { z-index: -1; }
.not-found .container { width: 100%; }
.nf-code { display: flex; align-items: center; justify-content: center; gap: 0.06em;
  font-family: var(--font-display); font-size: clamp(8rem, 24vw, 15rem); line-height: 1;
  filter: drop-shadow(0 0 32px rgba(244, 122, 31, 0.35)); }

/* The burger stands in for the 0. Sizes are in em so it scales with the digits. */
.nf-burger { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  width: 0.62em; height: 0.8em; }
.nf-bun-top { position: relative; z-index: 2; width: 100%; height: 0.3em; border-radius: 0.3em 0.3em 0.05em 0.05em;
  background: radial-gradient(ellipse 60% 50% at 35% 25%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--yellow) 0%, var(--orange) 70%, #c2410c 100%);
  box-shadow: inset 0 -0.02em 0 rgba(0, 0, 0, 0.25);
  animation: nf-lid 2.4s ease-in-out infinite; }
/* sesame seeds */
.nf-bun-top::before { content: ""; position: absolute; inset: 0.07em 0.1em auto; height: 0.12em;
  background:
    radial-gradient(ellipse 0.022em 0.012em at 18% 60%, #fff4d6 98%, transparent),
    radial-gradient(ellipse 0.022em 0.012em at 38% 20%, #fff4d6 98%, transparent),
    radial-gradient(ellipse 0.022em 0.012em at 58% 55%, #fff4d6 98%, transparent),
    radial-gradient(ellipse 0.022em 0.012em at 78% 25%, #fff4d6 98%, transparent),
    radial-gradient(ellipse 0.022em 0.012em at 50% 95%, #fff4d6 98%, transparent); }
.nf-cheese { position: relative; z-index: 1; width: 110%; height: 0.11em; margin: 0.02em 0 -0.06em;
  background: linear-gradient(180deg, #ffd84a, var(--yellow) 60%, #f5a623);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 90% 45%, 85% 100%, 80% 45%, 56% 45%, 51% 80%, 46% 45%, 22% 45%, 16% 95%, 10% 45%, 0 45%); }
.nf-patty { position: relative; width: 104%; height: 0.15em; border-radius: 0.06em;
  background: linear-gradient(180deg, #5a2a17 0%, #3a170b 60%, #24100a 100%);
  box-shadow: inset 0 0.015em 0 rgba(255, 150, 80, 0.35), 0 0 0.12em rgba(227, 38, 27, 0.6); }
.nf-bun-bottom { width: 96%; height: 0.12em; margin-top: 0.015em; border-radius: 0.03em 0.03em 0.08em 0.08em;
  background: linear-gradient(180deg, var(--orange) 0%, #c2410c 100%); }

/* steam rising off the patty while the lid lifts */
.nf-steam { position: absolute; left: 0; right: 0; bottom: 0.48em; display: flex; justify-content: center; gap: 0.09em; height: 0.3em; pointer-events: none; }
.nf-steam i { display: block; width: 0.03em; height: 100%; border-radius: 0.03em;
  background: linear-gradient(0deg, rgba(246, 241, 234, 0), rgba(246, 241, 234, 0.55), rgba(246, 241, 234, 0));
  filter: blur(0.012em); opacity: 0; animation: nf-steam 2.4s ease-in-out infinite; }
.nf-steam i:nth-child(2) { animation-delay: 0.3s; }
.nf-steam i:nth-child(3) { animation-delay: 0.6s; }
@keyframes nf-lid {
  0%, 55%, 100% { transform: translateY(0) rotate(0); }
  20% { transform: translateY(-0.16em) rotate(-6deg); }
  38% { transform: translateY(-0.1em) rotate(3deg); }
}
@keyframes nf-steam {
  0% { opacity: 0; transform: translateY(0.05em) scaleY(0.6); }
  25% { opacity: 1; }
  60% { opacity: 0; transform: translateY(-0.2em) scaleY(1) skewX(-8deg); }
  100% { opacity: 0; }
}

.not-found h1 { margin-top: 24px; }
.nf-text { max-width: 520px; margin: 20px auto 0; font-size: 1.25rem; color: var(--text-muted); }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }

@media (max-width: 640px) {
  .not-found { padding: 64px 0 128px; }
  .nf-text { font-size: 1.125rem; }
  .nf-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-bun-top, .nf-steam i { animation: none; }
  .nf-steam { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .nav-links > .nav-item, body.nav-open .nav-links > .nav-item { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .reveal, .reveal.in-view { opacity: 1; transform: none; animation: none; }
  .flame-text, .flame-tongue, .btn-primary:hover, .timeline-spark { animation: none; }
  .timeline-spark { display: none; }
  .timeline-node, .btn, .card, .card-image img, .food-tile img { transition: none; }
  .embers { display: none; }
}
