/* Pizzeria Hawaii – pizzeriahawaii.se
   Logotypens svart och orange på vitt, ananasgult för läget "öppet".
   Bungee (skyltsnitt) bär pizzanumren och telefonnumret; Zilla Slab bär texten. */

@font-face { font-family: "Bungee"; src: url("/assets/bungee.126eec706b.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("/assets/zilla-400.ab2607313b.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("/assets/zilla-400i.1285db8034.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("/assets/zilla-600.fd78ed9406.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("/assets/zilla-700.896b6ebb8c.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #ffffff;
  --ink: #000000;
  --ink-2: #3d3a38;      /* ingredienser, sekundär text: 10.9:1 på vitt */
  --hawaii: #e84812;     /* logotypens orange: stora siffror och ytor */
  --hawaii-deep: #b33307;/* orange för liten text på vitt: 5.9:1 */
  --pineapple: #ffd43b;  /* öppet-markering, markering vid sökning */
  --snow: #f1f3f4;       /* kall ljusgrå yta */
  --rule: #d9d6d3;

  --display: "Bungee", "Arial Black", Impact, sans-serif;
  --text: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;

  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.5rem;
  --step-2: 2rem;
  --step-3: clamp(2.25rem, 5.2vw, 3.6rem);
  --step-4: min(12vw, 5.4rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--text);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgb(232 72 18 / 0.18);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, table, address { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
address { font-style: normal; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--hawaii-deep); }
::selection { background: var(--pineapple); color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--pineapple); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: 0.6rem 1rem; background: var(--ink); color: var(--paper); font-weight: 600; }
.skip:focus { top: 1rem; color: var(--paper); }

/* ---------- Knappar ---------- */
.call {
  display: inline-flex; align-items: baseline; gap: 0.45em;
  padding: 0.7rem 1.1rem 0.6rem;
  background: var(--ink); color: var(--paper);
  font: 400 1rem/1 var(--display);
  text-decoration: none; white-space: nowrap;
  border-radius: 999px;
  touch-action: manipulation;
}
.call-label { font: 600 1.05rem/1 var(--text); }
.call:hover { background: var(--hawaii); color: var(--ink); }
.btn {
  display: inline-block; padding: 0.75rem 1.4rem;
  background: var(--hawaii); color: var(--ink);
  font-weight: 700; text-decoration: none; border-radius: 999px;
  touch-action: manipulation;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.textlink { font-weight: 600; }
.linkish { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

/* ---------- Sidhuvud ---------- */
.top { border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; gap: 1rem; min-height: 4.75rem; padding-block: 0.4rem; }
.top-logo { flex: none; display: block; }
.logo { width: 128px; height: auto; }
.status { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 1rem; }
.status-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--rule); box-shadow: 0 0 0 2px var(--ink) inset; }
.status.is-open .status-dot { background: var(--pineapple); }
.call--top { margin-left: auto; }
.status:not([hidden]) + .call--top { margin-left: 0; }

/* ---------- Hjälte ---------- */
.hero { overflow: hidden; overflow: clip; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); align-items: center; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.hero h1 {
  font: 400 var(--step-3)/1.02 var(--display);
  letter-spacing: -0.01em;
  max-width: 13ch;
  text-wrap: balance;
}
.lead { margin-top: 1.25rem; font-size: 1.3rem; line-height: 1.5; max-width: 34em; color: var(--ink-2); text-wrap: pretty; }
.hero-call { margin-top: 2.25rem; }
.hero-call-label { font-weight: 600; font-size: var(--step-0); }
.bignum {
  display: inline-block;
  font: 400 var(--step-4)/0.95 var(--display);
  color: var(--hawaii);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-top: 0.15rem;
  touch-action: manipulation;
}
.bignum:hover { color: var(--ink); }
.hero-hours { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; margin-top: 1.25rem; }
.hero-hours div { display: flex; gap: 0.6rem; }
.hero-hours dt { font-weight: 600; }
.hero-hours dd { font-variant-numeric: tabular-nums; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2rem; }

.hero-pic { position: relative; justify-self: end; width: 100%; }
.hero-pic picture { display: block; width: min(40vw, 36rem); aspect-ratio: 1; margin-right: calc(-1 * var(--gutter) - 6vw); }
.round { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: clamp(8px, 1vw, 14px) solid var(--hawaii); }

/* ---------- Meny ---------- */
.menu { border-top: 6px solid var(--ink); padding-top: clamp(2.5rem, 5vw, 4rem); }
.menu-intro { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 0.5rem 2rem; }
.menu-intro h2 { font: 400 clamp(3rem, 9vw, 6rem)/0.9 var(--display); color: var(--hawaii); }
.menu-intro p { max-width: 30em; padding-bottom: 0.35rem; color: var(--ink-2); }

.search { margin-top: 2rem; max-width: 36rem; }
.search label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.search-row { display: flex; gap: 0.5rem; }
.search input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 1.125rem;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--ink); border-radius: 0.6rem;
  background: var(--paper); color: var(--ink);
}
.search input::placeholder { color: #6b6764; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus-visible { outline: 3px solid var(--hawaii); outline-offset: 1px; box-shadow: none; }
.search-clear { font: inherit; font-weight: 600; padding: 0 1rem; border: 2px solid var(--ink); border-radius: 0.6rem; background: var(--snow); color: var(--ink); cursor: pointer; touch-action: manipulation; }
.search-clear:hover { background: var(--pineapple); }
.search-status { min-height: 1.5em; margin-top: 0.4rem; font-size: 1rem; color: var(--ink-2); }

.cats { position: sticky; top: 0; z-index: 20; margin-top: 1.25rem; background: var(--paper); border-block: 1px solid var(--rule); }
.cats ul { display: flex; gap: 0.25rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-block: 0.55rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.cats ul::-webkit-scrollbar { display: none; }
.cats a {
  display: block; padding: 0.4rem 0.85rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; white-space: nowrap; text-decoration: none;
  touch-action: manipulation;
}
.cats a:hover { background: var(--snow); color: var(--ink); }
.cats a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.cats li.is-empty a { color: #8a8682; }

.menu-body { padding-bottom: clamp(3rem, 6vw, 5rem); }
.cat { padding-top: clamp(2.25rem, 4vw, 3.25rem); }
.cat[hidden] { display: none; }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.25rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--ink); }
.cat-head h3 { font: 700 var(--step-2)/1.1 var(--text); letter-spacing: -0.01em; }
.cat-note { font-style: italic; color: var(--ink-2); }

.dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4.5rem); }
.dish {
  display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 0.75rem;
  padding-block: 0.85rem; border-bottom: 1px solid var(--rule);
  align-content: start;
}
.dish--plain { grid-template-columns: minmax(0, 1fr); }
.dish[hidden] { display: none; }
.dish-no {
  grid-row: span 2;
  font: 400 1.75rem/1 var(--display);
  color: var(--hawaii);
  font-variant-numeric: tabular-nums;
  padding-top: 0.12rem;
}
.dish-head { display: flex; align-items: baseline; gap: 0.5rem; }
.dish-name { font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.dish-lead { flex: 1; min-width: 1rem; border-bottom: 2px dotted #b9b5b1; transform: translateY(-0.3em); }
.dish-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish-desc { color: var(--ink-2); font-size: 1.05rem; line-height: 1.45; margin-top: 0.15rem; }
.dish-desc::first-letter { text-transform: uppercase; }
mark { background: var(--pineapple); color: inherit; padding: 0 0.05em; border-radius: 2px; }

.family { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4.5rem); }
.family-row { display: flex; align-items: baseline; gap: 0.5rem; padding-block: 0.8rem; border-bottom: 1px solid var(--rule); }
.family-row[hidden] { display: none; }
.family-range { font: 400 1.2rem/1.2 var(--display); color: var(--hawaii); }

.burgers { margin-top: 1.25rem; max-width: 34rem; }
.burgers[hidden] { display: none; }
.burgers table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.burgers caption { text-align: left; font-weight: 700; font-size: 1.2rem; padding-bottom: 0.4rem; }
.burgers th, .burgers td { padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--rule); text-align: right; }
.burgers th:first-child { text-align: left; padding-left: 0; }
.burgers thead th { font-weight: 600; color: var(--ink-2); font-size: 1rem; }
.burgers tbody th { font-weight: 700; }
.burgers td { font-weight: 700; }

