/* ==========================================================================
   BAKER'S HOUSE
   --------------------------------------------------------------------------
   IDEA
   Bread with weight. A baker born in Morocco and trained in Germany starts
   heavy German spelt bread at one o'clock at night in Bezuidenhout. The page
   follows his night until the door opens, and everything has the density of
   a rye loaf: dark, compact, with type that gets heavier as the night goes on.

   PALETTE (from the counter, the oven and the bread bag)
     Roggen       #1c120c  dark rye crumb: the ground of the page
     Mehl         #f2ede3  flour on the crust: text on dark, light planes
     Broodzak     #c9a06c  kraft-paper bread bag: the menu is printed on it
     Bienenstich  #e9b54f  honey-almond glaze: accents on dark
     Kirsch       #b51d35  the cherry of the Schwarzwälder: today, call
     Nacht        #0e1320  01:00 in the bakery: the night shift

   TYPE
     Archivo (variable: wdth 62–125, wght 100–900), a German-feeling grotesk,
     set big, wide and heavy. Its axes carry the story: thin and narrow =
     dough, black and wide = baked bread.
     Newsreader (variable: opsz, wght, italic) for running text and the notes
     on the menu, like a baker's handwriting next to the machine type.
     Scale (fluid, ~1.333): -1 0.81 / 0 1.06 / 1 1.19–1.5 / 2 1.5–2.25 /
     3 2–3.75 / 4 2.75–7 / display 3–22rem (the name, the clock, the 500).

   SIGNATURE MOMENT
     "De nachtdienst": a pinned clock that runs from 01:00 to 07:30 as you
     scroll. The numerals rise like dough, from hairline and condensed to
     black and extended, while the night turns from blue to oven-warm rye,
     until the door opens and Hassana is behind the counter.

   MOTION LANGUAGE
     Heavy dough. Everything has mass and settles slowly; it never bounces
     or spins. Nothing is hidden waiting for an animation: motion is tied to
     the scroll (the clock, "gewicht." gaining weight, the route drawing,
     photos drifting in their frames) or moves what is already on screen.
     Hover adds weight; press is pressing dough (scale .96, slow release).

   CHECKED AGAINST THE GENERATED LOOK
     No cream + terracotta + serif: the ground is dark rye, the accents are
     cherry and kraft, the display face is an extended grotesk. No black +
     acid. No rounded cards with shadows: the menu is a list on bread-bag
     paper, the praise is typography. No all-caps labels, no "A · B · C"
     meta lines, no arrows after links. The hero is not centred: the name is
     staggered across the photo like loaves on a shelf.
   ========================================================================== */

@property --press {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

:root {
  --rye: #1c120c;
  --flour: #f2ede3;
  --kraft: #c9a06c;
  --honey: #e9b54f;
  --cherry: #b51d35;
  --night: #0e1320;

  --flour-soft: rgba(242, 237, 227, 0.78);
  --rye-soft: rgba(28, 18, 12, 0.82);
  --rule-dark: rgba(242, 237, 227, 0.2);
  --rule-light: rgba(28, 18, 12, 0.3);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Newsreader", Georgia, "Times New Roman", serif;

  --fs--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --fs-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --fs-1: clamp(1.1875rem, 1.08rem + 0.5vw, 1.5rem);
  --fs-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.25rem);
  --fs-3: clamp(2rem, 1.45rem + 2.4vw, 3.75rem);
  --fs-4: clamp(2.75rem, 1.7rem + 5.2vw, 7rem);

  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --max: 1680px;
  --space: clamp(5rem, 11vw, 11rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --focus: var(--honey);
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--rye);
  color: var(--flour);
  font-family: var(--f-text);
  font-size: var(--fs-0);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--honey);
  color: var(--rye);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* keeps a day and its times on one line */
.nw {
  white-space: nowrap;
}

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

