/* Osteria Nona: Venetian burgundy, parchment, olive, espresso */

:root {
  --wine: #6B1F2A;
  --wine-deep: #541821;
  --wine-soft: #8A3340;
  --parchment: #F4EDE0;
  --parchment-deep: #E8DFD0;
  --olive: #6F7A52;
  --olive-bright: #879269;
  --espresso: #2A2118;
  --muted: #6E6256;
  --stroke: rgba(42, 33, 24, 0.08);
  --elev: 0 20px 40px rgba(0, 0, 0, 0.06);
  --elev-strong: 0 18px 40px rgba(42, 33, 24, 0.14);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --wrap: min(1120px, calc(100% - 2rem));
  --radius: 20px;
  --radius-sm: 14px;
  --pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--parchment);
  background: var(--espresso);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  color: inherit;
  overflow: visible;
  padding-bottom: 0.05em;
}
p { margin: 0; }

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 80;
  background: var(--espresso);
  color: var(--parchment);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  transform: translateY(-220%);
}
.skip:focus-visible { transform: none; outline: 2px solid var(--olive); outline-offset: 2px; }

.demo-notice {
  position: relative;
  z-index: 60;
  background: var(--espresso);
  color: rgba(244, 237, 224, 0.88);
  font-size: 13px;
  text-align: center;
  padding: 9px 16px;
  line-height: 1.45;
}
.demo-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  margin-right: 8px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  white-space: nowrap;
  vertical-align: 1px;
}
.demo-notice a {
  color: #D4A0A8;
  font-weight: 600;
  margin-left: 0.35em;
  white-space: nowrap;
}
.demo-notice a:hover { text-decoration: underline; }

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-bright);
}
.section-head {
  max-width: 36rem;
  margin-bottom: 1.35rem;
}
.section-head h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  color: var(--parchment);
  margin-bottom: 0.45rem;
}
.section-head p { color: rgba(244, 237, 224, 0.68); }
.section-head.light .eyebrow { color: var(--olive-bright); }
.section-head.light h2 { color: var(--parchment); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.78rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.btn-wine {
  background: var(--wine);
  color: #FBF6F0;
  box-shadow: 0 12px 28px rgba(107, 31, 42, 0.28);
}
.btn-wine:hover {
  background: var(--wine-deep);
  box-shadow: 0 16px 32px rgba(107, 31, 42, 0.34);
}
.btn-ghost {
  background: rgba(244, 237, 224, 0.08);
  border-color: rgba(244, 237, 224, 0.28);
  color: var(--parchment);
}
.btn-ghost:hover {
  background: rgba(244, 237, 224, 0.14);
  border-color: rgba(244, 237, 224, 0.45);
}
.btn-ghost-on-photo {
  background: rgba(244, 237, 224, 0.1);
  border-color: rgba(244, 237, 224, 0.35);
  color: var(--parchment);
  backdrop-filter: blur(8px);
}
.btn-ghost-on-photo:hover {
  background: rgba(244, 237, 224, 0.18);
  border-color: rgba(244, 237, 224, 0.5);
}
.btn-lift:hover { transform: translateY(-2px); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(42, 33, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 237, 224, 0.08);
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.9rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--parchment);
  margin-right: auto;
}
.nav-logo span { color: #D4A0A8; font-style: italic; }
.nav-links { display: flex; gap: 1.1rem; }
.nav-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(244, 237, 224, 0.68);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 1.5px;
  background: #D4A0A8;
  transition: width 0.2s ease;
}
.nav-links a:hover { color: var(--parchment); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 0.55rem 1.05rem; font-size: 0.82rem; }

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.4rem var(--wrap) 1.1rem;
  width: min(1120px, 100%);
  margin-inline: auto;
}
.nav-drawer a { font-weight: 600; color: var(--parchment); }
.nav-drawer-phone { color: #D4A0A8 !important; }
.nav-drawer-cta { align-self: flex-start; }
details.nav-menu[open] + .nav-drawer { display: flex; }
.nav .nav-toggle-bars span { background: var(--parchment); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
}

/* Hero: full-bleed candlelit image */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 760px);
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: var(--espresso);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: contrast(1.06) saturate(0.9) brightness(0.72);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(28, 18, 16, 0.88) 0%, rgba(28, 18, 16, 0.62) 42%, rgba(28, 18, 16, 0.28) 72%, rgba(107, 31, 42, 0.22) 100%),
    linear-gradient(180deg, rgba(28, 18, 16, 0.35) 0%, transparent 30%, rgba(28, 18, 16, 0.55) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  margin-inline: auto;
}
.hero-copy { max-width: 34rem; }
.hero .eyebrow { color: var(--olive-bright); }
.hero h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.2rem);
  color: var(--parchment);
  margin-bottom: 0.75rem;
  text-shadow: 0 14px 40px rgba(28, 18, 16, 0.4);
}
.hero .lead {
  max-width: 40ch;
  color: rgba(244, 237, 224, 0.82);
  font-size: 1.08rem;
}
.hero-note {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 237, 224, 0.62);
}

