@font-face {
  font-family: "Prata";
  src: url("fonts/prata.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* taken from the Perons Nr.1 sign and the room itself */
  --navy: #1e2b3c;        /* sign board */
  --navy-2: #283a50;
  --brass: #d9a944;       /* sign lettering */
  --yellow: #efc254;      /* platform edge line */
  --birch: #eee4d3;       /* their light wood tables */
  --white: #ffffff;
  --dill: #8fbf6a;
  --ink: var(--navy);
  --muted: #5b6575;
  --muted-on-navy: #aeb8c6;
  --rule: rgba(30, 43, 60, 0.14);

  --serif: "Prata", Georgia, serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  font-variant-numeric: lining-nums;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.005em; font-synthesis: none; }
p { margin: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--yellow); color: var(--navy); padding: 10px 14px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--brass { background: var(--brass); color: var(--navy); }
.btn--brass:hover { background: var(--yellow); }
.btn--line { border-color: rgba(239, 194, 84, .55); color: var(--yellow); background: transparent; }
.btn--line:hover { border-color: var(--yellow); background: rgba(239, 194, 84, .08); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); }
.btn--line-dark { border-color: var(--rule); color: var(--navy); background: transparent; }
.btn--line-dark:hover { border-color: var(--navy); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ---------- header ---------- */
.top { background: var(--navy); color: var(--white); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.mark { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--brass); line-height: 1; }
.mark__name { font-family: var(--serif); font-weight: 400; font-size: 25px; letter-spacing: .16em; text-transform: uppercase; }
.mark__nr { text-transform: none; letter-spacing: .04em; }
.mark__sub { margin-top: 6px; font-size: 13px; letter-spacing: .02em; color: var(--muted-on-navy); }
.top__nav { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 2px; }
.lang button {
  background: none; border: 0; cursor: pointer; padding: 8px 8px; font-size: 14px; font-weight: 600;
  color: var(--muted-on-navy); border-radius: 6px;
}
.lang button[aria-pressed="true"] { color: var(--yellow); }
.lang button:hover { color: var(--white); }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: var(--white); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: 24px;
  min-height: min(78vh, 720px); padding-block: 40px 72px;
}
.hero h1 {
  font-size: clamp(42px, 5.6vw, 80px); line-height: 1.04; color: var(--brass);
  max-width: 12ch; text-wrap: balance;
}
.hero__lead { margin-top: 26px; max-width: 34em; font-size: 19px; line-height: 1.6; color: #dfe5ee; }
.hero__where { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--muted-on-navy); }
.status { display: inline-flex; align-items: center; gap: 9px; color: var(--white); font-weight: 500; }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted-on-navy); }
.status[data-state="open"] .status__dot { background: var(--dill); box-shadow: 0 0 0 4px rgba(143, 191, 106, .18); }
.status[data-state="closed"] .status__dot { background: #c9785f; }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__plates { position: relative; height: clamp(380px, 46vw, 600px); }
.plate { position: absolute; filter: drop-shadow(0 28px 34px rgba(0, 0, 0, .38)); }
.plate--a { width: 86%; right: -10%; top: 2%; }
.plate--b { width: 46%; left: -4%; bottom: -6%; }
.plate--c { width: 32%; right: 2%; bottom: -10%; }

@media (prefers-reduced-motion: no-preference) {
  .plate { animation: set-down .9s cubic-bezier(.2, .7, .2, 1) both; }
  .plate--a { animation-delay: .05s; --r: -7deg; }
  .plate--b { animation-delay: .22s; --r: 9deg; }
  .plate--c { animation-delay: .38s; --r: -10deg; }
  @keyframes set-down {
    from { opacity: 0; transform: translateY(-18px) scale(1.05) rotate(var(--r, 0deg)); }
    to { opacity: 1; transform: none; }
  }
}

/* yellow tactile line along the edge of a railway platform */
.platform-edge {
  height: 30px;
  background:
    radial-gradient(circle, rgba(120, 82, 10, .28) 0 3.2px, transparent 3.8px) 0 0 / 15px 15px,
    var(--yellow);
  border-top: 4px solid var(--white);
}

/* ---------- dishes ---------- */
.dishes { background: var(--birch); padding-block: 84px 92px; }
.dishes__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.dishes__head h2 { font-size: clamp(38px, 4.8vw, 60px); line-height: 1.02; }
.dishes__head p { color: var(--muted); max-width: 30em; }

.dishes__grid {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 32px;
}
.dish { display: flex; flex-direction: column; }
.dish__btn {
  all: unset; cursor: pointer; display: flex; flex-direction: column; height: 100%; border-radius: 12px;
}
.dish__btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 8px; }
.dish__img { aspect-ratio: 1 / 1; display: grid; place-items: center; margin-bottom: 18px; }
.dish__img img {
  max-height: 100%; width: auto; max-width: 100%;
  filter: drop-shadow(0 16px 18px rgba(83, 58, 22, .22));
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.dish__btn:hover .dish__img img { transform: rotate(-4deg) scale(1.03); }
.dish__name { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; }
.dish__desc { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.dish__price { margin-top: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }

.dishes__foot { margin-top: 56px; display: flex; justify-content: center; }

.sweets {
  margin-top: 80px; padding-top: 44px; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: center;
}
.sweets h3 { font-size: 32px; }
.sweets p { margin-top: 8px; color: var(--muted); max-width: 26em; }
.sweets__plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: end; }
.sweets__plates img { filter: drop-shadow(0 12px 14px rgba(83, 58, 22, .2)); }

/* ---------- place ---------- */
.place { padding-block: 96px 100px; }
.place__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.place__photo { margin: 0; }
.place__photo img { width: 100%; border-radius: var(--radius); }
.place__text h2 { font-size: clamp(38px, 4.8vw, 60px); line-height: 1.02; }
.place__text > p { margin-top: 18px; max-width: 32em; color: var(--muted); font-size: 18px; }
.facts { margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.facts dt { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.facts dd { margin: 6px 0 0; font-size: 15.5px; color: var(--muted); }
.facts a { color: var(--navy); font-weight: 600; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.counter { margin-top: 64px; display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }
.counter img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: var(--muted-on-navy); padding-block: 64px 32px; font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot__grid p + p { margin-top: 10px; }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.mark--foot { margin-bottom: 12px; }
.mark--foot .mark__name { font-size: 22px; }
.foot__base {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px;
}
.powered a { color: var(--brass); }

/* ---------- mobile dock ---------- */
.dock { display: none; }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(14, 21, 31, .62); }
.close {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; background: none;
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }

.sheet {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0;
  background: var(--navy); color: var(--white); overflow: auto; overscroll-behavior: contain;
}
.sheet[open] { animation: sheet-in .32s cubic-bezier(.2, .7, .2, 1); }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet[open], .modal[open] { animation: none; } }
.sheet__bar { position: sticky; top: 0; z-index: 2; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sheet__barrow { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; }
.sheet__bar h2 { font-size: 40px; color: var(--brass); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-block: 14px 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: 8px 16px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500;
  color: var(--muted-on-navy); border: 1px solid rgba(255, 255, 255, .16);
}
.tabs a[aria-current="true"] { color: var(--navy); background: var(--brass); border-color: var(--brass); }
.sheet__body { max-width: 860px; padding-block: 32px 96px; }
.msec { padding-top: 36px; scroll-margin-top: 150px; }
.msec + .msec { margin-top: 28px; }
.msec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.msec h3 { font-size: 34px; color: var(--brass); }
.msec__note { font-size: 14px; color: var(--muted-on-navy); }
.mlist { list-style: none; margin: 14px 0 0; padding: 0; }
.mrow {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 18px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.mrow__thumb { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--navy-2); }
.mrow__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mrow__thumb--plate { background: none; overflow: visible; }
.mrow__thumb--plate img { object-fit: contain; }
.mrow__thumb--none { background: none; display: grid; place-items: center; }
.mrow__thumb--none::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(217, 169, 68, .55); }
.mrow__name { font-weight: 600; font-size: 16.5px; }
.mrow__desc { font-size: 14px; color: var(--muted-on-navy); }
.mrow__meta { display: block; font-size: 13px; color: var(--muted-on-navy); margin-top: 2px; }
.mrow__price { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; color: var(--white); }
.mrow.is-hit { background: linear-gradient(90deg, rgba(217, 169, 68, .16), transparent 70%); }
.sheet__foot { margin-top: 48px; font-size: 14px; color: var(--muted-on-navy); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

.modal {
  width: min(560px, calc(100% - 24px)); border-radius: 18px; background: var(--white);
  max-height: calc(100% - 24px);
}
.modal[open] { animation: sheet-in .28s cubic-bezier(.2, .7, .2, 1); }
.book { padding: 28px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.book__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.book__head h2 { font-size: 36px; }
.book__intro { grid-column: 1 / -1; color: var(--muted); font-size: 15.5px; margin-top: -6px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field--wide { grid-column: 1 / -1; }
.field input {
  font: inherit; font-weight: 400; font-size: 16px; min-height: 48px; padding: 0 14px; width: 100%;
  border: 1.5px solid var(--rule); border-radius: 10px; background: #fbfaf7; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--navy); background: var(--white); }
.field input[aria-invalid="true"] { border-color: #b4472f; }
.book__error { grid-column: 1 / -1; color: #9c3a24; font-size: 14.5px; }
.book__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .dishes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  body { padding-bottom: 76px; }
  .top__call { display: none; }
  .mark__name { font-size: 20px; }
  .mark__sub { font-size: 12px; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-block: 8px 48px; gap: 0; }
  .hero__plates { order: -1; height: 76vw; max-height: 440px; margin-inline: calc(-1 * var(--gutter)); }
  .plate--a { width: 74%; right: -6%; top: 2%; }
  .plate--b { width: 42%; left: 4%; bottom: 0; }
  .plate--c { width: 30%; left: 40%; bottom: -4%; right: auto; }
  .hero__copy { margin-top: 18px; }
  .hero h1 { max-width: 13ch; }
  .hero__lead { font-size: 17.5px; margin-top: 18px; }
  .hero__actions .btn { flex: 1 1 200px; }
  .dishes { padding-block: 60px 68px; }
  .dishes__head { grid-template-columns: 1fr; }
  .dishes__grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 22px;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 8px;
    scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .dishes__grid::-webkit-scrollbar { display: none; }
  .dish { flex: 0 0 68%; scroll-snap-align: start; }
  .sweets { grid-template-columns: 1fr; margin-top: 56px; }
  .place { padding-block: 64px 72px; }
  .place__grid { grid-template-columns: 1fr; gap: 32px; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .counter { grid-template-columns: 1fr 1fr; }
  .counter img:first-child { grid-column: 1 / -1; }
  .foot__grid { grid-template-columns: 1fr; }
  .dock {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(30, 43, 60, .96); backdrop-filter: blur(8px);
    border-top: 3px solid var(--yellow);
  }
  .dock > * {
    min-height: 48px; display: grid; place-items: center; border-radius: 999px;
    font-size: 15px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer;
    background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, .22);
  }
  .dock > a { background: var(--brass); color: var(--navy); border-color: var(--brass); }
  .book { grid-template-columns: 1fr 1fr; padding: 22px; }
  .book .field:nth-of-type(4) { grid-column: 1 / -1; }
  .mrow { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 2px 14px; }
  .mrow__thumb { width: 48px; height: 48px; }
  .sheet__bar h2 { font-size: 34px; }
}

/* large monitors: use more of the width */
@media (min-width: 1600px) {
  :root { --wrap: 1360px; }
  .hero__grid { min-height: min(80vh, 820px); }
  .dishes__grid { gap: 64px 44px; }
}

/* variant: historic hangar as the hero */
.hero--hangar {
  position: relative;
  background:
    linear-gradient(90deg, rgba(30, 43, 60, .96) 0%, rgba(30, 43, 60, .86) 38%, rgba(30, 43, 60, .25) 72%, rgba(30, 43, 60, .1) 100%),
    linear-gradient(0deg, rgba(30, 43, 60, .55) 0%, rgba(30, 43, 60, 0) 35%),
    url("img/windows-1600.webp") center 30% / cover no-repeat,
    var(--navy);
}
.hero--hangar .hero__grid { min-height: min(86vh, 800px); }
.hero--hangar .plate--b, .hero--hangar .plate--c { display: none; }
.hero--hangar .hero__plates { align-self: end; height: clamp(300px, 30vw, 420px); }
.hero--hangar { overflow: visible; z-index: 2; }
.hero--hangar .plate--a { width: clamp(280px, 29vw, 400px); right: 0; top: auto; bottom: -128px; }
@media (max-width: 860px) {
  .hero--hangar {
    background:
      linear-gradient(0deg, rgba(30, 43, 60, 1) 38%, rgba(30, 43, 60, .55) 62%, rgba(30, 43, 60, .1) 100%),
      url("img/windows-800.webp") center top / 180% auto no-repeat,
      var(--navy);
  }
  .hero--hangar .hero__plates { order: 2; height: 0; }
  .hero--hangar .plate--a { display: none; }
  .hero--hangar .hero__copy { margin-top: 52vw; }
}
