/* ==========================================================
   PIZZERIA UUNI - wood-oven pizzeria, Vallila
   World: the mosaic-tiled dome oven. Cobalt and night-blue glass tiles,
   gold tile lettering, grout lines as the grid, flour white for reading.
   Fire gold means "open / available now"; tomato red is for actions.
   ========================================================== */
:root {
  --night: #0F1A2E;
  --night-2: #142340;
  --cobalt: #1D3B6E;
  --gold: #E8B04A;
  --gold-2: #F3C76A;
  --flour: #F3EEE4;
  --flour-2: #E8E0D1;
  --grout: #2A2A2A;
  --tomato: #C2412B;
  --tomato-2: #D44B33;
  --ink: #17161A;
  --ink-2: #4D4A50;
  --on-night: #EDE8DD;
  --on-night-2: #B6BFD0;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --ring: var(--gold);
  color-scheme: dark;
}

html[data-lang="fi"] body [lang="en"],
html[data-lang="en"] body [lang="fi"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 68px; }
body {
  margin: 0; background: var(--night); color: var(--on-night);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  caret-color: var(--gold); scrollbar-color: var(--gold) var(--night);
}
::selection { background: var(--gold); color: var(--night); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; }
svg { width: 1em; height: 1em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--gold); color: var(--night); padding: 10px 16px; border-radius: 3px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 3px;
  font-weight: 700; font-size: 1.0625rem; text-decoration: none; border: 0;
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn svg { width: 20px; height: 20px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--tomato { background: var(--tomato); color: #fff; }
.btn--tomato:hover { background: var(--tomato-2); }
.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold:hover { background: var(--gold-2); }
.btn--line { background: transparent; color: var(--on-night); box-shadow: inset 0 0 0 2px var(--on-night-2); }
.btn--line:hover { box-shadow: inset 0 0 0 2px var(--on-night); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  background: rgba(15, 26, 46, 0.96); border-bottom: 1px solid rgba(232, 176, 74, 0.2);
}
.top__brand { font-family: var(--display); font-weight: 800; font-size: 1.375rem; text-decoration: none; margin-right: auto; font-stretch: 85%; }
.top__nav { display: flex; gap: 24px; }
.top__nav a { text-decoration: none; font-weight: 600; color: var(--on-night-2); transition: color 0.3s var(--ease); }
.top__nav a:hover { color: var(--on-night); text-decoration: underline; }
.lang { display: inline-flex; padding: 3px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(182, 191, 208, 0.4); }
.lang button { border: 0; background: transparent; cursor: pointer; min-width: 38px; height: 32px; border-radius: 2px; font-weight: 700; font-size: 0.8125rem; color: var(--on-night-2); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.lang button:hover { color: var(--on-night); }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--night); }
.top__order { min-height: 42px; padding: 8px 18px; font-size: 1rem; }

/* ---------- the oven ---------- */
.oven { padding: clamp(18px, 2.4vw, 32px) var(--gutter) 0; }
.dome {
  position: relative; width: min(100%, 1180px); margin: 0 auto;
  aspect-ratio: 2.05 / 1; max-height: calc(100dvh - 300px); min-height: 300px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0; overflow: hidden;
  background: var(--cobalt);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.dome__tiles { position: absolute; inset: 0; width: 100%; height: 100%; }
.mouth {
  position: absolute; left: 50%; bottom: 0; width: 44%; height: 47%; margin: 0; transform: translateX(-50%);
  border-radius: 50% 50% 0 0 / 70% 70% 0 0; overflow: hidden; background: #120B07;
  box-shadow: inset 0 0 0 6px #120B07;
}
.mouth img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.mouth::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 18px 30px rgba(10, 6, 4, 0.7); pointer-events: none; }

.ledge {
  position: relative; width: min(100%, 1240px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 18px 40px; align-items: end;
  padding: clamp(18px, 2.4vw, 30px) clamp(18px, 3vw, 40px) clamp(22px, 3vw, 36px);
  background: var(--flour); color: var(--ink);
  box-shadow: 0 -6px 0 var(--grout), 0 24px 40px -24px rgba(0, 0, 0, 0.7);
  --ring: var(--tomato);
}
.ledge h1 { font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.6rem); font-stretch: 80%; letter-spacing: -0.03em; }
.ledge__copy p { margin-top: 10px; max-width: 54ch; color: var(--ink-2); font-size: 1.0625rem; }
.ledge__act { display: grid; justify-items: end; gap: 12px; }
.ledge__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.ledge .btn--line { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.ledge .btn--line:hover { background: rgba(0, 0, 0, 0.05); }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9375rem; padding: 6px 12px; border-radius: 2px; background: var(--flour-2); }
.status__dot { width: 10px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 2px currentColor; }
.status.is-open { background: var(--gold); color: var(--night); }
.status.is-open .status__dot { background: var(--night); box-shadow: none; }

.tileband { height: 34px; background: url("tiles.svg") 0 0 / 136px 34px repeat-x; }

/* ---------- menu ---------- */
.menu {
  background: var(--flour); color: var(--ink); --ring: var(--tomato);
  padding: clamp(64px, 8vw, 120px) var(--gutter);
  background-image: linear-gradient(rgba(42, 42, 42, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(42, 42, 42, 0.07) 1px, transparent 1px);
  background-size: 34px 34px; background-position: -1px -1px;
}
.menu__head, .menu__cols { max-width: var(--max); margin: 0 auto; }
.menu__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.menu h2 { font-weight: 800; font-size: clamp(3rem, 8vw, 6rem); font-stretch: 75%; color: var(--cobalt); line-height: 0.85; }
.menu__head p { max-width: 46ch; color: var(--ink-2); }
.menu__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); margin-top: clamp(32px, 4vw, 56px); }
.menu h3 { font-weight: 700; font-size: 1.3rem; font-stretch: 90%; padding-bottom: 12px; border-bottom: 3px solid var(--grout); }
.pizzas { list-style: none; margin: 0; padding: 0; }
.pizzas li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 16px; row-gap: 2px; padding: 16px 0; border-bottom: 1px solid rgba(42, 42, 42, 0.18); }
.no {
  grid-row: 1 / span 2; width: 44px; height: 44px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.375rem; color: var(--night); background: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12), inset 0 -4px 0 rgba(0, 0, 0, 0.1);
}
.name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; font-stretch: 85%; line-height: 1.1; }
.name em { font-family: var(--sans); font-style: normal; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; color: #2E6B3A; vertical-align: 0.3em; margin-left: 4px; }
.eur { font-family: var(--display); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.desc { grid-column: 2 / -1; color: var(--ink-2); }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.extras p { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(42, 42, 42, 0.18); }
.extras b { font-variant-numeric: tabular-nums; }

/* ---------- fire story ---------- */
.fire {
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: clamp(72px, 9vw, 140px) var(--gutter);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); align-items: start;
}
.fire figure { margin: 0; }
.fire img { width: 100%; object-fit: cover; }
.fire__a { grid-column: 1 / span 4; grid-row: 1 / span 2; }
.fire__a img { aspect-ratio: 3 / 4; }
.fire__text { grid-column: 6 / span 7; align-self: end; }
.fire h2 { font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.4rem); font-stretch: 80%; color: var(--gold); }
.fire p { margin-top: 18px; color: var(--on-night-2); max-width: 54ch; font-size: 1.125rem; }
.fire__b { grid-column: 6 / span 4; }
.fire__b img { aspect-ratio: 4 / 3; }
.fire__c { grid-column: 10 / span 3; margin-top: clamp(0px, 6vw, 90px) !important; }
.fire__c img { aspect-ratio: 3 / 4; }

