/* =========================================================
   هُتاف HUTAF — نسخة عرض (موبايل أولًا، خفيفة)
   أرضية فاتحة دافية + حبر غامق مايل للتيل + اللبني لون تمييز معتدل
   ========================================================= */
:root {
  --milk: #F5F1EA;
  --paper: #FBF9F5;
  --sand: #ECE5D9;
  --line: #E0D8CA;
  --ink: #0E1C1E;
  --ink-2: #4A5653;
  --ink-3: #7E8784;
  --teal: #2E9EA8;
  --teal-deep: #15646B;
  --teal-wash: #E3F0EE;

  --ar: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --en: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;

  --gutter: 16px;
  --maxw: 1200px;
  --r: 20px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (min-width: 600px) { :root { --gutter: 28px; } }
@media (min-width: 1000px) { :root { --gutter: 48px; --nav-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
html, body { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
body {
  margin: 0; min-width: 320px;
  background: var(--milk); color: var(--ink);
  font: 400 16px/1.75 var(--ar);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* حارس: مفيش أي عنصر يقدر يوسّع الصفحة بالعرض */
.page { overflow-x: clip; }
@supports not (overflow: clip) { .page { overflow-x: hidden; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
use { fill: currentColor; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[lang="en"] { font-family: var(--en); }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1.2 var(--ar); text-align: center;
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn [lang="en"] { font-weight: 600; }
.btn [lang="en"] + span { font-weight: 500; opacity: .75; font-size: 13.5px; }
.btn--ink { background: var(--ink); color: var(--milk); }
.btn--ink:hover { background: var(--teal); }
.btn--line { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--milk); }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.add {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--milk);
  transition: background-color .25s, transform .25s var(--ease);
}
.add svg { width: 18px; height: 18px; }
.add:hover { background: var(--teal); }
.add:active { transform: scale(.9); }
.add.is-added { background: var(--teal); }
.price { font: 600 18px/1 var(--en); white-space: nowrap; }
.price small, .tray__sum small { font: 500 12px var(--ar); color: var(--ink-3); margin-inline-start: 3px; }
.link { font: 600 14px/1 var(--ar); color: var(--teal-deep); border-bottom: 1.5px solid currentColor; padding-bottom: 4px; justify-self: start; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 40; top: 0; inset-inline: 0; height: var(--nav-h);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 0 var(--gutter);
  transition: background-color .3s, box-shadow .3s;
}
.nav.is-solid { background: rgba(245, 241, 234, .94); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(1px)) {
  .nav.is-solid { background: rgba(245, 241, 234, .82); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); }
}
.nav__logo { width: 74px; color: var(--teal); }
.nav__logo svg { width: 100%; height: auto; }
.nav__where {
  justify-self: center; margin: 0; display: flex; align-items: center; gap: 8px;
  font: 600 14px/1 var(--en); white-space: nowrap;
  opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s var(--ease);
}
.nav__where b { color: var(--teal); font-weight: 600; }
.nav.has-where .nav__where { opacity: 1; transform: none; }
.nav__links { display: none; }
.nav__actions { display: flex; gap: 8px; }
.tray-btn {
  height: 42px; padding-inline: 12px 6px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--milk);
}
.tray-btn svg { width: 20px; height: 20px; }
.tray-btn__count { min-width: 28px; height: 28px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: var(--teal); color: #fff; font: 600 13px/1 var(--en); }
.tray-btn.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.1); } }
.nav__burger { width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); position: relative; }
.nav__burger span { position: absolute; inset-inline: 12px; height: 1.8px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] span { top: 20.5px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.sheet {
  position: fixed; z-index: 39; top: var(--nav-h); inset-inline: 0;
  padding: 8px var(--gutter) 18px; background: var(--milk); box-shadow: 0 16px 30px -18px rgba(14, 28, 30, .35);
  display: grid;
}
.sheet a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sheet a:last-child { border-bottom: 0; }
.sheet b { font: 600 14px/1 var(--en); color: var(--teal); }
.sheet span { font: 600 19px/1.2 var(--en); }
.sheet small { font-size: 14px; color: var(--ink-3); }

/* ---------- Hero ---------- */
.hero { padding-top: var(--nav-h); }
.hero__img { aspect-ratio: 5 / 4; overflow: hidden; background: #EFE6D6; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 22% 50%; animation: fade 1s var(--ease) both; }
.hero__copy { padding-top: 28px; padding-bottom: 8px; }
.kicker { margin: 0 0 10px; font: 600 13px/1.4 var(--en); letter-spacing: .04em; color: var(--teal-deep); }
.hero__title { margin: 0; font: 700 clamp(42px, 12vw, 64px)/1.08 var(--ar); }
.hero__logo { display: block; width: auto; height: .95em; margin-top: .14em; color: var(--teal); }
.hero__lead { margin: 16px 0 0; color: var(--ink-2); font-size: 16px; max-width: 30em; }
.hero__lead b { font: 600 1em var(--en); color: var(--ink); }
.hero__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.hero__copy > * { animation: rise .8s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .06s; }
.hero__copy > :nth-child(3) { animation-delay: .12s; }
.hero__copy > :nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }

/* فهرس الصفحة */
.index { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 26px; margin-bottom: 8px; }
.index a {
  display: grid; justify-items: center; gap: 4px; padding: 12px 2px; border-radius: 14px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .25s, color .25s;
}
.index a:hover { background: var(--ink); color: var(--milk); }
.index b { font: 600 12px/1 var(--en); color: var(--teal); }
.index span { font: 600 12.5px/1 var(--en); white-space: nowrap; }

/* ---------- Sections ---------- */
.sec { padding: 64px 0; }
.sec--alt { background: var(--paper); }
.chap { margin-bottom: 28px; }
.chap__no { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 600 14px/1 var(--en); color: var(--teal); }
.chap__no::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.chap__title { margin: 0; font: 600 clamp(34px, 10vw, 72px)/1.05 var(--en); letter-spacing: -.02em; direction: ltr; text-align: right; }
.chap__ar { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }

/* reveal خفيف بالـCSS */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 01 About ---------- */
.about { display: grid; gap: 22px; }
.about__img { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__text { margin: 0; font: 500 19px/1.7 var(--ar); }
.points { list-style: none; margin: 18px 0 0; padding: 0; }
.points li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.points b { font-size: 15px; font-weight: 600; color: var(--teal-deep); }
.points span { color: var(--ink-2); font-size: 15px; }

/* ---------- 02 Favorites ---------- */
.fav {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 6px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.fav::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; min-width: 0; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--milk); box-shadow: inset 0 0 0 1px var(--line); }
.card__img { aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--sand); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 14px 16px 16px; display: grid; gap: 2px; flex: 1; }
.card__en { margin: 0; font: 600 12.5px/1.3 var(--en); color: var(--teal-deep); }
.card__name { margin: 0; font: 700 19px/1.35 var(--ar); }
.card__line { margin: 0; font-size: 14px; color: var(--ink-3); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.card__ask { font-size: 13px; color: var(--teal-deep); }
.fav__hint { margin: 10px auto 0; font-size: 13px; color: var(--ink-3); }

/* ---------- 03 Menu ---------- */
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 18px; background: var(--sand); margin-bottom: 8px; }
.tab { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; color: var(--ink-2); transition: background-color .25s, color .25s; }
.tab [lang="en"] { font: 600 15px/1.1 var(--en); }
.tab small { font-size: 12px; line-height: 1.2; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--milk); }
.panel { animation: fade .35s ease both; }
.row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 38px; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.row__thumb { width: 48px; height: 48px; border-radius: 14px; overflow: hidden; background: var(--sand); display: grid; place-items: center; color: var(--teal); }
.row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.row__thumb svg { width: 20px; height: 24px; }
.row__name { margin: 0; font: 600 16px/1.4 var(--ar); }
.row__meta { margin: 1px 0 0; font-size: 12.5px; color: var(--ink-3); }
.row__meta .cal { color: var(--teal-deep); }
.row__dash { font: 600 16px var(--en); color: var(--ink-3); }

