/* ==========================================================================
   Crumb & Co | Prototype v2
   Built on the LWPR CSS framework (Rino de Boer)
   Order: variables > base tags > framework classes > project classes

   Title scale: modular, base 16px
   Mobile ratio 1.2 / desktop ratio 1.333, clamped between 360px and 1120px
   title-1  48px > 90px    title-4  28px > 38px
   title-2  40px > 67px    title-5  23px > 28px
   title-3  33px > 51px    title-6  19px > 21px
   ========================================================================== */

:root {
  /* Colours: primary = Sanne's deep forest green */
  --primary-brand-1: #1F5A3D;
  --primary-brand-2: #164430;
  --primary-light-1: #FFFBF9;
  --primary-light-2: #FBF0EF;
  --primary-light-3: #EED9DA;
  --primary-dark-1: #0E2A1D;
  --primary-dark-2: #2F4A3C;
  --primary-dark-3: #5A6F64;
  --primary-transparent-1: #1F5A3D1F;

  /* Secondary = Sanne's soft baby pink */
  --secondary-brand-1: #F7CDD5;
  --secondary-brand-2: #EDB2BF;
  --secondary-light-1: #FCE7EB;

  /* Sizes: 4pt scale */
  --size-0: 0rem;
  --size-4: 0.25rem;
  --size-8: 0.5rem;
  --size-12: 0.75rem;
  --size-16: 1rem;
  --size-20: 1.25rem;
  --size-24: 1.5rem;
  --size-32: clamp(1.75rem, 1.662rem + 0.376vw, 2rem);
  --size-40: clamp(2.125rem, 1.993rem + 0.563vw, 2.5rem);
  --size-48: clamp(2.5rem, 2.324rem + 0.751vw, 3rem);
  --size-64: clamp(3.25rem, 2.986rem + 1.127vw, 4rem);
  --size-80: clamp(3.875rem, 3.479rem + 1.69vw, 5rem);
  --size-96: clamp(4.5rem, 3.972rem + 2.254vw, 6rem);
  --size-128: clamp(5.8rem, 5.025rem + 3.305vw, 8rem);
  --size-160: clamp(7rem, 5.944rem + 4.507vw, 10rem);

  /* Font sizes */
  --title-subtitle: 0.875rem;
  --body-size-l: 1.125rem;
  --body-size-m: 1rem;
  --body-size-s: 0.875rem;

  --title-size-1: clamp(3rem, 1.7566rem + 5.5263vw, 5.625rem);
  --title-size-2: clamp(2.5rem, 1.7007rem + 3.5526vw, 4.1875rem);
  --title-size-3: clamp(2.0625rem, 1.5296rem + 2.3684vw, 3.1875rem);
  --title-size-4: clamp(1.75rem, 1.4539rem + 1.3158vw, 2.375rem);
  --title-size-5: clamp(1.4375rem, 1.2895rem + 0.6579vw, 1.75rem);
  --title-size-6: clamp(1.1875rem, 1.1283rem + 0.2632vw, 1.3125rem);

  /* Fonts */
  --heading-font: "Fraunces", Georgia, serif;
  --body-font: "DM Sans", system-ui, sans-serif;
  --heading-weight: 600;
  --body-weight: 400;
  --strong-weight: 600;

  /* Radius: soft and friendly */
  --button-radius: 9999px;
  --radius-s: 0.75rem;
  --radius-m: 1.25rem;
  --radius-l: 2.5rem;

  /* Motion */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --speed-fast: 0.2s;
  --speed-slow: 0.8s;

  /* Lines and shadows */
  --line-bold: 2px;
  --focus-ring: 3px;
  --shadow-s: 0 2px 8px color-mix(in srgb, var(--primary-dark-1) 8%, transparent);
  --shadow-m: 0 8px 24px color-mix(in srgb, var(--primary-dark-1) 12%, transparent);
  --shadow-l: 0 16px 48px color-mix(in srgb, var(--primary-dark-1) 20%, transparent);

  /* Header height, used for anchor offset */
  --header-offset: 5rem;
}