/* flour dust over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 .075'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--flour);
  color: var(--rye);
  font: 700 var(--fs-0) / 1 var(--f-display);
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

/* scored-loaf mark, used as icon, separator and signature marker */
.mark {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cmask id='m'%3E%3Crect width='40' height='40' fill='white'/%3E%3Cpath d='M9.5 24.5c4-7.5 11-11.5 19.5-12.5M13 30.5c4-4.5 10-7.5 16.5-8.5' stroke='black' stroke-width='3.4' fill='none' stroke-linecap='round'/%3E%3C/mask%3E%3Ccircle cx='20' cy='20' r='18.5' mask='url(%23m)'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cmask id='m'%3E%3Crect width='40' height='40' fill='white'/%3E%3Cpath d='M9.5 24.5c4-7.5 11-11.5 19.5-12.5M13 30.5c4-4.5 10-7.5 16.5-8.5' stroke='black' stroke-width='3.4' fill='none' stroke-linecap='round'/%3E%3C/mask%3E%3Ccircle cx='20' cy='20' r='18.5' mask='url(%23m)'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* ---------- buttons: pressed like dough ---------- */

.btn {
  --mx: 0px;
  --my: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.4rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font: 700 var(--fs-0) / 1 var(--f-display);
  font-stretch: 108%;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(var(--press, 1));
  transition:
    --press 0.7s var(--ease-out),
    background-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:active {
  --press: 0.95;
  transition-duration: 0.12s, 0.35s, 0.35s, 0.35s;
}

.btn__num {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

.btn--solid {
  background: var(--flour);
  color: var(--rye);
}

.btn--line {
  color: var(--flour);
  box-shadow: inset 0 0 0 2px currentColor;
}

.btn--dark {
  background: var(--rye);
  color: var(--flour);
}

@media (hover: hover) {
  .btn--solid:hover {
    background: var(--honey);
  }
  .btn--line:hover {
    background: var(--flour);
    color: var(--rye);
    box-shadow: inset 0 0 0 2px var(--flour);
  }
  .btn--dark:hover {
    background: var(--cherry);
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--flour);
  background: var(--rye);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

/* their pretzels, the photo they chose to open with */
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: 50% 60%;
  filter: saturate(1.08) contrast(1.04);
}

/* the shelves settle into place; the photo is there from the first paint */

@media (prefers-reduced-motion: no-preference) {
  .hero__media img {
    animation: settle 2.4s var(--ease-out) both;
  }
}

@keyframes settle {
  from {
    scale: 1.1;
  }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(20, 13, 9, 0.82) 0%,
    rgba(20, 13, 9, 0.42) 22%,
    rgba(20, 13, 9, 0.42) 38%,
    rgba(20, 13, 9, 0.86) 64%,
    rgba(20, 13, 9, 0.95) 100%
  );
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  width: 100%;
  padding: 5.25rem var(--pad) calc(1.25rem + env(safe-area-inset-bottom));
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font: 600 var(--fs--1) / 1.35 var(--f-display);
}

.hero__where {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.hero__where .mark {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--honey);
}

.hero__nav {
  display: none;
}

.hero__nav a {
  text-decoration: none;
  padding: 0.4rem 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.5s var(--ease-out);
}

.hero__nav a:hover {
  background-size: 100% 1.5px;
}

.hero__body {
  position: relative;
  display: grid;
  gap: 1rem;
}

.hero__what {
  margin: 0;
  max-width: 17ch;
  font: italic 400 var(--fs-2) / 1.1 var(--f-text);
}

.hero__name {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(4rem, 21vw, 22rem);
  line-height: 0.84;
  letter-spacing: -0.04em;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding: 0.08em 0 0.03em;
  margin: -0.08em 0 -0.03em;
}

.hero__word {
  display: inline-block;
}

.hero__foot {
  display: grid;
  gap: 1.1rem;
  margin-top: 0.75rem;
}

.hero__hours {
  margin: 0;
  max-width: 36ch;
  font: 500 var(--fs--1) / 1.5 var(--f-display);
  color: var(--flour-soft);
}

.status:empty {
  display: none;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.55em;
  margin-bottom: 0.2rem;
  color: var(--flour);
  font-weight: 700;
}

.status::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--flour);
  opacity: 0.55;
}

.status.is-open::before {
  background: var(--honey);
  opacity: 1;
  box-shadow: 0 0 0 0.28em rgba(233, 181, 79, 0.25);
}

/* phone: the call button takes the width and always shows the number,
   the route is a round pin beside it */