/* ---------- 04 Offers ---------- */
.deals { display: grid; gap: 14px; }
.deal { border-radius: var(--r); overflow: hidden; background: var(--milk); box-shadow: inset 0 0 0 1px var(--line); display: grid; }
.deal img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.deal__body { padding: 16px; display: grid; gap: 4px; }
.deal__tag { margin: 0; font: 600 12.5px/1.3 var(--en); color: var(--teal-deep); }
.deal h3, .season h3 { margin: 0; font: 700 20px/1.35 var(--ar); }
.deal p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.deal__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.deal:not(.deal--big) { grid-template-columns: 112px minmax(0, 1fr); }
.deal:not(.deal--big) img { height: 100%; aspect-ratio: auto; min-height: 150px; }
.season { margin-top: 14px; border-radius: var(--r); background: var(--ink); color: var(--milk); padding: 20px 18px 8px; }
.season .deal__tag { color: #7FD0D7; }
.season__head p { margin: 4px 0 0; font-size: 14.5px; color: rgba(245, 241, 234, .72); }
.season__list { list-style: none; margin: 14px 0 0; padding: 0; }
.season__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 14px 0; border-top: 1px solid rgba(245, 241, 234, .14); }
.season__list span { grid-column: 1; font: 600 12px/1.3 var(--en); color: #7FD0D7; }
.season__list b { grid-column: 1; font-weight: 600; font-size: 15.5px; }
.season__list em { grid-column: 2; grid-row: 1 / 3; align-self: center; font: 600 20px/1 var(--en); font-style: normal; white-space: nowrap; }
.season__list em small { font: 500 12px var(--ar); opacity: .7; }

/* ---------- 05 Visit ---------- */
.visit { display: grid; gap: 12px; }
.vcard { padding: 18px; border-radius: var(--r); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; }
.vcard__k { margin: 0; font: 600 12.5px/1.3 var(--en); color: var(--teal-deep); }
.vcard b { font: 700 19px/1.4 var(--ar); }
.vcard b[lang="en"] { font-family: var(--en); font-weight: 600; text-align: right; }
.vcard__s { font-size: 13px; color: var(--ink-3); }
.vcard__social { display: flex; gap: 8px; margin-top: 4px; }
.vcard__social a { padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 600; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--milk); padding: 44px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot__in { display: grid; justify-items: center; text-align: center; gap: 10px; }
.foot__logo { width: 110px; height: auto; color: var(--teal); }
.foot__tag { margin: 0; font: 600 16px/1.5 var(--ar); }
.foot__demo { margin: 0; font-size: 12.5px; color: rgba(245, 241, 234, .55); }
.foot__demo a { color: #7FD0D7; }

/* ---------- Tray ---------- */
.tray { position: fixed; inset: 0; z-index: 60; }
.tray__scrim { position: absolute; inset: 0; background: rgba(14, 28, 30, .4); opacity: 0; transition: opacity .3s; }
.tray__panel {
  position: absolute; inset-inline: 0; bottom: 0; max-height: 86vh; max-height: 86dvh;
  display: flex; flex-direction: column; border-radius: 24px 24px 0 0; background: var(--milk);
  transform: translateY(100%); transition: transform .35s var(--ease);
}
.tray.is-open .tray__scrim { opacity: 1; }
.tray.is-open .tray__panel { transform: none; }
.tray__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 8px; }
.tray__head h3 { margin: 0; font: 700 20px/1.2 var(--ar); }
.tray__head h3 [lang="en"] { font-weight: 600; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); }
.icon-btn svg { width: 18px; height: 18px; }
.tray__body { flex: 1; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px; }
.tray__empty { padding: 34px 0; text-align: center; color: var(--ink-3); }
.titem { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.titem__img { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: var(--sand); display: grid; place-items: center; color: var(--teal); }
.titem__img img { width: 100%; height: 100%; object-fit: cover; }
.titem__img svg { width: 20px; height: 24px; }
.titem__name { margin: 0; font: 600 15px/1.35 var(--ar); }
.titem__price { font: 500 13px var(--en); color: var(--ink-3); }
.qty { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.qty button { width: 34px; height: 34px; display: grid; place-items: center; font: 500 18px/1 var(--en); }
.qty span { min-width: 16px; text-align: center; font: 600 14px/1 var(--en); }
.tray__foot { padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.tray__sum { display: flex; justify-content: space-between; align-items: baseline; }
.tray__sum b { font: 600 24px/1 var(--en); }
.tray__hint { margin: 4px 0 12px; font-size: 13px; color: var(--ink-3); }

/* ---------- Done ---------- */
.done { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(14, 28, 30, .45); }
.done__card { width: min(380px, 100%); padding: 28px 22px 22px; border-radius: 24px; background: var(--milk); text-align: center; animation: rise .4s var(--ease) both; }
.done__cup { width: 44px; height: 52px; margin: 0 auto 10px; color: var(--teal); }
.done__k { margin: 0; font: 600 12.5px var(--en); color: var(--ink-3); }
.done__num { margin: 2px 0 6px; font: 600 34px/1.1 var(--en); direction: ltr; }
.done__t { margin: 0; font-weight: 600; }
.done__demo { margin: 6px 0 18px; font-size: 13px; color: var(--teal-deep); }

/* ---------- Toast + demo badge ---------- */
.toast {
  position: fixed; z-index: 80; bottom: 64px; left: 50%; max-width: calc(100% - 32px);
  transform: translate(-50%, 8px); padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--milk); font: 600 14px/1.3 var(--ar); text-align: center;
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* سطر «نسخة تجريبية» جوه الهيرو — مش ثابت فوق المحتوى */
.demo-strip { margin: 18px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.demo-strip b { display: inline-block; margin-inline-end: 6px; padding: 2px 9px; border-radius: 999px; background: var(--teal-wash); color: var(--teal-deep); font-weight: 600; }

/* =========================================================
   Tablet / Desktop
   ========================================================= */
@media (min-width: 600px) {
  .fav { grid-auto-columns: 42%; }
  .deals { grid-template-columns: 1.5fr 1fr; align-items: stretch; }
  .deal:not(.deal--big) { grid-template-columns: 1fr; }
  .deal:not(.deal--big) img { aspect-ratio: 16 / 10; min-height: 0; height: auto; }
  .visit { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .nav { grid-template-columns: auto minmax(0, 1fr) auto; }
  .nav__logo { width: 92px; }
  .nav__where { display: none; }
  .nav__links { display: flex; justify-self: center; gap: 30px; }
  .nav__links a { position: relative; padding: 8px 0; font: 600 15px/1 var(--en); color: var(--ink-2); transition: color .25s; }
  .nav__links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transition: transform .3s var(--ease); }
  .nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--ink); }
  .nav__links a[aria-current="true"]::after { transform: scaleX(1); }
  .nav__burger { display: none; }

  /* الهيرو: صورة عريضة والكلام في المساحة الكريمي يمين */
  .hero { position: relative; padding-top: 0; height: clamp(600px, 92vh, 880px); }
  .hero__img { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero__img img { object-position: 30% 50%; }
  .hero__copy { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); }
  .hero__copy > * { max-width: 520px; }
  .hero__title { font-size: clamp(64px, 6.6vw, 104px); }
  .hero__lead { font-size: 18px; }
  .hero__ctas { display: flex; }
  .hero__ctas .btn { min-width: 190px; }

  .index { display: none; }   /* على الديسكتوب الفهرس هو الـnav */

  .sec { padding: 110px 0; }
  .chap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 40px; margin-bottom: 44px; }
  .chap__no { grid-column: 1 / -1; }
  .chap__title { font-size: clamp(56px, 6vw, 84px); }
  .chap__ar { margin: 0 0 10px; font-size: 17px; }

  .about { grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
  .about__text { font-size: 22px; }

  .fav { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; gap: 22px; overflow: visible; max-width: var(--maxw); margin-inline: auto; padding: 0 var(--gutter); }
  .fav__hint { display: none; }
  .card { transition: transform .35s var(--ease), box-shadow .35s; }
  .card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 18px 36px -24px rgba(14, 28, 30, .45); }

  .js-panels .panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 60px; }
  .tabs { max-width: 560px; margin-bottom: 18px; }
  .row { padding: 18px 0; }

  .season { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; padding: 30px; margin-top: 22px; }
  .season__list { margin: 0; }
  .season__list li:first-child { border-top: 0; }

  .tray__panel { inset-inline: auto 12px; top: 12px; bottom: 12px; width: 420px; max-height: none; border-radius: 24px; transform: translateX(calc(-100% - 24px)); }
}

@media (hover: hover) { .index a:hover { background: var(--ink); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