/* ---------- order ---------- */
.order { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 110px) var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 40px); }
.order__card { padding: clamp(28px, 4vw, 52px); background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(232, 176, 74, 0.25); }
.order h2 { font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.4rem); font-stretch: 80%; }
.order p { margin-top: 14px; color: var(--on-night-2); max-width: 46ch; }
.order__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- wine ---------- */
.wine { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); background: var(--flour); color: var(--ink); --ring: var(--tomato); }
.wine__in { padding: clamp(56px, 7vw, 110px) clamp(24px, 5vw, 80px); align-self: center; max-width: 720px; justify-self: end; width: 100%; }
.wine h2 { font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.2rem); font-stretch: 80%; color: var(--cobalt); }
.wine__lead { margin-top: 14px; color: var(--ink-2); }
.wine__list { list-style: none; margin: 26px 0 0; padding: 0; border-top: 3px solid var(--grout); }
.wine__list li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(42, 42, 42, 0.18); }
.wine__list b { font-variant-numeric: tabular-nums; }
.wine__note { margin-top: 12px; font-size: 0.9375rem; color: var(--ink-2); }
.wine__img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }

/* ---------- where ---------- */
.where { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 110px) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.where h2 { font-weight: 800; font-size: clamp(2.4rem, 5vw, 4rem); font-stretch: 80%; }
.where p { margin-top: 14px; color: var(--on-night-2); }
.hours { width: 100%; border-collapse: collapse; margin-top: 22px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 11px 0; border-top: 1px solid rgba(182, 191, 208, 0.25); font-weight: 500; text-align: left; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--gold); font-weight: 700; }
.where__note { font-size: 0.9375rem; }
.where__map { width: 100%; height: 380px; border: 0; filter: grayscale(0.3) brightness(0.9); }

.foot { color: var(--on-night-2); }
.foot__in { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 28px; }
.foot__name { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 10vw, 8rem); font-stretch: 75%; line-height: 0.85; color: var(--gold); margin-bottom: 18px; }
.foot a { color: var(--on-night); }
.foot__demo { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(182, 191, 208, 0.2); font-size: 0.875rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .top__nav { display: none; }
  .menu__cols, .order, .wine, .where { grid-template-columns: 1fr; }
  .wine__in { justify-self: start; }
  .fire { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fire__a { grid-column: 1 / span 3; grid-row: auto; }
  .fire__text { grid-column: 1 / -1; grid-row: 1; }
  .fire__b { grid-column: 4 / span 3; }
  .fire__c { display: none; }
  .ledge { grid-template-columns: 1fr; }
  .ledge__act { justify-items: start; }
  .ledge__btns { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .top { gap: 10px; }
  .top__brand { font-size: 1.125rem; }
  .dome { aspect-ratio: 1.15 / 1; max-height: none; border-radius: 50% 50% 0 0 / 60% 60% 0 0; }
  .mouth { width: 70%; height: 46%; }
  .extras { grid-template-columns: 1fr; }
  .pizzas li { grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 12px; }
  .no { width: 40px; height: 40px; }
}

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