/* ==========================================================================
   Base tags
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--body-size-m);
  font-weight: var(--body-weight);
  line-height: 160%;
  color: var(--primary-dark-2);
  background-color: var(--primary-light-1);
  font-variation-settings: "SOFT" 100;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  text-wrap: balance;
}

h1 { font-size: var(--title-size-1); line-height: 110%; }
h2 { font-size: var(--title-size-2); line-height: 115%; }
h3 { font-size: var(--title-size-3); line-height: 120%; }
h4 { font-size: var(--title-size-4); line-height: 125%; }
h5 { font-size: var(--title-size-5); line-height: 130%; }
h6 { font-size: var(--title-size-6); line-height: 130%; }

p, ul, ol { margin: 0; }
p { text-wrap: pretty; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible {
  outline-width: var(--focus-ring);
  outline-style: solid;
  outline-color: var(--primary-brand-1);
  outline-offset: var(--focus-ring);
}

/* ==========================================================================
   Typography: size
   ========================================================================== */

.title-1 { font-size: var(--title-size-1); font-weight: var(--heading-weight); line-height: 110%; }
.title-2 { font-size: var(--title-size-2); font-weight: var(--heading-weight); line-height: 115%; }
.title-3 { font-size: var(--title-size-3); font-weight: var(--heading-weight); line-height: 120%; }
.title-4 { font-size: var(--title-size-4); font-weight: var(--heading-weight); line-height: 125%; }
.title-5 { font-size: var(--title-size-5); font-weight: var(--heading-weight); line-height: 130%; }
.title-6 { font-size: var(--title-size-6); font-weight: var(--heading-weight); line-height: 130%; }

.body-l { font-size: var(--body-size-l); font-weight: var(--body-weight); line-height: 160%; }
.body-m { font-size: var(--body-size-m); font-weight: var(--body-weight); line-height: 160%; }
.body-s { font-size: var(--body-size-s); font-weight: var(--body-weight); line-height: 160%; }

.sub-title {
  font-family: var(--body-font);
  font-size: var(--title-subtitle);
  font-weight: 700;
  line-height: 140%;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.text-link {
  font-weight: var(--strong-weight);
  text-decoration-line: underline;
  text-decoration-thickness: var(--line-bold);
  text-underline-offset: 0.2em;
  transition: color var(--speed-fast) ease;
}

.use-heading-font { font-family: var(--heading-font); }
.use-body-font { font-family: var(--body-font); }

/* ==========================================================================
   Typography: colour roles
   Subtitle and link on dark use the secondary pink: green on green would
   not be readable, pink on dark green is (10.4:1 on dark-1, 5.5:1 on brand-1)
   ========================================================================== */

.heading-on-light { color: var(--primary-dark-1); }
.heading-on-dark { color: var(--primary-light-1); }
.body-on-light { color: var(--primary-dark-2); }
.body-on-dark { color: var(--primary-light-2); }
.detail-on-light { color: var(--primary-dark-3); }
.detail-on-dark { color: var(--primary-light-3); }
.subtitle-on-light { color: var(--primary-brand-1); }
.subtitle-on-dark { color: var(--secondary-brand-1); }
.link-on-light { color: var(--primary-brand-2); }
.link-on-light:hover { color: var(--primary-dark-1); }
.link-on-dark { color: var(--secondary-brand-1); }
.link-on-dark:hover { color: var(--primary-light-1); }

/* ==========================================================================
   Backgrounds
   ========================================================================== */

.bg-light-1 { background-color: var(--primary-light-1); }
.bg-light-2 { background-color: var(--primary-light-2); }
.bg-light-3 { background-color: var(--primary-light-3); }
.bg-dark-1 { background-color: var(--primary-dark-1); }
.bg-dark-2 { background-color: var(--primary-dark-2); }
.bg-dark-3 { background-color: var(--primary-dark-3); }
.bg-brand-1 { background-color: var(--primary-brand-1); }
.bg-brand-2 { background-color: var(--primary-brand-2); }

/* ==========================================================================
   Buttons
   On dark, the solid button uses Sanne's pink so the main action pops
   ========================================================================== */

.btn-solid,
.btn-outline,
.btn-solid-on-dark,
.btn-outline-on-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--size-8);
  padding: var(--size-16) var(--size-32);
  font-family: var(--body-font);
  font-size: var(--body-size-m);
  font-weight: var(--strong-weight);
  line-height: 1;
  text-decoration: none;
  border-width: 1px;
  border-style: solid;
  border-radius: var(--button-radius);
  cursor: pointer;
  transition:
    background-color var(--speed-fast) ease,
    border-color var(--speed-fast) ease,
    color var(--speed-fast) ease,
    transform var(--speed-fast) var(--ease-soft);
}

