/* UFO Restaurant: "Lime & Ink" flat brand system.
   Rule of thumb: ink and paper do the work. Lime is a small accent (primary button, one highlight,
   active tab, today's hours). Lime and chili are fills only, never text on paper. */
:root {
  --paper: #f5f3ea;
  --ink: #10231b;
  --lime: #c8f031;
  --chili: #ff6a3d;
  --herb: #dfe9d8;
  --white: #ffffff;
  --muted: #4a5a52;
  --line: rgba(16, 35, 27, .14);
  --radius: 22px;
  --radius-sm: 12px;
  --section-y: clamp(56px, 8vw, 104px);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.site-footer :focus-visible { outline-color: var(--lime); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 24px;
  font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer;
  background: var(--lime); color: var(--ink); border: 2px solid var(--lime); border-radius: var(--radius-sm);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--lime); transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-dark:hover { background: transparent; color: var(--ink); }
.btn-small { min-height: 44px; padding: 6px 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px;
  padding: 10px var(--gutter); background: rgba(245, 243, 234, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; text-decoration: none; min-height: 48px; }
.brand-logo { height: 38px; width: auto; display: block; }
.site-header nav { margin-left: auto; display: flex; gap: 4px; }
.site-header nav a { padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; text-decoration: none; border-radius: 999px; transition: background .2s; }
.site-header nav a:hover { background: var(--herb); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(32px, 5vw, 72px) var(--gutter) var(--section-y); }
.eyebrow { font: 700 .8rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.2rem); margin-bottom: 22px; }
.hl { background: var(--lime); padding: 0 .12em; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lead { font-size: 1.15rem; max-width: 34em; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 20px; }
.open-now { display: inline-flex; align-items: center; font-weight: 500; font-size: .92rem; background: var(--white); border-radius: 999px; padding: 6px 16px; margin: 0; }
.open-now:empty { display: none; }
.open-now.is-open::before, .open-now.is-closed::before { content: ""; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; }
.open-now.is-open::before { background: #1f9d55; }
.open-now.is-closed::before { background: var(--chili); }

/* Hero mosaic: three photos mixed with two colour blocks */
.mosaic {
  display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 12px;
  grid-template-areas: "pho ink" "pho burger" "chili rolls";
  aspect-ratio: 4 / 5; max-width: 520px; width: 100%; margin-inline: auto;
}
.m-photo, .m-block { border-radius: var(--radius); overflow: hidden; }
.m-photo { background: var(--herb); }
.m-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.m-photo:hover img { transform: scale(1.05); }
.m-pho { grid-area: pho; } .m-burger { grid-area: burger; } .m-rolls { grid-area: rolls; }
.m-block { display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px; line-height: 1.05; }
.m-block strong { font: 800 clamp(1.5rem, 3vw, 2.3rem)/1 var(--font-display); letter-spacing: -.035em; }
.m-block span { font-weight: 500; }
.m-ink { grid-area: ink; background: var(--ink); color: var(--paper); }
.m-chili { grid-area: chili; background: var(--chili); color: var(--ink); }
.js .mosaic > * { animation: pop .7s var(--ease) both; }
.js .mosaic > :nth-child(2) { animation-delay: .08s; } .js .mosaic > :nth-child(3) { animation-delay: .16s; }
.js .mosaic > :nth-child(4) { animation-delay: .24s; } .js .mosaic > :nth-child(5) { animation-delay: .32s; }
@keyframes pop { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Menu */
.menu { padding: 0 var(--gutter) var(--section-y); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.menu h2, .visit h2 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tabs button {
  min-height: 46px; padding: 8px 20px; cursor: pointer; font: 700 .98rem var(--font-body); color: var(--ink);
  background: var(--white); border: 2px solid transparent; border-radius: 999px; transition: background .2s, color .2s;
}
.tabs button:hover { background: var(--herb); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--lime); }
.js .panel[hidden] { display: none; }
.js .panel-title { display: none; }
.no-js .tabs { display: none; }
.panel-title { font-size: 2rem; margin: 32px 0 16px; }

.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 48px; }
.dish { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--herb); transition: transform .3s var(--ease); }
figure.dish:hover { transform: translateY(-4px); }
.dish img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
figure.dish:hover img { transform: scale(1.05); }
.dish figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-direction: column; align-items: flex-start; background: rgba(245, 243, 234, .96); border-radius: 14px; padding: 9px 13px; line-height: 1.25; }
.dish figcaption strong { font: 800 1.02rem/1.15 var(--font-display); letter-spacing: -.02em; }
.dish figcaption span { font-size: .82rem; font-weight: 700; color: var(--muted); margin-top: 2px; }
.stock-tag { position: absolute; top: 10px; left: 10px; background: var(--paper); font: 500 .7rem/1 var(--font-body); padding: 6px 10px; border-radius: 999px; }
.tone { display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.tone .k { margin-bottom: auto; font: 700 .78rem var(--font-body); letter-spacing: .12em; opacity: .7; }
.tone strong { font: 800 clamp(1.5rem, 2.4vw, 2rem)/1.02 var(--font-display); letter-spacing: -.035em; }
.tone p { margin: 8px 0 0; font-size: .9rem; line-height: 1.4; }
.tone-ink { background: var(--ink); color: var(--paper); }
.tone-herb { background: var(--herb); color: var(--ink); }
.tone-chili { background: var(--chili); color: var(--ink); }
.js .panel:not([hidden]) .dish, .js .panel:not([hidden]) .group { animation: pop .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }

.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 36px 56px; }
.group h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 1.8rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.group h4 small { font: 500 .9rem var(--font-body); letter-spacing: 0; color: var(--muted); }
.intro, .addons { font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.addons { margin: 14px 0 0; padding: 8px 14px; background: var(--herb); border-radius: var(--radius-sm); font-weight: 500; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: grid; grid-template-columns: 3.1em 1fr auto; gap: 8px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.code { font: 700 .78rem var(--font-body); color: var(--muted); }
.items strong { font-weight: 700; }
.items em { font-style: normal; font-size: .85rem; color: var(--muted); }
.desc { margin: 2px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.price { font-weight: 700; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.menu-note { margin-top: 40px; font-size: .85rem; color: var(--muted); }

/* Visit & order */
.visit { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 5vw, 72px); padding: var(--section-y) var(--gutter); background: var(--herb); }
address { font-style: normal; font-size: 1.15rem; margin: 16px 0 0; }
.visit .cta-row { margin: 22px 0 16px; }
.delivery { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: .92rem; color: var(--muted); }
.delivery a { background: var(--paper); color: var(--ink); font-weight: 700; text-decoration: none; padding: 6px 16px; border-radius: 999px; transition: background .2s, color .2s; }
.delivery a:hover { background: var(--ink); color: var(--lime); }
.delivery .plain { color: var(--ink); font-weight: 700; }
.delivery .plain + .plain::before { content: "·"; margin-right: 8px; font-weight: 400; color: var(--muted); }
.visit h3 { font-size: 1.6rem; margin: 36px 0 12px; }
.hours { border-collapse: collapse; width: 100%; max-width: 440px; background: var(--paper); border-radius: var(--radius-sm); overflow: hidden; }
.hours th, .hours td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 700; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.today { background: var(--lime); font-weight: 700; }
.hours tr.today th::after { content: " · today"; font-weight: 500; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--paper); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Footer */
.site-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px var(--gutter); background: var(--ink); color: var(--paper); }
.site-footer a { color: var(--lime); }
.footer-brand { margin: 0 0 14px; }
.footer-logo { height: 76px; width: auto; display: block; }
.credits { font-size: .85rem; }
.credits summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.credits ul { padding-left: 18px; }
.credits li { margin-bottom: 4px; }

/* Mobile dock */
.dock { display: none; }

/* Responsive */
@media (max-width: 860px) {
  .hero, .visit, .site-footer { grid-template-columns: 1fr; }
  .mosaic { max-width: 440px; aspect-ratio: 1 / 1.1; }
}
@media (max-width: 700px) {
  .dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; gap: 8px; padding: 8px; background: rgba(245, 243, 234, .94); backdrop-filter: blur(10px); border-radius: 20px; box-shadow: 0 10px 30px rgba(16, 35, 27, .2); }
  .dock .btn { flex: 1; min-height: 50px; }
  .dock .btn-dark { flex: 0 0 auto; }
  body { padding-bottom: 84px; }
}
@media (max-width: 520px) {
  .site-header nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .items li { grid-template-columns: 2.6em 1fr auto; }
  .dishes { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dish figcaption { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; }
  .dish figcaption strong { font-size: .95rem; }
  .tone { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