.hero__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.hero__actions .btn--solid {
  padding-inline: 1.1rem;
  font-size: min(var(--fs-0), 4.35vw);
}

.hero__actions .btn--route {
  width: 3.4rem;
  padding: 0;
}

.hero__actions .btn--route .btn__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (min-width: 420px) {
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
  }
  .hero__actions .btn--solid {
    padding-inline: 1.5rem;
    font-size: var(--fs-0);
  }
  .hero__actions .btn--route {
    width: auto;
    padding: 0.95rem 1.5rem;
  }
  .hero__actions .btn--route .btn__label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
}

@media (min-width: 700px) {
  .hero__nav {
    display: flex;
    gap: 1.75rem;
  }
  .hero__inner {
    padding-top: 4.5rem;
  }
}

@media (min-width: 1200px) {
  .hero__name {
    font-stretch: 125%;
    font-size: clamp(5rem, 15.5vw, 22rem);
  }
  .hero__line--2 {
    text-align: right;
  }
  .hero__foot {
    position: absolute;
    left: 0;
    bottom: 0.8vw;
    width: min(34vw, 36rem);
    margin: 0;
  }
  .hero__what {
    margin-bottom: 1.5vw;
  }
}

/* ---------- photos ---------- */

.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #2a1c14;
}

.photo img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
}

/* ---------- intro: bread with weight ---------- */

/* phone: the loaf is the last thing and sits straight on the band */
.intro {
  --focus: var(--cherry);
  background: var(--flour);
  color: var(--rye);
  padding-block: var(--space) 0;
  overflow: hidden;
}

.intro__grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
}

.intro__title {
  --gw: 900;
  margin: 0;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: clamp(3rem, 14.5vw, 15rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.w-light {
  font-weight: 200;
}

/* --gw is lowered and raised again by script.js: the word gains weight */
.w-heavy {
  font-weight: var(--gw);
}

.intro__lead {
  margin: 0;
  max-width: 27ch;
  font: 400 var(--fs-2) / 1.28 var(--f-text);
}

.intro__more {
  margin: 1.5rem 0 0;
  max-width: 34ch;
  font: 500 var(--fs-0) / 1.5 var(--f-display);
  color: var(--rye-soft);
}

/* their own three loaves */
.intro__photo {
  aspect-ratio: 4 / 5;
  margin-inline: calc(-1 * var(--pad));
}

@media (min-width: 900px) {
  .intro {
    padding-bottom: var(--space);
  }
  .intro__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2vw;
    row-gap: 0;
  }
  .intro__title {
    grid-column: 1 / -1;
    margin-bottom: clamp(3rem, 6vw, 6rem);
  }
  .intro__text {
    grid-column: 1 / span 5;
    grid-row: 2;
    align-self: end;
  }
  .intro__photo {
    grid-column: 7 / -1;
    grid-row: 2;
    aspect-ratio: 1;
    margin-inline: 0;
  }
}

/* ---------- band of signature things ---------- */

.band {
  overflow: hidden;
  background: var(--honey);
  color: var(--rye);
  padding-block: clamp(1rem, 2.4vw, 2rem);
}

.band__track {
  display: flex;
  width: max-content;
}

.band__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.band__list li {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding-right: 0.55em;
  font: 800 var(--fs-3) / 1 var(--f-display);
  font-stretch: 118%;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.band__list .mark {
  width: 0.7em;
  height: 0.7em;
}

/* ---------- the night shift (signature) ---------- */

.night {
  --focus: var(--honey);
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--flour);
  padding-block: var(--space);
}

.night__glow {
  position: absolute;
  left: 50%;
  bottom: -70vh;
  width: 170vw;
  height: 120vh;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(233, 181, 79, 0.42),
    rgba(181, 29, 53, 0.16) 55%,
    rgba(181, 29, 53, 0) 100%
  );
  opacity: 0.6;
  pointer-events: none;
}

/* at dawn the bread comes up behind the clock; only in live mode */
.night__bread {
  display: none;
}

.night.is-live .night__bread {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* tight on the loaf: script.js holds it at 1.3x and up, so the crust fills
   the frame and the vignette swallows what is left of the table */
.night__bread img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  transform-origin: 50% 55%;
}

