/* Archivo, subset to Latin + Turkish. One file carries both axes: wdth 62–125 and wght 100–900. */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --base: #0e0d0c;
  --raise: #1a1816;
  --text: #f6f2ea;
  --muted: #a8a29a;
  --line: #2a2826;
  --accent: #f26a1b;
  --hot: #d7261e;
  --radius: 22px;
  --gutter: 16px;
  --max: 1120px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
}

/* No slanted type anywhere: emphasis is shown with weight or colour. */
em,
i,
cite,
address,
dfn,
var {
  font-style: normal;
}

h1,
h2,
h3 {
  margin: 0;
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--base);
  font-weight: 700;
  border-radius: 12px;
}

.skip:focus {
  top: var(--gutter);
}

.sprite {
  position: absolute;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-accent {
  background: var(--accent);
  color: var(--base);
}

.btn-ghost {
  border: 2px solid var(--text);
  color: var(--text);
}

.btn-small {
  min-height: 44px;
  padding: 0 clamp(12px, 3.5vw, 16px);
  font-size: 1rem;
}

@media (hover: hover) {
  .btn-accent:hover {
    background: #ff7d2e;
  }
  .btn-ghost:hover {
    background: var(--text);
    color: var(--base);
  }
  .link:hover {
    text-decoration-color: var(--accent);
  }
}

.link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--muted);
  transition: text-decoration-color 160ms ease;
}

.link-big {
  font-size: 1.375rem;
}

/* ---------- Header ---------- */

.bar {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: var(--max);
  margin: 10px var(--gutter) 0;
  padding: 6px 6px 6px clamp(12px, 4vw, 18px);
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 999px;
}

@media (min-width: 1152px) {
  .bar {
    margin-inline: auto;
  }
}

.bar-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.bar-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 clamp(6px, 2vw, 14px);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  white-space: nowrap;
  /* "kaart" reads "Kaart" when the "Menu" part is hidden on phones. */
  text-transform: capitalize;
  transition: text-decoration-color 160ms ease;
}

/* Phones: "Menukaart" does not fit beside the logo and "Bel ons"; show "Kaart". */
@media (max-width: 479px) {
  .bar-link-pre {
    display: none;
  }
}

/* Phones: brand, "Kaart" and "Bel ons" must share one row down to 320px. */
@media (max-width: 399px) {
  .bar .btn svg {
    display: none;
  }
  .bar .brand-name {
    font-stretch: 112%;
  }
}

.bar-link[aria-current="page"] {
  text-decoration-color: var(--accent);
}

@media (hover: hover) {
  .bar-link:hover {
    text-decoration-color: var(--accent);
  }
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}

