/* V5 only. Shared pizza geometry is deliberately independent of theme. */
@font-face { font-family: Anton; src: url('assets/fonts/anton.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --bg: #ffeee2; --fg: #07564b; --surface: #fff8f1; --surface-2: #eadacf;
  --line: rgba(7,86,75,.2); --line-strong: #07564b; --muted: #496b60;
  --accent: #08796a; --btn-bg: #07564b; --btn-fg: #fff6e9; --btn-hover: #08796a;
  --hero-bg: #ffeee2; --hero-ink: #07564b; --pizza-shadow: rgba(70,43,24,.42);
  --nav-height: 110px; --content-nav-height: var(--nav-height);
}
:root[data-theme="dark"] {
  --bg: #0b0b0b; --fg: #ffeee2; --surface: #161616; --surface-2: #1f1f1f;
  --line: rgba(255,238,226,.14); --line-strong: #ffeee2; --muted: rgba(255,238,226,.62);
  --accent: #3fb59a; --btn-bg: #ffeee2; --btn-fg: #000; --btn-hover: #3fb59a;
  --hero-bg: #007f73; --hero-ink: #fff8e9; --pizza-shadow: rgba(0,30,25,.45);
}
html { scroll-padding-top: 0; }
section[id] { scroll-margin-top: 0; }
body { transition: background-color .2s, color .2s; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.skip-link { position: fixed; top: -100px; left: 16px; background: var(--btn-bg); color: var(--btn-fg); padding: 16px; z-index: 10001; }
.skip-link:focus { top: 12px; }
.nav { --nav-bg: var(--hero-bg); --nav-ink: var(--hero-ink); }
.nav.content-nav { --nav-bg: var(--bg); --nav-ink: var(--fg); }
.nav, .nav.solid { min-height: var(--nav-height); padding: 18px 3.2%; background: var(--nav-bg); color: var(--nav-ink); border: 0; transition: background-color .2s, box-shadow .2s; }
.nav.solid { box-shadow: 0 1px 0 var(--line); }
.nav .logo { height: auto; width: clamp(170px, 17.5vw, 285px); }
.nav-links { gap: clamp(12px, 1.4vw, 28px); font-size: clamp(12px, .88vw, 16px); }
.nav-links a::after { background: currentColor; }
.nav-right { gap: 12px; }
.nav-right .social, .theme-toggle, .lang-toggle { border-color: currentColor; }
.theme-toggle { color: inherit; }
.theme-toggle:hover { color: var(--nav-bg); background: var(--nav-ink); }
.lang-toggle button { color: inherit; }
.lang-toggle button.active { background: var(--nav-ink); color: var(--nav-bg); }
.nav-menu-toggle { display: none; color: inherit; background: transparent; border: 0; padding: 7px; cursor: pointer; }
.pizza-hero { position: relative; isolation: isolate; height: 100svh; min-height: 740px; max-height: 1100px; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink); }
.hero-copy { position: relative; z-index: 3; padding-top: max(135px, 16.8vh); margin-left: 3.2%; width: 44%; }
.hero-copy h1 { width: 130%; font-family: Anton, Impact, 'Arial Narrow', sans-serif; font-weight: 400; font-style: normal; font-size: clamp(132px, 15.5vw, 270px); line-height: .99; letter-spacing: -.04em; transform: scaleX(.78); transform-origin: left center; }
.hero-copy h1 span { display: block; white-space: nowrap; }
.hero-subtitle { font-size: clamp(19px, 2.25vw, 39px); font-weight: 700; line-height: 1.2; margin-top: 18px; letter-spacing: -.045em; white-space: nowrap; }
.hero-actions { display: flex; align-items: center; gap: 36px; margin-top: 36px; font-size: clamp(14px, 1.15vw, 19px); }
.hero-menu-link { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 17px 32px; border-radius: 50px; background: var(--hero-ink); color: var(--hero-bg); font-weight: 700; transition: box-shadow .2s; }
.hero-menu-link:hover { box-shadow: 0 5px 22px var(--pizza-shadow); }
.hero-visit-link { padding: 6px 0; border-bottom: 1px solid currentColor; }
.hero-pizza-art { position: absolute; z-index: 1; width: min(67vw, calc(100svh - var(--nav-height) - 64px), calc(1100px - var(--nav-height) - 64px)); aspect-ratio: 1; left: 50%; top: calc(var(--nav-height) + 24px); }
.hero-pizza { position: absolute; top: 5%; left: 5%; width: 90%; max-width: none; height: auto; filter: drop-shadow(-18px 23px 20px var(--pizza-shadow)); }
.pizza-orbit { position: absolute; width: 100%; height: 100%; inset: 0; aspect-ratio: 1; overflow: visible; }
.pizza-orbit text { font-family: Archivo, system-ui, sans-serif; font-size: 22px; letter-spacing: 2px; font-weight: 700; fill: currentColor; }
.hero-continue { position: absolute; z-index: 4; right: 2.5%; bottom: 58px; display: inline-flex; align-items: center; gap: 18px; padding: 11px 24px; background: var(--hero-ink); color: var(--hero-bg); border-radius: 100px; font-size: clamp(14px, 1.12vw, 18px); font-weight: 700; box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.hero-down { font-size: 36px; font-weight: 400; line-height: 1; }
.gift-photo { position: relative; min-height: 420px; }
.gift-photo img { position: absolute; inset: 0; object-position: 43% 50%; }
.visit-panel { background: var(--hero-bg); color: var(--hero-ink); }
.visit-panel .kicker, .visit-info .lbl { color: inherit; opacity: .8; }
.visit-panel .btn-light { background: var(--hero-ink); border-color: var(--hero-ink); color: var(--hero-bg); }
.visit-panel .btn-ghost { color: var(--hero-ink); border-color: currentColor; }
#craft .sticky { background: #000 url('frames/table/frame_0001.jpg') center / cover no-repeat; }
#craft .reveal-line:first-child { opacity: 1; }
#craft .reveal-line:not(:first-child) { visibility: hidden; }
#craft .tl, #craft .tr { top: calc(var(--nav-height) + 20px); }
/* Content stays readable if JavaScript or IntersectionObserver is unavailable. */
.reveal { opacity: 1; transform: none; }
/* End the photo group at the final press row; retain normal flow on tablets. */
@media (min-width: 1001px) {
  .about-grid { position: relative; }
  .about-gallery { position: absolute; top: -24px; right: 0; bottom: 0; width: calc((100% - 64px) / 2); grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); }
  .about-gallery figure, .about-gallery figure.tall { aspect-ratio: auto; min-height: 0; }
}
@media (min-width: 1344px) {
  .about-gallery { top: -84px; }
}
/* The marquee already separates About from Menu, so avoid double section padding. */
section.about { padding-bottom: 0; }
section.menu { padding-top: 72px; }
@media (max-width: 680px) {
  section.menu { padding-top: 48px; }
}
@media (min-width: 1101px) and (max-height: 820px) {
  .pizza-hero { min-height: 710px; }
  .hero-copy { padding-top: 125px; }
  .hero-copy h1 { font-size: min(14vw, 205px); line-height: .97; }
  .hero-subtitle { font-size: min(2.1vw, 30px); margin-top: 14px; }
  .hero-actions { margin-top: 24px; }
  #menu .wrap { width: min(var(--wrap), calc(100% - 48px), max(600px, calc((100svh - 420px) * 3 + 32px))); }
  #menu .big { font-size: clamp(32px, 3.75vw, 48px); margin-bottom: 24px; }
  #menu .kicker { margin-bottom: 16px; }
  #menu .menu-tabs { margin-bottom: 24px; }
}
@media (max-width: 1200px) {
  .nav-links { gap: 12px; }
  .nav .logo { width: 185px; }
  .nav-right { gap: 7px; }
  .nav-right .social { display: none; }
}
@media (max-width: 1100px) {
  :root { --nav-height: 80px; --content-nav-height: 80px; }
  .nav-menu-toggle { display: grid; place-items: center; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--nav-bg); padding: 12px 24px 22px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 13px 0; }
  .nav-links a::after { display: none; }
  .hero-copy h1 { font-size: 16vw; }
  .hero-pizza-art { width: min(67vw, calc(100svh - var(--nav-height) - 64px), calc(1100px - var(--nav-height) - 64px)); left: 48%; }
  .hero-subtitle { white-space: normal; }
}
@media (max-width: 600px) {
  :root { --nav-height: 74px; --content-nav-height: 74px; }
  .nav, .nav.solid { padding: 13px 18px; }
  .nav .logo { width: 150px; height: auto; }
  .nav-right { gap: 6px; }
  .nav-menu-toggle { padding: 3px; order: 4; }
  .lang-toggle button { padding: 7px 8px; font-size: 10px; }
  .theme-toggle { width: 31px; height: 31px; }
  .pizza-hero { height: auto; min-height: 0; max-height: none; padding: 106px 0 108px; }
  .hero-copy { margin-left: 6%; width: 88%; padding: 0; }
  .hero-copy h1 { font-size: 28vw; line-height: 1; transform: scaleX(.86); width: 116%; }
  .hero-subtitle { margin-top: 18px; font-size: 22px; letter-spacing: -.035em; }
  .hero-actions { margin-top: 23px; gap: 28px; font-size: 14px; }
  .hero-menu-link { padding: 14px 24px; }
  .hero-pizza-art { position: relative; top: auto; left: auto; width: min(96%, 480px); margin: 36px auto 0; }
  .hero-pizza { filter: drop-shadow(-10px 14px 14px var(--pizza-shadow)); }
  .pizza-orbit text { font-size: 25px; letter-spacing: 2.2px; }
  .hero-continue { bottom: 51px; right: 6%; padding: 9px 18px; gap: 12px; font-size: 13px; }
  .hero-down { font-size: 25px; }
  .gift-panel { grid-row: 1; }
  .gift-photo { min-height: 380px; }
}
@media (max-width: 360px) {
  .nav .logo { width: 124px; }
  .nav-right { gap: 4px; }
  .nav, .nav.solid { padding-left: 12px; padding-right: 12px; }
  .hero-subtitle { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  #craft { height: 90svh; min-height: 520px; }
  #craft .sticky { position: relative; height: 100%; }
}