.night__bread::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 62% 70% at 61% 50%,
      rgba(28, 18, 12, 0) 40%,
      rgba(28, 18, 12, 0.9) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(28, 18, 12, 0.6) 0%,
      rgba(28, 18, 12, 0.42) 35%,
      rgba(28, 18, 12, 0.55) 58%,
      rgba(28, 18, 12, 0.94) 82%
    );
}

.night__inner {
  position: relative;
}

.night__title {
  margin: 0;
  max-width: 13ch;
  font: italic 400 var(--fs-3) / 1.05 var(--f-text);
}

.night__clock {
  display: none;
  margin: 0;
}

.night__steps {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: 0;
  list-style: none;
}

/* without motion the times themselves gain weight, step by step */
.night__when {
  display: block;
  font-family: var(--f-display);
  font-size: var(--fs-4);
  font-stretch: 112%;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--honey);
  font-variant-numeric: tabular-nums;
}

.night__step:nth-child(1) .night__when { font-weight: 200; }
.night__step:nth-child(2) .night__when { font-weight: 420; }
.night__step:nth-child(3) .night__when { font-weight: 640; }
.night__step:nth-child(4) .night__when { font-weight: 900; }

.night__step p {
  margin: 0.75rem 0 0;
  max-width: 27ch;
  font: 400 var(--fs-2) / 1.25 var(--f-text);
  text-shadow: 0 1px 24px rgba(10, 8, 12, 0.45);
}

.night__progress {
  display: none;
}

/* live mode: script.js adds .is-live and pins the section */
.night.is-live {
  height: 100vh;
  height: 100svh;
  padding: 0;
}

/* the stage fills the pinned screen, so the clock has the middle to itself */
.night.is-live .night__stage {
  height: 100%;
}

.night.is-live .night__inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  padding-block: clamp(4.5rem, 11vh, 7.5rem) clamp(3rem, 9vh, 5.5rem);
}

.night.is-live .night__clock {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: clamp(5rem, 25vw, 26rem);
  line-height: 0.8;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #cfd5e2;
}

.night.is-live .night__steps {
  margin: 0;
  gap: 0;
}

/* the steps share one cell and sit on its floor, above the progress line */
.night.is-live .night__step {
  grid-area: 1 / 1;
  align-self: end;
}

.night.is-live .night__when {
  font-size: var(--fs--1);
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.night.is-live .night__progress {
  display: block;
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(1.25rem, 4vh, 2.25rem);
  height: 2px;
  background: var(--rule-dark);
}

.night__progress span {
  display: block;
  height: 100%;
  background: var(--honey);
  transform-origin: left center;
}

@media (min-width: 900px) {
  .night.is-live .night__steps {
    max-width: 34rem;
  }
}

/* ---------- story: the route ---------- */

.story {
  padding-block: var(--space);
}

.story__title {
  margin: 0;
  max-width: 16ch;
  font-family: var(--f-display);
  font-weight: 750;
  font-size: var(--fs-4);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.route {
  --rail: clamp(2.25rem, 7vw, 6rem);
  position: relative;
  display: grid;
  gap: clamp(3.5rem, 9vw, 8rem);
  margin: clamp(3.5rem, 9vw, 8rem) 0 0;
  padding: 0 0 0 var(--rail);
  list-style: none;
}

.route::before,
.route::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
}

.route::before {
  background: var(--rule-dark);
}

/* the honey line is drawn by script.js through --draw; without it, it is simply there */
.route::after {
  background: var(--honey);
  transform: scaleY(var(--draw, 1));
  transform-origin: top center;
}

.route__stop {
  display: grid;
  gap: 1rem;
}

.route__place {
  position: relative;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 850;
  font-stretch: 110%;
  font-size: clamp(2.75rem, 12vw, 11rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.route__place::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--rail) + 0.55rem + 1px);
  top: 0.36em;
  width: 1.15rem;
  height: 1.15rem;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--rye);
  box-shadow: inset 0 0 0 2.5px var(--honey);
}

.route__stop p {
  margin: 0;
  max-width: 34ch;
  font: 400 var(--fs-1) / 1.45 var(--f-text);
  color: var(--flour-soft);
}

