/* Cafe website template. Direction: taken from the kitchen illustration. Cream plaster, espresso wood, sage, lamp-gold.
   The home page opens on a pinned scroll scene: an empty room becomes the kitchen.
   Shape rule: 6px corners everywhere. System fonts only: nothing loads from other sites. */
:root {
  --bg: #f4ecdc;
  --surface: #fbf6ea;
  --tint: #eadfc8;
  --ink: #2b1d14;
  --muted: #5b4636;
  --link: #7a3e1d;
  --sage: #56633f;
  --gold: #d9a441;
  --btn: #2b1d14;
  --on-btn: #f4ecdc;
  --line: #cdbb9c;
  --field: #7a6552;
  --error: #9b1c1c;
  --focus: #2b1d14;
  --night: #17110d;
  --cream: #f4ecdc;
  --r: 6px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgb(60 36 16 / 0.08), 0 18px 40px -18px rgb(60 36 16 / 0.35);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17110d;
    --surface: #211811;
    --tint: #1d1510;
    --ink: #f4ecdc;
    --muted: #cdbba3;
    --link: #e5b06c;
    --sage: #a9b98a;
    --btn: #f4ecdc;
    --on-btn: #17110d;
    --line: #3b2c20;
    --field: #9c8670;
    --error: #ffb4a8;
    --focus: #d9a441;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 18px 40px -18px rgb(0 0 0 / 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body::before { content: ""; position: fixed; inset: 0; z-index: 40; display: none; pointer-events: none; opacity: 0.07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h1 em, h2 em { font-style: italic; color: var(--link); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.4rem; line-height: 1.2; }
p, ul, address, table { margin: 0 0 1em; }
address { font-style: normal; }
a, button, input, textarea, label { touch-action: manipulation; -webkit-tap-highlight-color: rgb(217 164 65 / 0.35); }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color 0.2s var(--ease); }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }
abbr[title] { text-decoration: none; }

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.narrow { max-width: 44rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.small { font-size: 0.9375rem; color: var(--muted); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--muted); max-width: 34rem; }

.skip { position: absolute; left: 1rem; top: -5rem; z-index: 60; background: var(--night); color: var(--cream); padding: 0.8rem 1.2rem; border-radius: var(--r); font-weight: 600; }
.skip:focus { top: 1rem; color: var(--cream); }

/* Header: dark glass bar, the same on every page so it reads over the scene */
.site-header { --focus: var(--gold); position: sticky; top: max(0.75rem, env(safe-area-inset-top)); z-index: 50; padding-inline: 0.75rem; height: 0; view-transition-name: site-header; }
.header-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap;
  min-height: 3.75rem; padding: 0.4rem 0.5rem 0.4rem 1.3rem; width: min(100%, 70rem);
  background: rgb(23 17 13 / 0.9); color: var(--cream);
  border: 1px solid rgb(244 236 220 / 0.18); border-radius: var(--r); box-shadow: 0 12px 30px -14px rgb(0 0 0 / 0.6);
}
@media (prefers-reduced-transparency: reduce) { .header-row { background: var(--night); } }
.brand { display: flex; align-items: baseline; gap: 0.6rem; text-decoration: none; color: var(--cream); padding: 0.45rem 0; }
.brand:hover { color: var(--gold); }
.brand-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; font-style: italic; }
.brand-sub { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(244 236 220 / 0.78); }
.site-nav ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.9rem; color: var(--cream); text-decoration: none; border-radius: var(--r); transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { background: rgb(244 236 220 / 0.14); color: var(--gold); }
.site-nav .btn { margin-left: 0.4rem; background: var(--cream); color: var(--night); border-color: var(--cream); }
.site-nav .btn:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.nav-toggle { display: none; }
main > :first-child:not(.scene) { padding-top: clamp(7rem, 12vw, 9rem); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.7rem 1.6rem;
  background: var(--btn); color: var(--on-btn);
  border: 1px solid var(--btn); border-radius: var(--r);
  font: 600 1rem/1.2 var(--font); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { color: var(--on-btn); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--field); }
