/* La Esquina Mexican Kitchen · spec demo.
   Barro (terracotta) on cream paper, mole-brown ink, cempasúchil gold on dark bands.
   Motion: transform and opacity only. Marquee and badge pulse stop under prefers-reduced-motion. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f7efe2;
  --paper-2: #efe2cd;
  --ink: #2a1810;
  --ink-2: #5a4031;
  --barro: #9e3f1c;
  --barro-deep: #7c2f13;
  --agave: #2e5844;
  --gold: #e3a83c;
  --cream: #f7efe2;
  --line: rgba(42, 24, 16, 0.16);
  --line-dark: rgba(247, 239, 226, 0.2);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: min(1180px, 100% - 32px);
  --head-h: 64px;
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; font-variation-settings: "SOFT" 50; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
p { margin: 0 0 1em; }
figure { margin: 0; }
:where(ul[role="list"]) { list-style: none; margin: 0; padding: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--barro); outline-offset: 3px; border-radius: 3px; }
.specials :focus-visible, .foot :focus-visible, .marquee :focus-visible { outline-color: var(--gold); }
[id] { scroll-margin-top: calc(var(--head-h) + 16px); }

.eyebrow { font: 600 0.8125rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--barro); margin-bottom: 14px; }
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; transform: translateY(-2px); }
.fine { font-size: 0.9375rem; color: var(--ink-2); }
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font: 600 1rem/1 var(--sans); text-decoration: none; border: 2px solid transparent; transition: transform 160ms var(--ease), background-color 160ms, color 160ms; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 0.9375rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-solid { background: var(--barro); color: var(--cream); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-gold { background: var(--gold); color: var(--ink); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-solid:hover { background: var(--barro-deep); }
  .btn-line:hover { background: var(--ink); color: var(--cream); }
}
.btn:active { transform: translateY(0) scale(0.98); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.social { margin-top: 12px; }
.social-dark .btn-line { border-color: rgba(247, 239, 226, 0.6); color: var(--cream); }
@media (hover: hover) { .social-dark .btn-line:hover { background: var(--cream); color: var(--ink); } }
.link-arrow { display: inline-block; padding: 8px 0; font-weight: 600; color: var(--barro); text-underline-offset: 4px; }
.link-arrow::after { content: " →"; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(247, 239, 226, 0.96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .top { background: rgba(247, 239, 226, 0.88); backdrop-filter: blur(10px) saturate(1.2); } }
.top-in { display: flex; align-items: center; gap: 24px; height: var(--head-h); }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; margin: 0; }
.brand-name { font: 700 1.5rem/1 var(--serif); letter-spacing: -0.01em; }
.brand-sub { font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--barro); margin-top: 4px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 14px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; border-radius: var(--radius); }
.nav a:hover { background: var(--paper-2); }
.top-call-num { display: none; }
@media (min-width: 1100px) { .top-call-num { display: inline; } }
.chips { display: none; }

@media (max-width: 859px) {
  :root { --head-h: 56px; }
  html { scroll-padding-top: 116px; }
  [id] { scroll-margin-top: 116px; }
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .brand-name { font-size: 1.3rem; }
  .top-call { min-height: 40px; padding: 0 14px; }
  .chips { display: block; border-top: 1px solid var(--line); }
  .chips ul { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .chips ul::-webkit-scrollbar { display: none; }
  .chips a { display: flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 0.875rem; white-space: nowrap; text-decoration: none; background: var(--paper); }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 0; }
.hero-in { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 1000px) { .hero-in { grid-template-columns: 1.02fr 0.98fr; } }
h1 { margin-bottom: 22px; }
.h1-main { display: block; font-size: clamp(3.4rem, 10vw, 6.6rem); font-weight: 700; line-height: 0.92; letter-spacing: -0.03em; }
.h1-sub { display: block; font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 4.2vw, 2.7rem); color: var(--barro); margin-top: 8px; }
.hero-lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); max-width: 34ch; color: var(--ink-2); margin-bottom: 26px; }
.hero-lede em { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 0; font-weight: 600; font-size: 0.9375rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-2); }
.status.is-open .status-dot { background: var(--agave); box-shadow: 0 0 0 4px rgba(46, 88, 68, 0.18); }
.status.is-closed .status-dot { background: var(--barro); }
.hero-photo img { width: 100%; border-radius: var(--radius); box-shadow: 0 24px 50px -28px rgba(42, 24, 16, 0.55); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { padding: 18px 12px; font-size: 0.9375rem; color: var(--ink-2); }
.facts li:nth-child(odd) { border-right: 1px solid var(--line); }
.facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.facts strong { display: block; font: 600 1.25rem/1.2 var(--serif); color: var(--ink); }
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li { padding: 22px 20px; border: 0 !important; }
  .facts li + li { border-left: 1px solid var(--line) !important; }
}

/* ---------- Story ---------- */
.story { padding: clamp(64px, 9vw, 120px) 0; }
.story-in { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 1000px) { .story-in { grid-template-columns: 0.8fr 1.2fr; } }
.story-photo img { width: 100%; border-radius: var(--radius); }
@media (max-width: 999px) { .story-photo { max-width: 460px; } }
.story-copy h2 { margin-bottom: 24px; }
.story-copy > p { max-width: 58ch; }
.pull { margin: 32px 0 0; padding: 24px 0 0; border-top: 2px solid var(--barro); }
.pull p { font: italic 500 clamp(1.7rem, 3.4vw, 2.5rem)/1.15 var(--serif); color: var(--barro); margin: 0; }

