:root {
  --wall: #E9A21F;      /* their mustard dining-room walls */
  --wall-deep: #D88E12;
  --chile: #C0261B;     /* logo red */
  --chile-dark: #961B12;
  --mole: #2B140C;      /* text + dark sections */
  --tile: #A9492A;      /* terracotta floor tile */
  --paper: #FFF7E6;     /* the menu card */
  --agave: #2E6A4A;
  --display: "Shrikhand", Georgia, serif;
  --body: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--wall); color: var(--mole); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
:focus-visible { outline: 3px solid var(--mole); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--mole); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--chile); color: #fff; box-shadow: 0 4px 0 var(--chile-dark); }
.btn-red:hover { background: #D12C20; }
.btn-ghost { border-color: var(--mole); color: var(--mole); }
.btn-ghost:hover { background: rgba(43,20,12,.08); }
.btn-dark { background: var(--mole); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; box-shadow: 0 3px 0 var(--chile-dark); }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 10px 24px; background: rgba(233,162,31,.94); backdrop-filter: blur(6px); border-bottom: 2px solid rgba(43,20,12,.12); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--mole); }
.brand span { font-family: var(--display); font-size: 1.6rem; color: var(--chile); line-height: 1; }
.links { display: flex; gap: 22px; }
.links a { text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.links a:hover { border-color: var(--mole); }
.lang { font: 700 .9rem var(--body); color: var(--mole); background: transparent; border: 2px solid var(--mole); border-radius: 999px; min-width: 48px; min-height: 40px; cursor: pointer; }
.lang:hover { background: rgba(43,20,12,.08); }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; max-width: 1240px; margin: 0 auto; padding: 120px 24px 72px; min-height: min(88vh, 820px); }
.picado { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 120px; overflow: visible; pointer-events: none; }
.picado .flag { transform-box: fill-box; transform-origin: 50% 0; animation: sway 4.2s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.hello { font-weight: 700; font-size: 1.05rem; margin: 0 0 14px; color: var(--chile-dark); }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6.2rem); color: var(--mole); text-shadow: 3px 3px 0 rgba(255,247,230,.55); max-width: 9ch; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 34ch; margin: 22px 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.rating { margin: 22px 0 0; font-weight: 600; }
.stars { color: var(--chile); letter-spacing: 2px; }
.open-now { position: absolute; right: 24px; bottom: 26px; margin: 0; font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.open-now::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--agave)); box-shadow: 0 0 0 4px rgba(46,106,74,.18); }

