/* Stack & Slice Deli: a fictional shop's own design (Fable's "backlit awning" direction, 2026-10-27),
   punched up from accro.fr and mrchan.it at Mac's request: food photos framed in colour bands, tilted slabs
   and stickers, a filterable menu, a photo strip, scrolling tickers and a bodega-cat stamp.
   Food photos: local ComfyUI, Qwen Image 2.1, one shared counter scene (Mac chose them over Codex's glossy
   cut-outs, 2026-10-27). Cat and the statement pickle: Codex. Scoped to .deli; nothing from site.css. */
@font-face { font-family: "Anton"; font-weight: 400; font-display: swap; src: url("/assets/fonts/anton-latin.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/archivo-latin.woff2") format("woff2"); }

.business-demo.deli {
  container-type: inline-size;
  --d-yellow: #f5c400; --d-red: #c8102e; --d-ink: #121212; --d-paper: #fafaf7; --d-rule: #d8d5cc;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --focus: var(--d-ink);
  position: relative;
  background: var(--d-paper); color: var(--d-ink);
  border: 0; border-radius: 0; box-shadow: none;
  overflow: clip; /* not hidden: hidden would stop the cat stamp from sticking */
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-size: 17px; line-height: 1.5;
}
.deli a { color: inherit; }
.deli .d-anton, .deli h2, .deli h3, .deli h4, .deli .d-nav, .deli .d-btn, .deli .d-ticker, .deli .d-open, .deli .d-sticker, .deli .d-name, .deli legend, .deli .d-receipt-head, .deli .d-tabs button, .deli .d-statement, .deli .d-card-group, .deli .d-stamp text {
  font-family: "Anton", "Arial Narrow", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .02em;
}
.deli :focus-visible { outline: 3px solid var(--d-ink); outline-offset: 2px; }

/* Slabs and stickers: the hand-placed tilt */
.deli .d-slab { display: inline-block; padding: .02em .22em .06em; transform: rotate(-2deg); }
.deli .d-slab-ink { background: var(--d-ink); color: var(--d-yellow); }
.deli .d-slab-red { background: var(--d-red); color: #fff; }
.deli .d-slab-yellow { background: var(--d-yellow); color: var(--d-ink); }
.deli .d-sticker { position: absolute; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--d-red); color: #fff; font-size: 20px; line-height: 1; border: 3px solid #fff; transform: rotate(-10deg); }

/* The awning */
.deli .d-awning { background: var(--d-yellow); color: var(--d-ink); }
.deli .d-topbar { display: flex; align-items: flex-start; justify-content: flex-end; gap: 1rem; padding: 1.1rem var(--pad) 0; }
.deli .d-logo { display: block; flex: none; width: clamp(150px, 17cqi, 196px); height: clamp(150px, 17cqi, 196px); margin: 0 -2.2cqi 0 0; position: relative; z-index: 0; border-radius: 50%; background: var(--d-paper); border: 3px solid var(--d-red); transform: rotate(-6deg); transition: transform .2s ease; }
.deli .d-logo:hover { transform: rotate(0); }
.deli .d-logo img { display: block; width: 86%; height: 86%; margin: 6% 0 0 7%; }
.deli .d-nav { display: flex; justify-content: flex-end; gap: 1.6rem; padding-top: .7rem; font-size: 18px; }
.deli .d-nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; border-bottom: 3px solid transparent; }
.deli .d-nav a:hover { border-bottom-color: var(--d-red); }
.deli .d-sign { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "name name" "lead pic"; align-items: start; gap: 1.2rem 2rem; padding: .6rem var(--pad) 4.2rem; }
.deli .d-brand { grid-area: name; display: flex; align-items: center; margin-bottom: calc(clamp(24px, 4.4cqi, 50px) * 1.1 + .5rem); }
.deli .d-sign h2 { position: relative; z-index: 2; margin: 0; line-height: .95; }
.deli .d-name-big { display: block; color: var(--d-red); font-size: clamp(48px, 13.8cqi, 168px); line-height: .92; white-space: nowrap; }
.deli .d-kind { position: absolute; left: 0; top: 100%; white-space: nowrap; font-size: clamp(24px, 4.4cqi, 50px); margin-top: .5rem; }
.deli .d-hero-pic { grid-area: pic; position: relative; z-index: 2; width: 100%; justify-self: end; margin: 0; align-self: start; }
.deli .d-hero-pic img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 10px solid #fff; border-radius: 4px; transform: rotate(-3deg); box-shadow: 0 14px 28px rgb(80 50 0 / .28); }
.deli .d-sticker-big { width: 76px; height: 76px; font-size: 24px; right: 2px; top: -6px; transform: rotate(-8deg); z-index: 1; }
.deli .d-lead { grid-area: lead; align-self: center; display: grid; gap: 1.6rem; }
.deli .d-line { margin: 0; font-size: 20px; max-width: 38ch; }
.deli .d-side { display: grid; gap: .75rem; max-width: 420px; justify-items: start; }
.deli .d-side .d-btn-red { justify-self: stretch; }
.deli .d-side .d-btn-ink { display: inline-flex; padding: .6rem 1.4rem; justify-self: center; }
.deli .d-open { display: flex; align-items: center; gap: .7rem; margin: 0 0 .3rem; font-size: 28px; }
.deli .d-open::before { content: ""; width: 12px; height: 12px; background: var(--d-red); flex: none; }
.deli .d-btn { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: .6rem 1rem; font-size: 22px; text-decoration: none; border: 0; border-radius: 4px; transform: rotate(-1.5deg); transition: transform .15s ease; }
.deli .d-btn + .d-btn { transform: rotate(1deg); }
.deli .d-btn:hover { transform: rotate(0) scale(1.02); }
.deli .d-btn-red { background: var(--d-red); color: #fff; }
.deli .d-btn-ink { background: var(--d-ink); color: var(--d-yellow); }
.deli .d-valance { height: 20px; background: radial-gradient(circle at 50% 0, var(--d-yellow) 0 19px, transparent 20px) 0 0 / 40px 20px repeat-x, var(--d-ink); }

/* Tickers: they scroll, and stop under reduced motion */
.deli .d-ticker { height: 52px; overflow: hidden; white-space: nowrap; background: var(--d-ink); color: #fff; font-size: 20px; letter-spacing: .04em; display: flex; align-items: center; }
.deli .d-ticker-track { display: flex; width: max-content; animation: deli-ticker 40s linear infinite; }
.deli .d-ticker-track span { padding-right: 0; }
.deli .d-ticker-red { background: var(--d-red); color: var(--d-yellow); }
@keyframes deli-ticker { to { transform: translateX(-50%); } }

/* Cat stamp: pinned to the bottom right while the demo is on screen */
.deli .d-stamp { position: sticky; top: calc(100dvh - 140px); z-index: 6; display: block; height: 0; text-decoration: none; transition: opacity .2s, visibility .2s; }
.deli .d-stamp.is-away { opacity: 0; visibility: hidden; }
.deli .d-stamp-in { position: absolute; right: 24px; top: 0; width: 108px; height: 108px; border-radius: 50%; background: var(--d-paper); border: 3px solid var(--d-red); color: var(--d-red); box-shadow: 0 6px 14px rgb(0 0 0 / .18); transform: rotate(-8deg); transition: transform .2s ease; }
.deli .d-stamp:hover .d-stamp-in { transform: rotate(0) scale(1.05); }
.deli .d-stamp-ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--d-red); font-size: 12.5px; letter-spacing: .14em; animation: deli-spin 24s linear infinite; }
.deli .d-stamp img { position: absolute; left: 20px; top: 18px; width: 66px; height: 66px; }
@keyframes deli-spin { to { transform: rotate(360deg); } }

