/* ==========================================================================
   12 KRAFT & STAMP (bakery packaging), shown for Rise & Crumb Bakery (sample business)
   The page is a white pastry box with a kraft lid. Kraft paper is used twice: the hero
   and the stamped bake-times band, tied off with red-and-white twine. Everything else is
   plain label-white paper with blue-black type, so the stamps are the one loud thing.

   RE-SKIN: change the shared tokens in the first block of :root.
   ========================================================================== */

/* Shared token layer (Linnet Studio library). Presets in AUDIT section 7 override these values. */
:root {
  --c-bg: #fffcf5;          /* page and sticker-label white: every plain section (ink on it 13.9:1) */
  --c-surface: #f7f0e3;     /* order slip, review cards, map card: a warm paper step above the page */
  --c-ink: #1f2a44;         /* blue-black stamp ink: text, logo, rules, footer (13.9:1 on bg, 6.2:1 on kraft) */
  --c-muted: #4a5268;       /* secondary text on bg and surface (7.6:1 and 6.9:1); never on kraft */
  --c-line: #e2d6bf;        /* decorative hairlines between sections */
  --c-line-strong: #6b7385; /* dotted price leaders, tick-box borders (4.6:1 on bg) */
  --c-accent: #b3261e;      /* red stamp ink: buttons, time stamps, prices, twine (6.4:1 on bg; never text on kraft) */
  --c-on-accent: #fffcf5;   /* text on the accent */
  --c-accent-2: #c9a47a;    /* kraft paper: the hero and bake-times band, footer lettering (6.2:1 with ink) */
  --f-display: "League Gothic", "Oswald", Impact, "Arial Narrow", sans-serif; /* stamps, masthead, headings, prices */
  --f-body: "Zilla Slab", Rockwell, Georgia, serif;                           /* text, labels, forms */
  --f-mono: ui-monospace, "SF Mono", Menlo, monospace;                        /* not used in this theme */
  --r-sm: 6px;              /* labels, buttons, fields */
  --r-lg: 20px;             /* die-cut photo windows */
  --r-pill: 999px;          /* not used in this theme */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 40px; --s-5: 64px; --s-6: 96px;

  /* Theme names map to the shared layer */
  --label: var(--c-bg);
  --surface: var(--c-surface);
  --ink: var(--c-ink);
  --muted: var(--c-muted);
  --kraft: var(--c-accent-2);
  --stamp: var(--c-accent);
  --font-stamp: var(--f-display);
  --font-text: var(--f-body);
  --radius: var(--r-sm);
  --kraft-edge: color-mix(in oklab, var(--kraft) 78%, black);     /* cut edge of the box windows */
  --rule: color-mix(in oklab, var(--ink) 40%, var(--label));      /* dashed perforation inside the bake label */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --bar-h: 0px;             /* height of the phone action bar */
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(1.75rem, 6vw, 5rem);

  /* Type scale */
  --t-small: .9375rem;
  --t-lead: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --t-h2: clamp(2.5rem, 2.1rem + 1.9vw, 4rem);
  --t-mast: clamp(4.5rem, 3rem + 7vw, 9rem);

  /* Kraft paper: fine grain, a few pale fibres, uneven tone (generated, no file) */
  --kraft-tex:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .22 0 0 0 0 .13 0 0 0 0 .05 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05 .42' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .96 0 0 0 0 .86 0 0 0 1.1 -.68'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .15 0 0 0 0 .05 0 0 0 .22 -.04'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");

  color-scheme: light;
  accent-color: var(--stamp);
}
@media (max-width: 759.98px) {
  :root { --bar-h: calc(60px + env(safe-area-inset-bottom)); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-bottom: calc(var(--bar-h) + 16px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--label);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.55;
  padding-bottom: var(--bar-h);
}
@media (min-width: 1080px) { body { font-size: 1.125rem; } }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[id] { scroll-margin-top: 1rem; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
h2 {
  font-family: var(--font-stamp);
  font-size: var(--t-h2);
  font-weight: 400;
  line-height: .98;
  letter-spacing: .01em;
}
.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprite { display: none; }
.i { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 30;
  padding: .75rem 1rem;
  background: var(--ink); color: var(--label);
}
.skip:focus { top: 1rem; }

/* Touch polish: no grey tap flash, no double-tap delay, a short press on everything pressable */
a, button, summary, label, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn, .action-bar a { transition: transform 120ms var(--ease-out); }
.btn:active, .action-bar a:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .btn, .action-bar a { transition: none; } }

/* ---------- Packaging pieces ---------- */

/* Kraft paper: used on the header, the hero and the bake-times band only */
.kraft, main { background-color: var(--kraft); background-image: var(--kraft-tex); }
.plain { background: var(--label); }
.plain > .wrap { padding-block: var(--section); }
.plain + .plain > .wrap { border-top: 1px solid var(--c-line); }

/* Rubber-stamp ink: speckled coverage and soft edges, pressed into the paper */
.stamp-ink { filter: url(#ink); mix-blend-mode: multiply; }

/* White sticker label */
.label {
  background: var(--label);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 1px 1px rgb(60 40 20 / .18), 0 14px 28px -16px rgb(60 40 20 / .55);
}

/* Red-and-white baker's twine: ties off the kraft band */
.twine {
  height: 7px;
  background: repeating-linear-gradient(-62deg, var(--stamp) 0 5px, var(--label) 5px 10px);
  box-shadow: 0 2px 2px rgb(40 25 10 / .3);
}

/* Die-cut box window with cellophane; the caption sits below, never on the photo */
.window { margin: 0; }
.pane {
  position: relative;
  margin: 8px;
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 7px var(--kraft-edge), 0 0 0 8px rgb(40 25 10 / .22);
}
.pane img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.pane::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  pointer-events: none;
  box-shadow: inset 0 6px 14px rgb(20 10 0 / .35), inset 0 0 0 1px rgb(20 10 0 / .3);
  background: linear-gradient(115deg, rgb(255 255 255 / .16) 0 13%, transparent 13% 25%, rgb(255 255 255 / .08) 25% 29%, transparent 29%);
}
.window figcaption { margin: 1.1rem 8px 0; color: var(--muted); font-size: var(--t-small); line-height: 1.4; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .5rem 1.1rem;
  border: 2px solid var(--stamp);
  border-radius: var(--radius);
  background: var(--stamp);
  color: var(--c-on-accent);
  font: 700 1.0625rem/1.15 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn-lg { min-height: 52px; padding-inline: 1.35rem; font-size: 1.125rem; }
.btn-plain { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn:focus-visible { outline-color: var(--ink); }

.section-head { max-width: 46rem; margin-bottom: var(--s-3); }
@media (min-width: 760px) { .section-head { margin-bottom: var(--s-4); } }
.section-head p { margin-top: .6rem; font-size: var(--t-lead); color: var(--muted); }
.lede { max-width: 32em; margin-top: var(--s-2); font-size: var(--t-lead); color: var(--muted); }

/* Swipe rail on phones (the next card peeks in), a grid from 760px */
.rail {
  position: relative; /* contains the screen-reader-only spans, so they cannot widen the page */
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; column-gap: var(--s-3);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail:focus-visible { outline-offset: -3px; }

/* ---------- Demo notice ---------- */
.demo {
  background: var(--ink);
  color: var(--label);
  font-size: .8125rem;
  line-height: 1.3;
  padding: 7px var(--gutter);
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Header ---------- */
.top { border-bottom: 1px solid rgb(31 42 68 / .28); }
.top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.5rem;
  padding-top: .35rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 48px;
  margin-right: auto;
  font-family: var(--font-stamp);
  font-size: 1.875rem;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-seal { width: 40px; height: 40px; flex: none; rotate: -12deg; }
.nav { order: 3; flex: 1 0 100%; }
.nav ul { display: flex; justify-content: space-between; gap: .25rem; }
.nav a,
.top-tel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}
.nav a { min-width: 44px; font-size: .9375rem; }
.nav a:last-child { justify-content: flex-end; }
.top-tel, .top-btn { display: none; }
.top-tel { font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (min-width: 760px) {
  .top-inner { padding-block: .6rem 0; }
  .brand { min-height: 52px; font-size: 2.125rem; }
  .brand-seal { width: 46px; height: 46px; }
  .top-tel { display: inline-flex; }
  .top-btn { display: inline-flex; }
  .nav a { font-size: 1rem; }
  .nav a:last-child { justify-content: flex-start; }
  .nav ul { justify-content: flex-start; gap: .25rem 2rem; }
}
@media (min-width: 1080px) {
  .top-inner { flex-wrap: nowrap; padding-block: .5rem; min-height: 72px; }
  .nav { order: 0; flex: 0 1 auto; margin-right: 0; }
  .nav ul { gap: .25rem 1.5rem; }
  .brand { margin-right: 2.5rem; }
  .top-tel { margin-left: auto; }
}

/* ---------- Hero: the box lid ---------- */
.hero { padding-block: clamp(1rem, 4.5vw, 4rem) clamp(2rem, 5vw, 4.5rem); }
.hero-inner { display: grid; gap: var(--s-3); align-items: center; }
.hero-seal { display: none; color: var(--ink); rotate: -9deg; }
h1 { font-weight: 400; }
.h1-name {
  display: block;
  font-family: var(--font-stamp);
  font-size: var(--t-mast);
  line-height: .84;
  letter-spacing: .005em;
  text-transform: uppercase;
  filter: url(#ink-light);
}
.h1-kind {
  display: block;
  margin-top: .6rem;
  font-family: var(--font-text);
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
}
.hero-lede { max-width: 28em; margin: var(--s-2) 0 var(--s-3); font-size: var(--t-lead); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-window figcaption { color: var(--ink); }

@media (min-width: 760px) {
  .hero-seal { display: block; width: clamp(72px, 9vw, 120px); height: clamp(72px, 9vw, 120px); margin-bottom: var(--s-2); }
  .hero-lede { margin-bottom: var(--s-4); }
}
@media (min-width: 1080px) {
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s-5); }
  .hero-window .pane img { aspect-ratio: 5 / 6; }
}

/* ---------- Signature: the stamped bake schedule ---------- */
.bake { position: relative; padding-bottom: calc(var(--section) + 7px); }
.bake > .twine { position: absolute; inset: auto 0 0 0; }
.bake-label { padding: 1.25rem 1.25rem 1.1rem; }
.bake-lede { margin-top: .5rem; color: var(--muted); font-size: var(--t-lead); }
.bakes { margin-top: var(--s-2); border-top: 2px dashed var(--rule); }
.slot {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0 1rem;
  align-items: start;
  padding-block: 1.1rem;
  border-bottom: 2px dashed var(--rule);
}
.slot-name { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.slot-items { margin-top: .25rem; line-height: 1.4; }
.slot-note { margin-top: .35rem; color: var(--muted); font-size: var(--t-small); line-height: 1.35; }
.slot-time { margin: 0; padding: .35rem 0 0; font-weight: 400; }
.stamp-time {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  padding: .2rem .7rem .1rem;
  border: 3px solid currentColor;
  border-radius: 9px;
  box-shadow: inset 0 0 0 3px var(--label), inset 0 0 0 4.5px currentColor;
  color: var(--stamp);
  font-family: var(--font-stamp);
  font-size: 2.875rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  rotate: var(--r, -3deg);
}
.stamp-time small { font-size: .42em; letter-spacing: .06em; }
.slot:nth-child(1) .stamp-time { --r: -4deg; --i: 1; }
.slot:nth-child(2) .stamp-time { --r: 2.5deg; --i: 2; }
.slot:nth-child(3) .stamp-time { --r: -2deg; --i: 3; }

.bake-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: var(--s-3); }
.bake-foot p:first-child { max-width: 30em; }
.dater {
  --i: 4;
  display: grid;
  flex: none;
  justify-items: center;
  padding: .35rem .8rem .45rem;
  border: 3px solid currentColor;
  border-radius: 6px;
  outline: 1.5px solid currentColor;
  outline-offset: 3px;
  margin: 4px 6px 4px 0;
  color: var(--ink);
  font-family: var(--font-stamp);
  font-size: 1rem;
  line-height: 1.05;
  letter-spacing: .06em;
  text-transform: uppercase;
  rotate: 7deg;
}
.dater-big { font-size: 2.25rem; letter-spacing: .05em; line-height: .95; }
/* Phones: the time stamp shares a line with the bake's name and the list runs the full label width;
   the "Baked today" dater is stamped under the note instead of beside it */
@media (max-width: 759.98px) {
  .slot { grid-template-columns: 7.25rem minmax(0, 1fr); align-items: center; }
  .slot-body { display: contents; }
  .slot-time { padding: 0; }
  .stamp-time { font-size: 2.375rem; }
  .slot-items, .slot-note { grid-column: 1 / -1; }
  .slot-items { margin-top: .6rem; }
  .bake-foot { flex-wrap: wrap; }
  .bake-foot p:first-child { flex: 1 1 100%; }
  .dater { margin-left: auto; }
}

/* The one motion moment: each stamp comes down on the label, in order.
   Wide screens: it plays once on load. Phones: the band is below the fold, so each stamp lands
   as its row scrolls into view (where the browser supports scroll-driven animation). */
@media (prefers-reduced-motion: no-preference) {
  .stamp-anim {
    animation: thunk .42s cubic-bezier(.25, .9, .35, 1.15) both;
    animation-delay: calc(.5s + var(--i, 0) * .45s);
  }
  @supports (animation-timeline: view()) {
    @media (max-width: 759.98px) {
      .slot, .bake-foot { view-timeline: --stamp block; }
      .stamp-anim { animation: thunk-scroll linear both; animation-timeline: --stamp; animation-range: entry 15% entry 85%; }
    }
  }
}
@keyframes thunk {
  0% { opacity: 0; scale: 1.7; }
  55% { opacity: 1; scale: .95; }
  100% { opacity: 1; scale: 1; }
}
/* the scrubbed version starts as a faint ghost, so a stamp is never fully invisible */
@keyframes thunk-scroll {
  0% { opacity: .15; scale: 1.6; }
  55% { opacity: 1; scale: .95; }
  100% { opacity: 1; scale: 1; }
}

@media (min-width: 760px) {
  .bake-label { padding: 2rem 2rem 1.5rem; }
  .bakes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s-3); border-top: 0; }
  .slot { display: block; padding: var(--s-1) 1.25rem var(--s-2); border-bottom: 0; }
  .slot:first-child { padding-left: 0; }
  .slot:last-child { padding-right: 0; }
  .slot + .slot { border-left: 2px dashed var(--rule); }
  .slot-time { padding: 0 0 .75rem; }
  .stamp-time { font-size: clamp(2.75rem, 1.6rem + 3.2vw, 4.25rem); }
  .bake-foot { margin-top: var(--s-2); border-top: 2px dashed var(--rule); padding-top: var(--s-3); }
  .dater { font-size: 1.125rem; }
  .dater-big { font-size: 2.75rem; }
}
@media (min-width: 1080px) {
  .bake-label { padding: 3rem 3rem 2.25rem; }
  .slot { padding-inline: var(--s-4); }
  .slot:first-child { padding-left: 0; }
  .slot:last-child { padding-right: 0; }
}

/* ---------- Trust: a plain facts row ---------- */
.trust > .wrap { padding-block: var(--s-4); }
.proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-2); }
.proof li { padding-top: .6rem; border-top: 2px solid var(--ink); }
.proof b {
  display: block;
  font-family: var(--font-stamp);
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .02em;
}
.proof span { display: block; margin-top: .2rem; color: var(--muted); font-size: var(--t-small); line-height: 1.35; }
.proof-note { margin-top: var(--s-3); color: var(--muted); font-size: var(--t-small); }
@media (min-width: 760px) {
  .proof { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
  .proof b { font-size: 2.25rem; }
}

/* ---------- Price lists: bread, pastry and the café ---------- */
.group-title {
  margin-bottom: .25rem;
  padding-bottom: .3rem;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-stamp);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .03em;
}
.price-list li { padding: .45rem 0; border-bottom: 1px solid var(--c-line); }
.item-line { display: flex; align-items: baseline; gap: .6rem; }
.item-line::after { content: ""; order: 1; flex: 1; min-width: 1rem; border-bottom: 2px dotted var(--c-line-strong); translate: 0 -.25em; }
.item-name { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }
.item-price {
  order: 2;
  font-family: var(--font-stamp);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--stamp);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.item-desc { margin-top: .1rem; color: var(--muted); font-size: var(--t-small); line-height: 1.4; }
.case-groups { display: grid; gap: var(--s-4); }
@media (min-width: 760px) {
  .case-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
}

/* ---------- From the case: box windows ---------- */
.photos figure { padding-bottom: .25rem; }
@media (min-width: 760px) {
  .photos {
    grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-4);
    overflow: visible; margin-inline: 0; padding: 0;
  }
}

/* ---------- Custom cakes: the order slip ---------- */
.cakes-inner { display: grid; gap: var(--s-4); align-items: start; }
.steps { display: grid; gap: 1.1rem; margin-top: var(--s-3); counter-reset: step; }
.steps li {
  position: relative;
  max-width: 32em;
  min-height: 2.5rem;
  padding-left: 3.5rem;
  counter-increment: step;
  line-height: 1.4;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -.1rem;
  display: grid;
  place-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  font: 400 1.6rem/1 var(--font-stamp);
  rotate: -8deg;
  filter: url(#ink-light);
}
.steps strong { display: block; }
.cakes-call { margin-top: var(--s-3); color: var(--muted); }
.cakes-call a { color: var(--ink); font-weight: 700; }

.slip-wrap { filter: drop-shadow(0 1px 1px rgb(60 40 20 / .2)) drop-shadow(0 12px 18px rgb(60 40 20 / .16)); }
.slip {
  display: grid;
  gap: .85rem;
  padding: 1.6rem clamp(1.1rem, 4vw, 2.25rem) clamp(1.4rem, 4vw, 2rem);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
  color: var(--ink);
  /* torn from the order pad along its perforation */
  -webkit-mask: radial-gradient(circle 5px at 50% 0, #0000 96%, #000) 0 0 / 18px 100% repeat-x;
  mask: radial-gradient(circle 5px at 50% 0, #0000 96%, #000) 0 0 / 18px 100% repeat-x;
}
.slip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: .5rem;
  border-bottom: 4px double var(--stamp);
  color: var(--stamp);
  font-family: var(--font-stamp);
}
.slip-head h3 { font-size: clamp(2.25rem, 1.9rem + 1.2vw, 2.75rem); font-weight: 400; line-height: 1; letter-spacing: .03em; }
.slip-no { font-size: 1.5rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.slip-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .1rem; align-content: start; }
.field label,
.sizes legend { font-size: var(--t-small); font-weight: 700; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: .3rem .2rem;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background-color: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 4.25rem; }
.field input[type="date"] { appearance: none; -webkit-appearance: none; }
.field select {
  appearance: none;
  padding-right: 1.6rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: right .6rem center, right .25rem center;
  background-size: .38rem .38rem;
  background-repeat: no-repeat;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; }

.sizes { display: grid; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.sizes legend { margin-bottom: .2rem; padding: 0; }
.tick {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  padding-inline: .25rem;
  border-bottom: 1px solid var(--c-line);
  cursor: pointer;
}
.tick input {
  appearance: none;
  display: grid;
  place-content: center;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--label);
}
.tick input::after {
  content: "";
  width: .42rem;
  height: .8rem;
  border: solid var(--stamp);
  border-width: 0 .22rem .22rem 0;
  rotate: 42deg;
  translate: 0 -.1rem;
  scale: 0;
}
.tick input:checked::after { scale: 1; }
.tick input:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; }
.tick:has(input:checked) { background: color-mix(in oklab, var(--stamp) 7%, var(--surface)); }
.tick-text { display: flex; flex: 1; flex-wrap: wrap; justify-content: space-between; gap: 0 .75rem; }
.tick-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.slip .btn { justify-self: start; margin-top: .25rem; }
.slip-fine { color: var(--muted); font-size: var(--t-small); }
.sent { display: none; padding: .8rem 1rem; border-radius: var(--radius); background: var(--label); font-weight: 700; }
.sent:target { display: block; }

@media (min-width: 1080px) {
  .cakes-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); }
}
@media (min-width: 760px) and (max-width: 1079.98px) {
  .slip-wrap { max-width: 36rem; }
}

