/*
  Morgenbrot: bakery website (Screenery template)
  The page is a brown paper bread bag: kraft ground, crust-brown rubber-stamp type, a chalk bake board, flour-white paper slips.

  Contents
   1. Tokens
   2. Base and browser surfaces
   3. Grounds (kraft, flour, crust, red), pinked edges, stamped and chalked ink
   4. Components: buttons, fields, select, checkbox, day chips, stepper, alert, tags (notices), tear (dialog), rubber stamp
   5. Header
   6. Hero: headline, stamp, bake board, order slip
   7. Loaves price list
   8. 36 hours ruler
   9. Wholesale
  10. Find us: map, hours
  11. Questions
  12. Footer, slip tab
  13. Motion
  14. Narrow screens
*/

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette (the brief's four) */
  --kraft: #c9a77a;
  --crust: #2a1e14;
  --flour: #f6efe2;
  --red: #b3401f;

  /* Derived tones */
  --kraft-light: color-mix(in srgb, var(--flour) 34%, var(--kraft));   /* paper catching light */
  --kraft-deep: color-mix(in srgb, var(--crust) 16%, var(--kraft));    /* folds, rules on kraft */
  --crust-soft: color-mix(in srgb, var(--crust) 86%, var(--kraft));    /* secondary text on kraft and flour */
  --crust-lift: color-mix(in srgb, var(--flour) 9%, var(--crust));     /* raised areas on the board */
  --chalk-dim: color-mix(in srgb, var(--flour) 70%, var(--crust));     /* secondary chalk */
  --chalk-rule: color-mix(in srgb, var(--flour) 20%, var(--crust));
  --flour-shade: color-mix(in srgb, var(--kraft) 26%, var(--flour));   /* rules and wells on flour paper */
  --red-ink: color-mix(in srgb, var(--red) 72%, var(--crust));         /* red stamped on kraft (3:1 on large type) */
  --red-deep: color-mix(in srgb, var(--red) 86%, var(--crust));        /* pressed state */

  /* Type */
  --slab: "Alfa Slab One", "Rockwell", Georgia, serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
  --type: "Courier Prime", "Courier New", monospace;   /* the typewriter: times, weights, prices, slips */

  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-md: 1.0625rem;   /* 17, body */
  --fs-lg: 1.25rem;     /* 20 */
  --fs-xl: 1.625rem;    /* 26 */
  --fs-h2: clamp(2.25rem, 1.1rem + 3.6vw, 4rem);
  --fs-h1: clamp(3.1rem, 0.6rem + 6vw, 6rem);

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 112px;
  --gutter: clamp(18px, 3.4vw, 48px);
  --wrap: 1280px;

  /* Shape */
  --r-paper: 2px;     /* paper is cut, not rounded */
  --r-board: 6px;
  --r-stamp: 10px;
  --rule: 2px;
  --teeth: 14px;      /* pinked edge size */

  /* Depth: paper lying on paper */
  --lift: 0 1px 0 color-mix(in srgb, var(--crust) 20%, transparent), 0 14px 26px -14px color-mix(in srgb, var(--crust) 55%, transparent);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 140ms;
  --t-mid: 320ms;

  /* Paper fibre, laid over every ground */
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75 .9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .11 0 0 0 0 .07 0 0 0 .55 -.12'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  --dust: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .05' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .96 0 0 0 0 .94 0 0 0 0 .89 0 0 0 .5 -.2'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ---------- 2. Base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  scrollbar-color: var(--crust) var(--kraft);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--sans);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--crust);
  background: var(--kraft);
  accent-color: var(--red);
  caret-color: var(--red);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--crust); color: var(--flour); }
.g-crust ::selection, .g-red ::selection { background: var(--flour); color: var(--crust); }

h1, h2, h3, p, ul, ol, dl, dd, fieldset, legend, address, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
address { font-style: normal; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--slab); font-weight: 400; text-wrap: balance; }

a {
  color: inherit;
  text-decoration-thickness: var(--rule);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--focus, var(--red));
  outline-offset: 3px;
  border-radius: var(--r-paper);
}

.icon {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.defs { position: absolute; }

.skip {
  position: absolute; left: var(--s-4); top: -80px; z-index: 50;
  padding: var(--s-3) var(--s-4);
  background: var(--crust); color: var(--flour);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: var(--s-4); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- 3. Grounds, pinked edges, inks ---------- */
.g-kraft { background: var(--fibre) var(--kraft); color: var(--crust); --focus: var(--crust); --cut: var(--kraft); }
.g-flour { background: var(--fibre) var(--flour); color: var(--crust); --focus: var(--red); --cut: var(--flour); }
.g-crust { background: var(--dust) var(--crust); color: var(--flour); --focus: var(--flour); --cut: var(--crust); }
.g-red   { background: var(--fibre) var(--red); color: var(--flour); --focus: var(--flour); --cut: var(--red); }

/* The top of a paper bag is cut with pinking shears. A section with .pinked bites into the one above. */
.pinked { position: relative; }
.pinked::before {
  content: "";
  position: absolute; inset: calc(var(--teeth) * -1 + 0.5px) 0 auto 0;
  height: var(--teeth);
  background: inherit;
  background-attachment: scroll;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--teeth) * 2) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--teeth) * 2) 100%;
  pointer-events: none;
}

