/* Venecia — colours and marks are taken from the printed menu:
   charcoal cover, white sheets, grey hand-drawn food pattern. */
:root {
  --ink: #2b2f30;        /* cover charcoal */
  --ink-deep: #1f2223;
  --text: #231f20;       /* printed text black */
  --muted: #666a6b;
  --paper: #ffffff;
  --mist: #f4f4f3;
  --line: #dedfdd;
  --bone: #e0e1e0;       /* logo off-white */
  --tabs-h: 64px;
  --rail-w: 0px;
  --font: "Changa", "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

/* The exported marks are black; flip them to the logo's off-white on charcoal. */
.on-dark { filter: invert(1); opacity: 0.92; }

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

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ---------- Food pattern (same drawing as the PDF; the file is white ink) ---------- */
.mast, .landing { position: relative; isolation: isolate; }

.mast::before,
.landing::before,
.menu-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/pattern.png") center / cover no-repeat;
  pointer-events: none;
}
.mast::before,
.landing::before { opacity: 0.08; }

/* soft light behind the emblem so the mark lifts off the charcoal */
.mast::after,
.landing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 42% at 50% 46%, rgba(255, 255, 255, 0.07), transparent 70%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.28), transparent 26%, transparent 70%, rgba(0, 0, 0, 0.38));
  pointer-events: none;
}

.menu-page::before {
  position: fixed;
  left: var(--rail-w);
  filter: invert(1);
  opacity: 0.07;
}

/* ---------- Menu header ---------- */
.mast {
  padding: 16px 20px 22px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.mast__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mast__place {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
  font-weight: 300;
}

.lang {
  display: flex;
  padding: 3px;
  border: 1px solid rgba(224, 225, 224, 0.34);
  border-radius: 999px;
}
.lang__btn {
  min-width: 52px;
  height: 36px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 0.9375rem;
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.lang__btn.is-active { color: var(--ink-deep); font-weight: 700; background: var(--bone); }

.mast__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 34px 0 26px;
}
.mast__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mast__logo img:first-child { width: 74px; }
.mast__logo img:last-child { width: 116px; }
.mast__rule {
  align-self: stretch;
  width: 1px;
  background: rgba(224, 225, 224, 0.34);
}
.mast__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.mast__title h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.mast__label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.mast__label:lang(ar) { letter-spacing: 0; font-size: 0.9375rem; text-transform: none; }
.mast__ornament { width: 150px; margin: 0 auto; }

/* one opening moment: the brand settles in */
.mast__brand > * { animation: settle 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.mast__brand > :nth-child(3) { animation-delay: 0.15s; }
@keyframes settle {
  from { opacity: 0; transform: translateY(10px); }
}

/* marks shared with the landing page */
.cover__lockup { width: min(48vw, 200px); }
.cover__emblem { width: min(34vw, 138px); }
.cover__wordmark { width: min(54vw, 218px); }

/* ---------- Category bar ---------- */
.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  height: var(--tabs-h);
  background: rgba(31, 34, 35, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(224, 225, 224, 0.2);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.55);
}
.tabs__all {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 100%;
  padding: 0;
  color: var(--bone);
  background: none;
  border: 0;
  border-inline-end: 1px solid rgba(224, 225, 224, 0.2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tabs__list {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  margin: 0;
  padding: 0 14px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22px, #000 calc(100% - 22px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 22px, #000 calc(100% - 22px), transparent);
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list li { flex: none; }
.tabs__link {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  font-weight: 400;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid rgba(224, 225, 224, 0.24);
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.tabs__link.is-active {
  color: var(--ink-deep);
  font-weight: 700;
  background: var(--bone);
  border-color: var(--bone);
}

/* ---------- Full category list (opens from the bar) ---------- */
.index {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 18px 24px 32px;
  color: #fff;
  background: var(--ink);
  border: 0;
  overflow-y: auto;
}
.index:not([open]) { display: none; }
.index::backdrop { background: var(--ink); }
.index__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.index__close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--bone);
  background: none;
  border: 1px solid rgba(224, 225, 224, 0.3);
  border-radius: 50%;
  cursor: pointer;
}
.index__title {
  margin: 26px 0 10px;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}
.index__list {
  max-width: 560px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(224, 225, 224, 0.22);
}
.index__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 225, 224, 0.22);
}
.index__name { font-size: 1.625rem; font-weight: 700; line-height: 1.3; }
.index__link.is-active .index__name { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }

/* ---------- Menu sheet ---------- */
.sheet {
  max-width: 700px;
  margin: 0 auto;
  padding: 22px 20px 80px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  height: 52px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 22px -16px rgba(43, 47, 48, 0.5);
  transition: border-color 0.2s ease;
}
.search:focus-within { border-color: var(--ink); }
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  color: var(--text);
}
.search input::placeholder { color: var(--muted); opacity: 1; }

