/* Demo: Bistro Gutui, day cafe. Plan: drafts/demo-cafe-plan.md */
@font-face { font-family: "Alegreya"; font-weight: 400 900; font-display: swap; src: url("fonts/alegreya-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Alegreya"; font-weight: 400 900; font-display: swap; src: url("fonts/alegreya-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF; }
@font-face { font-family: "Alegreya"; font-weight: 400 900; font-display: swap; src: url("fonts/alegreya-cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-display: swap; src: url("fonts/alegreya-sans-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-display: swap; src: url("fonts/alegreya-sans-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF; }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-display: swap; src: url("fonts/alegreya-sans-400-cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-display: swap; src: url("fonts/alegreya-sans-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-display: swap; src: url("fonts/alegreya-sans-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF; }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-display: swap; src: url("fonts/alegreya-sans-500-cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --fond: #fbfaf6;
  --ink: #2a2622;
  --leaf: #2f5a3c;
  --leaf-2: #24472f;
  --gutui: #e9b51f;
  --gutui-soft: #fbefc6;
  --coaja: #6f6356;
  --lin: #e6dfd2;
  --card: #ffffff;
  --serif: "Alegreya", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: "Alegreya Sans", system-ui, sans-serif; font-size: 18px; line-height: 1.55; background: var(--fond); color: var(--ink); overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gutui); color: var(--ink); }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
section, footer { scroll-margin-top: 80px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.4vw, 50px); }
.lede { color: var(--coaja); font-size: 19px; max-width: 560px; margin-top: 12px; }

.demo-strip { background: var(--leaf); color: #fff; font-size: 15px; }
.demo-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.demo-strip a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.top { position: sticky; top: 0; z-index: 40; background: rgba(251,250,246,.95); border-bottom: 1px solid var(--lin); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 26px; }
.brand svg { width: 30px; height: 30px; }
.menu { display: flex; gap: 28px; color: var(--coaja); font-size: 17px; }
.menu a:hover { color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 16px; }
.lang { font-size: 16px; color: var(--coaja); }
.lang b { color: var(--ink); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: 17px; }
.btn svg { width: 18px; height: 18px; }
.btn-leaf { background: var(--leaf); color: #fff; }
.btn-leaf:hover { background: var(--leaf-2); }
.btn-line { border-color: #cfc6b6; background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 16px; }

/* ---------- Hero: what is being served right now ---------- */
.hero { padding-top: 56px; padding-bottom: 72px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: stretch; }
.hero h1 { font-size: clamp(42px, 5.6vw, 66px); }
.hero .lede { margin-top: 16px; }
.now { margin-top: 34px; background: var(--card); border: 1px solid var(--lin); border-radius: 18px; padding: 26px 28px; }
.now-when { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--leaf); }
.now-when i { width: 10px; height: 10px; border-radius: 50%; background: var(--gutui); box-shadow: 0 0 0 4px var(--gutui-soft); }
.now h2 { font-size: 32px; margin: 10px 0 14px; }
.now ul { list-style: none; }
.now li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px dashed var(--lin); }
.now li b { font-weight: 500; }
.now li span { color: var(--coaja); white-space: nowrap; font-variant-numeric: tabular-nums; }
.now-price { margin-top: 12px; font-family: var(--serif); font-size: 26px; font-weight: 700; }
.now-price em { font-style: normal; background: var(--gutui-soft); padding: 0 8px; border-radius: 6px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-photo { border-radius: 22px; overflow: hidden; min-height: 420px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- The day: three serving periods, the current one marked ---------- */
.day { border-top: 1px solid var(--lin); border-bottom: 1px solid var(--lin); background: var(--card); }
.day ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); }
.day li { padding: 22px 28px 22px 0; }
.day li + li { padding-left: 28px; border-left: 1px solid var(--lin); }
.day b { display: block; font-family: var(--serif); font-size: 24px; }
.day span { color: var(--coaja); font-variant-numeric: tabular-nums; }
.day li.on b { box-shadow: inset 0 -0.38em 0 var(--gutui-soft); display: inline; }
.day li.on span::after { content: attr(data-now); margin-left: 8px; color: var(--leaf); font-weight: 500; }

/* ---------- Menu ---------- */
.menu-sec { padding-top: 88px; padding-bottom: 88px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tabs button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #cfc6b6; background: transparent; font-size: 17px; }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.panel { display: grid; grid-template-columns: 1fr 300px; gap: 48px; margin-top: 30px; align-items: start; }
.panel[hidden] { display: none; }
.dishes { list-style: none; border-top: 2px solid var(--ink); }
.dishes li { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 22px; padding: 16px 0; border-bottom: 1px solid var(--lin); align-items: baseline; }
.dishes b { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.2; }
.dishes small { grid-column: 1; color: var(--coaja); font-size: 16px; }
.dishes .g { color: var(--coaja); font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dishes .p { font-family: var(--serif); font-weight: 700; font-size: 22px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dishes .star b::after { content: attr(data-mark); margin-left: 10px; font-family: "Alegreya Sans", sans-serif; font-size: 14px; font-weight: 500; background: var(--gutui-soft); padding: 2px 8px; border-radius: 6px; vertical-align: 3px; }
.panel-photos { display: grid; gap: 12px; }
.panel-photos img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.menu-note { margin-top: 18px; color: var(--coaja); font-size: 16px; }

/* ---------- Booking ---------- */
.book { background: var(--leaf); color: #fff; padding-top: 88px; padding-bottom: 92px; }
.book .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.book .lede { color: #cfe0d3; }
.form { background: var(--fond); color: var(--ink); border-radius: 18px; padding: 28px; }
.field { margin-bottom: 18px; }
.field > label, .legend { display: block; font-weight: 500; margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid #cfc6b6; font-variant-numeric: tabular-nums; }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--leaf); outline-offset: 2px; }
.times .opt span { min-width: 74px; justify-content: center; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #cfc6b6; border-radius: 999px; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 22px; }
.stepper output { min-width: 40px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input[type="text"], input[type="tel"] { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid #cfc6b6; background: #fff; font: inherit; }
input[type="text"]:focus, input[type="tel"]:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(47,90,60,.2); }
.form .btn { width: 100%; margin-top: 8px; }
.err { color: #a3261b; font-size: 16px; min-height: 1.2em; margin-top: 4px; }
.closed { color: var(--coaja); font-size: 16px; }
.done svg { width: 46px; height: 46px; color: var(--leaf); }
.done h3 { font-size: 34px; margin: 12px 0 8px; }
.done p { color: var(--coaja); }
.done .note { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--gutui); background: #fff; color: var(--ink); font-size: 16px; }

.gallery { padding-top: 88px; padding-bottom: 88px; }
.shots { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 240px 240px; gap: 12px; margin-top: 32px; }
.shots img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.shots .big { grid-row: span 2; }

.contact { background: var(--card); border-top: 1px solid var(--lin); padding-top: 80px; padding-bottom: 80px; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hours { list-style: none; margin-top: 24px; border-top: 2px solid var(--ink); max-width: 420px; }
.hours li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--lin); font-variant-numeric: tabular-nums; }
.contact .btn { margin-top: 26px; }
.map { width: 100%; height: auto; border-radius: 18px; }

.foot { padding-top: 32px; padding-bottom: 32px; color: var(--coaja); font-size: 16px; }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: 20px; z-index: 60; max-width: calc(100% - 32px); padding: 14px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 16px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.4); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .toast { transition: none; } }

@media (max-width: 980px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .menu { display: none; }
  .hero { padding-top: 32px; padding-bottom: 48px; }
  .hero .wrap, .book .wrap, .contact .wrap, .panel { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .day ol { grid-template-columns: 1fr; }
  .day li, .day li + li { padding: 14px 0; border-left: 0; }
  .day li + li { border-top: 1px solid var(--lin); }
  .panel-photos { grid-template-columns: 1fr 1fr; }
  .menu-sec, .book, .gallery, .contact { padding-top: 60px; padding-bottom: 60px; }
}
@media (max-width: 520px) {
  .top .wrap { height: 60px; }
  .brand { font-size: 22px; }
  .lang { display: none; }
  .demo-strip .wrap { font-size: 13px; }
  .now { padding: 20px; }
  .dishes li { grid-template-columns: 1fr auto; }
  .dishes .g { grid-column: 1; }
  .dishes .p { grid-column: 2; grid-row: 1; }
  .row2 { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .shots { grid-template-columns: 1fr; grid-template-rows: none; }
  .shots img { height: 220px; }
  .shots .big { grid-row: auto; }
}

fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
