:root {
  color-scheme: dark;
  --bg: #110e0b;
  --gold: #e7cd92;
  --ember: #d06a32;
  --cream: #f6f0e6;
  --muted: #cbbda9;
  --card: #16110d;
  --line: rgba(231, 205, 146, 0.32);
  --serif: "Fraunces", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --bar: calc(60px + env(safe-area-inset-top));
}

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

html { scroll-behavior: smooth; }

html,
body { margin: 0; }

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.45;
  font-weight: 400;
}

img { max-width: 100%; }

button,
input,
textarea { font: inherit; color: inherit; }

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

button,
a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

a { color: var(--gold); }

:focus { outline: none; }

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

::selection { background: #d06a32; color: #fff8ef; }

[hidden] { display: none !important; }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--gold);
  color: #1a120c;
  padding: 8px 12px;
  border-radius: 999px;
}

.skip:focus { top: 12px; }

.atmosphere {
  position: fixed;
  z-index: -2;
  inset: -24px;
  background: url("../images/riad-wide.jpg") center 42% / cover no-repeat;
  filter: blur(10px) saturate(1.15) brightness(0.55);
  transform: scale(1.06);
  pointer-events: none;
}

.veil {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(820px 380px at 50% 0%, rgba(208, 106, 50, 0.22), transparent 64%),
    linear-gradient(to bottom, rgba(10, 8, 6, 0.42), rgba(10, 8, 6, 0.78));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 48;
  height: var(--bar);
  padding-top: env(safe-area-inset-top);
  background: rgba(14, 10, 8, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(231, 205, 146, 0.18);
}

.bar-inner,
.sheet {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.bar-inner {
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bar-left { display: flex; align-items: center; gap: 4px; min-width: 0; }

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--cream);
  font-family: var(--serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 16px;
  min-width: 0;
}

.logo-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1;
  gap: 1px;
}

.logo-latin {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ar-name {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0;
  direction: rtl;
  unicode-bidi: isolate;
  font-family: "Amiri", "Noto Naskh Arabic", serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.15;
  color: var(--gold);
}

.logo .ar-name { font-size: 15px; }

.mark { width: 22px; height: 22px; color: var(--gold); flex: none; }

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

.nav-order {
  text-decoration: none;
  background: var(--ember);
  color: #1a0e09;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 14px;
  margin-right: 4px;
  font-size: 14px;
}

.nav-order[aria-current="page"] {
  background: transparent;
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-account {
  text-decoration: none;
  color: var(--gold);
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-account[aria-current="page"] {
  background: var(--gold);
  color: #1a120c;
}

@media (max-width: 480px) {
  .nav-account,
  .nav-order { font-size: 13px; padding: 7px 10px; }
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--cream);
}

.icon-btn[aria-pressed="true"] { color: var(--gold); }

.count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--ember);
  color: #1a0e09;
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.count.pop { animation: pop 0.25s ease; }

@keyframes pop {
  50% { transform: scale(1.18); }
}

.sheet { padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }

.arch {
  position: relative;
  overflow: hidden;
  width: auto;
  margin: 0 -16px 12px;
  min-height: 360px;
  padding: 28px 20px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  border-radius: 0 0 36px 36px;
  border: 0;
  box-shadow: inset 0 -1px 0 rgba(231, 205, 146, 0.35);
}

.arch-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(17, 14, 11, 0.94) 0%, rgba(17, 14, 11, 0.42) 46%, rgba(17, 14, 11, 0.12) 100%),
    url("../images/riad-hero.jpg") center 28% / cover no-repeat;
}

.arch-copy { position: relative; z-index: 1; width: min(520px, 100%); }

.rosette {
  width: 58px;
  height: 58px;
  color: var(--gold);
  display: block;
  margin: 0 auto 6px;
}

h1,
.panel-title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(34px, 8vw, 64px);
  line-height: 0.95;
  margin: 0;
  color: var(--gold);
}