.btn-solid { color: var(--primary-light-1); background-color: var(--primary-brand-1); border-color: var(--primary-brand-1); }
.btn-solid:hover { background-color: var(--primary-brand-2); border-color: var(--primary-brand-2); }

.btn-outline { color: var(--primary-brand-2); background-color: transparent; border-color: var(--primary-brand-1); }
.btn-outline:hover { color: var(--primary-light-1); background-color: var(--primary-brand-1); }

.btn-solid-on-dark { color: var(--primary-dark-1); background-color: var(--secondary-brand-1); border-color: var(--secondary-brand-1); }
.btn-solid-on-dark:hover { background-color: var(--primary-light-1); border-color: var(--primary-light-1); }

.btn-outline-on-dark { color: var(--primary-light-1); background-color: transparent; border-color: var(--primary-light-1); }
.btn-outline-on-dark:hover { color: var(--primary-dark-1); background-color: var(--primary-light-1); }

.btn-solid:hover,
.btn-outline:hover,
.btn-solid-on-dark:hover,
.btn-outline-on-dark:hover { transform: translateY(calc(var(--size-4) * -0.5)); }

.btn-solid:active,
.btn-outline:active,
.btn-solid-on-dark:active,
.btn-outline-on-dark:active { transform: translateY(0) scale(0.98); }

.btn-solid-on-dark:focus-visible,
.btn-outline-on-dark:focus-visible { outline-color: var(--secondary-brand-1); }

/* ==========================================================================
   Layout
   ========================================================================== */

.boxed-s { padding-left: max(5%, calc((100% - 47.5rem) / 2)); padding-right: max(5%, calc((100% - 47.5rem) / 2)); }
.boxed-m { padding-left: max(5%, calc((100% - 70rem) / 2)); padding-right: max(5%, calc((100% - 70rem) / 2)); }
.boxed-l { padding-left: max(5%, calc((100% - 77.5rem) / 2)); padding-right: max(5%, calc((100% - 77.5rem) / 2)); }
.boxed-full { padding-left: 5%; padding-right: 5%; }

.rounded-zero { border-radius: var(--size-0); }
.rounded-s { border-radius: var(--radius-s); }
.rounded-m { border-radius: var(--radius-m); }
.rounded-l { border-radius: var(--radius-l); }
.rounded-full { border-radius: 9999px; }

.shadow-s { box-shadow: var(--shadow-s); }
.shadow-m { box-shadow: var(--shadow-m); }
.shadow-l { box-shadow: var(--shadow-l); }

.divider {
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: var(--primary-light-3);
  margin-top: var(--size-40);
  margin-bottom: var(--size-40);
}

.hidden { display: none; }

/* ==========================================================================
   Spacing
   ========================================================================== */

.pad-0 { padding: var(--size-0); }
.pad-4 { padding: var(--size-4); }
.pad-8 { padding: var(--size-8); }
.pad-12 { padding: var(--size-12); }
.pad-16 { padding: var(--size-16); }
.pad-20 { padding: var(--size-20); }
.pad-24 { padding: var(--size-24); }
.pad-32 { padding: var(--size-32); }
.pad-40 { padding: var(--size-40); }
.pad-48 { padding: var(--size-48); }
.pad-64 { padding: var(--size-64); }
.pad-80 { padding: var(--size-80); }
.pad-96 { padding: var(--size-96); }
.pad-128 { padding: var(--size-128); }
.pad-160 { padding: var(--size-160); }