/* ---------- Café ---------- */
.cafe-inner { display: grid; gap: var(--s-3); align-items: center; }
.cafe-window .pane img { aspect-ratio: 2 / 1; }
.cafe-text .group-title { margin-top: var(--s-3); }
.drinks-note { margin-top: var(--s-2); color: var(--muted); font-size: var(--t-small); }
.drinks-note a { font-weight: 700; color: var(--ink); }
@media (min-width: 760px) {
  .cafe-inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-5); }
  .cafe-window .pane img { aspect-ratio: 4 / 5; }
}

/* ---------- Reviews ---------- */
.review {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--surface);
}
.stars { color: var(--stamp); font-size: 1.125rem; letter-spacing: .15em; line-height: 1; }
.review blockquote p { font-size: 1.125rem; line-height: 1.45; }
.review figcaption { margin-top: auto; padding-top: .25rem; color: var(--muted); font-size: var(--t-small); line-height: 1.35; }
.review figcaption b { display: block; color: var(--ink); font-size: 1rem; }
.review small { display: block; margin-top: .15rem; font-size: .8125rem; }
@media (min-width: 760px) {
  .review-list { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); overflow: visible; margin-inline: 0; padding: 0; }
}

/* ---------- About ---------- */
.about-inner { display: grid; gap: var(--s-3); align-items: center; }
.about-window .pane img { aspect-ratio: 2 / 1; }
.about-text h2 + p { margin-top: var(--s-2); }
.about-text p + p { margin-top: .9rem; }
.about-text p { max-width: 34em; }
.sign { margin-top: var(--s-2); color: var(--muted); font-size: var(--t-small); }
.sign b { display: block; color: var(--ink); font-size: 1.0625rem; }
@media (min-width: 760px) {
  .about-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-5); }
  .about-window .pane img { aspect-ratio: 3 / 2; }
}

