/*
VOICE: warm, family run, proud of the food
IDEA: the yiyos emblem and its leaf colors, set on clean white like their logo post
PICTURE: a full-width plate of their tacos, emblem sitting on its edge
COLOUR and TYPE: pure white and black, square edges, the logo leaf colors only in one stripe; Archivo Black like the logo letters + DM Sans
LAYOUT: photo band, words, color stripe, photo spread, catering planner with live message, 9/9, contact
*/
:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #111111;
  --soft: #6b6b6b;
  --line: #e4e4e4;
  --green: #5f8f27;
  --yellow: #f2bf2f;
  --orange: #e5832a;
  --blue: #2f9fd3;
  --purple: #5a3c98;
  --red: #b4472b;
  --wa: #1f9d55;
}
:root[data-theme=light] { color-scheme: light; }
:root[data-theme=dark] { color-scheme: light; }

* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 76px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 "DM Sans", system-ui, sans-serif; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: "Archivo Black", Impact, sans-serif; font-weight: 400; line-height: 1.04; text-wrap: balance; margin: 0; }
h3 { font-size: 15px; margin: 0 0 8px; }

.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 20px; padding: 8px max(5vw, 16px); background: #fff; border-bottom: 1px solid var(--line); }
.brand { margin-right: auto; }
.brand img { height: 50px; width: auto; }
.links { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.links a { text-decoration: none; padding: 10px 0; }
.lang { font: 600 14px "DM Sans", sans-serif; min-width: 96px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: 0; cursor: pointer; }
:is(.lang, .wa, .call, .links a, input, select):focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wa { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; border-radius: 0; letter-spacing: .01em; white-space: nowrap; }
.call { display: inline-flex; align-items: center; min-height: 50px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 0; text-decoration: none; font-weight: 600; white-space: nowrap; }

.opener { max-width: 1240px; margin: 0 auto; padding: clamp(16px, 3vw, 32px) max(5vw, 16px) 0; }
.opener-photo { height: clamp(260px, 44vw, 520px); overflow: hidden; }
.opener-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.opener-body { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 64px); padding: clamp(32px, 4vw, 48px) 0 clamp(36px, 5vw, 64px); }
.family { grid-column: 1 / -1; margin: 0 0 14px; font-weight: 600; color: var(--soft); font-size: 15px; }
h1 { font-size: clamp(36px, 5.4vw, 64px); }
.lede { color: var(--soft); margin: 4px 0 22px; align-self: end; }
.order { grid-column: 2; display: flex; flex-wrap: wrap; gap: 12px; }

