/* Milpa — Oaxacan kitchen, East Austin
   Art direction: masa-cream paper, deep mole-red, marigold (cempasúchil)
   and agave-green accents. Fraunces display + Karla body. Handmade, warm,
   anti-corporate. */

:root {
  --masa:       #f6efe1;   /* warm cream paper            */
  --masa-deep:  #efe3cf;   /* toasted band                */
  --masa-soft:  #fbf6ec;   /* lightest card              */
  --ink:        #281d17;   /* espresso near-black text   */
  --ink-soft:   #5c4b40;   /* muted body                 */
  --mole:       #6d2820;   /* deep mole red-brown (primary) */
  --mole-dark:  #4c1a14;
  --chile:      #b23b28;   /* brighter chile accent      */
  --marigold:   #dc9327;   /* cempasúchil ochre accent   */
  --marigold-d: #b8761a;
  --agave:      #395c4f;   /* deep agave green (signature)*/
  --line:       #d8c8ad;   /* hairline on cream          */

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Karla", "Helvetica Neue", Arial, sans-serif;
  --script:"Caveat", cursive;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 4px;

  --step: 8px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--masa);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.05;
  letter-spacing: -0.015em; font-optical-sizing: auto; }

.wrap { width: min(100% - 0px, var(--wrap)); margin-inline: auto;
  padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--chile);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 2px;
  background: var(--marigold);
  display: inline-block;
}

/* ---------- greca / textile divider ---------- */
.greca {
  height: 18px;
  background-image: url("img/greca.svg");
  background-repeat: repeat-x;
  background-size: auto 18px;
  opacity: 0.9;
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 0.9rem 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.site-header.scrolled {
  background: rgba(38, 24, 19, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(220, 147, 39, 0.25);
  padding: 0.55rem 0;
}
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; color: var(--masa); }
.brand .name {
  font-family: var(--serif); font-weight: 600; font-size: 1.7rem;
  letter-spacing: 0.01em;
}
.brand .tag {
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--marigold); margin-top: 0.28rem; font-weight: 600;
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  color: var(--masa); text-decoration: none; font-size: 0.92rem;
  font-weight: 600; letter-spacing: 0.02em; position: relative; padding: 0.2rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--marigold); transition: width 0.25s ease;
}
.nav a:hover::after, .nav a:focus-visible::after { width: 100%; }
.nav .btn-call { border: 1px solid rgba(246,239,225,0.4); border-radius: 40px;
  padding: 0.5rem 1.15rem; }
.nav .btn-call::after { display: none; }
.nav .btn-call:hover { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.3rem;
  color: var(--masa); }
.nav-toggle svg { width: 30px; height: 30px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--masa); isolation: isolate; padding-bottom: clamp(3rem, 8vh, 6rem);
  padding-top: 7rem;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(38,24,19,0.55) 0%, rgba(38,24,19,0.12) 32%, rgba(38,24,19,0.35) 62%, rgba(30,17,13,0.9) 100%);
}
.hero__inner { max-width: 46rem; }
.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 5.7rem);
  line-height: 0.98; letter-spacing: -0.02em; margin-top: 1.1rem;
  text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero h1 em { font-style: italic; color: var(--marigold); }
.hero .lede {
  margin-top: 1.4rem; font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  max-width: 34rem; color: #f3e7d4; text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero .meta {
  margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.1rem 2rem;
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #eeddc4; font-weight: 600;
}
.hero .meta span { display: inline-flex; align-items: center; gap: 0.55rem; }
.hero .meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--marigold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em; text-decoration: none; border-radius: 40px;
  padding: 0.85rem 1.6rem; border: 1.5px solid transparent;
  transition: transform 0.18s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--marigold); color: var(--ink); }