.panel-title {
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--cream);
  font-size: clamp(32px, 5vw, 44px);
  margin: 18px 0 8px;
}

.cuisine {
  margin: 10px 0 0;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(10px, 2.7vw, 13px);
}

.area {
  margin: 8px 0 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--cream);
}

.tagline {
  text-align: center;
  color: var(--muted);
  margin: 14px auto 0;
  max-width: 36ch;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 6px;
}

.fact {
  text-align: center;
  padding: 10px 6px;
  border: 1px solid rgba(231, 205, 146, 0.22);
  border-radius: 12px;
  background: rgba(14, 10, 8, 0.45);
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact b {
  display: block;
  margin-top: 3px;
  font-weight: 560;
  font-size: 14px;
}

.layout { display: block; }

.menu-tools {
  position: sticky;
  top: var(--bar);
  z-index: 30;
  padding: 10px 0 8px;
  background: rgba(14, 10, 8, 0.94);
  backdrop-filter: blur(14px);
}

.search input,
.field input,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  padding: 12px 14px;
  font-size: 16px;
}

.search input { border-radius: 999px; }

.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 8px;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
}

.cats::-webkit-scrollbar { display: none; }

.cats button {
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.cats button[aria-current="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a120c;
}

.cat-section { scroll-margin-top: calc(var(--bar) + 118px); }

.cat-head { padding: 22px 0 4px; }

.cat-head h2,
h2,
dialog h2,
dialog h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
}

.cat-head h2 {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 22px;
}

.cat-head p,
.intro,
.fine,
.empty,
.line-note,
.item-detail,
.detail {
  color: var(--muted);
}

.cat-head p { margin: 4px 0 0; font-size: 14px; }

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

.item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(231, 205, 146, 0.14);
  padding: 10px 0;
}

.item.no-photo { grid-template-columns: minmax(0, 1fr) auto; }

.item-photo,
.sign-photo,
.dlg-photo,
.preview-photo {
  object-fit: cover;
  border: 1px solid rgba(231, 205, 146, 0.5);
  box-shadow: 0 0 0 3px rgba(17, 14, 11, 0.55), 0 0 0 4px rgba(231, 205, 146, 0.28);
}

.item-photo {
  width: 84px;
  height: 84px;
  border-radius: 18px;
}

.item-open {
  width: 100%;
  text-align: left;
  padding: 12px 2px;
}

.item-name,
.line-name {
  font-family: var(--serif);
  font-weight: 500;
  display: block;
}

.item-name { font-size: 20px; }

.item-detail { display: block; font-size: 14px; margin-top: 3px; }

.item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.price {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.plus,
.stepper button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
}

.stepper button { width: 40px; height: 40px; font-size: 22px; border-color: var(--line); color: var(--cream); }

.cart {
  background: var(--card);
  border: 1px solid rgba(231, 205, 146, 0.28);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cart-head h2 { font-size: 26px; margin: 8px 0; }

.grabber {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: rgba(231, 205, 146, 0.35);
  margin: 4px auto 2px;
}

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

.line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(231, 205, 146, 0.14);
}

.line-name { font-size: 18px; }

.line-note { display: block; font-size: 13px; }

.stepper { display: flex; align-items: center; gap: 8px; flex: none; }

.stepper span {
  min-width: 1.4ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.totals div,
.check-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  color: var(--muted);
}

.totals .grand,
.check-line span:last-child { color: var(--cream); }

.totals .grand {
  font-size: 18px;
  padding-top: 8px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--cream);
}

.check-line span:last-child { flex: none; color: var(--gold); }

.check-line small { display: block; }

.hint { color: var(--gold); font-size: 14px; margin: 8px 0; }

.hint.warn { color: #ffb4a2; }

.btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--ember);
  color: #1a0e09;
  font-weight: 600;
  text-align: center;
}

.btn.ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.text-btn {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px;
}