/* Menu: filterable cards, each photo framed in its group colour */
.deli .d-menu { padding: clamp(2.4rem, 5vw, 3.8rem) var(--pad); }
.deli .d-menu-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.8rem; }
.deli .d-menu h3 { margin: 0; font-size: clamp(40px, 6cqi, 72px); line-height: 1; }
.deli .d-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.deli .d-tabs button { min-height: 44px; padding: .3rem 1rem; border: 2px solid var(--d-ink); border-radius: 4px; background: transparent; color: var(--d-ink); font-size: 19px; cursor: pointer; }
.deli .d-tabs button:hover { background: #fff; }
.deli .d-tabs button[aria-pressed="true"] { background: var(--d-ink); color: var(--d-yellow); }
.deli .d-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.deli .d-card { display: flex; flex-direction: column; background: #fff; border-bottom: 1px solid var(--d-rule); }
.deli .d-card[hidden] { display: none; }
.deli .d-card-pic { --field: var(--d-yellow); position: relative; aspect-ratio: 1; background: var(--field); }
.deli .d-card-heroes .d-card-pic { --field: var(--d-red); }
.deli .d-card-sides .d-card-pic { --field: var(--d-ink); }
.deli .d-card-pic { overflow: hidden; }
.deli .d-card-pic img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; transition: transform .25s ease; }
.deli .d-card:hover .d-card-pic img { transform: scale(1.03); }
.deli .d-card .d-sticker { z-index: 1; top: 16px; left: 16px; width: 60px; height: 60px; font-size: 19px; transform: rotate(-8deg); }
.deli .d-card-heroes .d-sticker { background: var(--d-yellow); color: var(--d-ink); }
.deli .d-card-body { padding: .9rem 1rem 1.1rem; }
.deli .d-card-group { display: block; font-size: 13px; color: var(--d-red); letter-spacing: .06em; }
.deli .d-name { margin: .15rem 0 .3rem; font-size: 22px; line-height: 1.05; }
.deli .d-card-body p { margin: 0; font-size: 16px; line-height: 1.4; }

/* Statement line with a picture set into the sentence */
.deli .d-statement { display: flex; justify-content: center; align-items: center; gap: .35em; margin: 0; padding: clamp(2.4rem, 6vw, 4.5rem) var(--pad); text-align: left; font-size: clamp(36px, 7cqi, 88px); line-height: 1; border-top: 1px solid var(--d-rule); }
.deli .d-st-lines > span { display: block; white-space: nowrap; }
.deli .d-st-lines > span + span { padding-left: 1.1em; }
.deli .d-pickle { position: relative; flex: none; width: 2.7em; height: 1.4em; }
.deli .d-pickle img { position: absolute; left: 50%; top: 50%; height: 2.7em; width: auto; transform: translate(-50%, -50%) rotate(72deg); filter: drop-shadow(0 2px 3px rgb(0 0 0 / .12)); }

/* Photo strip, red rules between */
.deli .d-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: var(--d-red); padding: 8px 0; }
.deli .d-photos img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