.cat {
  padding-top: 52px;
  scroll-margin-top: calc(var(--tabs-h) - 16px);
}
.cat__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}
.cat__ornament { width: 150px; opacity: 0.85; }
.cat__title {
  margin: 10px 0 0;
  font-size: 2.375rem;
  font-weight: 700;
  line-height: 1.25;
}
.cat__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dish {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.dish { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dish:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.dish__media { position: relative; flex: none; line-height: 0; }
.dish__off {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  background: rgba(31, 34, 35, 0.62);
  border-radius: 4px;
}
.dish__badge {
  display: inline-block;
  margin: 6px 0 0;
  padding: 1px 10px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.dish__photo {
  flex: none;
  width: 92px;
  height: 92px;
  object-fit: cover;
  background: var(--mist);
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--paper), 0 0 0 2px var(--line), 0 12px 22px -14px rgba(43, 47, 48, 0.7);
}
.dish__body { flex: 1; min-width: 0; }
.dish__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.dish__name {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.45;
}
.dish__dots {
  flex: 1;
  min-width: 14px;
  border-bottom: 1px dotted #a9acad;
  transform: translateY(-5px);
}
.dish__price {
  margin: 0;
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}
.dish__price b {
  font-size: 1.3125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dish__price span {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}
.dish__desc {
  margin: 4px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
}

/* Display styles a category can use (chosen on the admin page) */
.cat__list--cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 20px;
}
.cat__list--cards .dish {
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 26px -20px rgba(43, 47, 48, 0.7);
}
.cat__list--cards .dish__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 0;
  box-shadow: none;
}
.cat__list--cards .dish__media { width: 100%; }
.cat__list--cards .dish__off { border-radius: 0; }
.cat__list--cards .dish__body { width: 100%; padding: 12px 12px 14px; }
.cat__list--cards .dish__head { flex-direction: column; align-items: flex-start; gap: 2px; }
.cat__list--cards .dish__dots { display: none; }
.cat__list--cards .dish__name { font-size: 1.0625rem; }
.cat__list--cards .dish__desc { font-size: 0.9375rem; line-height: 1.55; }

/* ---------- Reviews (inside the close-up) and the restaurant rating ---------- */
.stars { display: inline-flex; gap: 1px; color: #cfd0cf; font-size: 1rem; line-height: 1; letter-spacing: 0; }
.stars .is-on { color: #c8962c; }
.score { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.score__avg { font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.score:empty { display: none; }
.score__count { color: var(--muted); font-size: 0.9375rem; font-weight: 300; }
.reviews { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.reviews__title { margin: 0; font-size: 1.25rem; font-weight: 700; }
.reviews__list { margin: 18px 0 0; padding: 0; list-style: none; }
.review { padding: 12px 0; border-top: 1px solid var(--line); }
.review__head { display: flex; align-items: center; gap: 10px; }
.review__name { font-size: 0.9375rem; font-weight: 500; }
.review__text { margin: 4px 0 0; color: var(--muted); font-size: 1rem; font-weight: 300; line-height: 1.65; overflow-wrap: anywhere; }
.rform { margin-top: 16px; padding: 16px; background: var(--mist); border-radius: 10px; }
.rform__title { margin: 0 0 8px; font-size: 1.0625rem; font-weight: 700; }
.rform__note { margin: 0; color: var(--muted); font-weight: 300; line-height: 1.6; }
.rform__stars { display: flex; gap: 4px; margin-bottom: 10px; }
.rform__star {
  width: 44px;
  height: 44px;
  padding: 0;
  color: #cfd0cf;
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: 0;
  cursor: pointer;
}
.rform__star.is-on { color: #c8962c; }
.rform__star:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-radius: 6px; }
.rform__input {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid #c9cbca;
  border-radius: 8px;
}
.rform__text { resize: vertical; min-height: 84px; }
.rform__input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.rform__trap { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.rform__send, .rate__btn {
  min-height: 46px;
  padding: 0 22px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.rform__send:disabled { opacity: 0.5; cursor: default; }
.rform__status { margin: 8px 0 0; color: #8a1f15; font-size: 0.9375rem; }
.rform__status:empty { display: none; }
.rate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 56px 0 8px;
  padding-top: 8px;
  text-align: center;
}
.rate[hidden] { display: none; }
.rate__title { margin: 8px 0 0; font-size: 1.75rem; font-weight: 700; }
.rate .score { justify-content: center; }
.rate__btn { margin-top: 12px; }

/* ---------- Dish close-up (opens when a dish is tapped) ---------- */
.is-locked, .is-locked body { overflow: hidden; }
.closeup {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--paper);
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.closeup:not([open]) { display: none; }
.closeup[open] { animation: closeup-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.closeup::backdrop { background: rgba(31, 34, 35, 0.6); }
@keyframes closeup-in { from { opacity: 0; transform: translateY(24px); } }
.closeup__close {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink-deep);
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
.closeup__media { line-height: 0; background: var(--mist); }
.closeup__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.closeup__body { padding: 22px 20px 36px; }
.closeup__media[hidden] + .closeup__body { padding-top: 76px; }
.closeup__name { margin: 0; font-size: 1.625rem; font-weight: 700; line-height: 1.35; }
.closeup__price { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 0; }
.closeup__price b { font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.closeup__price span { color: var(--muted); font-size: 0.9375rem; }
.closeup__off {
  display: inline-block;
  margin: 10px 0 0;
  padding: 2px 12px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--ink);
  border-radius: 999px;
}
.closeup__off[hidden], .closeup__price[hidden] { display: none; }
.closeup__desc { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.closeup__desc:empty { display: none; }
.closeup__desc p { margin: 0 0 6px; color: var(--muted); font-size: 1.0625rem; font-weight: 300; line-height: 1.7; }
@media (min-width: 600px) {
  .closeup {
    width: min(460px, calc(100% - 48px));
    height: auto;
    max-height: calc(100% - 48px);
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  }
}

.empty {
  margin: 56px 0;
  text-align: center;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.foot {
  padding: 36px 22px 44px;
  background: var(--ink);
  color: #fff;
}
.foot__inner { max-width: 660px; margin: 0 auto; }
.foot__head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(224, 225, 224, 0.2);
}
.foot__logo { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.foot__logo img:first-child { width: 46px; }
.foot__logo img:last-child { width: 76px; }
.foot__welcome { margin: 0; font-size: 1.25rem; font-weight: 500; }
.foot__block { padding-top: 24px; }
.foot__block h2 {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.875rem;
  font-weight: 400;
}
.foot__block p { margin: 0; font-size: 1.0625rem; }
.foot__hours { margin: 0; }
.foot__hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
  font-size: 1.0625rem;
}
.foot__hours dt { font-weight: 500; }
.foot__hours dd { margin: 0; color: rgba(255, 255, 255, 0.86); }
.foot__phone {
  display: inline-block;
  padding-bottom: 2px;
  color: #fff;
  font-size: 1.375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 225, 224, 0.5);
}
.foot__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.foot__social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(224, 225, 224, 0.4);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
.foot__social a:hover { background: rgba(255, 255, 255, 0.1); }
.foot__social img { width: 22px; height: 22px; }
.foot__sign {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(224, 225, 224, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.to-top {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  /* the corner away from where reading starts: left in Arabic, right in English */
  inset-inline-end: 16px;
  z-index: 9;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--bone);
  background: var(--ink);
  border: 1px solid rgba(224, 225, 224, 0.4);
  border-radius: 50%;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.6);
}
[dir="rtl"] .to-top { inset-inline-end: calc(var(--rail-w) + 16px); }

/* ---------- Wide screens: the vertical VENECIA rail from the printed pages ---------- */
.rail { display: none; }

@media (min-width: 900px) {
  :root { --rail-w: 17vh; }
  .menu-page { padding-left: var(--rail-w); }
  .rail {
    display: block;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: var(--rail-w);
    z-index: 11;
    background: var(--paper);
    border-right: 1.5px solid var(--ink);
  }
  .rail img { width: 100%; height: 100%; opacity: 0.86; }
  .mast { padding: 22px 32px 26px; }
  .mast__brand { gap: 34px; padding: 44px 0 32px; }
  .mast__logo img:first-child { width: 92px; }
  .mast__logo img:last-child { width: 140px; }
  .mast__title h1 { font-size: 2.5rem; }
  .tabs__list { justify-content: center; }
  .sheet { padding-top: 36px; }
  .cat { padding-top: 72px; }
  .cat__title { font-size: 3rem; }
  .dish__photo { width: 112px; height: 112px; }
  .index { padding: 28px 48px; }
  .index__list { margin: 0 auto; }
  .index__title { max-width: 560px; margin-inline: auto; }
}

/* ---------- Loading screen ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity 0.45s ease, visibility 0.45s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
}
.loader__ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(224, 225, 224, 0.16);
  border-top-color: var(--bone);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.loader__ring img { width: 66px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Landing page (QR) ---------- */
.landing {
  min-height: 100vh;
  min-height: 100svh;
  padding: 22px;
  display: flex;
  background: var(--ink);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.landing__frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 36px 18px;
  border: 1px solid rgba(224, 225, 224, 0.28);
  outline: 1px solid rgba(224, 225, 224, 0.12);
  outline-offset: 5px;
}
.landing__frame > * { animation: settle 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.landing__frame > :nth-child(2) { animation-delay: 0.1s; }
.landing__frame > :nth-child(3) { animation-delay: 0.2s; }
.landing__frame > :nth-child(4) { animation-delay: 0.3s; }
.landing .cover__lockup { width: min(42vw, 176px); }
.landing__brand {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.landing__brand .cover__emblem { width: min(28vw, 112px); }
.landing__brand .cover__wordmark { width: min(48vw, 190px); }

.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qr__code {
  width: 176px;
  padding: 10px;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 0 0 6px var(--ink), 0 0 0 7px rgba(224, 225, 224, 0.5), 0 26px 44px -22px rgba(0, 0, 0, 0.85);
}
.qr canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.qr__ornament { width: 132px; margin-top: 30px; }
.qr__title {
  margin: 12px 0 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.4;
}
.qr__hint {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9375rem;
  font-weight: 300;
}

@media (min-width: 900px) {
  .landing { padding: 28px; }
  .qr__code { width: 208px; }
}

/* ---------- Printed table card: A6, same charcoal cover as the screen ---------- */
@page { size: 105mm 148mm; margin: 0; }

@media print {
  html, body { width: 105mm; height: 148mm; overflow: hidden; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .landing { min-height: 0; height: 148mm; padding: 5mm; }
  .landing__frame { gap: 5mm; padding: 6mm 4mm; outline-offset: 1.2mm; }
  .landing__frame > * { animation: none; }
  .landing .cover__lockup { width: 30mm; }
  .landing__brand { gap: 2.4mm; }
  .landing__brand .cover__emblem { width: 20mm; }
  .landing__brand .cover__wordmark { width: 37mm; }
  .qr__code {
    width: 33mm;
    padding: 2mm;
    border-radius: 1.2mm;
    box-shadow: 0 0 0 1.2mm var(--ink), 0 0 0 1.45mm rgba(224, 225, 224, 0.6);
  }
  .qr__ornament { width: 24mm; margin-top: 4.5mm; }
  .qr__title { margin-top: 1.6mm; font-size: 13pt; }
  .qr__hint { margin-top: 0; font-size: 8.5pt; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mast__brand > *, .landing__frame > * { animation: none; }
  .loader__ring::before { animation-duration: 2.4s; }
  .tabs__link, .lang__btn { transition: none; }
  .closeup[open] { animation: none; }
}