.pad-tb-0 { padding-top: var(--size-0); padding-bottom: var(--size-0); }
.pad-tb-4 { padding-top: var(--size-4); padding-bottom: var(--size-4); }
.pad-tb-8 { padding-top: var(--size-8); padding-bottom: var(--size-8); }
.pad-tb-12 { padding-top: var(--size-12); padding-bottom: var(--size-12); }
.pad-tb-16 { padding-top: var(--size-16); padding-bottom: var(--size-16); }
.pad-tb-20 { padding-top: var(--size-20); padding-bottom: var(--size-20); }
.pad-tb-24 { padding-top: var(--size-24); padding-bottom: var(--size-24); }
.pad-tb-32 { padding-top: var(--size-32); padding-bottom: var(--size-32); }
.pad-tb-40 { padding-top: var(--size-40); padding-bottom: var(--size-40); }
.pad-tb-48 { padding-top: var(--size-48); padding-bottom: var(--size-48); }
.pad-tb-64 { padding-top: var(--size-64); padding-bottom: var(--size-64); }
.pad-tb-80 { padding-top: var(--size-80); padding-bottom: var(--size-80); }
.pad-tb-96 { padding-top: var(--size-96); padding-bottom: var(--size-96); }
.pad-tb-128 { padding-top: var(--size-128); padding-bottom: var(--size-128); }
.pad-tb-160 { padding-top: var(--size-160); padding-bottom: var(--size-160); }

.pad-lr-0 { padding-left: var(--size-0); padding-right: var(--size-0); }
.pad-lr-4 { padding-left: var(--size-4); padding-right: var(--size-4); }
.pad-lr-8 { padding-left: var(--size-8); padding-right: var(--size-8); }
.pad-lr-12 { padding-left: var(--size-12); padding-right: var(--size-12); }
.pad-lr-16 { padding-left: var(--size-16); padding-right: var(--size-16); }
.pad-lr-20 { padding-left: var(--size-20); padding-right: var(--size-20); }
.pad-lr-24 { padding-left: var(--size-24); padding-right: var(--size-24); }
.pad-lr-32 { padding-left: var(--size-32); padding-right: var(--size-32); }
.pad-lr-40 { padding-left: var(--size-40); padding-right: var(--size-40); }
.pad-lr-48 { padding-left: var(--size-48); padding-right: var(--size-48); }
.pad-lr-64 { padding-left: var(--size-64); padding-right: var(--size-64); }
.pad-lr-80 { padding-left: var(--size-80); padding-right: var(--size-80); }
.pad-lr-96 { padding-left: var(--size-96); padding-right: var(--size-96); }
.pad-lr-128 { padding-left: var(--size-128); padding-right: var(--size-128); }
.pad-lr-160 { padding-left: var(--size-160); padding-right: var(--size-160); }

.gap-0 { row-gap: var(--size-0); column-gap: var(--size-0); }
.gap-4 { row-gap: var(--size-4); column-gap: var(--size-4); }
.gap-8 { row-gap: var(--size-8); column-gap: var(--size-8); }
.gap-12 { row-gap: var(--size-12); column-gap: var(--size-12); }
.gap-16 { row-gap: var(--size-16); column-gap: var(--size-16); }
.gap-20 { row-gap: var(--size-20); column-gap: var(--size-20); }
.gap-24 { row-gap: var(--size-24); column-gap: var(--size-24); }
.gap-32 { row-gap: var(--size-32); column-gap: var(--size-32); }
.gap-40 { row-gap: var(--size-40); column-gap: var(--size-40); }

/* ==========================================================================
   Flex, gap and text alignment
   ========================================================================== */

