/* L'Unico Pizza Warrimoo — black-led, from the logo: white line art, olive-gold wordmark,
   PIZZA green / PASTA white / GELATO red. The menu sits on a paper panel like the printed menu. */

@font-face { font-family: Tinos; src: url(/assets/fonts/tinos-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Tinos; src: url(/assets/fonts/tinos-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

/* BRAND:start — written by scripts/assets.mjs from lunico-logo-full.jpg, do not edit by hand */
:root {
  --logo-black: #100C0B;
  --logo-white: #FFFDFE;
  --logo-gold: #ADA42B;
  --logo-green: #029D59;
  --logo-red: #D74035;
}
/* BRAND:end */

:root {
  --black: var(--logo-black);
  --white: var(--logo-white);
  --gold: var(--logo-gold);
  --green: var(--logo-green);
  --red: var(--logo-red);
  /* Derived for legibility, from the sampled values: */
  --red-ink: #C23A30;           /* logo red at 90% — small red text on paper (4.7:1) */
  --gold-ink: #68621A;          /* logo gold at 60% — small gold text on paper (5.6:1) */
  --paper: #F7F4EE;             /* the printed menu's sheet */
  --muted: #C9C2BA;             /* secondary text on black (11:1) */
  --char: #1C1715;              /* raised black surface */
  --desc: #3D3430;              /* menu descriptions on paper (10.7:1) */

  --serif: Tinos, 'Times New Roman', Times, serif;
  --gutter: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left), env(safe-area-inset-right));
  --bar-h: 72px;
  --pz: min(63vmin, 40.6vw);    /* pizza size, desktop (v2 was min(90vmin, 58vw)) */
  --copy-w: min(34rem, 40vw);   /* copy column beside it */
  --pair-gap: clamp(32px, 5vw, 88px);
  /* Pizza and copy are centred as a pair; 100% resolves against the full-width scene / hero. */
  --pz-left: max(var(--gutter), calc((100% - var(--pz) - var(--pair-gap) - var(--copy-w)) / 2));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 60px); color-scheme: dark; }
@media (pointer: fine) { html { overscroll-behavior: none; } }
body {
  margin: 0; background: var(--black); color: var(--white);
  font: 400 1.125rem/1.55 var(--serif);
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; text-wrap: balance; }
p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--black); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--black); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: 12px 26px; border-radius: 2px;
  background: var(--gold); color: var(--black); border: 2px solid var(--gold);
  font: 700 1.05rem/1 var(--serif); text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
  touch-action: manipulation;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--white); border-color: var(--white); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 253, 254, .55); }
.btn--ghost:hover { background: var(--white); color: var(--black); }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.btn--big { min-height: 64px; padding: 18px 34px; font-size: clamp(1.4rem, 3.4vw, 2rem); }

/* Italian trio, used sparingly: dividers and the active menu tab. */
.tri { display: flex; width: 72px; height: 4px; }
.tri::before, .tri::after, .tri span { content: ''; flex: 1; }
.tri::before { background: var(--green); }
.tri span { background: var(--white); }
.tri::after { background: var(--red); }