.route__stop b {
  color: var(--honey);
  font-family: var(--f-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.crowd {
  margin: clamp(4.5rem, 11vw, 10rem) 0 0;
  max-width: 30ch;
  font: italic 400 var(--fs-2) / 1.3 var(--f-text);
  color: var(--flour-soft);
}

.crowd strong {
  display: block;
  margin-block: 0.35em;
  color: var(--flour);
  font: 800 var(--fs-3) / 1.02 var(--f-display);
  font-stretch: 104%;
  letter-spacing: -0.025em;
}

.crowd__lead {
  color: var(--honey);
}

/* desktop: the route runs across, Marokko to Den Haag in one view, and the
   honey line is drawn left to right from the first stop to the last */
@media (min-width: 900px) {
  .route {
    --gap: clamp(2rem, 3.5vw, 4rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--gap);
    padding: 3rem 0 0;
  }
  .route::before,
  .route::after {
    left: 0.6rem;
    top: 0.55rem;
    bottom: auto;
    width: calc((200% + 2 * var(--gap)) / 3);
    height: 2px;
  }
  .route::after {
    transform: scaleX(var(--draw, 1));
    transform-origin: left center;
  }
  .route__stop {
    align-content: start;
    gap: 1.25rem;
  }
  .route__place {
    font-size: clamp(2.75rem, 4.6vw, 5.5rem);
  }
  .route__place::before {
    left: 0.6rem;
    top: calc(-3rem + 0.55rem + 1px);
  }
  .crowd {
    margin-left: auto;
    max-width: 40ch;
  }
}

/* ---------- menu: printed on the bread bag ---------- */

.menu {
  --focus: var(--rye);
  background: var(--kraft);
  color: var(--rye);
  padding-block: var(--space);
}

.menu__title {
  margin: 0 0 clamp(2.5rem, 6vw, 5rem);
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 88%;
  font-size: clamp(3rem, 12.5vw, 14rem);
  line-height: 0.84;
  letter-spacing: -0.045em;
}

.menu__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.menu__intro {
  margin: 0 0 1.25rem;
  max-width: 26ch;
  font: 400 var(--fs-2) / 1.28 var(--f-text);
}

/* their own counter, portrait, prices blurred */
.menu__photo {
  aspect-ratio: 4 / 5;
  background: var(--kraft);
}

.menu__photo img {
  object-position: 50% 50%;
}

.menu__head {
  margin: 0 0 0.6rem;
  font: 800 var(--fs-2) / 1.05 var(--f-display);
  font-stretch: 104%;
  letter-spacing: -0.02em;
}

.menu__lead {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  max-width: 44ch;
  font: italic 400 var(--fs-1) / 1.4 var(--f-text);
  color: var(--rye-soft);
}

.menu__group + .menu__group {
  margin-top: clamp(2.25rem, 4.5vw, 3.5rem);
}

.menu__group h4 {
  margin: 0 0 0.5rem;
  font: italic 500 var(--fs-2) / 1.1 var(--f-text);
}

.dishes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dish {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0 0.9rem;
  border-top: 1.5px solid var(--rule-light);
}

.dish::after {
  content: "";
  position: absolute;
  inset: 0 -0.75rem;
  z-index: -1;
  background: rgba(28, 18, 12, 0.08);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease-out);
}

.dish__name {
  display: flex;
  align-items: baseline;
  gap: 0.45em;
  font: 750 var(--fs-1) / 1.15 var(--f-display);
  font-stretch: 104%;
  letter-spacing: -0.015em;
  transition: translate 0.6s var(--ease-out);
}

/* Duits voorop: the German loaves and cakes are set a size up */
.menu__group--lead .dish__name {
  font-size: var(--fs-2);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.dish__name .mark {
  width: 0.6em;
  height: 0.6em;
  translate: 0 0.04em;
}

.dish__note {
  font: italic 400 var(--fs-0) / 1.35 var(--f-text);
  color: var(--rye-soft);
}

.menu__list,
.dish {
  isolation: isolate;
}

@media (hover: hover) and (pointer: fine) {
  .dish:hover::after {
    transform: scaleY(1);
  }
  .dish:hover .dish__name {
    translate: 0.3em 0;
  }
}

@media (min-width: 1000px) {
  .menu__title {
    font-stretch: 100%;
    font-size: clamp(6rem, 12vw, 14rem);
  }
  .menu__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 6vw;
  }
  .menu__aside {
    position: sticky;
    top: clamp(1.5rem, 4vw, 3rem);
    align-self: start;
  }
  .dish {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: baseline;
    column-gap: 2rem;
  }
}

/* ---------- praise: one sentence, one number ----------
   Omroep West's 500 loaves a week is the only number anyone has published,
   so it gets the page: the whole width, cut from the crumb of a loaf, with
   the sentence it belongs to wrapped around it like the hero's name. */

.praise {
  padding-block: var(--space);
  overflow: hidden;
}

.praise__title {
  margin: 0;
  font-weight: inherit;
}

.praise__pre {
  display: block;
  max-width: 24ch;
  font: italic 400 var(--fs-2) / 1.2 var(--f-text);
  color: var(--flour-soft);
}

.praise__num {
  display: block;
  width: fit-content;
  margin: -0.02em 0 -0.1em -0.05em;
  color: var(--honey);
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: min(38vw, 40rem);
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.praise__post {
  display: block;
  max-width: 19ch;
  padding-top: 0.3em;
  font: 800 var(--fs-3) / 1 var(--f-display);
  font-stretch: 112%;
  letter-spacing: -0.03em;
  color: var(--flour);
}

@media (min-width: 900px) {
  .praise__post {
    margin-left: auto;
  }
}

.praise__kicker {
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  color: var(--honey);
  font: 700 var(--fs-0) / 1.2 var(--f-display);
  font-stretch: 108%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.praise__foot {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 7vw, 6rem);
}

.praise__press {
  margin: 0;
  max-width: 34ch;
  font: italic 400 var(--fs-2) / 1.3 var(--f-text);
  color: var(--flour-soft);
}

.praise__press a {
  color: var(--flour);
  text-decoration-color: var(--honey);
  text-underline-offset: 0.18em;
}

/* ---------- op bestelling: cherry, so nobody scrolls past it ---------- */

.order {
  --focus: var(--flour);
  background: var(--cherry);
  color: var(--flour);
  padding-block: var(--space);
}

.order__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.order__title {
  margin: 0;
  max-width: 12ch;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 92%;
  font-size: clamp(2.5rem, 4.6vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.order__text {
  max-width: 46ch;
}

.order__text p {
  margin: 0 0 1.25rem;
  font: 400 var(--fs-1) / 1.45 var(--f-text);
}

.order__text .order__lead {
  font-size: var(--fs-2);
  line-height: 1.3;
}

.order .btn {
  margin-top: 1rem;
}

@media (min-width: 1000px) {
  .order__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    column-gap: 6vw;
    align-items: start;
  }
}

/* ---------- feestdagen: click through the season's photos ---------- */

.season {
  --focus: var(--cherry);
  background: var(--flour);
  color: var(--rye);
  padding-block: var(--space);
}

.season__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.season__title {
  margin: 0 0 1.25rem;
  font: italic 500 clamp(2.75rem, 7vw, 6.5rem) / 0.95 var(--f-text);
  letter-spacing: -0.02em;
}

.season__text p {
  margin: 0;
  max-width: 36ch;
  font: 400 var(--fs-2) / 1.3 var(--f-text);
}

.season__photos {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #2a1c14;
}

.season__photos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

/* script.js marks the one on show; without it only the first one shows */
.season__photos img:not(.is-on) {
  opacity: 0;
}

.season__photos:not(.is-ready) img:first-child {
  opacity: 1;
}

.season__btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--flour);
  color: var(--rye);
  font: 400 2rem / 1 var(--f-text);
  cursor: pointer;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.25);
}

