/* VELTARO OSTERIA — concept project 01
   Warm editorial Italian hospitality. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..600&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --bg: #f4ebdd;
  --cream: #fff9ef;
  --tomato: #b63b32;
  --olive: #626a42;
  --espresso: #30251f;
  --ink: #2a201b;
  --muted: #7c6b5e;
  --line: rgba(48, 37, 31, .16);
  --line-soft: rgba(48, 37, 31, .08);
  --accent: #b63b32;
  --focus: #b63b32;
  --selection: rgba(182, 59, 50, .18);
  --font-body: "Jost", system-ui, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --shell: 1280px;
  --gutter: 44px;
}

body { background: var(--bg); color: var(--ink); }

/* film grain over photography */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .3;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* ---------------- header ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 235, 221, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 44px;
}
.logo {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: .04em;
  font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.logo small {
  font-family: var(--font-body);
  font-size: 8.5px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu-nav { display: flex; align-items: center; gap: 30px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.menu-nav a { position: relative; color: var(--muted); transition: color .25s ease; }
.menu-nav a:hover, .menu-nav a[aria-current="page"] { color: var(--ink); }
.menu-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 1px;
  background: var(--tomato);
}
.book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 2px;
  background: var(--tomato);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .3s ease, transform .3s ease;
}
.book:hover { background: #9c2f27; transform: translateY(-1px); }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 2px; place-items: center; }
.burger span { width: 16px; height: 1px; background: var(--ink); box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bg);
  padding: 100px 28px 40px;
  display: grid;
  align-content: start;
  gap: 4px;
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform .45s cubic-bezier(.65, 0, .35, 1), visibility .45s;
}
.mobile-nav.is-open { transform: none; visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 34px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav .book { margin-top: 22px; justify-self: start; font-family: var(--font-body); font-size: 12px; }

/* ---------------- hero ---------------- */
.hero { position: relative; overflow: clip; padding: clamp(30px, 5vw, 64px) 0 0; }
.hero-inner { position: relative; }
.hero-kicker {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(54px, 12.6vw, 196px);
  line-height: .84;
  letter-spacing: -.035em;
  margin: clamp(16px, 2vw, 28px) 0 0;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.hero-title em {
  display: block;
  font-style: italic;
  color: var(--tomato);
  margin-left: clamp(20px, 12vw, 220px);
}
.hero-title .thin {
  display: block;
  font-size: .46em;
  letter-spacing: -.02em;
  color: var(--olive);
  font-style: italic;
  margin-left: clamp(10px, 6vw, 120px);
}

.hero-figure {
  position: relative;
  margin-top: clamp(24px, 3vw, 44px);
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(14px, 2vw, 26px);
  align-items: end;
}
.hero-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #d8c8b2;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.94) contrast(1.06) sepia(.06);
  transform: scale(1.02);
  animation: plate 18s ease-in-out infinite alternate;
}
@keyframes plate { to { transform: scale(1.07) translateY(-6px); } }
.hero-photo-tag {
  position: absolute;
  left: 16px; bottom: 14px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(48, 37, 31, .55);
  padding: 7px 12px;
  backdrop-filter: blur(4px);
}

.hero-aside { padding-bottom: 8px; }
.hero-aside p { font-size: 15px; line-height: 1.75; color: #5c4d43; max-width: 34ch; }
.hero-aside .rule { margin: 20px 0; }
.hero-facts { display: grid; gap: 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-facts b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--ink); }

/* marquee */
.ticker {
  margin-top: clamp(28px, 4vw, 48px);
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 12px 0;
  background: var(--cream);
}
.ticker-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: slide 40s linear infinite;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--olive);
}
.ticker-track span { display: inline-flex; align-items: center; gap: 42px; }
.ticker-track span::after { content: "✦"; color: var(--tomato); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------------- sections ---------------- */
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section--cream { background: var(--cream); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 760px; margin-bottom: clamp(30px, 4vw, 56px); }
.section-head .eyebrow { color: var(--tomato); }
.section-head .eyebrow::before { background: var(--tomato); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 78px);
  line-height: .95;
  letter-spacing: -.03em;
  margin-top: 18px;
}
.section-head h2 em { font-style: italic; color: var(--tomato); }
.section-head p { margin-top: 20px; font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 58ch; }

/* ---------------- food story (sticky scroll) ---------------- */
.story-scroll { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.story-stage { position: sticky; top: 92px; }
.story-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #d8c8b2;
}
.story-frame img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .8s ease, transform 1.6s cubic-bezier(.22, .61, .36, 1);
  filter: saturate(.95) contrast(1.05);
}
.story-frame img.is-active { opacity: 1; transform: scale(1); }
.story-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px;
  background: linear-gradient(transparent, rgba(25, 17, 13, .78));
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.story-steps { display: grid; gap: 0; }
.story-step {
  min-height: 46vh;
  display: grid;
  align-content: center;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  opacity: .42;
  transition: opacity .6s ease;
}
.story-step.is-active { opacity: 1; }
.story-step b {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--tomato);
  font-weight: 500;
}
.story-step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-top: 12px;
}
.story-step p { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 44ch; }

/* ---------------- featured dishes ---------------- */
.dish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 30px); }
.dish { position: relative; }
.dish-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #ddd0bd; }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.22, .61, .36, 1); filter: saturate(.95) contrast(1.04); }
.dish:hover .dish-photo img { transform: scale(1.05); }
.dish h3 { font-family: var(--font-display); font-weight: 400; font-size: 23px; margin-top: 16px; letter-spacing: -.01em; }
.dish p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.dish .price { font-size: 13px; letter-spacing: .06em; color: var(--olive); margin-top: 10px; display: block; }