/* Menu */
.menu {
  padding: 3rem 0 2.85rem;
  background:
    radial-gradient(ellipse 40% 40% at 100% 0%, rgba(107, 31, 42, 0.18), transparent 55%),
    #231C16;
}
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}
.menu-tab {
  appearance: none;
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--muted);
  padding: 0.55rem 1rem;
  border-radius: var(--pill);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--elev);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.menu-tab:hover { color: var(--espresso); }
.menu-tab.is-active {
  background: var(--wine);
  border-color: var(--wine);
  color: #FBF6F0;
  box-shadow: 0 10px 24px rgba(107, 31, 42, 0.22);
}

.menu-board {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 0.85rem;
  align-items: start;
}
.dish-grid {
  display: grid;
  gap: 0.65rem;
}
.dish-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: var(--elev);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.dish-card:hover,
.dish-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(107, 31, 42, 0.22);
  box-shadow: 0 18px 36px rgba(42, 33, 24, 0.1);
}
.dish-card h3 {
  font-size: 1.25rem;
  color: var(--espresso);
}
.dish-card p {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.92rem;
}
.dish-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--wine);
}
.dish-pair {
  grid-column: 1 / -1;
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--stroke);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--olive);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, max-height 0.2s ease, margin 0.2s ease, padding 0.2s ease;
}
.dish-card:hover .dish-pair,
.dish-card.is-active .dish-pair,
.dish-card:focus-within .dish-pair {
  opacity: 1;
  max-height: 3rem;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
}

.menu-aside {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--espresso);
  color: var(--parchment);
  box-shadow: var(--elev-strong);
}
.aside-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-bright);
  margin-bottom: 0.35rem;
}
.menu-aside h3 {
  font-size: 1.55rem;
  margin-bottom: 0.45rem;
}
.menu-aside > p {
  color: rgba(244, 237, 224, 0.72);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.menu-photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(244, 237, 224, 0.12);
}
.menu-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.9);
}

/* Press: deep burgundy band */
.press {
  padding: 3rem 0;
  background:
    radial-gradient(ellipse 45% 50% at 90% 0%, rgba(244, 237, 224, 0.08), transparent 55%),
    linear-gradient(165deg, var(--wine-deep) 0%, var(--wine) 100%);
  color: var(--parchment);
}
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.press-card {
  padding: 1.3rem 1.2rem 1.25rem;
  border-radius: var(--radius);
  background: var(--parchment);
  color: var(--espresso);
  border: 1px solid rgba(244, 237, 224, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}
.press-source {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 0.55rem;
}
.press-card blockquote {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}
.press-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

/* Visit */
.visit {
  padding: 3rem 0;
  background: #1C1210;
}
.visit-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 1rem;
  align-items: stretch;
}
.visit-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--parchment);
  margin-bottom: 0.55rem;
}
.visit-copy p { color: rgba(244, 237, 224, 0.68); max-width: 36ch; }
.visit-facts {
  margin: 0;
  padding: 1.2rem 1.15rem;
  border-radius: var(--radius);
  background: var(--parchment);
  color: var(--espresso);
  border: 1px solid rgba(244, 237, 224, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 0.95rem;
}
.visit-facts dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.2rem;
}
.visit-facts dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--espresso);
}
.visit-facts a { color: var(--wine); font-weight: 700; }
.visit-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--elev-strong);
  background: var(--espresso);
  position: relative;
}
.visit-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(42, 33, 24, 0.35) 100%);
  pointer-events: none;
}
.visit-photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.9) brightness(0.92);
}