.season__btn--prev { left: 1rem; }
.season__btn--next { right: 1rem; }

.season__btn:hover { background: var(--honey); }

@media (prefers-reduced-motion: reduce) {
  .season__photos img { transition: none; }
}

@media (min-width: 900px) {
  .season__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: 6vw;
  }
  .season__photos {
    aspect-ratio: 1;
  }
}

/* ---------- opening hours: a week of loaves on a shelf ---------- */

.hours {
  --focus: var(--cherry);
  background: var(--flour);
  color: var(--rye);
  padding-block: var(--space);
}

.hours__title {
  margin: 0 0 clamp(2rem, 5vw, 4rem);
  font-family: var(--f-display);
  font-weight: 850;
  font-stretch: 90%;
  font-size: clamp(2.4rem, 10.5vw, 13rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.hours__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.hours__status {
  margin: 0;
  max-width: 20ch;
  font: 400 var(--fs-2) / 1.25 var(--f-text);
}

.hours__status:empty {
  display: none;
}

.hours__note {
  margin: 1.25rem 0 0;
  max-width: 32ch;
  font: 500 var(--fs--1) / 1.5 var(--f-display);
  color: var(--rye-soft);
}

.hours__note a {
  text-underline-offset: 0.2em;
  font-variant-numeric: tabular-nums;
}

.week {
  margin: 0;
  padding: 0;
  list-style: none;
}

.week__scale {
  display: none;
}

.day {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.7rem 1rem;
  padding: 1rem 0 1.1rem;
  border-top: 1.5px solid var(--rule-light);
}

/* phone: day and time on one line, the bar under them */
.day__name {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  font: 750 var(--fs-1) / 1.1 var(--f-display);
  letter-spacing: -0.01em;
}

.day__time {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
  font: 500 var(--fs-0) / 1.1 var(--f-display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.day__track {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2;
  height: 0.8rem;
  border-radius: 99px;
  background: rgba(28, 18, 12, 0.09);
}

.day__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--s) / 14 * 100%);
  width: calc((var(--e) - var(--s)) / 14 * 100%);
  border-radius: inherit;
  background: var(--rye);
  transform-origin: left center;
}

.day--closed .day__track {
  background: repeating-linear-gradient(
    -45deg,
    rgba(28, 18, 12, 0.12) 0 2px,
    transparent 2px 9px
  );
}

.day--closed .day__name,
.day--closed .day__time {
  color: rgba(28, 18, 12, 0.72);
}

.day.is-today {
  margin-inline: -0.9rem;
  padding-inline: 0.9rem;
  border-radius: 0.3rem;
  border-color: transparent;
  background: var(--cherry);
  color: var(--flour);
}

.day.is-today + .day {
  border-color: transparent;
}

.day.is-today .day__name,
.day.is-today .day__time {
  color: var(--flour);
}

.day.is-today .day__track {
  background: rgba(242, 237, 227, 0.22);
}

.day.is-today .day__bar {
  background: var(--flour);
}

.day__tag {
  padding: 0.3em 0.6em 0.32em;
  border-radius: 99px;
  background: var(--flour);
  color: var(--cherry);
  font: 700 var(--fs--1) / 1 var(--f-display);
  letter-spacing: 0;
}

.day__now {
  position: absolute;
  top: -0.4rem;
  bottom: -0.4rem;
  width: 4px;
  translate: -50% 0;
  border-radius: 2px;
  background: var(--honey);
  box-shadow: 0 0 0 2px var(--cherry);
}

@media (min-width: 720px) {
  .week__scale,
  .day {
    grid-template-columns: 11rem minmax(0, 1fr) 9rem;
    align-items: center;
    column-gap: 1.75rem;
  }
  .week__scale {
    display: grid;
    padding-bottom: 0.6rem;
    font: 600 var(--fs--1) / 1 var(--f-display);
    font-variant-numeric: tabular-nums;
    color: var(--rye-soft);
  }
  .week__ticks {
    position: relative;
    grid-column: 2;
    height: 1em;
  }
  .week__ticks span {
    position: absolute;
    left: calc(var(--h) / 14 * 100%);
    translate: -50% 0;
  }
  .day__track {
    grid-column: 2;
    grid-row: 1;
    height: 1.1rem;
  }
  .day__time {
    grid-column: 3;
    text-align: right;
  }
}

@media (min-width: 1100px) {
  .hours__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 6vw;
    align-items: start;
  }
}