.brand-name {
  font-stretch: 125%;
  font-weight: 850;
  font-size: clamp(0.9375rem, 4.6vw, 1.125rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
}

.hero-text {
  position: relative;
  /* Room for the balloon above the headline on phones, where line 1 fills the width. */
  padding-top: 52px;
}

.hero h1 {
  max-width: 13ch;
  /* "Voorbeeldstad." must fit on one line down to a 320px phone. */
  font-size: clamp(1.75rem, 8.4vw, 3.75rem);
  overflow-wrap: break-word;
}

.lede {
  margin-top: 14px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.125rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
}

.badge svg {
  color: var(--accent);
}

.hero-photo img {
  width: 100%;
  border-radius: var(--radius);
}

.balloon {
  color: var(--accent);
}

.balloon-hero {
  position: absolute;
  right: 0;
  top: 0;
  width: 34px;
  height: 47px;
}

@media (min-width: 560px) {
  .actions .btn {
    flex: 0 0 auto;
  }
}

@media (max-width: 559px) {
  .actions .btn {
    flex: 1 1 100%;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 72px;
  }
  .hero h1 {
    max-width: 16ch;
    font-size: clamp(2.5rem, 4.2vw, 3.4rem);
  }
  .hero-text {
    padding-top: 0;
  }
  .balloon-hero {
    right: 4%;
    top: -64px;
    width: 44px;
    height: 60px;
  }
}

/* ---------- Marquee ---------- */

/* Clips the band's sides. Without it the band widens a phone's layout viewport and the page zooms out. */
.marquee-wrap {
  overflow-x: clip;
}

.marquee {
  overflow: hidden;
  /* Wider than the viewport so the tilted corners never show a gap; .marquee-wrap clips the excess. */
  margin: 8px -24px 24px;
  padding: 14px 0;
  background: var(--accent);
  color: var(--base);
  transform: rotate(-2deg);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marquee li {
  padding: 0 0.6em;
  font-stretch: 125%;
  font-weight: 850;
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee li::after {
  content: "•";
  margin-left: 1.2em;
  color: var(--hot);
}

/* ---------- Sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter);
  scroll-margin-top: 80px;
}

.section h2 {
  font-size: clamp(2rem, 8vw, 3.75rem);
}

.section-head {
  display: grid;
  gap: 10px;
}

.section-head p {
  color: var(--muted);
}

/* Find us: label left, value right, hairline between rows */

.rows {
  margin-top: 28px;
  border-bottom: 1px solid var(--line);
}

.row {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.row h3 {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.today {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 700;
}

.state {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.9375rem;
  background: var(--line);
}

.state.is-open {
  background: var(--accent);
  color: var(--base);
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.hours th,
.hours td {
  padding: 4px 0;
  text-align: left;
  vertical-align: top;
}

.hours th {
  width: 7.5em;
  font-weight: 600;
}

.hours td {
  color: var(--muted);
}

.hours .is-today th,
.hours .is-today td {
  color: var(--accent);
  font-weight: 700;
}

@media (min-width: 720px) {
  .row {
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 22px 0;
  }
  .row h3 {
    padding-top: 4px;
  }
}

/* Favourites */

.menu-photo img {
  width: 100%;
  margin-top: 28px;
  border-radius: var(--radius);
}

.groups {
  display: grid;
  gap: 28px 40px;
  margin-top: 36px;
}

.group h3 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  font-size: 1.5rem;
}

.group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.group li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.price {
  flex: none;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.note {
  margin-top: 28px;
  color: var(--muted);
}

@media (min-width: 860px) {
  .menu-photo img {
    aspect-ratio: 16 / 7;
    object-fit: cover;
  }
}

@media (min-width: 640px) {
  .groups {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .groups {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Order */

.cards {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.card {
  display: grid;
  /* Text row takes the slack, so the buttons line up across cards of one row. */
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raise);
}

.card h3 {
  font-size: 1.5rem;
}

.card p {
  color: var(--muted);
}

.card .btn {
  margin-top: 8px;
}

.card-main {
  border-color: var(--accent);
}

@media (min-width: 860px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Reviews */

.scores {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.scores a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.score {
  font-stretch: 125%;
  font-weight: 850;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
}

.of {
  color: var(--muted);
  font-weight: 600;
}

.where {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

@media (min-width: 860px) {
  .scores {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Visit + Instagram */

.visit,
.insta {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.visit .btn {
  margin-top: 10px;
}

.insta p {
  color: var(--muted);
}

/* Footer */

.footer {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 40px var(--gutter) max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-cols {
  display: grid;
  gap: 22px;
}

.footer .brand-name {
  color: var(--text);
}

.footer address a {
  color: var(--text);
}

.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 28px;
  font-size: 0.8125rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms var(--ease-out);
}

.pill:active {
  transform: scale(0.97);
}

@media (hover: hover) {
  .pill:hover {
    border-color: var(--accent);
  }
}

@media (min-width: 860px) {
  .footer-cols {
    grid-template-columns: 1fr 1.4fr 1.6fr;
  }
}

/* ---------- Menu page ---------- */

/* Layout rules set display on list rows; [hidden] must still win. */
[hidden] {
  display: none !important;
}

.today-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 16px;
  font-variant-numeric: tabular-nums;
}

.search {
  margin-top: 24px;
  max-width: 34rem;
}

.search input {
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raise);
  color: var(--text);
  /* 16px or more: iOS Safari zooms the page into smaller inputs. */
  font: inherit;
  font-size: 1.0625rem;
  transition: border-color 160ms ease;
}

.search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.search-status {
  margin-top: 10px;
  color: var(--muted);
}

.search-status:empty {
  display: none;
}

.menu-head {
  padding-bottom: 28px;
}

.menu-head h1 {
  font-size: clamp(2.5rem, 11vw, 4.5rem);
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 18px;
}

/* Filter chips stick under the header bar. Phones scroll them sideways; wide screens wrap them. */
.chips {
  position: sticky;
  top: calc(max(10px, env(safe-area-inset-top)) + 64px);
  z-index: 4;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--base);
}

.chips ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 10px var(--gutter);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.chips ul::-webkit-scrollbar {
  display: none;
}

.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raise);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms var(--ease-out);
}

.chips a:active {
  transform: scale(0.97);
}

.chips a[aria-current="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--base);
}

@media (hover: hover) {
  .chips a:hover {
    border-color: var(--accent);
  }
}

@media (min-width: 860px) {
  .chips ul {
    flex-wrap: wrap;
  }
}

.cat {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--gutter) 20px;
  /* Room for the sticky header bar and chip row when a chip jumps here. */
  scroll-margin-top: 140px;
}

.cat h2 {
  font-size: clamp(1.75rem, 7vw, 2.75rem);
}

.cat .groups {
  margin-top: 20px;
}

/* A chip link targets one category: hide the others. Works without JavaScript;
   browsers without :has() simply jump to the category. */
.cats:not(.is-searching):has(> .cat:target) > .cat:not(:target) {
  display: none;
}

.cat:target {
  animation: rise 500ms var(--ease-out) both;
}

/* Categories with one list: no sub-heading, the list flows into columns. */
.group-solo {
  grid-column: 1 / -1;
}

.group-solo ul {
  border-top: 2px solid var(--accent);
  columns: 3 17rem;
  column-gap: 40px;
}

.group-solo li {
  break-inside: avoid;
}

.menu-order {
  margin-top: 40px;
}

@media (min-width: 860px) {
  .cat {
    scroll-margin-top: 190px;
  }
}

/* ---------- Motion: transform and opacity only ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* The track holds three identical lists; moving one list width (a third) loops seamlessly. */
@keyframes slide {
  to {
    transform: translateX(-33.3333%);
  }
}

/* Bob height comes from each balloon's --lift. */
@keyframes drift {
  50% {
    transform: translateY(calc(var(--lift) * -1)) rotate(3deg);
  }
}

.rise {
  animation: rise 700ms var(--ease-out) both;
}

.hero .lede {
  animation-delay: 80ms;
}

.hero .actions {
  animation-delay: 160ms;
}

.hero .badge {
  animation-delay: 240ms;
}

.marquee-track {
  animation: slide 28s linear infinite;
}

.balloon {
  /* Bobs at 70% of the marquee's speed. The band moves one list width per 28s (about
     59 px/s on phones, 98 px/s from 667px wide), so one cycle = 2 x lift / (0.7 x that). */
  --lift: 28px;
  animation: drift 1.36s ease-in-out infinite;
}

.balloon-visit {
  --lift: 64px;
  animation-duration: 3.1s;
}

@media (min-width: 667px) {
  .balloon {
    --lift: 48px;
    animation-duration: 1.4s;
  }
  .balloon-visit {
    --lift: 96px;
    animation-duration: 2.8s;
  }
}