/* ---------------- split / philosophy ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(26px, 3.6vw, 48px);
  line-height: 1.14;
  letter-spacing: -.02em;
}
.quote footer { font-family: var(--font-body); font-style: normal; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 22px; }
.photo-wide { position: relative; overflow: hidden; aspect-ratio: 5 / 4; background: #d8c8b2; }
.photo-wide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.05); }

/* ---------------- menu page ---------------- */
.menu-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 26px; }
.menu-tab {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all .28s ease;
}
.menu-tab:hover { border-color: var(--tomato); color: var(--tomato); }
.menu-tab[aria-selected="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }

.menu-panel { margin-top: 44px; }
.menu-panel[hidden] { display: none; }
.menu-list { display: grid; gap: 0; }
.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  animation: fadeUp .6s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.menu-item h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(19px, 2vw, 25px); letter-spacing: -.01em; display: flex; align-items: baseline; gap: 12px; }
.menu-item .dots { flex: 1; border-bottom: 1px dotted rgba(48, 37, 31, .3); transform: translateY(-4px); }
.menu-item p { font-size: 14px; color: var(--muted); margin-top: 5px; max-width: 52ch; }
.menu-item .price { font-family: var(--font-display); font-size: 18px; color: var(--olive); white-space: nowrap; }
.menu-note { margin-top: 26px; font-size: 12.5px; color: var(--muted); }

/* ---------------- gallery ---------------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.gallery button { position: relative; overflow: hidden; display: block; grid-column: span 2; aspect-ratio: 4/3; background: #ddd0bd; }
.gallery button:nth-child(1), .gallery button:nth-child(4) { grid-column: span 3; aspect-ratio: 16/10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.22, .61, .36, 1), filter .5s ease; filter: saturate(.95); }
.gallery button:hover img { transform: scale(1.05); filter: saturate(1.05); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 4vw;
  background: rgba(24, 17, 13, .94);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox figcaption { color: var(--cream); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-top: 14px; text-align: center; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 22px;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 249, 239, .35);
  border-radius: 50%;
  color: var(--cream);
  font-size: 18px;
  display: grid;
  place-items: center;
}

/* ---------------- reservations ---------------- */
.reserve-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 4vw, 64px); align-items: start; }
.form-card { background: var(--cream); border: 1px solid var(--line); padding: clamp(22px, 3vw, 38px); }
.form-card h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.02em; }
.form-card > p { color: var(--muted); font-size: 14px; margin-top: 10px; }

.rform { display: grid; gap: 16px; margin-top: 24px; }
.rfield { display: grid; gap: 7px; }
.rfield label { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.rfield input, .rfield select, .rfield textarea {
  width: 100%;
  padding: 13px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .25s ease, background .25s ease;
}
.rfield select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.rfield input:focus, .rfield select:focus, .rfield textarea:focus { outline: none; border-color: var(--tomato); background: #fffdf8; }
.rrow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.submit {
  margin-top: 6px;
  padding: 16px 24px;
  background: var(--tomato);
  color: var(--cream);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: background .3s ease;
}
.submit:hover { background: #9c2f27; }
.rdemo-note { font-size: 12px; color: var(--muted); line-height: 1.6; }
.confirmation {
  display: none;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--olive);
  background: rgba(98, 106, 66, .08);
  font-size: 14px;
  line-height: 1.6;
}
.confirmation.is-visible { display: block; }
.confirmation b { font-family: var(--font-display); font-weight: 500; }

.service-notes { display: grid; gap: 18px; }
.service-notes div { border-top: 1px solid var(--line); padding-top: 14px; }
.service-notes dt { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--tomato); }
.service-notes dd { margin: 8px 0 0; font-size: 14.5px; color: #5c4d43; line-height: 1.7; }

/* ---------------- footer ---------------- */
.site-foot { background: var(--espresso); color: #e9dfd1; padding: clamp(44px, 6vw, 76px) 0 30px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot .logo { color: var(--cream); }
.site-foot h4 { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: #a8998a; font-weight: 500; }
.site-foot ul { display: grid; gap: 9px; margin-top: 14px; font-size: 14px; }
.site-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-note {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(233, 223, 209, .16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  color: #a8998a;
}
.credit { font-size: 11px; color: #8e8074; margin-top: 10px; }

/* page hero for interior pages */
.page-top { padding: clamp(44px, 6vw, 80px) 0 clamp(28px, 3vw, 45px); border-bottom: 1px solid var(--line); }
.page-top h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 8vw, 116px);
  line-height: .9;
  letter-spacing: -.03em;
}
.page-top h1 em { font-style: italic; color: var(--tomato); }
.page-top p { margin-top: 20px; font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 60ch; }

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
  /* Collapse navigation earlier so the top bar never crowds or wraps. */
  .menu-nav, .book.desktop { display: none; }
  .burger { display: grid; }
  .book { white-space: nowrap; padding-inline: 18px; font-size: 10.5px; }
  .hero-title { font-size: clamp(48px, 12vw, 130px); }
  .hero-figure, .story-scroll, .split, .reserve-grid { grid-template-columns: 1fr; }
  .story-stage { position: relative; top: 0; }
  .story-frame { aspect-ratio: 16/11; }
  .story-step { min-height: auto; padding: 26px 0; opacity: 1; }
  .dish-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery button, .gallery button:nth-child(1), .gallery button:nth-child(4) { grid-column: span 1; aspect-ratio: 4/3; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .topbar-inner { padding: 14px 20px; }
  .menu-nav, .book.desktop { display: none; }
  .burger { display: grid; }
  .hero-title em { margin-left: 0; }
  .hero-title .thin { margin-left: 0; }
  .hero-kicker { font-size: 9.5px; letter-spacing: .18em; }
  .dish-grid { grid-template-columns: 1fr; }
  .rrow { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