/* ---------- visit / closing call ---------- */

/* phone: the basket is a band at the top and the sign-off rises out of it;
   from 900px it fills the screen behind the type */
.visit {
  --focus: var(--honey);
  position: relative;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  isolation: isolate;
  color: var(--flour);
}

.visit__media {
  position: relative;
  z-index: -2;
  height: 64vh;
  height: 64svh;
  overflow: hidden;
}

.visit__media img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: 45% 50%;
}

.visit__scrim {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 64vh;
  height: 64svh;
  background: linear-gradient(
    to bottom,
    rgba(20, 13, 9, 0.35) 0%,
    rgba(20, 13, 9, 0) 28%,
    rgba(20, 13, 9, 0.6) 66%,
    var(--rye) 100%
  );
}

.visit > .wrap {
  margin-top: -20vh;
  margin-top: -20svh;
}

.visit__title {
  margin: 0 0 clamp(2.5rem, 6vw, 5rem);
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 82%;
  font-size: clamp(2.5rem, 12.5vw, 15rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  hyphens: manual;
}

.visit__grid {
  display: grid;
  gap: 2.25rem;
}

.visit__address {
  font-style: normal;
}

/* a step below the sign-off, so "Tot morgenvroeg." stays the last big word */
.visit__street {
  display: block;
  font: 800 var(--fs-3) / 1 var(--f-display);
  letter-spacing: -0.03em;
  hyphens: manual;
}

.visit__city {
  display: block;
  margin-top: 0.85rem;
  font: 400 var(--fs-1) / 1.4 var(--f-text);
  color: var(--flour-soft);
}

.visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.visit__more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font: 600 var(--fs-0) / 1.4 var(--f-display);
}