.serve { grid-column: 1 / -1; list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.serve li { padding: 16px 16px 0 0; display: grid; gap: 2px; }
.serve li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.serve b { font-size: 16px; }
.serve span { color: var(--soft); font-size: 14px; }
@media (max-width: 820px) {
  .serve { grid-template-columns: 1fr 1fr; }
  .serve li { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
  .serve li + li { padding-left: 0; border-left: 0; }
  .serve li:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
}

/* the six leaf colors from their logo */
.leaves { display: grid; grid-template-columns: repeat(6, 1fr); height: 14px; }
.leaves i:nth-child(1) { background: var(--green); }
.leaves i:nth-child(2) { background: var(--yellow); }
.leaves i:nth-child(3) { background: var(--orange); }
.leaves i:nth-child(4) { background: var(--blue); }
.leaves i:nth-child(5) { background: var(--purple); }
.leaves i:nth-child(6) { background: var(--red); }

.food { max-width: 1240px; margin: 0 auto; padding: clamp(40px, 6vw, 88px) max(5vw, 16px); }
.food h2 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 26px; }
.spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(520px, 62vw, 720px); }
.spread figure { margin: 0; overflow: hidden; background: #000; }
.spread img { width: 100%; height: 100%; object-fit: cover; }
.spread .tall { grid-row: 1 / 3; }
.spread .wide img { object-fit: contain; }

.party { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(44px, 6vw, 88px) max(5vw, 16px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.party h2 { font-size: clamp(30px, 3.8vw, 46px); }
.party-words > p { margin: 14px 0 24px; color: var(--soft); max-width: 34em; }
.planner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; max-width: 640px; align-items: end; }
.planner label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.planner select, .planner input:not([type=checkbox]) { font: 16px "DM Sans", sans-serif; height: 50px; -webkit-appearance: none; appearance: none; display: block; line-height: 50px; padding: 0 12px; border: 1px solid #cfcfcf; border-radius: 0; background: #fff; color: var(--ink); width: 100%; }
.planner select#kind { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.planner .check { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 16px; min-height: 44px; }
.planner .check input { width: 22px; height: 22px; accent-color: var(--ink); }

.chat { width: 100%; max-width: 380px; justify-self: center; border: 1px solid var(--line); overflow: hidden; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
.chat-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #e9edef; }
.chat-top img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: top; border: 1px solid #e9edef; }
.chat-top p { margin: 0; line-height: 1.2; font-size: 16px; }
.chat-top small { display: block; color: #667781; font-size: 13px; }
/* whatsapp's beige chat wall, without the doodles */
.chat-body { background: #efeae2; padding: 22px 12px 18px; min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; }
.bubble { position: relative; align-self: flex-end; max-width: 86%; background: #d9fdd3; color: #111b21; padding: 7px 10px 8px; border-radius: 8px 0 8px 8px; font-size: 15px; line-height: 1.4; box-shadow: 0 1px .5px rgb(11 20 26 / .13); }
.bubble::after { content: ""; position: absolute; top: 0; right: -8px; border-top: 0 solid transparent; border-left: 8px solid #d9fdd3; border-bottom: 10px solid transparent; }
.meta { float: right; margin: 6px 0 -4px 10px; font-size: 11px; color: #667781; display: inline-flex; align-items: center; gap: 3px; }
.meta svg { color: #8696a0; }
.chat-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #f0f2f5; text-decoration: none; }
.fake-input { flex: 1; background: #fff; border-radius: 22px; padding: 11px 16px; color: #667781; font-size: 15px; }
.send-dot { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #00a884; display: grid; place-items: center; }
.chat-bar:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }

.nine { max-width: 1240px; margin: 0 auto; padding: clamp(44px, 6vw, 88px) max(5vw, 16px); display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.nine-num { margin: 0; font: 400 clamp(72px, 11vw, 140px)/0.9 "Archivo Black", Impact, sans-serif; color: var(--ink); }
.nine-num span { color: #d6d6d6; margin: 0 .04em; }
.nine p:last-child { margin: 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; max-width: 18em; }

.find { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: clamp(32px, 4vw, 48px) max(5vw, 16px); max-width: 1240px; margin: 0 auto; border-top: 1px solid var(--line); }
.find p { margin: 0; color: var(--soft); overflow-wrap: anywhere; }
.find a { color: var(--ink); }
.maps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.find .directions { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }

.foot { display: flex; justify-content: space-between; align-items: center; padding: 22px max(5vw, 16px) 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); }
.ow { font: 400 12px "Archivo Black", sans-serif; opacity: .55; }

.dock { display: none; }

.rise { opacity: 0; transform: translateY(28px); transition: opacity .5s ease-out, transform .5s ease-out; }
.rise.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .links { display: none; }
  .opener { padding: 0; }
  .opener-photo { border-radius: 0; }
  .opener-body { grid-template-columns: 1fr; padding: 28px max(5vw, 16px) 40px; }
  .order { grid-column: 1; }
  .spread { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .spread .tall { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 1 / 1; }
  .spread .wide, .spread .square { aspect-ratio: 1 / 1; }
  .party { grid-template-columns: 1fr; }
  .planner { grid-template-columns: 1fr 1fr; }
  .planner label:first-child { grid-column: 1 / -1; }
  .find { grid-template-columns: 1fr; gap: 22px; }
  .dock { display: flex; transition: transform .3s ease-out; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; min-height: 56px; }
  body { padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.dock.away { transform: translateY(100%); }
