/* Shared base for the menu mockups: fonts, reset, item sheet, tags, footer.
   Every colour comes from the mockup's own tokens:
   --bg --ink --muted --line --accent --on-accent --surface --display --body */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/fraunces-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/fraunces-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("fonts/fraunces-italic-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/manrope-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/manrope-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }

:root {
  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", system-ui, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --glide: cubic-bezier(.22, 1, .36, 1);
  --v: 0;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.5 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.hm-lock { overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* review strip — only exists on the mockups */
.hm-review {
  font-size: .75rem; padding: .4rem 1rem; text-align: center;
  background: #000; color: #fff; position: relative; z-index: 5;
}
.hm-review a { color: #d3de9b; }

/* photos */
.hm-photo { width: 100%; height: 100%; object-fit: contain; }
.hm-nophoto { display: grid; place-items: center; width: 100%; height: 100%; opacity: .5; }
.hm-nophoto img { width: 42%; }

/* tags */
.hm-tags { display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.hm-tags:empty { display: none; }
.hm-tag {
  font: 600 .6875rem/1 var(--body); padding: .3rem .5rem; border-radius: 99px;
  border: 1px solid currentColor; white-space: nowrap;
}
.hm-tag--new { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.hm-tag--out { opacity: .7; border-style: dashed; }

.hm-btn {
  padding: .7rem 1.1rem; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-weight: 600;
}
.hm-fail { padding: 4rem 1.5rem; text-align: center; display: grid; gap: 1rem; justify-items: center; }

/* reveal: one small rise, staggered by --i */
.hm-reveal { opacity: 0; transform: translateY(18px) scale(.96); }
.hm-reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .5s var(--glide), transform .7s var(--spring);
  transition-delay: calc(var(--i, 0) * 55ms);
}

/* ── item sheet ─────────────────────────────────────────────── */
.hm-sheet, .hm-legal {
  border: 0; padding: 0; color: var(--sheet-ink, var(--ink)); background: var(--sheet-bg, var(--surface));
  width: min(100%, 30rem); max-width: 100%; max-height: 92dvh; overflow: visible;
}
.hm-sheet { margin: auto auto 0; border-radius: 1.5rem 1.5rem 0 0; }
.hm-sheet::backdrop, .hm-legal::backdrop { background: rgb(0 0 0 / .6); backdrop-filter: blur(3px); }
.hm-sheet[open] { animation: hm-up .5s var(--glide); }
.hm-sheet[open]::backdrop, .hm-legal[open]::backdrop { animation: hm-fade .3s ease; }
@keyframes hm-up { from { transform: translateY(100%); } }
@keyframes hm-fade { from { opacity: 0; } }
.hm-sheet__in { padding: 0 1.5rem 1.25rem; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; }
.hm-sheet__x {
  position: absolute; top: .75rem; right: .75rem; z-index: 2; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; font-size: 1.5rem; line-height: 1; background: rgb(127 127 127 / .18);
}
.hm-sheet__fig { height: min(46dvh, 22rem); margin: -3rem 0 .5rem; filter: drop-shadow(0 18px 18px rgb(0 0 0 / .35)); }
.hm-sheet__fig.is-in { animation: hm-pop .65s var(--spring) both; }
.hm-sheet__fig[data-dir="1"].is-in { animation-name: hm-from-r; }
.hm-sheet__fig[data-dir="-1"].is-in { animation-name: hm-from-l; }
@keyframes hm-pop { from { transform: translateY(40px) scale(.7) rotate(-8deg); opacity: 0; } }
@keyframes hm-from-r { from { transform: translateX(60%) rotate(14deg); opacity: 0; } }
@keyframes hm-from-l { from { transform: translateX(-60%) rotate(-14deg); opacity: 0; } }
.hm-sheet__where { font-size: .8125rem; color: var(--sheet-muted, var(--muted)); }
.hm-sheet__name { font: 600 2rem/1.1 var(--display); letter-spacing: -.01em; margin: .15rem 0 .6rem; text-wrap: balance; }
.hm-sheet__tags { margin-bottom: .6rem; }
.hm-sheet__desc { white-space: pre-line; max-width: 60ch; }
.hm-sheet__nav { display: flex; gap: .5rem; justify-content: space-between; margin-top: 1.25rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.hm-sheet__nav button { font-size: .8125rem; font-weight: 600; padding: .6rem 0; min-height: 2.75rem; max-width: 48%; text-align: left; }
.hm-sheet__nav button:last-child { text-align: right; margin-left: auto; }
.hm-sheet__nav button:disabled { visibility: hidden; }
@media (min-width: 720px) {
  .hm-sheet { margin: auto; border-radius: 1.5rem; }
  .hm-sheet[open] { animation-name: hm-pop; }
}

.hm-legal { margin: auto; border-radius: 1rem; padding: 1.5rem; overflow-y: auto; }
.hm-legal h2 { font: 600 1.5rem/1.2 var(--display); margin-bottom: .75rem; }
.hm-legal h3 { font: 700 .8125rem/1.3 var(--body); margin: 1rem 0 .15rem; }
.hm-legal p { font-size: .9375rem; margin-bottom: .6rem; }

/* ── footer ─────────────────────────────────────────────────── */
.hm-foot { padding: 4rem 1.5rem 7rem; text-align: center; display: grid; gap: .9rem; justify-items: center; color: var(--muted); font-size: .875rem; }
.hm-foot__logo { width: 9rem; filter: var(--logo-filter, none); }
.hm-foot__small { max-width: 34ch; }
.hm-foot__links { display: flex; gap: 1.25rem; }
.hm-foot__links button { text-decoration: underline; text-underline-offset: 3px; min-height: 2.75rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
