@font-face {
  font-family: Vazirmatn;
  src: url("assets/vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page-color: #f6f5f0;
  --card-color: #fee600;
  --ink-color: #080906;
  --muted-color: #595624;
  --card-radius: 16px;
  --page-gutter: clamp(24px, 11.538vw, 54px);
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-synthesis: none;
  color: var(--ink-color);
  background: var(--page-color);
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }
html { min-height: 100%; scrollbar-gutter: stable; }
body { margin: 0; min-width: 280px; }
summary { font: inherit; color: inherit; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
summary { touch-action: manipulation; }
summary:focus-visible { outline: 3px solid var(--ink-color); outline-offset: 5px; }
h1, h2, p { margin: 0; }
img, svg { display: block; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cafe-shell { width: 100%; max-width: 468px; margin-inline: auto; min-height: 100vh; min-height: 100svh; padding-bottom: 100px; }
.content-width { margin-inline: var(--page-gutter); }
.view { min-height: 100vh; min-height: 100svh; padding-bottom: 100px; }
.category-panel[open] > .menu-view { animation: reveal-view 230ms ease-out both; }
.home-header, .menu-header { height: clamp(318px, 76.71vw, 359px); position: relative; }
.brand-logo { position: absolute; top: clamp(46px, 12.82vw, 60px); left: 50%; transform: translateX(-50%); width: 168px; height: 216px; object-fit: contain; }
.category-list { display: grid; gap: 21px; }
.category-card { display: flex; align-items: center; width: 100%; min-height: 61px; padding: 8px 21px 8px 10px; gap: 17px; border-radius: var(--card-radius); background: var(--card-color); text-align: right; transition: transform 150ms ease, background-color 150ms ease; }
.category-icon { width: 30px; height: 34px; flex-shrink: 0; }
.category-copy { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.category-name { font-size: 13px; font-weight: 750; line-height: 1.85; }
.category-hint { color: var(--muted-color); font-size: 11px; font-weight: 400; line-height: 1.65; }
.category-arrow { height: 21px; width: 21px; flex-shrink: 0; transition: transform 150ms ease; }
.category-card:active, .back-button:active { transform: scale(.98); }

.back-button { position: absolute; top: 60px; left: 30px; min-width: 110px; height: 51px; display: flex; flex-direction: row; direction: ltr; align-items: center; justify-content: center; gap: 10px; border-radius: 28px; background: var(--card-color); font-size: 13px; font-weight: 700; z-index: 1; transition: transform 150ms ease; }
.back-button span { direction: rtl; }
.back-button svg { width: 16px; height: 16px; }
.menu-illustration { position: absolute; top: 115px; left: 50%; transform: translateX(-50%); width: 182px; height: 170px; object-fit: contain; }
.menu-heading { position: absolute; right: 0; left: 0; bottom: 30px; display: flex; align-items: center; gap: 12px; }
.menu-heading > svg { height: 34px; width: 30px; flex-shrink: 0; --card-color: var(--page-color); }
.menu-heading h2 { font-size: 20px; font-weight: 850; line-height: 1.7; }
.menu-items { list-style: none; padding: 0; margin-block: 0; display: grid; gap: 20px; }
.menu-item { background: var(--card-color); border-radius: var(--card-radius); overflow: hidden; }
.item-button { padding: 15px 21px; min-height: 61px; width: 100%; display: flex; align-items: center; gap: 9px; background: transparent; text-align: right; font-size: 13px; font-weight: 750; }
.item-button:focus-visible { outline-offset: -5px; border-radius: var(--card-radius); }
.item-dot { height: 15px; width: 15px; border-radius: 50%; background: var(--ink-color); flex-shrink: 0; display: grid; place-items: center; }
.item-dot::after { content: ''; width: 7px; height: 2px; background: var(--card-color); transform: scaleX(0); transition: transform 160ms ease; }
.menu-item[open] > .item-button .item-dot::after { transform: scaleX(1); }
.item-name { flex: 1; }
.item-price { font-size: 11px; font-weight: 500; }
.item-description { padding: 0 45px 17px 21px; color: #343318; font-size: 12px; line-height: 2; }
.item-description p { padding-top: 9px; border-top: 1px solid rgb(8 9 6 / 12%); }
.menu-view { padding-bottom: 185px; }

@media (hover: hover) {
  .category-card:hover, .back-button:hover { background: #f4dc00; }
  .category-card:hover .category-arrow { transform: translateX(-3px); }
  .item-button:hover { background: rgb(0 0 0 / 3%); }
}
@media (max-width: 420px) {
  .back-button { top: 40px; left: 24px; height: 47px; min-width: 102px; }
  .menu-illustration { top: 84px; }
  .menu-heading { bottom: 26px; }
  .menu-heading h2 { font-size: 19px; }
}
@media (max-width: 330px) {
  .category-card { gap: 10px; padding-right: 16px; }
  .category-name, .item-button { font-size: 12px; }
  .menu-heading h2 { font-size: 17px; }
}
@keyframes reveal-view { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Native HTML disclosure controls provide all interaction; no scripts or URL changes. */
.category-panel > .category-toggle { display: block; }
.category-panel:not([open]) > .category-toggle .back-button { display: none; }
.category-panel[open] { position: relative; }
.category-panel[open] > .category-toggle { height: 0; }
.category-panel[open] > .category-toggle .category-card { display: none; }
.cafe-shell:has(.category-panel[open]) { padding-bottom: 0; }
.cafe-shell:has(.category-panel[open]) > .home-header { display: none; }
.category-list:has(> .category-panel[open]) { display: block; margin-inline: 0; }
.category-list:has(> .category-panel[open]) > .category-panel:not([open]) { display: none; }
.category-toggle:focus-visible { outline: none; }
.category-toggle:focus-visible .category-card,
.category-toggle:focus-visible .back-button { outline: 3px solid var(--ink-color); outline-offset: 5px; }
