/* Family "zine": tabletop still-life with tagged objects, tape tabs, torn receipt list. Tokens: --bg (table/page),
   --surface (receipt paper), --surface-2 (table field without cover), --ink, --accent (tape, prices),
   --fm-display (masthead), --fm-mono (receipt type, default ui-monospace). */
.fm--zine { --fm-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; background: var(--bg); }
.fm--zine .fm-app { background: var(--bg); }

.fmz-head { padding: max(14px, env(safe-area-inset-top)) 18px 6px; }
.fmz-head__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fmz-issue { font-family: var(--fm-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.fmz-name { margin: 18px 0 0; font-family: var(--fm-display); font-weight: var(--fm-display-weight); font-size: clamp(48px, 15vw, 84px); line-height: .9; letter-spacing: -.03em; }
.fmz-tagline { margin: 10px 0 0; display: inline-block; padding: 4px 10px; background: var(--ink); color: var(--bg); font-family: var(--fm-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; transform: rotate(-1.5deg); }

.fmz-table { position: relative; height: min(132vw, 600px); margin: 18px 0 0; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--surface-2) 70%, #fff) 0, var(--surface-2) 60%, color-mix(in srgb, var(--surface-2) 80%, var(--ink)) 100%); }
.fmz-table__bg { position: absolute; inset: 0; opacity: .22; filter: grayscale(.4) blur(2px); }
.fmz-table__bg img { width: 100%; height: 100%; object-fit: cover; }
.fmz-obj { position: absolute; z-index: 1; }
.fmz-obj__img { transform: rotate(var(--r)); }
.fmz-obj .fm-cut.is-masked { filter: drop-shadow(14px 22px 16px rgba(40, 25, 10, .35)); }
.fmz-tag { position: absolute; left: 58%; top: 68%; z-index: 3; display: grid; gap: 1px; min-width: 104px; max-width: 150px; padding: 9px 11px 9px 22px; background: var(--surface); color: var(--ink); clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); filter: drop-shadow(0 6px 6px rgba(40, 25, 10, .25)); transform-origin: 0 50%; transform: rotate(calc(var(--sw) * 8deg)); font-family: var(--fm-mono); }
.fmz-tag::before { content: ""; position: absolute; right: 100%; top: 50%; width: 46px; height: 1px; background: color-mix(in srgb, var(--ink) 55%, transparent); transform-origin: right; transform: rotate(-24deg); }
.fmz-tag__hole { position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 30%, var(--bg)); }
.fmz-tag .mz-item__name { margin: 0; font-family: var(--fm-mono); font-size: 11.5px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.fmz-tag .mz-item__price { color: var(--accent-ink); font-size: 14px; font-weight: 700; }
html.fm-js .fmz-obj[data-fx].is-in .fmz-tag { animation: fmzSwing 1.6s calc(.4s + var(--i) * .12s) var(--fm-ease) both; }
@keyframes fmzSwing { 0% { transform: rotate(calc(var(--sw) * 38deg)); opacity: 0; } 20% { opacity: 1; } 45% { transform: rotate(calc(var(--sw) * -6deg)); } 70% { transform: rotate(calc(var(--sw) * 12deg)); } 100% { transform: rotate(calc(var(--sw) * 8deg)); } }

.fmz-about { margin: 22px 18px 0; font-family: var(--fm-display); font-size: 21px; line-height: 1.35; letter-spacing: -.01em; }
.fmz-extras { padding: 18px 16px 0; }
.fm--zine .mz-wifi, .fm--zine .mz-info, .fm--zine .mzb-hours, .fm--zine .mzb-social, .fm--zine .mzb-text { border-radius: 4px; background: var(--surface); box-shadow: 0 1px 0 var(--line), 0 12px 24px -18px rgba(40, 25, 10, .5); }

.fmz-tapes { position: sticky; top: 0; z-index: 30; margin-top: 18px; padding: 10px 0 8px; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fmz-tapes__track { display: flex; gap: 10px; overflow-x: auto; padding: 4px 16px 6px; scrollbar-width: none; }
.fmz-tapes__track::-webkit-scrollbar { display: none; }
.fmz-tape { position: relative; flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: color-mix(in srgb, var(--accent) 22%, var(--surface)); color: var(--ink); font-family: var(--fm-mono); font-size: 13px; font-weight: 700; text-transform: uppercase; text-decoration: none; letter-spacing: .02em; clip-path: polygon(3% 8%, 9% 0, 15% 9%, 22% 1%, 29% 8%, 36% 0, 43% 8%, 50% 1%, 57% 8%, 64% 0, 71% 9%, 78% 1%, 85% 8%, 92% 0, 97% 9%, 100% 50%, 97% 91%, 92% 100%, 85% 92%, 78% 99%, 71% 91%, 64% 100%, 57% 92%, 50% 99%, 43% 92%, 36% 100%, 29% 92%, 22% 99%, 15% 91%, 9% 100%, 3% 92%, 0 50%); transform: rotate(-1.5deg); transition: transform .4s var(--fm-spring), background .2s ease; }
.fmz-tape:nth-child(even) { transform: rotate(1.5deg); }
.fmz-tape.is-on { background: var(--accent); color: var(--on-accent); transform: rotate(0) scale(1.05); }

.fmz-receipt { position: relative; margin: 14px 14px 0; padding: 28px 20px 30px; background: var(--surface); color: var(--ink); font-family: var(--fm-mono); filter: drop-shadow(0 18px 22px rgba(40, 25, 10, .22)); --tooth: 9px; --zz: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--tooth) * 2) 51% repeat-x; -webkit-mask: var(--zz); mask: var(--zz); }
.fmz-receipt.is-plain { -webkit-mask: none; mask: none; border-radius: var(--radius); }
.fmz-receipt__top { text-align: center; font-size: 12px; line-height: 1.5; color: var(--muted); padding-bottom: 16px; border-bottom: 1.5px dashed color-mix(in srgb, var(--ink) 40%, transparent); }
.fmz-receipt__top p { margin: 0; }
.fmz-receipt__name { font-family: var(--fm-display); font-size: 26px; color: var(--ink); margin-bottom: 4px !important; }
.fmz-receipt__meta { display: flex; justify-content: space-between; margin-top: 10px !important; text-transform: uppercase; }
.fmz-sec { padding: 18px 0 8px; border-bottom: 1.5px dashed color-mix(in srgb, var(--ink) 40%, transparent); scroll-margin-top: 90px; }
.fmz-sec__title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.fmz-sec__title::before, .fmz-sec__title::after { content: ""; flex: 1; height: 0; border-top: 3px double var(--ink); }
.fmz-sec__title span { order: 0; } .fmz-sec__title::before { order: -1; } .fmz-sec__title::after { order: 1; }
.fmz-sec__title small { order: 2; font-weight: 400; color: var(--muted); }
.fmz-row { padding: 10px 0; }
.fmz-row__head { display: flex; align-items: baseline; gap: 6px; }
.fmz-row__head i { flex: 1; min-width: 12px; border-bottom: 2px dotted color-mix(in srgb, var(--ink) 45%, transparent); transform: translateY(-4px); }
.fmz-row .mz-item__name { margin: 0; font-family: var(--fm-mono); font-size: 14.5px; font-weight: 700; line-height: 1.3; text-transform: uppercase; letter-spacing: -.01em; }
.fmz-row .mz-item__price { flex: none; display: inline-grid; justify-items: end; font-size: 15px; font-weight: 700; white-space: nowrap; color: var(--ink); }
.fmz-row .mz-item__desc { margin: 3px 0 0; font-family: var(--font-b); color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.fmz-row .mz-item__meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.fmz-row .mz-badge { border-radius: 2px; font-family: var(--fm-mono); text-transform: uppercase; font-size: 10px; }
.fmz-receipt__end { padding-top: 18px; text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fmz-receipt__end p { margin: 0; }
.fmz-receipt__end a { color: inherit; }
.fmz-barcode { display: block; width: 72%; height: 46px; margin: 14px auto 10px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px); }
.fmz-foot { padding: 26px 18px 40px; text-align: center; }

/* receipt "prints": sections reveal top to bottom */
html.fm-js .fmz-sec[data-fx="mask"] { transition-duration: 1.1s; }

@media (prefers-reduced-motion: reduce) { html.fm-js .fmz-obj[data-fx].is-in .fmz-tag { animation: none; } }
html.fm-still .fmz-obj .fmz-tag { animation: none !important; }