/* ---------- Marquee (CSS only) ---------- */
.marquee { background: var(--ink); color: var(--gold); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-run { display: flex; flex: none; }
.marquee-run li { font: italic 500 clamp(1.25rem, 2.4vw, 1.75rem)/1.2 var(--serif); white-space: nowrap; padding: 0 28px; position: relative; }
.marquee-run li::after { content: "✦"; position: absolute; right: -8px; font-style: normal; font-size: 0.7em; top: 0.35em; color: var(--cream); opacity: 0.55; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: auto; }
  .marquee-run { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
  .marquee-run[aria-hidden="true"] { display: none; }
}

/* ---------- Breakfast ---------- */
.breakfast { padding: clamp(64px, 9vw, 120px) 0; background: var(--paper-2); }
.breakfast-in { display: grid; gap: 28px; }
.breakfast-copy h2 { margin-bottom: 18px; }
.breakfast-copy p:not(.eyebrow) { max-width: 44ch; color: var(--ink-2); }
.breakfast-main img { width: 100%; border-radius: var(--radius); }
@media (min-width: 1000px) {
  .breakfast-in { grid-template-columns: 0.9fr 1.3fr; align-items: center; column-gap: 56px; }
}

/* ---------- Menu ---------- */
.menu { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); }
.menu-head { max-width: 640px; margin-bottom: 28px; }
.menu-head h2 { margin-bottom: 16px; }
.menu-intro { color: var(--ink-2); }
.menu-jump { margin-bottom: clamp(24px, 4vw, 48px); }
.menu-jump ul { display: flex; flex-wrap: wrap; gap: 8px; }
.menu-jump a { display: flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 0.875rem; text-decoration: none; white-space: nowrap; transition: background-color 160ms, color 160ms; }
@media (hover: hover) { .menu-jump a:hover { background: var(--ink); color: var(--cream); } }
@media (max-width: 759px) {
  .menu-jump ul { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px; scrollbar-width: none; }
  .menu-jump ul::-webkit-scrollbar { display: none; }
}
.cat { display: grid; gap: 20px 56px; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .cat { grid-template-columns: 300px 1fr; } }
.es { font: italic 500 1.0625rem/1.2 var(--serif); color: var(--barro); margin-bottom: 6px; }
.cat h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 12px; }
.cat-note { font-size: 0.9375rem; color: var(--ink-2); margin-bottom: 8px; max-width: 46ch; }
.cat-add { font-weight: 600; color: var(--barro); }
.cat-photo { margin-top: 18px; }
.cat-photo img { width: 100%; border-radius: var(--radius); }
.items { display: grid; gap: 22px 40px; align-content: start; }
@media (min-width: 1140px) { .items { grid-template-columns: 1fr 1fr; } }
.cat-compact .items { gap: 12px 40px; }
@media (min-width: 600px) { .cat-compact .items { grid-template-columns: 1fr 1fr; } }
.item p { margin: 0; }
.item-row { display: flex; align-items: baseline; gap: 8px; }
.item-name { font: 600 1.1875rem/1.25 var(--serif); }
.cat-compact .item-name { font-size: 1.0625rem; }
.dots { flex: 1; min-width: 16px; border-bottom: 2px dotted rgba(42, 24, 16, 0.3); transform: translateY(-4px); }
.price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-free { color: var(--agave); }
.item-desc { margin-top: 4px !important; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); max-width: 52ch; }
.item-adds { margin-top: 6px !important; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.875rem; font-weight: 600; color: var(--barro); }
.tag { position: relative; display: inline-block; margin-left: 8px; vertical-align: 3px; font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--barro); color: var(--cream); }
.tag-quiet { background: transparent; color: var(--agave); box-shadow: inset 0 0 0 1px currentColor; }
.tag-pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px var(--barro); opacity: 0; animation: pulse 3s var(--ease) infinite; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 45%, 100% { transform: scale(1.45, 1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tag-pulse::after { animation: none; } }

/* ---------- Weekly specials ---------- */
.specials { background: var(--ink); color: var(--cream); padding: clamp(64px, 9vw, 112px) 0; }
.specials .eyebrow { color: var(--gold); }
.specials-in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .specials-in { grid-template-columns: 1fr 1fr; gap: 64px; } }
.specials h2 { margin-bottom: 18px; }
.specials-in > div > p:not(.eyebrow) { color: rgba(247, 239, 226, 0.82); max-width: 42ch; }
.special-card { border: 1px solid var(--gold); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); position: relative; }
.special-card::before { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(227, 168, 60, 0.45); border-radius: 3px; pointer-events: none; }
.special-label { font: 600 0.8rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.special-list { display: grid; gap: 4px; margin: 0 0 24px; padding: 0; list-style: none; }
.special-list li { font: 600 clamp(1.5rem, 2.6vw, 1.9rem)/1.2 var(--serif); color: var(--cream); padding: 10px 0; border-bottom: 1px solid rgba(227, 168, 60, 0.3); }
.special-fine { font-size: 0.875rem; color: rgba(247, 239, 226, 0.7); margin: 16px 0 0; }
@media (hover: hover) { .btn-gold:hover { background: #f0bb57; } }

/* ---------- Order ---------- */
.order { padding: clamp(56px, 8vw, 96px) 0; background: var(--paper-2); }
.order-in { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .order-in { grid-template-columns: 1.2fr 0.8fr; gap: 56px; } }
.order h2 { margin-bottom: 16px; }
.order-in > div > p { max-width: 50ch; }
.order-actions { display: grid; gap: 12px; }

/* ---------- Visit ---------- */
.visit { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 7vw, 88px); }
.visit-in { display: grid; gap: 36px; }
@media (min-width: 960px) { .visit-in { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.visit h2 { margin-bottom: 24px; }
address { font-style: normal; display: grid; gap: 4px; margin-bottom: 24px; }
.visit-line { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font: 600 1.1875rem/1.35 var(--serif); text-decoration: none; }
.visit-line .icon { color: var(--barro); margin-top: 3px; }
.visit-line:hover span { text-decoration: underline; text-underline-offset: 4px; }
.hours { width: 100%; max-width: 440px; border-collapse: collapse; margin-bottom: 24px; font-variant-numeric: tabular-nums; }
.hours caption { text-align: left; font: 600 0.8125rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 10px; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; }
.today { display: inline-block; margin-left: 8px; font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: var(--agave); color: var(--cream); vertical-align: 2px; }
.perks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px !important; }
.perks li { font-size: 0.875rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--paper-2); }
.map { min-height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }
.faq { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.faq-title { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 24px; }
.faq dl { display: grid; gap: 24px 48px; margin: 0; }
@media (min-width: 800px) { .faq dl { grid-template-columns: 1fr 1fr; } }
.faq dt { font: 600 1.125rem/1.3 var(--serif); margin-bottom: 6px; }
.faq dd { margin: 0; color: var(--ink-2); font-size: 0.9875rem; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--cream); padding: 56px 0 28px; }
.foot-in { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot p { color: rgba(247, 239, 226, 0.82); font-size: 0.9375rem; margin-bottom: 10px; }
.foot .brand-sub { color: var(--gold); }
.foot-mark { margin-bottom: 14px !important; }
.foot-mark .brand-name { color: var(--cream); }
.foot-h { font: 600 0.8125rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.foot a { color: var(--cream); text-underline-offset: 3px; }
.foot-links { display: grid; gap: 8px; font-size: 0.9375rem; }
.foot-links a { display: inline-block; padding: 3px 0; }
.foot-fine { margin-top: 40px !important; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 0.8125rem !important; color: rgba(247, 239, 226, 0.68) !important; }

/* ---------- Mobile action dock ---------- */
.dock { display: none; }
@media (max-width: 759px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .dock { display: grid; grid-template-columns: 1.3fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -10px 24px -12px rgba(42, 24, 16, 0.5); }
  .dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; color: var(--cream); text-decoration: none; font-weight: 600; font-size: 0.8125rem; -webkit-tap-highlight-color: transparent; }
  .dock a + a { border-left: 1px solid var(--line-dark); }
  .dock .icon { width: 20px; height: 20px; }
  .dock-call { background: var(--barro); flex-direction: row !important; gap: 8px !important; font-size: 1rem !important; }
  .dock a:focus-visible { outline-color: var(--gold); outline-offset: -4px; }
}

/* ---------- 404 ---------- */
.nf { padding: clamp(64px, 12vw, 140px) 0; min-height: 50vh; }
.nf h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 18px; }
.nf p:not(.eyebrow) { max-width: 52ch; color: var(--ink-2); margin-bottom: 28px; }