.cart .text-btn { display: block; margin: 8px auto 0; }

.bottom-bar {
  position: fixed;
  z-index: 42;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--ember);
  color: #1a0e09;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 44;
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.56);
}

.narrow { max-width: 640px; margin: 0 auto; }

.summary {
  margin: 16px 0 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 4px;
  background: rgba(22, 17, 13, 0.78);
}

.page-banner {
  height: 132px;
  margin: 16px 0 6px;
  border-radius: 72px 72px 16px 16px;
  background:
    linear-gradient(to top, rgba(17, 14, 11, 0.35), rgba(17, 14, 11, 0.05)),
    url("../images/riad-wide.jpg") center 46% / cover no-repeat;
  box-shadow: 0 0 0 3px rgba(17, 14, 11, 0.55), 0 0 0 4px rgba(231, 205, 146, 0.28);
}

.account-page {
  width: min(560px, 100%);
  margin: 0 auto;
  padding-top: 8px;
}

.account-page .panel-title { margin-top: 2px; }

.account-lede { margin-bottom: 14px; }

.account {
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(22, 17, 13, 0.9);
}

.account-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.account-switch button {
  min-height: 48px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}

.account-switch button[aria-pressed="true"] {
  background: var(--gold);
  color: #1a120c;
}

.account-form { display: grid; gap: 12px; }

.account-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.account-form input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  padding: 12px 14px;
  font-size: 16px;
  color: var(--cream);
}

.account-form .btn { margin-top: 2px; min-height: 48px; }

.account-error { color: #ffb4a2; margin: 0; }

.account-error:empty { display: none; }

.account-signed { display: grid; gap: 14px; }

.account-who {
  display: flex;
  gap: 12px;
  align-items: center;
}

.account-avatar {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(231, 205, 146, 0.14);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 26px;
}

.account-who strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--cream);
}

.account-who span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

#account-meta { white-space: pre-line; }

.account-signed .btn { margin-top: 0; min-height: 48px; }

.account-back { min-height: 48px; }

.orders-block { margin-top: 22px; }

.orders-block h2 { font-size: 28px; margin-bottom: 4px; }

.order-list { display: grid; gap: 12px; }

#checkout-konto { width: auto; margin-top: 0; }

.order-status {
  display: inline-block;
  margin: 0 0 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.order-status[data-status="zubereitung"] { color: #f3d7a1; }

.order-status[data-status="unterwegs"] { color: #f6f0e6; border-color: #d06a32; }

.order-status[data-status="erledigt"] { color: #b7d7b0; border-color: #b7d7b0; }

.order-status[data-status="storniert"] { color: #ffb4a2; border-color: #ffb4a2; }

.order-card > .order-status { margin: 14px 14px 0; }

.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 14px 0;
  min-width: 0;
}

legend { padding: 0; margin-bottom: 8px; font-weight: 600; }

.field { display: grid; gap: 6px; margin: 12px 0; }

.field > span { font-size: 14px; font-weight: 500; }

.field textarea { min-height: 72px; resize: vertical; }

.form-grid { display: grid; gap: 0 12px; }

.choices { display: grid; gap: 8px; }

.choice {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--gold);
  background: rgba(231, 205, 146, 0.1);
}

.choice input { width: auto; accent-color: #d06a32; }

.field-error { color: #ffb4a2; font-size: 13px; }

.field-error:empty { display: none; }

[aria-invalid="true"] { border-color: #e07a62 !important; }

.fine { font-size: 13px; line-height: 1.45; }

.order-id {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold);
  margin: 0 0 8px;
  letter-spacing: 0.06em;
}

.order-text {
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 13.5px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 12px;
  padding: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 14px 0 0;
}

.order-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(22, 17, 13, 0.9);
  overflow: hidden;
}

.order-card[data-status="storniert"] { opacity: 0.72; }

.status-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 14px 12px 0;
}

.status-track li {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
}

.status-track li::before {
  content: "";
  display: block;
  height: 5px;
  margin-bottom: 6px;
  border-radius: 99px;
  background: rgba(231, 205, 146, 0.18);
}

.status-track li.done::before,
.status-track li.now::before { background: var(--gold); }

.status-track li.now { color: var(--gold); font-weight: 600; }

.order-card-body { padding: 12px 14px 14px; }

.order-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.order-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 0;
  letter-spacing: 0.03em;
}

.order-card .price {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0;
}

.order-lines {
  list-style: none;
  margin: 8px 0;
  padding: 0;
}

.order-lines li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(231, 205, 146, 0.14);
}

.order-lines img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
}