/* Rubber-stamped ink and chalk: solid type with specks eaten out */
.stamped { filter: url(#ink); }
.chalked { filter: url(#chalk); }

.h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.01em; }

.lead {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-5) var(--s-8);
  align-items: end;
  margin-bottom: var(--s-8);
}
.lead p { font-size: var(--fs-lg); max-width: 34ch; }

/* ---------- 4. Components ---------- */

/* Buttons: stamped blocks. Press sinks them into the paper. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5);
  border: var(--rule) solid var(--crust); border-radius: var(--r-paper);
  background: transparent; color: var(--crust);
  font-family: var(--sans); font-weight: 700; font-size: var(--fs-md); line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out), border-color var(--t-fast);
}
.btn:active { transform: translateY(2px); }
.btn--red { background: var(--red); border-color: var(--red); color: var(--flour); }
.btn--red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--ink { background: var(--crust); color: var(--flour); }
.btn--ink:hover { background: var(--red); border-color: var(--red); }
.btn--ghost:hover { background: var(--crust); color: var(--flour); }
.btn--wide { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: progress; opacity: 0.8; }
/* loading: three dots of flour that take turns */
.btn.is-busy [data-label]::after {
  content: ""; display: inline-block; width: 1.4em; height: 0.3em; margin-left: 0.5em; vertical-align: middle;
  background: radial-gradient(circle, currentColor 0.14em, #0000 0.16em) 0 50% / 0.47em 100% repeat-x;
  animation: knead 0.9s steps(4) infinite;
}
@keyframes knead { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -34% 0 0); } }

/* Fields: typed on a ruled line */
.field { display: grid; gap: 6px; }
.field--row { grid-template-columns: 1fr auto; align-items: center; }
.field__label { font-family: var(--type); font-size: var(--fs-sm); font-weight: 700; }
.input {
  width: 100%; min-height: 46px; padding: 8px 2px 6px;
  border: 0; border-bottom: var(--rule) solid var(--crust); border-radius: 0;
  background: transparent;
  font-family: var(--type); font-size: var(--fs-lg);
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.input::placeholder { color: color-mix(in srgb, var(--crust) 62%, var(--flour)); opacity: 1; }
.input:hover { background: color-mix(in srgb, var(--kraft) 14%, transparent); }
.input:focus-visible { outline: 0; border-bottom-color: var(--red); background: color-mix(in srgb, var(--kraft) 22%, transparent); box-shadow: 0 var(--rule) 0 var(--red); }
.input[aria-invalid="true"] { border-bottom-color: var(--red); border-bottom-style: dashed; }
.input:-webkit-autofill { -webkit-text-fill-color: var(--crust); box-shadow: 0 0 0 100px var(--flour-shade) inset; }
.field__err { font-family: var(--type); font-size: var(--fs-sm); font-weight: 700; color: var(--red); }

/* Select: a combobox button; the listbox is a strip of paper with a pinked bottom edge */
.select { position: relative; }
.select__btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  width: 100%; min-height: 46px; padding: 8px 2px 6px;
  border: 0; border-bottom: var(--rule) solid var(--crust);
  background: transparent; text-align: left;
  font-family: var(--type); font-size: var(--fs-lg);
}
.select__btn:hover { background: color-mix(in srgb, var(--kraft) 14%, transparent); }
.select__btn .icon { transition: transform var(--t-mid) var(--ease-out); }
.select__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.select__pop {
  position: absolute; z-index: 20; left: -10px; right: -10px; top: calc(100% + 6px);
  padding-bottom: 10px;
  filter: drop-shadow(0 12px 14px color-mix(in srgb, var(--crust) 38%, transparent));
  transform-origin: 50% 0;
  transition: opacity var(--t-fast), transform var(--t-mid) var(--ease-out), display var(--t-mid) allow-discrete;
}
.select--up .select__pop { top: auto; bottom: calc(100% + 6px); transform-origin: 50% 100%; }
.select__pop[hidden] { display: none; opacity: 0; transform: scaleY(0.9); }
@starting-style { .select__pop { opacity: 0; transform: scaleY(0.9); } }
.select__list {
  max-height: min(296px, 46vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px;
  background: var(--kraft-light);
  border: var(--rule) solid var(--crust); border-bottom: 0;
  scrollbar-color: var(--crust) var(--kraft-light); scrollbar-width: thin;
  outline: 0;
}
.select__list::-webkit-scrollbar { width: 8px; }
.select__list::-webkit-scrollbar-thumb { background: var(--crust); }
.select__pop::after { /* pinked bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: var(--crust);
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%;
}
.select__opt {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3);
  min-height: 40px; padding: 9px 10px 7px;
  font-family: var(--type); font-size: var(--fs-md);
  cursor: pointer;
}
.select__opt small { font-size: var(--fs-xs); font-family: var(--sans); }
.select__opt.is-active { background: var(--crust); color: var(--flour); }
.select__opt[aria-selected="true"] { font-weight: 700; }
.select__opt[aria-selected="true"]::before { content: ""; order: 2; width: 9px; height: 9px; border-radius: 50%; background: var(--red); align-self: center; flex: none; }
.select__opt.is-active[aria-selected="true"]::before { background: var(--kraft); }
.select__opt span { flex: 1; }

/* Checkbox: a box ticked in red pencil. The real input stays focusable underneath. */
.check { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; cursor: pointer; font-size: var(--fs-sm); font-weight: 500; }
.check input, .day input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.check__box {
  display: grid; place-items: center; width: 24px; height: 24px; flex: none;
  border: var(--rule) solid var(--crust); border-radius: var(--r-paper);
  color: var(--red);
}
.check__box .icon { width: 20px; height: 20px; stroke-width: 2.6; stroke-dasharray: 18; stroke-dashoffset: 18; transition: stroke-dashoffset var(--t-mid) var(--ease-out); }
.check input:checked + .check__box .icon { stroke-dashoffset: 0; }
.check input:focus-visible + .check__box { outline: 3px solid var(--red); outline-offset: 3px; }

/* Day chips: checkboxes drawn as stamped weekday blocks */
.days { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.day { position: relative; cursor: pointer; }
.day span {
  display: grid; place-items: center; min-width: 52px; min-height: 44px; padding: 0 var(--s-2);
  border: var(--rule) dashed color-mix(in srgb, var(--crust) 55%, var(--flour)); border-radius: var(--r-paper);
  font-family: var(--type); font-weight: 700; color: var(--crust-soft);
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.day:hover span { border-color: var(--crust); }
.day input:checked + span { background: var(--crust); border: var(--rule) solid var(--crust); color: var(--flour); transform: rotate(-2deg); }
.day:nth-child(even) input:checked + span { transform: rotate(1.5deg); }
.day input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 3px; }

/* Stepper */
.stepper { display: inline-flex; align-items: center; border: var(--rule) solid var(--crust); border-radius: var(--r-paper); }
.stepper__btn { display: grid; place-items: center; width: 44px; height: 42px; border: 0; background: transparent; transition: background-color var(--t-fast), color var(--t-fast); }
.stepper__btn:hover:not([disabled]) { background: var(--crust); color: var(--flour); }
.stepper__btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.stepper__val { min-width: 3ch; padding: 0 var(--s-2); text-align: center; font-family: var(--type); font-weight: 700; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.stepper--sm .stepper__btn { width: 34px; height: 34px; }
.stepper--sm .stepper__val { min-width: 2.4ch; font-size: var(--fs-md); padding: 0 2px; }

/* Inline alert: a red-bordered note */
.alert[hidden] { display: none; }
.alert { display: grid; gap: 2px; padding: var(--s-3) var(--s-4); border: var(--rule) dashed var(--red); color: var(--red-deep); font-size: var(--fs-sm); background: color-mix(in srgb, var(--red) 8%, transparent); }

/* Tags (notices): small paper tags that drop in at the corner */
.tags {
  position: fixed; z-index: 60; left: var(--s-5); bottom: var(--s-5);
  display: grid; gap: var(--s-3); justify-items: start;
  width: min(380px, calc(100vw - 2 * var(--s-4)));
  pointer-events: none;
}
.tag {
  pointer-events: auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-3);
  padding: 10px 8px 10px 16px;
  background: var(--fibre) var(--flour); color: var(--crust);
  border: var(--rule) solid var(--crust); border-radius: var(--r-paper);
  box-shadow: var(--lift);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.35;
  rotate: -1deg;
  transition: opacity var(--t-mid), translate var(--t-mid) var(--ease-out), rotate var(--t-mid) var(--ease-out);
}
@starting-style { .tag { opacity: 0; translate: 0 24px; rotate: -6deg; } }
.tag.is-leaving { opacity: 0; translate: -24px 0; }
.tag::before { /* the string hole */
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: var(--rule) solid var(--crust); background: var(--kraft);
}
.tag--warn::before { background: var(--red); border-color: var(--red); }
.tag b { font-family: var(--type); }
.tag__close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: transparent; border-radius: var(--r-paper); }
.tag__close:hover { background: var(--crust); color: var(--flour); }

/* Tear (confirmation dialog): a torn-off piece of the bag */
.tear {
  width: min(440px, calc(100vw - 2 * var(--s-4)));
  padding: calc(var(--s-6) + 10px) var(--s-6) var(--s-6);
  border: 0; border-radius: 0;
  background: var(--fibre) var(--kraft); color: var(--crust);
  box-shadow: 0 30px 60px -20px #000a;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / 22px 11px repeat-x, linear-gradient(#000 0 0) 0 10.5px / 100% calc(100% - 10px) no-repeat;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / 22px 11px repeat-x, linear-gradient(#000 0 0) 0 10.5px / 100% calc(100% - 10px) no-repeat;
  --focus: var(--crust);
  transition: opacity var(--t-mid), transform var(--t-mid) var(--ease-out), overlay var(--t-mid) allow-discrete, display var(--t-mid) allow-discrete;
}
.tear:not([open]) { opacity: 0; transform: translateY(16px) rotate(-2deg); }
@starting-style { .tear[open] { opacity: 0; transform: translateY(-28px) rotate(3deg); } }
.tear::backdrop { background: color-mix(in srgb, var(--crust) 72%, transparent); transition: opacity var(--t-mid), overlay var(--t-mid) allow-discrete, display var(--t-mid) allow-discrete; }
.tear:not([open])::backdrop { opacity: 0; }
@starting-style { .tear[open]::backdrop { opacity: 0; } }
.tear__title { font-size: var(--fs-xl); line-height: 1.1; margin-bottom: var(--s-3); }
.tear__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.tear__actions .btn { flex: 1; }

/* Rubber stamp: an inked frame, pressed slightly askew */
.rubber {
  display: inline-grid; justify-items: center; gap: 2px;
  padding: 10px 18px 8px;
  border: 4px solid currentColor; border-radius: var(--r-stamp);
  outline: 1.5px solid currentColor; outline-offset: -9px;
  color: var(--red-ink);
  font-family: var(--slab); text-transform: uppercase; line-height: 1; text-align: center;
  rotate: -7deg;
  filter: url(#ink);
}
.rubber b { font-weight: 400; font-size: var(--fs-xl); letter-spacing: 0.02em; }
.rubber span { font-family: var(--type); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.06em; }
.rubber--slip { color: var(--red); }

/* ---------- 5. Header ---------- */
.top {
  display: flex; align-items: center; gap: var(--s-6);
  padding: var(--s-5) var(--gutter) 0;
  max-width: calc(var(--wrap) + 0px); margin-inline: auto;
  background: none;
}
.logo { display: grid; text-decoration: none; line-height: 1; }
.logo__name { font-family: var(--slab); font-size: 1.5rem; }
.logo__sub { font-family: var(--type); font-size: var(--fs-xs); font-weight: 700; margin-top: 4px; }
.top__nav { display: flex; gap: var(--s-5); margin-left: auto; }
.top__nav a, .top__slip { font-weight: 700; text-decoration: none; padding: 12px 0; }
.top__nav a:hover { text-decoration: underline; }
.top__slip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 8px 8px 8px 16px; border: var(--rule) solid var(--crust); border-radius: var(--r-paper);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.top__slip b { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; background: var(--crust); color: var(--flour); font-family: var(--type); }
.top__slip:hover { background: var(--crust); color: var(--flour); }
.top__slip:hover b { background: var(--flour); color: var(--crust); }
.top__slip.has-items b { background: var(--red); color: var(--flour); }

/* ---------- 6. Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 12fr);
  grid-template-areas: "intro board" "slip board";
  grid-template-rows: auto 1fr;
  gap: var(--s-7) clamp(28px, 4vw, 64px);
  max-width: var(--wrap); margin-inline: auto;
  padding: var(--s-6) var(--gutter) var(--s-9);
  background: none;
}
body { background: var(--fibre) var(--kraft); } /* the bag runs behind the header and hero */

.hero__intro { grid-area: intro; position: relative; padding-top: var(--s-5); }
.hero__title {
  font-size: var(--fs-h1); line-height: 0.92; letter-spacing: -0.015em;
  text-transform: uppercase;
}
.hero__title span { display: block; white-space: nowrap; }
.hero__intro .rubber {
  position: absolute; right: 2%; top: calc(var(--s-5) + var(--fs-h1) * 1.72);
}
.hero__now { margin-top: var(--s-6); max-width: 30em; font-size: var(--fs-lg); line-height: 1.45; font-weight: 500; }
.hero__now b { font-family: var(--type); font-weight: 700; }

/* --- The bake board --- */
.board {
  grid-area: board; align-self: start;
  padding: clamp(16px, 1.7vw, 24px);
  border-radius: var(--r-board);
  border: 10px solid color-mix(in srgb, var(--crust) 80%, var(--kraft));
  box-shadow: 0 0 0 1px var(--crust), var(--lift), 0 40px 60px -40px color-mix(in srgb, var(--crust) 80%, transparent);
  font-variant-numeric: tabular-nums;
}
.board__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-4); }
.board__title { font-size: clamp(1.75rem, 1rem + 1.6vw, 2.5rem); line-height: 1; }
.board__date { margin-top: 6px; font-family: var(--type); font-size: var(--fs-sm); color: var(--chalk-dim); }
.board__clock { font-family: var(--type); font-weight: 700; font-size: clamp(1.75rem, 1rem + 1.9vw, 2.75rem); line-height: 1; }

.board__cols, .bake {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) 3.3rem 7.3rem 44px;
  column-gap: var(--s-3);
  align-items: center;
}
.board__cols {
  padding: 6px 0;
  border-block: 1px solid var(--chalk-rule);
  font-family: var(--type); font-size: var(--fs-xs); color: var(--chalk-dim);
}
.board__cols span:nth-child(3) { text-align: right; }
.board__cols span:last-child { text-align: right; margin-left: -2rem; }

.bake { padding: 7px 0; border-bottom: 1px dashed var(--chalk-rule); min-height: 59px; }
.bake__time { font-family: var(--type); font-weight: 700; font-size: var(--fs-md); }
.bake__what { display: grid; min-width: 0; }
.bake__name { position: relative; justify-self: start; font-family: var(--slab); font-size: var(--fs-lg); line-height: 1.15; white-space: nowrap; }
.bake__note { font-size: var(--fs-xs); color: var(--chalk-dim); line-height: 1.3; }
.bake__price { font-family: var(--type); font-size: var(--fs-sm); text-align: right; white-space: nowrap; }
.bake__status { display: grid; gap: 1px; align-content: center; position: relative; }
.bake__label { justify-self: start; font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; }
.bake__sub { font-family: var(--type); font-size: var(--fs-xs); color: var(--chalk-dim); }
.bake__heat { display: none; height: 4px; margin-top: 4px; background: var(--chalk-rule); }
.bake__heat i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--red); box-shadow: 0 0 10px 1px var(--red); transition: width 1s linear; }