/* ---------- Pizza scene (under the content) ---------- */
.scene {
  position: absolute; inset: 0 0 auto; height: 100vh; height: 100svh;
  z-index: 1; pointer-events: none; overflow: hidden;
}
.pizza {
  position: absolute; width: var(--pz); aspect-ratio: 1;
  left: var(--pz-left);
  top: calc(50% + var(--bar-h) / 2 - var(--pz) / 2);
}
.pizza__layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.pizza__toppings { position: absolute; inset: 0; }
.tp { position: absolute; left: var(--x); top: var(--y); width: var(--w); translate: -50% -50%; }
.tp img { width: 100%; height: auto; }
.tp__im { position: relative; rotate: var(--r); }
/* Contact shadow: the piece's own silhouette, darkened and softened. */
.tp__sh { position: absolute; inset: 0; rotate: var(--r); filter: brightness(0) blur(2px); opacity: .42; translate: 3% 6%; }
.glow, .pizza__floor { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; padding-top: var(--bar-h); display: flex; flex-direction: column; }
/* The header is its own fixed layer, outside the pinned hero, so no scroll position can clip it. */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20; background: var(--black);
  height: calc(var(--bar-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.bar__links { display: flex; gap: 26px; }
.bar__links a { text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; padding: 10px 0; transition: color .2s var(--ease); }
.bar__links a:hover { color: var(--gold); }
.bar__logo img { width: 150px; transition: opacity .2s var(--ease); }
.bar__logo:hover img { opacity: .8; }
.bar .btn { justify-self: end; }

.hero__copy {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 2.8vh, 30px);
  width: var(--copy-w); margin-left: calc(var(--pz-left) + var(--pz) + var(--pair-gap));
  padding-block: 16px;
}
.hero__intro h1 { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
.hero__logo img { width: clamp(150px, 23vh, 210px); }
.hero__place { font-size: clamp(1.4rem, 2.2vw, 1.9rem); text-transform: uppercase; letter-spacing: .14em; color: var(--white); }
.hero__addr { margin-top: 10px; color: var(--muted); }
.hero__addr a { text-decoration-color: var(--gold); text-underline-offset: 4px; transition: color .2s var(--ease); }
.hero__addr a:hover { color: var(--white); }

.panel { max-width: 34rem; display: grid; gap: 16px; }
.panel__title { font-size: clamp(2rem, 3.4vw, 3rem); text-transform: uppercase; letter-spacing: .04em; color: var(--gold); }
.panel__lead { font-size: 1.2rem; color: var(--white); }
.panel__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.panel__cats a {
  display: inline-block; padding: 7px 14px; border: 1px solid rgba(173, 164, 43, .6); border-radius: 2px;
  text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 700; color: var(--gold);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.panel__cats a:hover { background: var(--gold); color: var(--black); }
.panel__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
/* Scroll cue: space is always reserved (no layout shift); it only shows when the pizza build can run. */
.hero__cue {
  display: flex; align-items: center; gap: 12px; margin-top: 2px; visibility: hidden;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted);
}
.hero__cue-line { width: 28px; height: 1px; background: var(--gold); transform-origin: left; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleX(.35); } 50% { transform: scaleX(1); } }

/* ---------- Menu ---------- */
.menu { position: relative; }
.menu__intro { position: relative; padding: clamp(64px, 10vh, 120px) var(--gutter) 48px; }
.oven, .oven__scrim { display: none; }
.menu__head { position: relative; z-index: 2; max-width: 40rem; }
.menu__title { font-size: clamp(3rem, 8vw, 6.5rem); text-transform: uppercase; letter-spacing: .06em; color: var(--white); }
.menu__head .tri { margin: 18px 0 24px; }
.notes__lead { font-size: 1.3rem; font-weight: 700; color: var(--gold); }
.notes__list { margin-top: 14px; display: grid; gap: 8px; }
.notes__list li { padding-left: 22px; position: relative; color: var(--white); }
.notes__list li::before { content: ''; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--gold); }

.menu-nav { position: sticky; top: var(--bar-h); z-index: 5; max-width: 1200px; margin-inline: auto; background: rgba(16, 12, 11, .75); border-block: 1px solid rgba(173, 164, 43, .45); } /* same width as the paper, 25% see-through */
.menu-nav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gutter); justify-content: safe center; overscroll-behavior-x: contain; }
.menu-nav ul::-webkit-scrollbar { display: none; }
.menu-nav a {
  position: relative; display: block; white-space: nowrap; padding: 16px 14px; text-decoration: none;
  text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 700; color: var(--muted);
  transition: color .2s var(--ease);
}
.menu-nav a:hover, .menu-nav a[aria-current] { color: var(--white); }
.menu-nav a[aria-current]::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 3px;
  background: linear-gradient(90deg, var(--green) 0 33.3%, var(--white) 0 66.6%, var(--red) 0);
}

.paper {
  position: relative; z-index: 2; max-width: 1200px; margin: clamp(24px, 4vw, 56px) auto 0;
  background: var(--paper); color: var(--black);
  padding: clamp(40px, 6vw, 84px) clamp(28px, 6vw, 84px);
  box-shadow: inset 0 0 0 14px var(--paper), inset 0 0 0 15px var(--gold), inset 0 0 0 19px var(--paper), inset 0 0 0 20px var(--gold);
}
.cat + .cat { margin-top: clamp(48px, 7vw, 88px); }
.cat__head { display: grid; justify-items: center; gap: 10px; text-align: center; margin-bottom: 26px; }
.cat__head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); text-transform: uppercase; letter-spacing: .1em; color: var(--red); }
.cat__count { font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-ink); }
.cat__intro { max-width: 46rem; margin: 0 auto 30px; text-align: center; display: grid; gap: 6px; color: var(--desc); }
.cat__lead { font-weight: 700; color: var(--black); font-size: 1.2rem; }
.cat__extra strong { color: var(--red-ink); }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 56px; }
.item__head { display: flex; align-items: baseline; gap: 8px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; line-height: 1.25; text-wrap: pretty; }
.item__no { flex: none; min-width: 1.9em; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.item__name { min-width: 0; overflow-wrap: anywhere; color: var(--red-ink); }
.item__dots { flex: 1 1 24px; min-width: 24px; border-bottom: 2px dotted var(--gold); translate: 0 -.3em; }
.item__price { flex: none; color: var(--black); font-variant-numeric: tabular-nums; }
.item__desc { margin-top: 4px; font-size: 1rem; line-height: 1.45; color: var(--desc); }
.cat[id="pizza"] .item__desc { padding-left: calc(1.9em + 8px); }
.cat--compact .items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 40px; }
.cat--compact .item__head { font-size: .98rem; }