.order-lines b {
  display: block;
  font-weight: 500;
}

.order-lines small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.order-where { margin: 0 0 8px; }

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.order-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 12px;
}

.order-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(96px, 0.8fr);
  gap: 8px;
  margin-top: 12px;
}

.order-actions .btn {
  width: 100%;
  margin-top: 0;
  min-height: 48px;
  padding: 12px 10px;
}

.empty-order {
  text-align: center;
  padding: 22px 16px 16px;
  border: 1px dashed var(--line);
  border-radius: 22px;
}

.empty-order p { margin: 0 0 4px; }

.empty-order .btn { margin-top: 8px; }

.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--gold);
}

.site-footer {
  padding: 28px 0 8px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

.footer-credit { margin: 16px 0 0; }

#hours { margin-bottom: 12px; }

#hours h2 { font-size: 22px; margin-bottom: 6px; }

#hours p { margin: 2px 0; }

dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #17130f;
  color: var(--cream);
  width: min(460px, calc(100% - 24px));
  max-height: min(92dvh, 760px);
  overflow: auto;
  padding: 18px;
}

#terms-dialog { width: min(640px, calc(100% - 24px)); }

.legal h3 {
  font-size: 18px;
  margin: 18px 0 6px;
}

.legal p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.terms-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 12px;
}

.terms-choice .text-btn { font-size: inherit; }

dialog::backdrop { background: rgba(5, 3, 2, 0.72); }

.dlg-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.dlg-top h3 { font-size: 28px; }

.variants { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }

.variants button {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 10px 14px;
}

.variants button[aria-pressed="true"] {
  background: var(--gold);
  color: #1a120c;
  border-color: var(--gold);
}

.qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

#toast {
  position: fixed;
  left: 50%;
  top: calc(var(--bar) + 10px);
  transform: translateX(-50%) translateY(-8px);
  background: var(--cream);
  color: #1a120c;
  padding: 12px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 70;
  font-weight: 600;
  max-width: calc(100% - 32px);
  text-align: center;
}

#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.noscript {
  margin: 16px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

body.lock,
body.sheet-open { overflow: hidden; }

body.sheet-open .bottom-bar { display: none !important; }

@media (max-width: 959px) {
  .cart {
    position: fixed;
    z-index: 46;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(110%);
    max-height: min(78dvh, calc(100dvh - var(--bar) - 12px));
    overflow: auto;
    border-radius: 22px 22px 0 0;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
    transition: transform 0.28s ease;
  }

  .cart.open { transform: translateY(0); }

  .cart:not(.open) { pointer-events: none; }
}