.bake__add {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px;
  border: var(--rule) solid var(--flour); border-radius: var(--r-paper);
  background: transparent; color: var(--flour);
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out), border-color var(--t-fast);
}
.bake__add .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.bake__add:hover:not([disabled]) { background: var(--flour); color: var(--crust); }
.bake__add:active:not([disabled]) { transform: scale(0.92); }
.bake__add[disabled] { border-style: dashed; border-color: var(--chalk-rule); color: color-mix(in srgb, var(--flour) 34%, var(--crust)); cursor: not-allowed; }
.bake__mine {
  position: absolute; top: -9px; right: -9px; display: grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
  background: var(--red); color: var(--flour); font-family: var(--type); font-size: var(--fs-xs); line-height: 1;
}
.bake__mine[hidden] { display: none; }

/* Row states */
.bake.is-out .bake__label, .bake.is-warm .bake__label { padding: 3px 8px 2px; background: var(--red); color: var(--flour); }
.bake.is-warm .bake__label { background: var(--flour); color: var(--crust); }
.bake.is-oven .bake__heat { display: block; }
.bake.is-oven .bake__label { color: var(--kraft); }
.bake.is-ahead .bake__time, .bake.is-proving .bake__time { color: var(--chalk-dim); }
.bake.is-gone .bake__time, .bake.is-gone .bake__name, .bake.is-gone .bake__price { color: color-mix(in srgb, var(--flour) 52%, var(--crust)); }
.bake.is-gone .bake__name::after { /* struck through with the side of the chalk */
  content: ""; position: absolute; left: -4px; right: -8px; top: 52%; height: 3px;
  background: var(--flour); border-radius: 2px; rotate: -1.4deg; filter: url(#chalk);
}
.bake.is-gone .bake__note { visibility: hidden; height: 0; }
.bake.is-gone .bake__label { color: var(--chalk-dim); }
.bake.is-gone { min-height: 52px; }
.bake.just-added { animation: rowflash 0.6s var(--ease-out); }
@keyframes rowflash { from { background: color-mix(in srgb, var(--flour) 16%, transparent); } to { background: transparent; } }

.board__foot { padding-top: var(--s-4); font-size: var(--fs-sm); color: var(--chalk-dim); }

/* --- The order slip --- */
.slip {
  grid-area: slip; align-self: start; justify-self: start;
  position: relative;
  width: min(100%, 440px);
  padding: var(--s-5) var(--s-5) calc(var(--s-5) + 12px);
  background: var(--fibre) var(--flour); color: var(--crust);
  --focus: var(--red);
  filter: drop-shadow(0 16px 14px color-mix(in srgb, var(--crust) 30%, transparent));
  rotate: -1.2deg;
  /* torn bottom edge */
  -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 11px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / 20px 12px repeat-x;
          mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 11px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / 20px 12px repeat-x;
  scroll-margin-top: var(--s-5);
}
.slip:has(.select__pop:not([hidden])) { -webkit-mask: none; mask: none; z-index: 5; } /* let the listbox hang past the paper */
.slip__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-3); border-bottom: var(--rule) solid var(--crust); }
.slip__title { font-size: var(--fs-xl); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.slip__meta { margin-left: auto; display: grid; justify-items: end; font-family: var(--type); font-size: var(--fs-xs); font-weight: 700; line-height: 1.3; }
.slip__empty { padding-top: var(--s-4); font-family: var(--type); font-size: var(--fs-md); line-height: 1.45; max-width: 32ch; }
.slip__form { display: grid; gap: var(--s-4); padding-top: var(--s-3); }
.slip__form[hidden], .slip__done[hidden], .slip__empty[hidden] { display: none; }

.slip__lines { display: grid; }
.line {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: var(--s-3);
  padding: 8px 0; border-bottom: 1px dashed color-mix(in srgb, var(--crust) 50%, var(--flour));
  font-family: var(--type);
}
.line__name { font-weight: 700; line-height: 1.2; }
.line__name small { display: block; font-weight: 400; font-size: var(--fs-xs); }
.line__sum { font-variant-numeric: tabular-nums; white-space: nowrap; }
.line__del { display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: transparent; border-radius: var(--r-paper); color: var(--crust-soft); }
.line__del:hover { background: var(--red); color: var(--flour); }
.slip__lines--done .line { grid-template-columns: auto minmax(0, 1fr) auto; }
.line__qty { font-weight: 700; }
.slip__total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); font-family: var(--type); }
.slip__total b { white-space: nowrap; font-size: var(--fs-xl); font-variant-numeric: tabular-nums; }
.slip__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.slip__actions .btn { flex: 1 1 auto; }