/* ---------- Visit ---------- */
.visit-grid { display: grid; gap: var(--s-3); align-items: start; }
.visit-info .facts + address { margin-top: var(--s-3); }

/* Hours set like the facts panel printed on a package */
.facts {
  max-width: 30rem;
  padding: .9rem 1rem 1rem;
  border: 2px solid var(--ink);
  background: var(--label);
  color: var(--ink);
}
.facts-title {
  padding-bottom: .3rem;
  border-bottom: 10px solid var(--ink);
  font-family: var(--font-stamp);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .02em;
}
.facts-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--ink);
}
.facts-list .facts-strong { border-bottom-width: 5px; }
.facts-list dt { font-weight: 700; }
.facts-list dd { text-align: right; font-variant-numeric: tabular-nums; }
.facts-foot { margin-top: .6rem; color: var(--muted); font-size: var(--t-small); line-height: 1.4; }

.map { display: block; width: 100%; height: auto; padding: .5rem; border-radius: var(--radius); background: var(--surface); }
.map-streets, .map-river, .map-text { filter: url(#ink-light); }
.map-streets path { fill: none; stroke: var(--ink); stroke-width: 9; }
.map-river path { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.map-text text { font: 400 20px var(--font-stamp); letter-spacing: .05em; text-transform: uppercase; fill: var(--ink); }
.map-dot { fill: var(--stamp); stroke: var(--label); stroke-width: 3; }
.map-tag rect { fill: var(--label); stroke: var(--ink); stroke-width: 1.5; }
.map-tag text { font: 700 15px var(--font-text); fill: var(--ink); }

.visit address { margin-top: var(--s-2); font-size: var(--t-lead); line-height: 1.4; }
.visit address a { display: inline-block; padding-block: 4px; font-weight: 700; }
.visit-note { margin-top: .4rem; color: var(--muted); }
.visit-contact { margin-top: .6rem; display: grid; justify-items: start; }
.visit-contact a { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 760px) {
  .visit-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-5); }
}

/* ---------- Footer: the printed base of the box ---------- */
.foot { padding-block: var(--s-3) var(--s-4); background: var(--ink); color: var(--label); }
.foot-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-2); align-items: center; }
.foot-seal { width: 56px; height: 56px; color: var(--kraft); rotate: -8deg; filter: url(#ink); }
/* phones: the name sits beside the seal, everything else runs full width */
.foot-text, .foot-id, .foot-meta { display: contents; }
.foot-id > *, .foot-meta > * { grid-column: 1 / -1; }
.foot p, .foot address { line-height: 1.45; }
.foot-name { grid-column: 2; grid-row: 1; font-family: var(--font-stamp); font-size: 2.25rem; line-height: 1; letter-spacing: .02em; color: var(--kraft); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot :focus-visible { outline-color: var(--label); }
.foot-hours { margin-top: .4rem; }
.foot-credit { margin-top: var(--s-2); color: var(--c-line); font-size: var(--t-small); }
@media (min-width: 760px) {
  .foot { padding-block: var(--s-5); }
  .foot-inner { align-items: start; column-gap: var(--s-4); }
  .foot-seal { width: 96px; height: 96px; }
  .foot-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); align-items: start; }
  .foot-id, .foot-meta { display: block; }
  .foot-id > *, .foot-meta > * { grid-column: auto; }
  .foot-name { grid-column: 1 / -1; grid-row: auto; margin-bottom: .4rem; }
  .foot-hours { margin-top: 0; padding-top: .55rem; }
  .foot-credit { margin-top: var(--s-3); }
}

/* ---------- Phone action bar (C1): Call, Directions and the main action below 760px ---------- */
.action-bar { display: none; }
@media (max-width: 759.98px) {
  .action-bar {
    position: fixed; inset: auto 0 0 0; z-index: 20;
    display: grid; grid-template-columns: 1fr 1.25fr 1.6fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink);
  }
  /* a strip of baker's twine along the top edge */
  .action-bar::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: repeating-linear-gradient(-62deg, var(--stamp) 0 5px, var(--label) 5px 10px);
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 60px; padding: 4px 6px 0;
    color: var(--label); font-size: .9375rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  }
  .action-bar a + a { box-shadow: inset 1px 0 0 rgb(255 255 255 / .2); }
  .action-bar .ab-main { background: var(--stamp); color: var(--c-on-accent); box-shadow: none; }
  .action-bar :focus-visible { outline: 3px solid var(--label); outline-offset: -6px; }
}

/* Hover only where a real pointer can hover */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: color-mix(in oklab, var(--stamp) 85%, black); border-color: color-mix(in oklab, var(--stamp) 85%, black); }
  .btn-plain:hover { background: var(--label); border-color: var(--ink); }
  .nav a:hover, .top-tel:hover, .visit-contact a:hover, .foot a:hover { text-decoration: underline; }
  .tick:hover { background: color-mix(in oklab, var(--stamp) 5%, var(--surface)); }
}

/* Name once (themes/RECREATION-RULES.md, Oct 2026): the masthead below is the name on the first screen, so the header
   shows only the mark there; the word stays for screen readers, and comes back on the bundled desktop pages other than Home. */
.brand { min-width: 44px; }
.brand .brand-word { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1080px) {
  body:has(main > [data-pg]:not([data-pg="home"]):is(:target, :has(:target))) .brand .brand-word { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; }
}