/* Reserve: olive wash on dark */
.reserve {
  padding: 3rem 0 3.4rem;
  background:
    radial-gradient(ellipse 50% 45% at 10% 0%, rgba(111, 122, 82, 0.16), transparent 55%),
    linear-gradient(180deg, #231C16 0%, #1C1210 100%);
}
.reserve-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr;
  gap: 1.35rem;
  align-items: start;
}
.reserve-intro h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.45rem);
  color: var(--parchment);
  margin-bottom: 0.55rem;
}
.reserve-intro > p { color: rgba(244, 237, 224, 0.68); max-width: 38ch; }
.reserve-phone {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}
.reserve-phone a { color: #D4A0A8; }

.reserve-widget {
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--parchment);
  color: var(--espresso);
  border: 1px solid rgba(244, 237, 224, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 1.1rem;
}
.reserve-field { margin: 0; padding: 0; border: none; }
.field-label {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
}
.counter {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem;
  border-radius: var(--pill);
  background: var(--parchment);
  border: 1px solid var(--stroke);
  box-shadow: var(--elev);
}
.counter-btn {
  width: 2.35rem;
  height: 2.35rem;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--espresso);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(42, 33, 24, 0.08);
}
.counter-btn:hover { background: var(--wine); color: #fff; }
.counter-value {
  min-width: 1.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--espresso);
}
.date-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--parchment);
  color: var(--espresso);
  box-shadow: var(--elev);
}
.seat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--pill);
  border: 1px solid var(--stroke);
  background: var(--parchment);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--elev);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.chip:hover { border-color: rgba(42, 33, 24, 0.14); }
.chip:has(input:checked) {
  border-color: rgba(107, 31, 42, 0.4);
  background: rgba(107, 31, 42, 0.08);
}
.chip input {
  accent-color: var(--wine);
  width: 0.95rem;
  height: 0.95rem;
}
.reserve-submit { justify-self: start; }

.foot {
  padding: 1.35rem 0 1.75rem;
  background: var(--espresso);
  color: rgba(244, 237, 224, 0.7);
}
.foot-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}
.foot-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--parchment);
  margin: 0 0 0.35rem;
}
.foot-note { margin: 0; font-size: 0.78rem; max-width: 48ch; }
.foot a {
  font-size: 0.86rem;
  font-weight: 600;
  color: #D4A0A8;
}

@media (prefers-reduced-motion: reduce) {
  .btn-lift:hover,
  .dish-card:hover,
  .dish-card.is-active { transform: none; }
}

@media (max-width: 900px) {
  .menu-board,
  .press-grid,
  .visit-grid,
  .reserve-grid,
  .foot-row {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: min(88vh, 680px);
    padding: 4rem 0 3rem;
    align-items: flex-end;
  }
  .hero-bg img { object-position: 62% 35%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}

@media (max-width: 560px) {
  .menu-tabs { flex-direction: column; }
  .menu-tab { width: 100%; text-align: center; }
}


/* --- Accessibility baseline (Web Interface Guidelines) --- */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  transform: translateY(-200%);
}
.skip-link:focus { outline: none; }
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
[id] {
  scroll-margin-top: calc(5.5rem + env(safe-area-inset-top, 0px));
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Safe-area gutters on sticky chrome; contain scroll chaining in drawers/overlays */
.nav, .nav-min, .masthead, .bar {
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
}
.nav-drawer {
  overscroll-behavior: contain;
}

/* --- Web Interface Guidelines extras --- */
a, button, summary, input, select, textarea, label, [role="button"], [role="tab"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}
h1, h2, h3 { text-wrap: pretty; }