.slip__done { display: grid; gap: var(--s-4); padding-top: var(--s-4); outline: 0; }
.slip__done .rubber { justify-self: start; margin: var(--s-2) 0 0 var(--s-2); } /* stamped above the line, never over the text */
.slip__doneline { font-family: var(--type); font-size: var(--fs-md); line-height: 1.45; }

/* ---------- 7. Loaves ---------- */
.loaves { padding-block: var(--s-9); }
.pricelist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-8); }
.loaf {
  display: grid; grid-template-columns: clamp(96px, 11vw, 150px) minmax(0, 1fr) auto; align-items: center; gap: var(--s-5);
  padding: var(--s-5) 0;
  border-top: var(--rule) solid var(--crust);
}
.loaf__art { width: 100%; height: auto; color: var(--crust); }
.loaf__name { font-size: var(--fs-xl); line-height: 1.1; margin-bottom: 4px; }
.loaf__text p { font-size: var(--fs-sm); max-width: 44ch; }
.loaf__facts { margin-top: 8px; font-family: var(--type); font-size: var(--fs-xs) !important; font-weight: 700; }
.loaf__facts span { white-space: nowrap; } /* keep each fact whole; the dot leads the fact so a wrap never leaves a dot dangling */
.loaf__facts i { display: inline-block; width: 5px; height: 5px; margin: 0 6px 2px 4px; border-radius: 50%; background: var(--red); }
.loaf__price { font-family: var(--slab); font-size: clamp(2rem, 1.2rem + 2vw, 3rem); line-height: 1; white-space: nowrap; align-self: start; padding-top: 4px; }
.loaf__price small { font-family: var(--type); font-size: var(--fs-md); font-weight: 700; }
.loaf--note { display: block; }
.loaf__aside { font-family: var(--type); font-size: var(--fs-md); max-width: 36ch; padding-top: var(--s-2); }