.flex-row { display: flex; flex-direction: row; }
.flex-column { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.flex-align-start { align-items: flex-start; }
.flex-align-center { align-items: center; }
.flex-align-end { align-items: flex-end; }
.flex-align-stretch { align-items: stretch; }

.flex-justify-start { justify-content: flex-start; }
.flex-justify-center { justify-content: center; }
.flex-justify-end { justify-content: flex-end; }
.flex-justify-between { justify-content: space-between; }

.text-start { text-align: start; }
.text-center { text-align: center; }
.text-end { text-align: end; }

/* ==========================================================================
   Components
   ========================================================================== */

.card {
  background-color: var(--primary-light-1);
  border-width: 1px;
  border-style: solid;
  border-color: var(--primary-light-3);
  border-radius: var(--radius-m);
}

/* Pink card: duplicate of card with the secondary colour */
.card-2 {
  background-color: var(--secondary-brand-1);
  border-width: 1px;
  border-style: solid;
  border-color: var(--secondary-brand-1);
  border-radius: var(--radius-m);
}

.badge-1 {
  display: inline-block;
  padding: var(--size-4) var(--size-12);
  font-size: var(--body-size-s);
  font-weight: var(--strong-weight);
  line-height: 160%;
  letter-spacing: 0.03em;
  color: var(--primary-brand-2);
  background-color: var(--primary-transparent-1);
  border-radius: 9999px;
}

/* Light badge, for use on top of photos */
.badge-2 {
  display: inline-block;
  padding: var(--size-4) var(--size-12);
  font-size: var(--body-size-s);
  font-weight: var(--strong-weight);
  line-height: 160%;
  letter-spacing: 0.03em;
  color: var(--primary-brand-2);
  background-color: var(--primary-light-1);
  border-radius: 9999px;
}

/* Pink badge, for the opening hours */
.badge-3 {
  display: inline-block;
  padding: var(--size-4) var(--size-12);
  font-size: var(--body-size-s);
  font-weight: var(--strong-weight);
  line-height: 160%;
  letter-spacing: 0.03em;
  color: var(--primary-dark-1);
  background-color: var(--secondary-brand-1);
  border-radius: 9999px;
}

/* ==========================================================================
   Project classes
   ========================================================================== */

/* Secondary backgrounds ------------------------------------------------- */

.bg-secondary-1 { background-color: var(--secondary-brand-1); }
.bg-secondary-light-1 { background-color: var(--secondary-light-1); }

/* Split background: the photo strip sits half on the green hero */
.bg-split-hero {
  background-image: linear-gradient(
    to bottom,
    var(--primary-brand-1) 0%,
    var(--primary-brand-1) 55%,
    var(--primary-light-1) 55%,
    var(--primary-light-1) 100%
  );
}

/* Utilities ------------------------------------------------------------ */

.list-reset { list-style: none; padding: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: var(--size-8);
  left: var(--size-8);
  transform: translateY(-200%);
}

.skip-link:focus-visible { transform: translateY(0); }

/* Icons ------------------------------------------------------------------ */

.icon {
  width: var(--size-20);
  height: var(--size-20);
  flex-shrink: 0;
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: var(--primary-light-3);
}

.wordmark {
  font-family: var(--heading-font);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-amp { color: var(--secondary-brand-1); }

.site-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.nav-list { display: flex; }

.nav-link {
  position: relative;
  font-weight: var(--strong-weight);
  text-decoration: none;
  color: var(--primary-dark-1);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--size-4) * -1);
  height: var(--line-bold);
  background-color: var(--primary-brand-1);
  border-radius: 9999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed-fast) var(--ease-soft);
}

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--size-48);
  height: var(--size-48);
  padding: 0;
  color: var(--primary-dark-1);
  background-color: transparent;
  border-width: 1px;
  border-style: solid;
  border-color: var(--primary-light-3);
  border-radius: 9999px;
  cursor: pointer;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: var(--size-20);
  height: var(--line-bold);
  background-color: currentColor;
  border-radius: 9999px;
  transition: transform var(--speed-fast) var(--ease-soft), opacity var(--speed-fast) ease;
}

.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: calc(var(--size-8) * -0.85); }
.menu-toggle-bars::after { top: calc(var(--size-8) * 0.85); }

.is-open .menu-toggle-bars { background-color: transparent; }
.is-open .menu-toggle-bars::before { transform: translateY(calc(var(--size-8) * 0.85)) rotate(45deg); }
.is-open .menu-toggle-bars::after { transform: translateY(calc(var(--size-8) * -0.85)) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */

.hero-title { max-width: 14ch; }
.intro-width { max-width: 34rem; }


/* Photo strip ------------------------------------------------------------ */

.strip {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  align-items: start;
}

.strip-item {
  margin: 0;
  overflow: hidden;
}

.strip-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform var(--speed-slow) var(--ease-soft);
}