/* Order ahead: ink section, the picked item taped onto a paper receipt */
.deli .d-order { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "title ticket" "note ticket" "form ticket"; column-gap: 2.5rem; background: var(--d-ink); color: #fff; padding: clamp(2.4rem, 5vw, 3.8rem) var(--pad); }
.deli .d-order > h3 { grid-area: title; }
.deli .d-order-note { grid-area: note; }
.deli .d-order-grid { display: contents; }
.deli .d-order form { grid-area: form; }
.deli .d-ticket { grid-area: ticket; align-self: center; }
.deli .d-order h3 { margin: 0 0 .7rem; color: #fff; font-size: clamp(40px, 6cqi, 64px); line-height: 1; }
.deli .d-order-note { margin: 0 0 1.6rem; font-size: 15px; color: var(--d-paper); }
.deli .d-order form { display: grid; gap: 1.6rem; }
.deli fieldset { border: 0; margin: 0; padding: 0; }
.deli legend { color: var(--d-yellow); font-size: 20px; margin-bottom: .6rem; }
.deli .d-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(4, auto); gap: 0 1.6rem; }
.deli .d-rows label { display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: .2rem .7rem; border: 0; border-bottom: 1px solid rgb(216 213 204 / .3); cursor: pointer; }
.deli .d-rows input { accent-color: var(--d-red); width: 18px; height: 18px; margin: 0; }
.deli .d-rows b { font-family: "Anton", sans-serif; font-weight: 400; color: var(--d-yellow); font-size: 18px; min-width: 3.4rem; }
.deli .d-rows label:has(input:checked) { box-shadow: inset 4px 0 0 var(--d-yellow); }
.deli .d-order .d-rows input:focus-visible { outline: 3px solid var(--d-yellow); outline-offset: 3px; }
.deli .d-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.deli .d-chips label { position: relative; }
.deli .d-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.deli .d-chips span { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1.1rem; background: #fff; color: var(--d-ink); border: 2px solid var(--d-ink); border-radius: 4px; font-weight: 700; }
.deli .d-chips input:checked + span { background: var(--d-red); color: #fff; border-color: var(--d-red); }
.deli .d-chips input:focus-visible + span { outline: 3px solid var(--d-yellow); outline-offset: 2px; }
.deli .d-ticket { position: relative; padding-top: 90px; }
.deli .d-ticket-pic { position: absolute; z-index: 1; top: 0; left: 50%; width: 170px; height: 170px; object-fit: cover; border: 7px solid #fff; border-radius: 3px; transform: translateX(-50%) rotate(-5deg); box-shadow: 0 4px 10px rgb(0 0 0 / .35); }
.deli .d-ticket::after { content: ""; position: absolute; z-index: 2; top: -8px; left: 50%; width: 72px; height: 22px; background: rgb(255 255 255 / .5); transform: translateX(-50%) rotate(-4deg); }
.deli .d-receipt { position: relative; background: var(--d-paper); color: var(--d-ink); padding: 6.4rem 1.3rem 2.2rem; transform: rotate(1.5deg); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), 97.5% 100%, 95.0% calc(100% - 4px), 92.5% 100%, 90.0% calc(100% - 4px), 87.5% 100%, 85.0% calc(100% - 4px), 82.5% 100%, 80.0% calc(100% - 4px), 77.5% 100%, 75.0% calc(100% - 4px), 72.5% 100%, 70.0% calc(100% - 4px), 67.5% 100%, 65.0% calc(100% - 4px), 62.5% 100%, 60.0% calc(100% - 4px), 57.5% 100%, 55.0% calc(100% - 4px), 52.5% 100%, 50.0% calc(100% - 4px), 47.5% 100%, 45.0% calc(100% - 4px), 42.5% 100%, 40.0% calc(100% - 4px), 37.5% 100%, 35.0% calc(100% - 4px), 32.5% 100%, 30.0% calc(100% - 4px), 27.5% 100%, 25.0% calc(100% - 4px), 22.5% 100%, 20.0% calc(100% - 4px), 17.5% 100%, 15.0% calc(100% - 4px), 12.5% 100%, 10.0% calc(100% - 4px), 7.5% 100%, 5.0% calc(100% - 4px), 2.5% 100%, 0.0% calc(100% - 4px)); }
.deli .d-receipt-head { margin: 0 0 .8rem; font-size: 26px; color: var(--d-red); text-align: center; border-bottom: 1px dashed var(--d-rule); padding-bottom: .6rem; }
.deli .d-receipt ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.deli .d-receipt li { padding: .3rem 0; border-bottom: 1px dashed var(--d-rule); font-size: 17px; }
.deli .d-receipt li:first-child { font-weight: 700; }
.deli .d-receipt-note { margin: 0; color: var(--d-red); font-size: 15px; font-weight: 700; }

/* Hours band, with the cat */
.deli .d-visit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 230px; gap: 2rem 3rem; align-items: center; background: var(--d-yellow); padding: clamp(2.4rem, 5vw, 3.8rem) var(--pad) 0; }
.deli .d-visit > div { padding-bottom: clamp(2.4rem, 5vw, 3.8rem); }
.deli .d-visit h3 { margin: 0 0 .8rem; font-size: clamp(40px, 5.4cqi, 60px); line-height: 1; white-space: nowrap; }
.deli .d-hours { margin: 0; }
.deli .d-hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgb(18 18 18 / .25); }
.deli .d-hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.deli .d-hours div.is-today { font-weight: 700; }
.deli .d-where p { margin: 0 0 1.2rem; font-size: 18px; max-width: 40ch; }
.deli .d-where .d-btn { display: inline-flex; padding: .6rem 1.6rem; }
.deli .d-visit-cat { display: block; width: 100%; height: auto; align-self: end; margin-bottom: 6px; }