.btn--solid:hover, .btn--solid:focus-visible { background: #f0a838; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(246,239,225,0.55); color: var(--masa); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--masa); color: var(--ink); border-color: var(--masa); }
.btn--mole { background: var(--mole); color: var(--masa); }
.btn--mole:hover, .btn--mole:focus-visible { background: var(--mole-dark); transform: translateY(-2px); }

/* ---------- sections ---------- */
section { position: relative; }
.band { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.band--deep { background: var(--masa-deep); }
.band--mole { background: var(--mole); color: var(--masa); }
.band--mole .eyebrow { color: var(--marigold); }
.band--mole .eyebrow::before { background: var(--marigold); }

.section-head { max-width: 40rem; }
.section-head h2, h2.section-head { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-top: 1rem; text-wrap: balance; }
h2.section-head { max-width: 40rem; }
h3.section-head { max-width: none; }
.mole-feature__body li em { font-style: normal; font-family: var(--serif); font-weight: 600;
  color: var(--mole); white-space: nowrap; }
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.12rem; }
.band--mole .section-head p { color: #f0e2cd; }

/* ---------- story ---------- */
.story-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.story-copy p + p { margin-top: 1.15rem; }
.story-copy p { color: var(--ink-soft); font-size: 1.12rem; }
.story-copy .lead::first-letter {
  font-family: var(--serif); font-size: 3.6rem; line-height: 0.8; float: left;
  padding: 0.35rem 0.7rem 0 0; color: var(--mole); font-weight: 600;
}
.signature { font-family: var(--script); font-size: 2.1rem; color: var(--mole);
  margin-top: 1.6rem; line-height: 1; }
.story-figure { position: relative; }
.story-figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5;
  object-fit: cover; box-shadow: 0 24px 50px -24px rgba(40,20,10,0.5); }
.story-figure figcaption {
  position: absolute; bottom: -18px; left: -18px; background: var(--marigold);
  color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
  padding: 0.7rem 1.1rem; border-radius: var(--radius); box-shadow: 0 8px 24px -8px rgba(40,20,10,0.5);
  max-width: 15rem; line-height: 1.15;
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4rem; }
.pillar { padding-top: 1.2rem; border-top: 2px solid var(--marigold); }
.pillar h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.pillar p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* ---------- menu ---------- */
.menu-note {
  display: inline-flex; gap: 0.7rem; align-items: center; margin-top: 1.6rem;
  font-size: 0.92rem; color: #f0e2cd;
}
.menu-cats { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: clamp(2.5rem,5vw,4rem); }
.menu-cat { }
.menu-cat__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.6rem; }
.menu-cat__head h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--masa); white-space: nowrap; }
.menu-cat__head .es { font-family: var(--script); font-size: 1.5rem; color: var(--marigold); }
.menu-cat__head .rule { flex: 1; height: 1px; background: rgba(246,239,225,0.28); }

.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 3.5rem; }
.menu-item {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: 0.5rem 0.8rem; padding: 0.85rem 0; border-bottom: 1px dashed rgba(246,239,225,0.18);
}
.menu-item dt { font-family: var(--serif); font-size: 1.18rem; color: var(--masa); font-weight: 500; }
.menu-item .desc { grid-column: 1 / -1; color: #e3d2b8; font-size: 0.92rem; margin-top: 0.15rem; line-height: 1.45; }
.menu-item .price { font-family: var(--sans); font-weight: 700; color: var(--marigold); font-size: 1.02rem;
  font-variant-numeric: tabular-nums; }
.menu-item .flag {
  display: inline-block; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--ink); background: var(--marigold); border-radius: 30px;
  padding: 0.12rem 0.5rem; margin-left: 0.5rem; vertical-align: middle;
}

/* weekend mole feature */
.mole-feature {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,4rem);
  align-items: center; background: var(--masa-soft); color: var(--ink);
  border-radius: 6px; overflow: hidden; margin-top: clamp(2.5rem,5vw,4rem);
  border: 1px solid var(--line);
}
.mole-feature__img { height: 100%; }
.mole-feature__img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.mole-feature__body { padding: clamp(1.8rem, 4vw, 3.2rem); }
.mole-feature__body .eyebrow { color: var(--chile); }
.mole-feature__body h3 { font-size: clamp(1.8rem,3.4vw,2.6rem); margin: 0.8rem 0 0.8rem; }
.mole-feature__body p { color: var(--ink-soft); }
.mole-feature__body ul { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.7rem; }
.mole-feature__body li { display: flex; gap: 0.8rem; align-items: baseline; padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--line); }
.mole-feature__body li b { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.mole-feature__body li span { color: var(--ink-soft); font-size: 0.94rem; }

/* dish strip */
.dish-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: clamp(2.5rem,5vw,4rem); }
.dish { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.dish img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.dish:hover img { transform: scale(1.06); }
.dish figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem;
  background: linear-gradient(0deg, rgba(30,15,10,0.85), transparent);
  color: var(--masa); font-family: var(--serif); font-size: 1.1rem; }