.btn-ghost:hover { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.btn-small { min-height: 2.75rem; padding: 0.4rem 1.1rem; font-size: 0.9375rem; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }
.text-link { font-weight: 600; }
.text-link::after { content: "\2192" / ""; display: inline-block; margin-left: 0.4em; transition: transform 0.25s var(--ease); }
.text-link:hover::after { transform: translateX(5px); }

/* ---------- The scene ----------
   Default (no JavaScript, or reduced motion): one screen showing the finished kitchen and the title.
   With .scene-live on <html>: the section becomes tall, the stage pins, and JS feeds scroll progress in as
   custom properties: --h reveal height, --lum light level, --glow lamp glow, --t title, --zoom push-in. */
.scene { --t: 1; --hint: 0; --focus: var(--gold); position: relative; color: var(--cream); background: radial-gradient(ellipse at 50% 30%, #4a2f1a 0%, #23160e 55%, #120c08 100%); }
.scene-stage { position: relative; height: 100vh; height: 100svh; min-height: 34rem; overflow: hidden; }
.scene-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transform: translateZ(0); }
.scene.has-film .scene-canvas { opacity: 1; }
.scene.has-film .scene-poster { visibility: hidden; }
.scene-note { margin: 1.5rem 0 0; font-size: 0.8125rem; color: rgb(244 236 220 / 0.9); text-shadow: 0 1px 8px rgb(0 0 0 / 0.8); }
.scene-shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 50% 45%, transparent 35%, rgb(12 8 5 / 0.72) 100%),
  linear-gradient(to top, rgb(12 8 5 / calc(0.25 + 0.6 * var(--t))) 0%, transparent 62%); }