@media (min-width: 600px) {
  .choices.two,
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .sheet {
    margin-top: 22px;
    margin-bottom: 40px;
    padding: 8px 28px 36px;
    background: rgba(14, 10, 8, 0.9);
    border: 1px solid rgba(231, 205, 146, 0.28);
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  }

  .arch {
    margin: 8px 0 16px;
    min-height: 420px;
    border-radius: 180px 180px 22px 22px;
    border: 1px solid rgba(231, 205, 146, 0.5);
    box-shadow:
      0 0 0 4px rgba(14, 10, 8, 0.65),
      0 0 0 5px rgba(231, 205, 146, 0.28);
  }

  .arch-media {
    background:
      linear-gradient(to top, rgba(17, 14, 11, 0.92) 0%, rgba(17, 14, 11, 0.28) 48%, rgba(17, 14, 11, 0.18) 100%),
      url("../images/riad-wide.jpg") center 42% / cover no-repeat;
  }

  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
  }

  .cats { flex-wrap: wrap; overflow: visible; mask-image: none; }

  .cart {
    position: sticky;
    top: calc(var(--bar) + 16px);
    max-height: calc(100dvh - var(--bar) - 32px);
    overflow: auto;
    border-radius: 16px;
    padding: 8px 16px 18px;
  }

  .grabber,
  .cart-head [data-close-cart],
  .bottom-bar,
  .scrim { display: none !important; }

  #toast { top: calc(var(--bar) + 16px); }
}

@media (hover: hover) {
  .item-open:hover .item-name { color: var(--gold); }
  .plus:hover,
  .btn:hover { background: var(--gold); color: #1a120c; }
  .btn:hover { background: #e58349; color: #1a0e09; }
  .plus:hover { background: var(--gold); color: #1a120c; }
  .icon-btn:hover { background: rgba(231, 205, 146, 0.08); }
}

body.view-home .atmosphere,
body.view-home .veil { display: none; }

.hero {
  position: relative;
  min-height: calc(100svh - var(--bar));
  display: grid;
  align-items: end;
  padding: 32px 20px 40px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(17, 14, 11, 1) 0%, rgba(17, 14, 11, 0.62) 32%, rgba(17, 14, 11, 0.16) 68%, rgba(17, 14, 11, 0.28) 100%),
    url("../images/riad-hero.jpg") center 32% / cover no-repeat;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
}

.hero h1 {
  font-size: clamp(52px, 13vw, 108px);
  letter-spacing: 0.05em;
  margin-top: 8px;
}

.hero .lede {
  max-width: 38rem;
  font-size: 18px;
}

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

.hero-actions .btn,
a.btn { text-decoration: none; }

.hero-actions .btn { width: auto; margin-top: 0; padding-inline: 22px; }

.home-wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.home-section { padding: 34px 0 8px; scroll-margin-top: calc(var(--bar) + 16px); }

.home-section h2 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 8px; }

.lede { color: var(--muted); max-width: 42rem; margin: 0 0 18px; }

.sign-grid { display: grid; gap: 12px; }

.sign {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 12px 16px;
  background: rgba(22, 17, 13, 0.9);
}

.sign-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 80px 80px 14px 14px;
  margin-bottom: 12px;
  display: block;
}

.sign strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
}

.sign span { color: var(--muted); }

.preview { list-style: none; margin: 0 0 8px; padding: 0; }

.preview a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 14px 2px;
  border-bottom: 1px solid rgba(231, 205, 146, 0.16);
}

.preview strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  display: block;
}

.preview small { display: block; color: var(--muted); font-size: 14px; }

.preview a span:first-of-type { flex: 1; min-width: 0; }

.preview-photo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex: none;
}

.dlg-photo {
  width: 100%;
  height: 190px;
  border-radius: 90px 90px 16px 16px;
  margin: 0 0 14px;
  display: block;
}

.home-cta { max-width: 360px; }

@media (min-width: 800px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sign-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 28px 56px; }
  .hero-media {
    background:
      linear-gradient(to top, rgba(17, 14, 11, 1) 0%, rgba(17, 14, 11, 0.55) 34%, rgba(17, 14, 11, 0.12) 70%, rgba(17, 14, 11, 0.22) 100%),
      url("../images/riad-wide.jpg") center 46% / cover no-repeat;
  }
}

@media (hover: hover) {
  .sign:hover { border-color: var(--gold); }
  .nav-order:hover { background: #e58349; color: #1a0e09; }
  .preview a:hover strong { color: var(--gold); }
}

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