/* ---------- visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 1.6rem; }
.hours-table th, .hours-table td { text-align: left; padding: 0.8rem 0; border-bottom: 1px solid var(--line);
  font-size: 1.05rem; }
.hours-table th { font-family: var(--serif); font-weight: 500; }
.hours-table td { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours-table tr.today th, .hours-table tr.today td { color: var(--mole); font-weight: 700; }
.hours-table tr.today th::after { content: "Today"; font-family: var(--sans); font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase; background: var(--mole); color: var(--masa);
  border-radius: 30px; padding: 0.14rem 0.5rem; margin-left: 0.6rem; vertical-align: middle; }
.hours-table tr.closed td { color: var(--chile); }

.visit-card { background: var(--masa-soft); border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(1.5rem, 3vw, 2.2rem); }
.visit-card h3 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.map-frame {
  margin-top: 1.4rem; border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 16/10; background: #e7dcc4; border: 1px solid var(--line);
}
.map-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.contact-list .ic { flex: none; width: 22px; height: 22px; color: var(--mole); margin-top: 2px; }
.contact-list a { color: var(--mole); text-decoration: none; font-weight: 700;
  border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.contact-list a:hover, .contact-list a:focus-visible { border-color: var(--mole); }
.visit-card .btn { margin-top: 1.6rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #e7d8c2; padding-block: clamp(3.5rem,7vw,5.5rem) 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand { color: #f2e6d4; }
.site-footer .brand .name { color: #f2e6d4; }
.footer-blurb { margin-top: 1rem; max-width: 24rem; color: #c9b79e; font-size: 0.98rem; }
.footer-col h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--marigold); margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: #e7d8c2; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--marigold); }
.footer-col p { color: #c9b79e; font-size: 0.95rem; }
.social { display: flex; gap: 0.8rem; margin-top: 0.4rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(231,216,194,0.3);
  display: grid; place-items: center; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.social a:hover { background: var(--marigold); color: var(--ink); border-color: var(--marigold); }
.social svg { width: 18px; height: 18px; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(231,216,194,0.15);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.85rem; color: #a8967e; }
.footer-base a { color: #a8967e; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dish img { transition: none; }
}

/* ---------- mobile ---------- */
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-figure { order: -1; max-width: 26rem; }
  .story-figure img { aspect-ratio: 4/3; }
  .story-figure figcaption { left: auto; right: -8px; bottom: -14px; }
  .visit-grid { grid-template-columns: 1fr; }
  .mole-feature { grid-template-columns: 1fr; }
  .mole-feature__img img { min-height: 240px; }
  .menu-list { grid-template-columns: 1fr; gap: 0 0; }
  .dish-strip { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    display: block; position: fixed; inset: 0; z-index: 70;
    background: rgba(30,17,13,0.98); backdrop-filter: blur(4px);
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    padding: 6rem var(--gutter) 3rem;
  }
  .mobile-menu.open { transform: none; }
  .mobile-menu a { display: block; color: var(--masa); text-decoration: none; font-family: var(--serif);
    font-size: 2rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(246,239,225,0.14); }
  .mobile-menu a:last-child { border: 0; }
  .mobile-menu .m-close { position: absolute; top: 1.4rem; right: var(--gutter); background: none;
    border: 0; color: var(--masa); cursor: pointer; }
  .mobile-menu .m-close svg { width: 30px; height: 30px; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 440px) {
  .hero .cta-row .btn { flex: 1; justify-content: center; }
  .story-figure figcaption { max-width: 12rem; font-size: 0.95rem; }
}