.strip-item:hover img { transform: scale(1.04); }

.strip-item-side { margin-top: var(--size-64); }

/* Rotating sticker with the small tagline */
.sticker {
  position: absolute;
  z-index: 2;
  top: calc(var(--size-48) * -1);
  right: 4%;
  width: var(--size-128);
  height: var(--size-128);
  color: var(--primary-dark-1);
  background-color: var(--secondary-brand-1);
  border-radius: 9999px;
  box-shadow: var(--shadow-m);
}

.sticker-ring {
  width: 100%;
  height: 100%;
  animation: spin 24s linear infinite;
}

.sticker-ring text {
  font-family: var(--body-font);
  font-weight: 700;
  fill: currentColor;
}

.sticker-amp {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--heading-font);
  font-size: var(--title-size-3);
  font-weight: var(--heading-weight);
  color: var(--primary-brand-1);
}

/* What we bake ----------------------------------------------------------- */

.bake-head-text { max-width: 40rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
  transition:
    transform var(--speed-fast) var(--ease-soft),
    box-shadow var(--speed-fast) ease;
}

.product-card:hover {
  transform: translateY(calc(var(--size-8) * -1));
  box-shadow: var(--shadow-l);
}

.product-media {
  position: relative;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--speed-slow) var(--ease-soft);
}

.product-card:hover .product-media img { transform: scale(1.05); }

.media-tag {
  position: absolute;
  top: var(--size-12);
  left: var(--size-12);
}

.product-body { flex-grow: 1; }
.product-price { white-space: nowrap; }

/* The cake card spans two columns, photo beside the text */
.product-card-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-card-wide .product-media img {
  height: 100%;
  aspect-ratio: auto;
}

/* Story ------------------------------------------------------------------ */

.story-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  align-items: center;
}

.story-media {
  position: relative;
  margin: 0;
}

.story-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gerrit-note {
  position: absolute;
  right: calc(var(--size-32) * -1);
  bottom: var(--size-40);
  max-width: 15rem;
  transform: rotate(-3deg);
  animation: bob 6s ease-in-out infinite;
}

.stat {
  padding-top: var(--size-16);
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: color-mix(in srgb, var(--primary-light-3) 35%, transparent);
  flex: 1 1 0;
}

/* Cakes ------------------------------------------------------------------ */

.cakes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.cake-media {
  position: relative;
  margin: 0;
}

.cake-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.price-sticker {
  position: absolute;
  top: var(--size-24);
  left: calc(var(--size-24) * -1);
  display: grid;
  place-content: center;
  width: var(--size-128);
  height: var(--size-128);
  text-align: center;
  color: var(--primary-light-1);
  background-color: var(--primary-brand-1);
  border-radius: 9999px;
  box-shadow: var(--shadow-m);
  transform: rotate(-8deg);
  transition: transform var(--speed-fast) var(--ease-soft);
}

.price-sticker:hover { transform: rotate(4deg) scale(1.05); }

.price-sticker-from { font-size: var(--body-size-s); line-height: 1; }
.price-sticker-amount { font-family: var(--heading-font); font-size: var(--title-size-4); font-weight: var(--heading-weight); line-height: 110%; }
.price-sticker-size { font-size: var(--body-size-s); line-height: 1.15; color: var(--secondary-brand-1); }

.step-num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: var(--size-40);
  height: var(--size-40);
  font-family: var(--heading-font);
  font-size: var(--title-size-6);
  font-weight: var(--heading-weight);
  color: var(--primary-dark-1);
  background-color: var(--secondary-brand-1);
  border-radius: 9999px;
  transition: transform var(--speed-fast) var(--ease-soft);
}

.step:hover .step-num { transform: scale(1.1) rotate(-6deg); }

/* Visit ------------------------------------------------------------------ */

.visit-head { max-width: 40rem; margin-inline: auto; }

.visit-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  grid-template-rows: auto auto;
}