.visit__more a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.28em;
  transition: color 0.3s ease;
}

.visit__more a:hover {
  color: var(--honey);
}

@media (min-width: 900px) {
  .visit {
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: clamp(7rem, 14vw, 12rem);
  }
  .visit__media,
  .visit__scrim {
    position: absolute;
    inset: 0;
    height: auto;
  }
  .visit__scrim {
    background: linear-gradient(
      to top,
      rgba(20, 13, 9, 0.96) 0%,
      rgba(20, 13, 9, 0.82) 42%,
      rgba(20, 13, 9, 0.3) 100%
    );
  }
  .visit > .wrap {
    margin-top: 0;
  }
  /* one line on a desktop, so the basket keeps the top of the screen */
  .visit__title {
    font-stretch: 112%;
    font-size: clamp(5rem, 8vw, 9.5rem);
  }
  .visit__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    column-gap: 4vw;
  }
}

/* ---------- footer ---------- */

.foot {
  padding: 3rem 0 calc(6.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule-dark);
  color: var(--flour-soft);
  font: 500 var(--fs--1) / 1.6 var(--f-display);
}

.foot__grid {
  display: grid;
  gap: 1.25rem;
}

.foot p {
  margin: 0;
}

.foot a {
  text-underline-offset: 0.2em;
}

.foot__name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--flour);
  font-weight: 800;
  font-size: var(--fs-1);
}

.foot__name .mark {
  color: var(--honey);
}

.foot__privacy {
  grid-column: 1 / -1;
  opacity: 0.75;
}

@media (min-width: 900px) {
  .foot {
    padding-bottom: 3rem;
  }
  .foot__grid {
    grid-template-columns: auto auto auto auto;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------- phone call bar ---------- */

.callbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--rye);
  box-shadow: 0 -1px 0 var(--rule-dark);
}

.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.75rem;
  font: 750 var(--fs-1) / 1 var(--f-display);
  font-stretch: 108%;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.2s ease;
}

.callbar a:active {
  filter: brightness(0.9);
}

.callbar__call {
  background: var(--cherry);
  color: var(--flour);
}

.callbar__route {
  background: var(--flour);
  color: var(--rye);
  --focus: var(--cherry);
}

.callbar a:focus-visible {
  outline-offset: -5px;
}

.has-js .callbar {
  transform: translateY(110%);
  visibility: hidden;
  transition:
    transform 0.8s var(--ease-out),
    visibility 0s linear 0.8s;
}

.has-js .callbar.is-shown {
  transform: none;
  visibility: visible;
  transition:
    transform 0.8s var(--ease-out),
    visibility 0s;
}

@media (min-width: 900px) {
  .callbar {
    display: none;
  }
}

/* ---------- reduced motion: everything still ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