.scene-bar { position: absolute; left: 0; right: 0; height: 9vh; background: #0b0705; transform: scaleY(calc(1 - var(--t))); }
.scene-bar-top { top: 0; transform-origin: top; }
.scene-bar-bottom { bottom: 0; transform-origin: bottom; }
.scene-beats { display: none; }
.scene-title { position: absolute; left: 0; right: 0; bottom: clamp(2.5rem, 9vh, 6rem); width: min(100% - 2.5rem, 70rem); margin-inline: auto; opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 2.5rem)); }
.scene-title h1 { font-size: clamp(3.5rem, 11vw, 8.5rem); font-style: italic; line-height: 0.95; margin-bottom: 0.25em; text-shadow: 0 2px 30px rgb(0 0 0 / 0.55); }
.scene-title .lead { color: var(--cream); text-shadow: 0 1px 14px rgb(0 0 0 / 0.7); }
.scene-title .btn { background: var(--cream); color: var(--night); border-color: var(--cream); }
.scene-title .btn:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.scene-title .btn-ghost { background: rgb(23 17 13 / 0.55); color: var(--cream); border-color: rgb(244 236 220 / 0.6); }
.scene-hint { display: none; }
.chip { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 1.2rem; padding: 0.4rem 1rem 0.4rem 0.8rem; background: rgb(23 17 13 / 0.7); color: var(--cream); border: 1px solid rgb(244 236 220 / 0.3); border-radius: 999px; font-size: 0.9375rem; font-weight: 600; }
.chip[hidden] { display: none; }
.chip-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #e0705c; }
.chip.is-open .chip-dot { background: #7fd29b; box-shadow: 0 0 0 4px rgb(127 210 155 / 0.25); }

.scene-live .scene { height: 900vh; }
.scene-live .scene-stage { position: sticky; top: 0; }
.scene-live .scene-title { pointer-events: none; }
.scene-live .scene.is-done .scene-title { pointer-events: auto; }
.scene-live .scene-beats { display: block; list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; bottom: calc(9vh + clamp(1.5rem, 5vh, 3.5rem)); text-align: center; }
.scene-live .scene-beats li { position: absolute; left: 50%; bottom: 0; width: min(100% - 2.5rem, 44rem); transform: translate(-50%, 1rem); opacity: 0; font: italic 600 clamp(1.6rem, 4.2vw, 3.1rem)/1.15 var(--serif); text-shadow: 0 2px 24px rgb(0 0 0 / 0.85); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.scene-live .scene[data-beat="0"] .scene-beats li:nth-child(1),
.scene-live .scene[data-beat="1"] .scene-beats li:nth-child(2),
.scene-live .scene[data-beat="2"] .scene-beats li:nth-child(3),
.scene-live .scene[data-beat="3"] .scene-beats li:nth-child(4),
.scene-live .scene[data-beat="4"] .scene-beats li:nth-child(5),
.scene-live .scene[data-beat="5"] .scene-beats li:nth-child(6) { opacity: 1; transform: translate(-50%, 0); }
.scene-live .scene-hint { display: block; position: absolute; left: 0; right: 0; bottom: 2.4vh; margin: 0; text-align: center; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgb(244 236 220 / 0.85); opacity: var(--hint); }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }
.page-head { padding-bottom: 1rem; }
.lost { padding-bottom: clamp(4rem, 10vw, 8rem); }

.feature, .food-list li, .visit-grid > div, .form, .notice, .allergy-banner, .menu-list li { border: 1px solid var(--line); border-radius: var(--r); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.feature:hover, .food-list li:hover, .visit-grid > div:hover, .menu-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.food-grid { display: grid; grid-template-columns: 1.1fr 1.9fr; gap: 1.25rem; margin-top: 2.25rem; }
.feature { --focus: var(--gold); background: var(--night); color: var(--cream); border-color: var(--night); padding: clamp(1.75rem, 3vw, 2.5rem); display: flex; flex-direction: column; min-height: 21rem; background-image: radial-gradient(circle at 80% 0%, rgb(217 164 65 / 0.28), transparent 55%); }
.feature h3 { font-size: clamp(2.2rem, 3.8vw, 3.1rem); font-style: italic; line-height: 1; }
.feature .text-link { color: var(--gold); margin-top: auto; padding-top: 1.5rem; }
.food-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.food-list li { background: var(--surface); padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; min-height: 9.75rem; border-top: 3px solid var(--sage); }
.food-list li:nth-child(2), .food-list li:nth-child(3) { border-top-color: var(--gold); }
.food-list h3 { margin-bottom: 0.3em; }
.food-list p { color: var(--muted); margin: 0; }
.allergy-banner { margin: 1.25rem 0 0; padding: 1.1rem 1.5rem; background: var(--surface); border-left: 3px solid var(--sage); }

.visit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.door-sign { position: relative; margin: 1.6rem 1.5rem 0 0; padding: 0.75rem 1.4rem 0.7rem; min-width: 12rem; background: #6b3f1f; color: #f4ecdc; border: 1px solid #3f2411; border-radius: var(--r); box-shadow: var(--shadow); font: italic 600 1.35rem/1.1 var(--serif); text-align: center; transform-origin: 50% -1.6rem; }
.door-sign[hidden] { display: none; }
.door-sign.is-open { background: #45502f; border-color: #2c3320; }
.door-sign::before { content: ""; position: absolute; left: 50%; top: -1.15rem; width: 2.6rem; height: 2.6rem; border: solid var(--field); border-width: 1.5px 0 0 1.5px; transform: translateX(-50%) rotate(45deg) skew(18deg, 18deg); z-index: -1; }
.door-sign::after { content: ""; position: absolute; left: 50%; top: -1.95rem; width: 0.55rem; height: 0.55rem; margin-left: -0.275rem; border-radius: 50%; background: var(--field); }
.visit-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.25rem; margin-top: 2.25rem; }
.visit-grid > div { background: var(--surface); padding: clamp(1.5rem, 2.5vw, 2rem); }
.visit-grid > div > :last-child { margin-bottom: 0; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 0.45rem 0.6rem; text-align: left; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { font-weight: 700; background: var(--tint); }
.plain-list, .link-list { list-style: none; padding: 0; }
.plain-list li, .link-list li { padding: 0.35rem 0; }

.reviews { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); max-width: 60rem; }
.reviews-art { width: clamp(7rem, 16vw, 11rem); }
.reviews p { max-width: 38rem; font-size: 1.15rem; }

/* Form */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-grid > div a[href^="tel"] { font-weight: 700; white-space: nowrap; }
.form { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.hint { margin: 0 0 0.4rem; font-size: 0.9375rem; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field textarea { width: 100%; padding: 0.8rem 1rem; min-height: 3.25rem; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--field); border-radius: var(--r); transition: border-color 0.2s var(--ease); }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 3px; }
.error { color: var(--error); font-weight: 600; margin: 0.4rem 0 0; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0 0.75rem; align-items: start; }
.check input { width: 1.5rem; height: 1.5rem; margin: 0.15rem 0 0; accent-color: var(--sage); }
.check label { font-weight: 400; margin: 0; }
.check .error { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 1rem 0 0; font-weight: 600; }
.form-status:empty { display: none; }

/* Menu page */
.menu { padding-bottom: clamp(3rem, 7vw, 5rem); }
.menu-group { padding: 2.5rem 0 0.5rem; }
.menu-group h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-style: italic; padding-bottom: 0.35em; border-bottom: 1px solid var(--line); }
.menu-note { color: var(--muted); }
.menu-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.menu-list li { background: var(--surface); padding: 1.1rem 1.4rem; }
.menu-line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.menu-line h3 { margin: 0; }
.menu-list p { margin: 0.3rem 0 0; color: var(--muted); }
.price { font: 600 1.3rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font: 700 0.75rem/1 var(--font); padding: 0.25rem 0.5rem; background: #45502f; color: #f4ecdc; border-radius: 999px; vertical-align: 0.25em; }
.notice { margin: 2.5rem 0 0; padding: clamp(1.5rem, 3vw, 2rem); background: var(--tint); border-left: 3px solid var(--sage); }
.notice h2 { font-size: 1.7rem; }
.notice p:last-child { margin-bottom: 0; }

/* Policy pages */
.prose { padding-bottom: clamp(3rem, 7vw, 5rem); }
.prose h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose li { margin-bottom: 0.4em; }

/* Footer */
.site-footer { --focus: var(--gold); background: var(--night); color: var(--cream); padding: clamp(3rem, 6vw, 5rem) 0 1.75rem; font-size: 0.9375rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 2.5rem; }
.footer-name { font: italic 600 2.2rem/1.1 var(--serif); margin-bottom: 0.4em; }
.footer-h { font: 700 0.75rem/1.3 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-block; padding: 0.3rem 0; }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(244 236 220 / 0.2); color: rgb(244 236 220 / 0.85); }
.footer-base p { margin: 0; }

/* Motion outside the scene */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: fade-out 0.25s var(--ease) both; }
  ::view-transition-new(root) { animation: fade-in 0.5s var(--ease) both; }
  .door-sign { animation: swing 2.4s ease-in-out 0.3s both; }
  .page-head > .wrap > *, .prose > h1 { animation: rise 0.8s var(--ease) both; }
  @supports (animation-timeline: view()) {
    .reveal, .section h2 { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:hover, .feature:hover, .food-list li:hover, .visit-grid > div:hover, .menu-list li:hover { transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes swing { 0% { transform: rotate(9deg); } 25% { transform: rotate(-7deg); } 50% { transform: rotate(4deg); } 75% { transform: rotate(-2deg); } 100% { transform: rotate(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }

/* Small screens */
@media (max-width: 860px) {
  .food-grid, .visit-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .brand-sub { display: none; }
  .site-nav ul { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 1.2rem; background: var(--cream); color: var(--night); border: 0; border-radius: var(--r); font: 600 0.9375rem var(--font); cursor: pointer; }
  .js .site-nav { display: none; width: 100%; padding: 0.25rem 0 0.5rem; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .js .site-nav .btn { margin: 0.5rem 0 0; }
  .scene-title .lead { font-size: 1.05rem; }
}
@media (max-width: 520px) {
  .food-list { grid-template-columns: 1fr; }
  .food-list li { min-height: 0; }
  .reviews { grid-template-columns: 1fr; }
  .door-sign { margin-top: 2rem; }
}
@media print {
  body::before, .site-header, .form, .actions, .door-sign, .scene-canvas, .scene-poster, .scene-shade, .scene-bar, .scene-beats, .scene-hint { display: none; }
  .scene, .scene-stage { height: auto; min-height: 0; background: none; color: #000; }
  .scene-title { position: static; }
}