/* the plates "deal" onto the table once on load */
.plates { position: relative; height: clamp(380px, 46vw, 560px); }
.plate { position: absolute; object-fit: cover; border: 10px solid #fff; border-radius: 6px; box-shadow: 0 18px 40px rgba(43,20,12,.35); opacity: 0; animation: deal .9s cubic-bezier(.2,.9,.25,1.15) forwards; }
.p1 { width: 62%; aspect-ratio: 4/3; left: 0; top: 16%; --r: -7deg; animation-delay: .15s; }
.p2 { width: 66%; aspect-ratio: 4/3; right: 0; top: 0; --r: 5deg; animation-delay: .35s; z-index: 2; }
.p3 { width: 34%; aspect-ratio: 3/4; right: 12%; bottom: 0; --r: -3deg; animation-delay: .55s; z-index: 3; }
@keyframes deal {
  from { opacity: 0; transform: translate(40vw, -30px) rotate(28deg) scale(.9); }
  to { opacity: 1; transform: rotate(var(--r)); }
}

/* ---------- favorites ---------- */
.favs { background: var(--mole); color: var(--paper); padding: 84px 0 92px; }
.favs h2 { color: var(--wall); margin-bottom: 36px; }
.fav-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.fav-list figure { margin: 0; }
.fav-list img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.fav-list h3 { font-family: var(--display); font-weight: 400; font-size: 1.45rem; color: #fff; margin: 14px 0 4px; line-height: 1.15; }
.fav-list p { margin: 0; color: rgba(255,247,230,.78); max-width: 40ch; }

/* ---------- menu ---------- */
.menu { background: var(--tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M0 0h72v72H0z' fill='none' stroke='%23000' stroke-opacity='.14' stroke-width='3'/%3E%3C/svg%3E"); padding: 88px 16px; }
.menu-card { max-width: 860px; margin: 0 auto; background: var(--paper); border-radius: 6px; padding: 56px clamp(20px, 5vw, 64px) 48px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.menu-card h2 { color: var(--chile); text-align: center; }
.menu-note { text-align: center; margin: 10px auto 30px; max-width: 46ch; }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tab { font: 700 1rem var(--body); color: var(--mole); background: transparent; border: 2px solid var(--mole); border-radius: 999px; min-height: 44px; padding: 0 18px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--mole); color: var(--paper); }
.dishes { list-style: none; margin: 0; padding: 0; }
.dishes li { padding: 14px 0; border-bottom: 1px dashed rgba(43,20,12,.25); }
.dishes li:last-child { border-bottom: 0; }
.dish-top { display: flex; align-items: baseline; gap: 10px; }
.dish-top b { font-size: 1.08rem; }
.dish-top .dots { flex: 1; border-bottom: 2px dotted rgba(43,20,12,.35); transform: translateY(-4px); }
.dish-top .price { font-weight: 700; color: var(--chile); font-variant-numeric: tabular-nums; }
.dishes p { margin: 3px 0 0; color: #5B3A2C; font-size: .98rem; max-width: 60ch; }
.menu-more { margin: 30px 0 0; padding-top: 22px; border-top: 2px solid var(--mole); font-weight: 600; }

/* ---------- inside ---------- */
.inside { padding: 96px 0; }
.inside-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.inside-copy { grid-column: 1; grid-row: 1 / span 2; align-self: center; padding-right: 16px; }
.inside-copy p { max-width: 38ch; }
.perks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.perks li { background: var(--paper); border: 2px solid var(--mole); border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: .95rem; }
.ph { margin: 0; overflow: hidden; border-radius: 10px; border: 6px solid #fff; box-shadow: 0 10px 28px rgba(43,20,12,.25); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-a { grid-column: 2 / span 2; aspect-ratio: 16/8; }
.ph-b { grid-column: 2; aspect-ratio: 4/3; }
.ph-c { grid-column: 3; aspect-ratio: 4/3; }

/* ---------- reviews ---------- */
.reviews { background: var(--chile); color: #fff; padding: 88px 0; }
.reviews h2 { color: var(--wall); margin-bottom: 34px; }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
blockquote { margin: 0; }
blockquote p { font-family: var(--display); font-size: 1.4rem; line-height: 1.3; margin: 0 0 12px; }
cite { font-style: normal; font-weight: 600; opacity: .85; }
.rev-note { margin: 30px 0 0; opacity: .8; font-size: .92rem; }

/* ---------- visit ---------- */
.visit { padding: 96px 0 88px; }
.visit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
address { font-style: normal; font-size: 1.3rem; font-weight: 600; margin: 20px 0 6px; }
.phone { font-size: 1.3rem; font-weight: 700; }
.hours { border-collapse: collapse; margin: 18px 0 28px; min-width: 280px; }
.hours td { padding: 7px 0; border-bottom: 1px solid rgba(43,20,12,.2); }
.hours td + td { text-align: right; padding-left: 32px; font-variant-numeric: tabular-nums; }
.hours tr.today td { font-weight: 700; color: var(--chile-dark); }
.map { border: 6px solid #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 28px rgba(43,20,12,.25); aspect-ratio: 4/3; background: var(--wall-deep); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- footer ---------- */
.foot { background: var(--mole); color: var(--paper); text-align: center; padding: 48px 24px 64px; }
.foot img { margin: 0 auto 14px; border-radius: 50%; background: #fff; }
.foot p { margin: 4px 0; }
.made { opacity: .6; font-size: .9rem; margin-top: 14px !important; }

/* ---------- preview watermark (remove at launch) ---------- */
.wm { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='260'%3E%3Ctext x='0' y='150' transform='rotate(-24 210 130)' font-family='Arial' font-weight='700' font-size='22' fill='%23000'%3EDESIGN PREVIEW · NOT FOR REUSE%3C/text%3E%3C/svg%3E"); }
.wm-badge { position: fixed; right: 12px; bottom: 12px; z-index: 91; pointer-events: none; background: rgba(43,20,12,.82); color: #fff; font: 600 .78rem var(--body); padding: 6px 10px; border-radius: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 104px; min-height: 0; gap: 28px; }
  .plates { height: 360px; max-width: 520px; width: 100%; }
  .open-now { position: static; }
  .fav-list { grid-template-columns: repeat(2, 1fr); }
  .inside-grid { grid-template-columns: 1fr 1fr; }
  .inside-copy { grid-column: 1 / -1; grid-row: auto; padding: 0 0 12px; }
  .ph-a { grid-column: 1 / -1; }
  .ph-b { grid-column: 1; }
  .ph-c { grid-column: 2; }
  .rev-grid { grid-template-columns: 1fr; gap: 26px; }
  .visit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .links { display: none; }
  .nav { padding: 8px 16px; gap: 10px; }
  .brand img { width: 42px; height: 42px; }
  .brand span { font-size: 1.35rem; }
  .wrap { padding: 0 16px; }
  .hero { padding: 92px 16px 48px; }
  .plates { height: 290px; }
  .fav-list { grid-template-columns: 1fr; }
  .favs, .menu, .inside, .reviews, .visit { padding-top: 64px; padding-bottom: 64px; }
  .menu { padding-left: 12px; padding-right: 12px; }
  .hours { min-width: 0; width: 100%; }
  .wm-badge { right: 8px; bottom: 8px; font-size: .68rem; padding: 4px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .picado .flag { animation: none; }
  .plate { animation: none; opacity: 1; transform: rotate(var(--r)); }
}