.deli .d-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding: 1rem var(--pad); background: var(--d-ink); color: var(--d-paper); font-size: 14px; }
.deli .d-foot p { margin: 0; }
.deli .d-foot a { display: inline-flex; align-items: center; min-height: 24px; }

@container (max-width: 1000px) {
  .deli .d-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deli .d-visit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 170px; }
}
@media (max-width: 760px) {
  .deli .d-sign { grid-template-columns: 1fr; grid-template-areas: "name" "pic" "lead"; padding-bottom: 1.6rem; }
  .deli .d-name-big { white-space: normal; font-size: 58px; line-height: .95; }
  .deli .d-name-big > span { display: block; }
  .deli .d-kind { font-size: 24px; margin-top: 10px; }
  .deli .d-brand { margin-bottom: 42px; }
  .deli .d-hero-pic { width: auto; justify-self: stretch; margin: 8px 6px 0; }
  .deli .d-hero-pic img { border-width: 7px; }
  .deli .d-sticker-big { width: 56px; height: 56px; font-size: 18px; right: -8px; top: -12px; }
  .deli .d-line { font-size: 18px; }
  .deli .d-ticker { height: 44px; font-size: 17px; }
  .deli .d-stamp { display: none; }
  .deli .d-logo { width: 104px; height: 104px; margin: 0 -10px 0 -4px; }
  .deli .d-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .deli .d-card .d-sticker { width: 44px; height: 44px; font-size: 14px; top: 12px; left: 12px; }
  .deli .d-card-pic img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
  .deli .d-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .deli .d-tabs button { font-size: 17px; }
  .deli .d-statement { font-size: 32px; line-height: 1.05; }
  .deli .d-name { font-size: 19px; }
  .deli .d-card-body { padding: .7rem .75rem .9rem; }
  .deli .d-photos { grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px 0; }
  .deli .d-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .deli .d-visit { grid-template-columns: 1fr; }
  .deli .d-order { grid-template-columns: 1fr; grid-template-areas: "title" "note" "form" "ticket"; row-gap: 0; }
  .deli .d-ticket { margin-top: 2.5rem; }
  .deli .d-visit-cat { width: 170px; justify-self: center; margin-top: .5rem; }
  .deli .d-visit > div { padding-bottom: 0; }
  .deli .d-rows { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .deli .d-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .deli .d-chips span { width: 100%; justify-content: center; min-height: 48px; }
  .deli .d-ticket { max-width: 340px; margin: 0 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .deli .d-ticker-track, .deli .d-stamp-ring { animation: none; }
  .deli .d-btn, .deli .d-card-pic img, .deli .d-stamp-in, .deli .d-stamp, .deli .d-logo { transition: none; }
}