.menu-empty { margin-top: 2.5rem; font-size: 1.25rem; max-width: 34em; }

/* ---------- Allergi ---------- */
.allergy { position: relative; background: #1d1a17; color: var(--paper); overflow: hidden; overflow: clip; }
.allergy-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.allergy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / 0.82) 0%, rgb(0 0 0 / 0.55) 45%, rgb(0 0 0 / 0) 75%); }
.allergy-in { position: relative; z-index: 1; padding-block: clamp(3.5rem, 9vw, 7rem); }
.allergy h2 { font: 400 var(--step-3)/1.02 var(--display); max-width: 11ch; }
.allergy p { margin-top: 0.75rem; font-size: 1.3rem; max-width: 22em; }
.call--light { margin-top: 1.5rem; background: var(--hawaii); color: var(--ink); }
.call--light:hover { background: var(--paper); color: var(--ink); }

/* ---------- Hitta hit ---------- */
.visit { padding-block: clamp(3rem, 6vw, 5rem); background: var(--snow); }
.visit h2 { font: 400 var(--step-3)/1 var(--display); }
.visit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(2rem, 4vw, 4rem); margin-top: 2rem; }
.visit h3 { font: 700 var(--step-1)/1.2 var(--text); padding-bottom: 0.5rem; margin-bottom: 0.75rem; border-bottom: 2px solid var(--ink); }
.visit address + p { margin-top: 0.75rem; }
.hours { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 0.4rem 0; text-align: left; border-bottom: 1px solid var(--rule); }
.hours th { font-weight: 400; }
.hours td { text-align: right; font-weight: 600; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.hours tr.is-today th::after { content: " (i dag)"; font-weight: 400; color: var(--ink-2); }
.note { margin-top: 0.75rem; font-size: 1rem; color: var(--ink-2); }
.phone-line { font: 400 1.6rem/1.2 var(--display); color: var(--hawaii-deep); text-decoration: none; }
.phone-line:hover { color: var(--ink); }
.social { margin-top: 1rem; display: flex; gap: 1.25rem; font-weight: 600; }

/* ---------- Sidfot ---------- */
.foot { border-top: 6px solid var(--hawaii); padding-block: 2rem 2.5rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.foot-logo { width: 110px; height: auto; }
.foot-addr { font-size: 1rem; }
.foot-copy { margin-left: auto; font-size: 1rem; color: var(--ink-2); }

.callbar { display: none; }

/* ---------- 404 ---------- */
.nf-main { padding-block: clamp(3rem, 8vw, 6rem); min-height: 60vh; }
.nf-code { font: 400 clamp(5rem, 22vw, 14rem)/0.85 var(--display); color: var(--hawaii); }
.nf h1 { margin-top: 1.25rem; font: 700 var(--step-3)/1.05 var(--text); }

@media (min-width: 900px) { :root { --step-4: clamp(3rem, 6.6vw, 5.4rem); } }

/* ---------- Mindre skärmar ---------- */
@media (max-width: 899px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 0; }
  .hero-pic { justify-self: end; margin-top: 2rem; }
  .hero-pic picture { width: 82vw; margin-left: auto; margin-right: calc(-1 * var(--gutter) - 18vw); margin-bottom: -12vw; }
  .dishes, .family { grid-template-columns: minmax(0, 1fr); }
  .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-copy { margin-left: 0; }
}
@media (max-width: 640px) {
  :root { --step-0: 1.0625rem; }
  .logo { width: 104px; }
  .call--top { display: none; }
  .status { font-size: 0.95rem; }
  .lead { font-size: 1.15rem; }
  .menu-intro { grid-template-columns: minmax(0, 1fr); }
  .dish:not(.dish--plain) { grid-template-columns: 2.9rem minmax(0, 1fr); column-gap: 0.6rem; }
  .dish-no { font-size: 1.45rem; }
  .callbar {
    display: block; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 0.96); border-top: 1px solid var(--rule);
  }
  .call--bar { display: flex; justify-content: center; width: 100%; padding-block: 0.95rem 0.85rem; font-size: 1.15rem; background: var(--hawaii); color: var(--ink); }
  .call--bar .call-label { font-size: 1.2rem; }
  body { padding-bottom: 5rem; }
  .allergy::after { background: linear-gradient(0deg, rgb(0 0 0 / 0.85) 0%, rgb(0 0 0 / 0.6) 60%, rgb(0 0 0 / 0.35) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .callbar, .cats, .search, .top .call, .allergy { display: none !important; }
}