/* ---------- Visit ---------- */
.visit {
  position: relative; z-index: 2; background: var(--black);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px);
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.visit__call h2 { font-size: clamp(2.6rem, 6vw, 5rem); text-transform: uppercase; letter-spacing: .05em; color: var(--white); }
.visit__call .tri { margin: 22px 0 0; }
.visit__call p { margin: 18px 0 30px; font-size: 1.25rem; color: var(--muted); }
.visit__find h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: 10px; }
.visit__find h3:not(:first-child) { margin-top: 32px; }
.addr { font-size: 1.4rem; line-height: 1.35; }
.addr a, .local__addr a, .foot a { text-decoration-color: var(--gold); text-underline-offset: 4px; transition: color .2s var(--ease); }
.addr a:hover, .local__addr a:hover { color: var(--gold); }
.dining { display: grid; gap: 6px; color: var(--muted); }

.map { position: relative; margin-top: 22px; aspect-ratio: 16 / 10; background: var(--black); border: 1px solid rgba(173, 164, 43, .5); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Local ---------- */
.local {
  position: relative; z-index: 2; background: var(--char);
  display: grid; grid-template-columns: 5fr 6fr; grid-template-areas: 'text big' 'towns towns'; gap: clamp(28px, 4vw, 56px);
  padding: clamp(72px, 10vw, 140px) var(--gutter);
}
.local__text { grid-area: text; display: grid; align-content: center; gap: 16px; max-width: 34rem; }
.local__text h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); text-transform: uppercase; letter-spacing: .05em; color: var(--gold); }
.local__addr { font-weight: 700; }
.local__big { grid-area: big; margin: 0; overflow: hidden; border: 1px solid rgba(173, 164, 43, .5); }
.local__big img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.local__towns { grid-area: towns; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 32px); }
.local__towns li { position: relative; overflow: hidden; border: 1px solid rgba(173, 164, 43, .5); }
.local__towns img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.local__towns span {
  position: absolute; left: 0; bottom: 0; padding: 8px 14px; background: var(--black); color: var(--white);
  text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .95rem;
}

/* ---------- Footer ---------- */
.foot { position: relative; z-index: 2; background: var(--black); padding: clamp(64px, 9vw, 120px) var(--gutter) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(173, 164, 43, .45); }
.foot__brand { display: grid; justify-items: center; margin-bottom: clamp(40px, 6vw, 72px); }
.foot__brand img { width: 240px; }
.foot__grid { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 36px; color: var(--muted); }
.foot__grid > div { display: grid; align-content: start; gap: 12px; }
.foot__name { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .1em; color: var(--white); }
.foot a:hover { color: var(--white); }
.social { display: grid; gap: 4px; }
.social__link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-weight: 700; min-height: 44px; }
.social__link svg { color: var(--gold); flex: none; }
.social__link:hover span { text-decoration: underline; text-decoration-color: var(--gold); }
.foot__small { font-size: .9rem; }
.credits a { color: var(--muted); }
.yeti { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); min-height: 44px; }
.yeti:hover span { text-decoration: underline; text-decoration-color: var(--gold); }
.yeti img { width: 24px; height: 24px; border-radius: 50%; }