.visit-hours { grid-row: span 2; }

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours th,
.hours td {
  padding: var(--size-16) var(--size-12);
  text-align: left;
  vertical-align: middle;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: var(--primary-light-3);
}

.hours th { font-weight: var(--strong-weight); color: var(--primary-dark-1); }
.hours td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hours tr:last-child th,
.hours tr:last-child td { border-bottom-color: transparent; }

.hours-closed td { color: var(--primary-dark-3); }

.hours-row { transition: background-color var(--speed-fast) ease; }
.hours-row.is-today { background-color: var(--secondary-light-1); }
.hours-row.is-today th:first-child { border-top-left-radius: var(--radius-s); border-bottom-left-radius: var(--radius-s); }
.hours-row.is-today td:last-child { border-top-right-radius: var(--radius-s); border-bottom-right-radius: var(--radius-s); }

.today-tag { display: none; }
.is-today .today-tag { display: inline-block; }

.arrow-link { text-decoration: none; }
.arrow-link .icon { transition: transform var(--speed-fast) var(--ease-soft); }
.arrow-link:hover .icon { transform: translateX(var(--size-4)); }

/* Footer ----------------------------------------------------------------- */

.footer-mark { line-height: 100%; }

.footer-divider {
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: color-mix(in srgb, var(--primary-light-3) 35%, transparent);
}

/* ==========================================================================
   Motion
   Load: the hero rises in. Scroll: blocks reveal softly where supported.
   Everything switches off for people who prefer reduced motion.
   ========================================================================== */

@keyframes rise {
  from { opacity: 0; transform: translateY(var(--size-24)); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes bob {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(calc(var(--size-8) * -1)); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(var(--size-40)); }
  to { opacity: 1; transform: translateY(0); }
}

.rise { animation: rise var(--speed-slow) var(--ease-soft) both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.25s; }
.rise-4 { animation-delay: 0.35s; }
.rise-5 { animation-delay: 0.5s; }
.rise-6 { animation-delay: 0.6s; }

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-grid,
  .cakes-grid { grid-template-columns: 2fr 3fr; }
  .gerrit-note { right: var(--size-16); }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--size-24) 5% var(--size-32);
    background-color: var(--primary-light-1);
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: var(--primary-light-3);
    box-shadow: var(--shadow-l);
    visibility: hidden;
    opacity: 0;
    transform: translateY(calc(var(--size-8) * -1));
    transition: opacity var(--speed-fast) ease, transform var(--speed-fast) var(--ease-soft), visibility 0s linear var(--speed-fast);
  }

  .is-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--speed-fast) ease, transform var(--speed-fast) var(--ease-soft), visibility 0s;
  }

  .nav-list { flex-direction: column; }
  .nav-link { font-size: var(--body-size-l); }

  .visit-grid { grid-template-columns: 1fr 1fr; }
  .visit-hours { grid-row: auto; grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  /* Products scroll sideways, the next card peeks in */
  .product-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-left: calc(var(--size-48) * -1);
    margin-right: calc(var(--size-48) * -1);
    padding: var(--size-4) var(--size-48) var(--size-16);
    scroll-padding-left: var(--size-48);
    scrollbar-width: none;
  }

  .product-grid::-webkit-scrollbar { display: none; }

  .product-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .product-card:hover { transform: none; }

  .product-card-wide {
    flex-basis: 88%;
    grid-template-columns: 1fr;
  }

  /* The cake is shown big in the cakes section, so the card drops its photo here */
  .product-card-wide .product-media { display: none; }

  .story-grid,
  .cakes-grid { grid-template-columns: 1fr; }

  .story-media { max-width: 30rem; }
  .cake-media { max-width: 30rem; margin-left: var(--size-24); }

  .strip-item-side { margin-top: var(--size-32); }
}

@media (max-width: 560px) {
  .visit-grid { grid-template-columns: 1fr; }

  .sticker { top: calc(var(--size-40) * -1); }

  .sticker-amp { font-size: var(--title-size-4); }

  .gerrit-note {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: calc(var(--size-48) * -1) var(--size-16) 0;
  }
}