/* ---------- 8. 36 hours ---------- */
.process { padding-block: var(--s-9); }
.process .lead p { color: var(--flour); }
.process .lead p b { font-family: var(--type); color: var(--kraft); }
.ruler { position: relative; margin-bottom: var(--s-6); padding-top: var(--s-5); } /* room for the marker label */
.ruler__bar { position: relative; display: flex; height: 54px; gap: 3px; }
.ruler__seg { flex: var(--h) 1 0; min-width: 6px; transform-origin: 0 50%; }
.ruler__seg--a { background: var(--kraft); }
.ruler__seg--b { background: var(--flour); }
.ruler__seg--c { background: repeating-linear-gradient(90deg, var(--kraft-deep) 0 calc(100% / 18 - 2px), var(--crust) 0 calc(100% / 18)); }
.ruler__seg--d { background: var(--red); box-shadow: 0 0 22px 2px var(--red); }
.ruler__mark {
  position: absolute; left: calc(var(--at, 0.5) * 100%); top: -14px; bottom: -8px; width: 0;
  border-left: 3px solid var(--flour);
  transition: left 1s var(--ease-out);
}
.ruler__mark[hidden] { display: none; }
.ruler__mark b {
  position: absolute; bottom: 100%; left: 0; white-space: nowrap;
  translate: calc(var(--at, 0.5) * -100% - (var(--at, 0.5) - 0.5) * 3px) 0; /* slides from left-aligned at hour 0 to right-aligned at hour 36, so it never leaves the bar */
  padding: 4px 10px 3px; background: var(--flour); color: var(--crust);
  font-family: var(--type); font-size: var(--fs-sm);
}
.ruler__ticks { position: relative; height: 28px; margin-top: 8px; font-family: var(--type); font-size: var(--fs-sm); color: var(--chalk-dim); }
.ruler__ticks span { position: absolute; left: calc(var(--at) / 36 * 100%); }
.ruler__ticks .ruler__tick--end { translate: -100% 0; left: 100%; }

.jobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
.job { padding-top: var(--s-4); border-top: 6px solid var(--kraft); }
.job--b { border-color: var(--flour); }
.job--c { border-color: var(--kraft-deep); }
.job--d { border-color: var(--red); }
.job__hours { font-family: var(--type); font-size: var(--fs-sm); color: var(--chalk-dim); }
.job__name { font-size: var(--fs-xl); line-height: 1.1; margin: 4px 0 var(--s-3); }
.job p:last-child { color: color-mix(in srgb, var(--flour) 88%, var(--crust)); font-size: var(--fs-sm); max-width: 34ch; }
.job.is-now .job__hours { color: var(--crust); background: var(--flour); width: fit-content; padding: 0 8px; font-weight: 700; }

/* ---------- 9. Wholesale ---------- */
.wholesale { padding-block: var(--s-9); }
.wholesale__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
.wholesale__lead { margin-top: var(--s-5); font-size: var(--fs-lg); max-width: 32ch; }
.terms { margin-top: var(--s-7); border-top: var(--rule) solid var(--flour); max-width: 600px; }
.terms div { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s-4); padding: 12px 0 10px; border-bottom: 1px dashed color-mix(in srgb, var(--flour) 60%, var(--red)); }
.terms dt { font-family: var(--type); font-size: var(--fs-sm); padding-top: 3px; }
.terms dd { font-weight: 700; font-size: var(--fs-lg); line-height: 1.25; }

.paper {
  position: relative;
  padding: var(--s-6);
  background: var(--fibre) var(--flour); color: var(--crust);
  --focus: var(--red);
  box-shadow: var(--lift);
  rotate: 0.8deg;
}
.paper__title { font-size: var(--fs-xl); line-height: 1.1; }
.order { display: grid; gap: var(--s-5); }
.order[hidden], .order__done[hidden] { display: none; }
.order__done { display: grid; gap: var(--s-4); justify-items: start; outline: 0; min-height: 300px; align-content: start; }
.order__done .rubber { margin-bottom: var(--s-2); }
.order__done p[data-order-summary] { font-family: var(--type); }