/* ---------- Stacked layout: phones, portrait tablets ---------- */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  /* Pizza stacked above the copy, inside the screen edges (v2 was min(104vw, 62svh)). */
  :root { --bar-h: 60px; --pz: min(73vw, 43.4svh); --pz-top: 8px; }
  .bar__logo img { width: 84px; }
  .bar .btn { white-space: nowrap; padding-inline: 14px; }
  .hide-sm { display: none; }
  .scene { height: calc(var(--bar-h) + var(--pz-top) + var(--pz)); }
  .pizza { left: calc(50% - var(--pz) / 2); top: calc(var(--bar-h) + var(--pz-top)); }
  .hero__copy { flex: none; width: auto; margin: calc(var(--pz-top) + var(--pz) + 14px) 0 0; padding: 0 var(--gutter) 20px; justify-content: flex-start; gap: 10px; }
  .hero__intro h1 { gap: 6px; }
  .hero__logo img { width: min(230px, 58vw); }
  .hero__place { font-size: 1.1rem; }
  .hero__addr { margin-top: 4px; font-size: 1rem; }
  .panel { gap: 10px; max-width: none; }
  .panel__title { font-size: clamp(1.5rem, 6.6vw, 2.2rem); }
  .panel__lead { font-size: 1.02rem; line-height: 1.45; }
  .panel__cats { gap: 6px; }
  .panel__cats a { padding: 5px 9px; font-size: .74rem; letter-spacing: .06em; }
  .panel__actions { flex-wrap: nowrap; gap: 10px; }
  .panel__actions .btn { flex: 1 1 0; min-height: 46px; padding-inline: 8px; font-size: .86rem; letter-spacing: .06em; }
}

@media (max-width: 900px) {
  .items, .cat--compact .items { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; }
  .local { grid-template-columns: 1fr; grid-template-areas: 'text' 'big' 'towns'; }
  .foot__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .menu-nav { margin-inline: 8px; }
  .paper { margin-inline: 8px; padding: 40px 24px; box-shadow: inset 0 0 0 8px var(--paper), inset 0 0 0 9px var(--gold), inset 0 0 0 12px var(--paper), inset 0 0 0 13px var(--gold); }
  .local__towns { grid-template-columns: 1fr 1fr; }
  .local__towns li:first-child { grid-column: 1 / -1; }
  .item__head { font-size: 1rem; }
  .map { aspect-ratio: auto; height: 320px; }
}

/* ---------- Motion mode (main.js adds .js-motion when motion is allowed) ---------- */
.js-motion .scene { position: fixed; height: 100vh; }
.js-motion .tp__im { rotate: none; } /* GSAP owns the rotation, so the fall stays vertical */
.js-motion .scene.is-live .pizza,
.js-motion .scene.is-live .tp__im,
.js-motion .scene.is-live .tp__sh { will-change: transform, opacity; }
.js-motion .hero__cue { visibility: visible; }

/* FEATURE B ---------- the oven ----------
   Static / reduced motion: a dimmed oven behind the menu intro only.
   Motion: a fixed layer far behind everything; the menu intro leaves a screen of room for the pizza's trip. */
.feature-b .oven { display: block; position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: .6; }
.feature-b .oven img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 57%; }
.feature-b .oven__scrim {
  display: block; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(16, 12, 11, .85), rgba(16, 12, 11, .45) 75%),
    linear-gradient(to bottom, var(--black), rgba(16, 12, 11, 0) 22%, rgba(16, 12, 11, 0) 70%, var(--black));
}
.js-motion .feature-b .oven { position: fixed; opacity: 0; visibility: hidden; }
.js-motion .feature-b .menu__intro { padding-top: 16px; } /* the menu follows the hero copy closely */
.js-motion .feature-b .oven::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 57%, rgba(16, 12, 11, .15), rgba(16, 12, 11, .8) 72%),
    linear-gradient(90deg, rgba(16, 12, 11, .6), rgba(16, 12, 11, 0) 60%);
}
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  /* On a phone the mouth fills the width behind the text, so dim it more. */
  .js-motion .feature-b .oven::after {
    background:
      radial-gradient(ellipse 70% 40% at 50% 57%, rgba(16, 12, 11, .35), rgba(16, 12, 11, .8) 80%),
      linear-gradient(to bottom, rgba(16, 12, 11, .2), rgba(16, 12, 11, .45));
  }
}
.js-motion .feature-b .oven__scrim { display: none; }
/* The pizza tilts back in 3D to lie on the oven floor; the scene is its perspective parent. */
.js-motion .feature-b .scene { perspective: 1100px; }
.js-motion .feature-b .pizza__floor {
  display: block; position: absolute; inset: -8%; border-radius: 50%; opacity: 0; translate: 0 9%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .8), rgba(0, 0, 0, .45) 72%, rgba(0, 0, 0, 0));
}
.js-motion .feature-b .glow {
  display: block; position: absolute; width: 44vmin; aspect-ratio: 1; left: 50%; top: 54%; translate: -50% -50%;
  border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(255, 196, 110, .9), rgba(255, 128, 40, .35) 42%, rgba(255, 128, 40, 0) 70%);
}
/* /FEATURE B */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
}