/* ---------- 10. Find us ---------- */
.find { padding-block: var(--s-9); }
.find__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-8); align-items: start; }
.find__map { border: var(--rule) solid var(--crust); box-shadow: var(--lift); rotate: -0.8deg; background: var(--flour); }
.find__map svg { display: block; width: 100%; height: auto; }
.map__street { font: 700 15px var(--type); fill: var(--crust); letter-spacing: 0.06em; text-transform: uppercase; }
.map__small { font: 400 12px var(--type); fill: var(--crust); }
.map__here { font: 400 17px var(--slab); fill: var(--crust); }
.map__on { font: 400 16px var(--slab); fill: var(--flour); }
.find__addr { margin-top: var(--s-5); font-family: var(--type); font-weight: 700; font-size: var(--fs-xl); line-height: 1.25; }
.find__btns { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.hours { width: 100%; margin-top: var(--s-7); border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours caption { text-align: left; font-family: var(--type); font-size: var(--fs-sm); font-weight: 700; padding-bottom: var(--s-2); }
.hours th, .hours td { text-align: left; padding: 9px 10px 7px; border-top: 1px dashed var(--crust); font-weight: 500; }
.hours thead th { font-family: var(--type); font-size: var(--fs-xs); font-weight: 700; border-top: var(--rule) solid var(--crust); }
.hours td:last-child, .hours th:last-child { text-align: right; font-family: var(--type); }
.hours tr.is-today th, .hours tr.is-today td { background: var(--crust); color: var(--flour); font-weight: 700; }
.hours tr.is-today th::after { content: "today"; margin-left: 10px; font-family: var(--type); font-size: var(--fs-xs); font-weight: 400; color: var(--kraft); }

/* ---------- 11. Questions ---------- */
.faq { padding-block: var(--s-9); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
.faq__list { border-bottom: var(--rule) solid var(--crust); }
.q { border-top: var(--rule) solid var(--crust); }
.q summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 64px; padding: var(--s-3) 0;
  font-family: var(--slab); font-size: var(--fs-lg); line-height: 1.2;
  cursor: pointer; list-style: none;
}
.q summary::-webkit-details-marker { display: none; }
.q summary .icon { width: 36px; height: 36px; padding: 9px; border: var(--rule) solid var(--crust); border-radius: 50%; transition: rotate var(--t-mid) var(--ease-out), background-color var(--t-fast), color var(--t-fast); }
.q summary:hover .icon { background: var(--crust); color: var(--flour); }
.q[open] summary .icon { rotate: 45deg; background: var(--red); border-color: var(--red); color: var(--flour); }
.q p { padding: 0 60px var(--s-5) 0; max-width: 62ch; }
.q::details-content { block-size: 0; overflow: clip; transition: block-size var(--t-mid) var(--ease-out), content-visibility var(--t-mid) allow-discrete; }
.q[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { .q { interpolate-size: allow-keywords; } }

/* ---------- 12. Footer, slip tab ---------- */
.foot { padding: var(--s-8) 0 var(--s-9); font-size: var(--fs-sm); }
.foot__grid { display: grid; grid-template-columns: max-content repeat(3, minmax(0, 1fr)); gap: var(--s-6); align-items: end; }
.foot__name { font-family: var(--slab); font-size: clamp(2.5rem, 0.5rem + 4vw, 4.25rem); line-height: 0.9; }
.foot__small { color: var(--chalk-dim); }

.sliptab {
  position: fixed; z-index: 40; right: var(--s-5); bottom: var(--s-5);
  display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: 52px; padding: 0 var(--s-4) 0 var(--s-5);
  background: var(--red); color: var(--flour);
  border: var(--rule) solid var(--flour); border-radius: var(--r-paper);
  box-shadow: var(--lift);
  font-weight: 700; text-decoration: none;
  --focus: var(--crust);
  transition: opacity var(--t-mid), translate var(--t-mid) var(--ease-out), display var(--t-mid) allow-discrete;
}
.sliptab b { font-family: var(--type); }
.sliptab[hidden] { display: none; opacity: 0; translate: 0 20px; }
@starting-style { .sliptab { opacity: 0; translate: 0 20px; } }
.sliptab:hover { background: var(--red-deep); }

/* ---------- 13. Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Entrance: three thumps of the headline stamp, the red stamp lands, then the board is written row by row */
  .hero__title span { animation: thump 0.5s var(--ease-out) both; }
  .hero__title span:nth-child(2) { animation-delay: 0.11s; }
  .hero__title span:nth-child(3) { animation-delay: 0.22s; }
  .hero__intro .rubber { animation: stampdown 0.45s 0.55s var(--ease-out) both; }
  .bake { animation: chalkin 0.55s var(--ease-out) both; animation-delay: calc(0.35s + var(--i, 0) * 0.06s); }
  .bake:nth-child(2) { --i: 1; } .bake:nth-child(3) { --i: 2; } .bake:nth-child(4) { --i: 3; }
  .bake:nth-child(5) { --i: 4; } .bake:nth-child(6) { --i: 5; } .bake:nth-child(7) { --i: 6; } .bake:nth-child(8) { --i: 7; }
  .bake.just-added { animation: rowflash 0.6s var(--ease-out); }

  .line { animation: typed 0.4s var(--ease-out); }
  .slip__done .rubber, .order__done .rubber { animation: stampdown 0.45s 0.1s var(--ease-out) both; }
  .bake.is-oven .bake__heat i { animation: ember 1.6s ease-in-out infinite alternate; }

  /* The ruler fills in as it scrolls into view */
  @supports (animation-timeline: view()) {
    .ruler__seg { animation: grow linear both; animation-timeline: view(); animation-range: entry 10% cover 34%; }
    .ruler__seg--b { animation-range: entry 30% cover 40%; }
    .ruler__seg--c { animation-range: entry 40% cover 50%; }
    .ruler__seg--d { animation-range: entry 70% cover 54%; }
    .loaf__art { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  }
}
@keyframes thump { from { opacity: 0; transform: scale(1.08); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes stampdown { from { opacity: 0; scale: 1.7; rotate: 4deg; } to { opacity: 1; scale: 1; } }
@keyframes chalkin { from { clip-path: inset(0 100% 0 0); opacity: 0.4; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes typed { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ember { from { opacity: 0.7; } to { opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes settle { from { transform: translateY(14px) rotate(-3deg); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- 14. Narrow screens ---------- */
@media (max-width: 1180px) {
  .lead, .wholesale__grid, .find__grid, .faq__grid { gap: var(--s-6) var(--s-7); }
  .jobs { gap: var(--s-5); }
}

@media (max-width: 960px) {
  :root { --s-9: 80px; --s-8: 48px; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "board" "slip"; gap: var(--s-6); }
  .hero__intro { padding-top: var(--s-2); }
  .hero__intro .rubber { right: 4%; }
  .hero__now { max-width: 34em; }
  .slip { justify-self: center; width: min(100%, 480px); }
  .lead { grid-template-columns: minmax(0, 1fr); margin-bottom: var(--s-7); }
  .pricelist { grid-template-columns: minmax(0, 1fr); }
  .wholesale__grid, .find__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .foot__name { grid-column: 1 / -1; }
  .paper, .find__map { rotate: none; }
  .top__nav { gap: var(--s-4); }
}

@media (max-width: 640px) {
  :root { --fs-h1: clamp(2.6rem, 15vw, 4.6rem); --teeth: 10px; }
  .top { flex-wrap: wrap; gap: var(--s-2) var(--s-4); padding-top: var(--s-4); }
  .top__slip { margin-left: auto; }
  .top__nav { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: var(--s-2); border-block: var(--rule) solid var(--crust); }
  .top__nav a { font-size: var(--fs-sm); padding: 10px 2px; }
  .logo__name { font-size: 1.35rem; }

  .hero { padding-top: var(--s-5); padding-inline: 0; }
  .hero__intro { padding-inline: var(--gutter); }
  .hero__title { line-height: 0.9; }
  .hero__intro .rubber { top: calc(var(--s-2) + var(--fs-h1) * 1.86); right: calc(var(--gutter) - 4px); padding: 8px 12px 6px; }
  .hero__intro .rubber b { font-size: var(--fs-lg); }
  .hero__now { font-size: var(--fs-md); margin-top: var(--s-5); }

  /* The board runs edge to edge; each loaf becomes two lines: what it is, then how it stands */
  .board { border-radius: 0; border-width: 8px 0; padding: var(--s-5) var(--gutter); }
  .board__cols { display: none; }
  .board__head { border-bottom: 1px solid var(--chalk-rule); }
  .bake {
    grid-template-columns: 3.4rem minmax(0, 1fr) 48px;
    grid-template-areas: "time what add" "price status add";
    column-gap: var(--s-3); row-gap: 6px; padding: 12px 0;
  }
  .bake__time { grid-area: time; font-size: var(--fs-md); align-self: start; padding-top: 2px; }
  .bake__what { grid-area: what; }
  .bake__price { grid-area: price; text-align: left; font-size: var(--fs-sm); color: var(--chalk-dim); }
  .bake__status { grid-area: status; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .bake__heat { flex: 1 0 100%; }
  .bake__add { grid-area: add; width: 48px; height: 48px; }
  .bake.is-gone { min-height: 0; }

  .slip { rotate: none; width: calc(100% - 2 * var(--gutter)); padding-inline: var(--s-4); }

  .loaf { grid-template-columns: 104px minmax(0, 1fr); gap: var(--s-3) var(--s-4); align-items: end; }
  .loaf__art { grid-row: 1; grid-column: 1; }
  .loaf__price { grid-row: 1; grid-column: 2; justify-self: end; align-self: end; font-size: 2.5rem; padding: 0; }
  .loaf__text { grid-column: 1 / -1; grid-row: 2; }

  .ruler__bar { height: 40px; }
  .ruler__ticks { font-size: var(--fs-xs); }
  .ruler__ticks span:nth-child(3) { display: none; } /* 11:30 collides with 06:30 when the bar is this short */
  .jobs { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .terms div { grid-template-columns: 5.6rem 1fr; }
  .days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .day span { min-width: 0; padding: 0; }
  .find__btns .btn { flex: 1 1 auto; }
  .terms dd { font-size: var(--fs-md); }
  .paper { padding: var(--s-5); margin-inline: calc(var(--gutter) * -0.4); }
  .hours th, .hours td { padding-inline: 6px; font-size: var(--fs-sm); }
  .hours tr.is-today th::after { content: none; }
  .q p { padding-right: 0; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }

  .tags { left: var(--s-4); bottom: calc(var(--s-4) + var(--tab-h, 0px)); }
  .sliptab { left: var(--s-4); right: var(--s-4); bottom: var(--s-4); justify-content: space-between; }
  .btn { white-space: normal; }
}

@media (max-width: 380px) {
  .top__nav a { font-size: var(--fs-xs); }
  .bake__note { font-size: 0.78rem; }
}
