/* =========================================================
   coffee snob — v5 (brand guide, Nov 2026)
   Minimal and confident: muted stone page, charcoal and terracotta bands,
   ivory type on the dark. Colour comes from the photographs.
   Type: Optima everywhere (headings, navigation, text).
   ========================================================= */

:root {
  /* brand palette */
  --ivory:      #F3F1EC;   /* warm ivory: light type, cards */
  --stone-page: #C6C3B6;   /* muted stone: the page (a touch lighter than the swatch #BFBCAF) */
  --charcoal:   #222220;   /* charcoal: type on stone, dark bands */
  --terracotta: #B66F55;   /* muted terracotta: the accent and the warm band */
  --page-rgb: 198 195 182;  /* muted stone, for the see-through top bar */
  --on-dark: 243 241 236;   /* ivory as rgb, for softer light type: rgb(var(--on-dark) / .7) */

  --page:    var(--stone-page);
  --cream:   var(--ivory);    /* light type on the bands */
  --paper:   var(--ivory);    /* cards and light buttons */
  --linen:   #BAB7AA;         /* quiet panels, a step darker than the page */
  --stone:   rgba(34, 34, 32, .22);   /* hairlines on stone */
  --sand:    #6F6B60;         /* soft secondary marks */
  --espresso:var(--charcoal);
  --ink:     var(--charcoal);
  --muted:   #4A4842;
  --text:    var(--charcoal); /* the one colour for running text and paragraphs */
  --label:   #3A3934;   /* small labels: 6.5:1 on the stone page */
  --orange:  var(--terracotta);  /* accent: hover arrows, stars, bars */
  --green:   var(--charcoal);    /* the dark band */
  --leaf:    var(--charcoal);
  --ochre:   var(--terracotta);
  --awning:  #BAB7AA;
  --line:    rgba(34, 34, 32, .18);
  /* link underlines: padding under span.u so the line sits ~4px below the descenders at any size */
  --u-pad: calc(4px - .05em);

  /* Optima ships with every Mac, iPhone and iPad. Elsewhere the closest free
     match (Tenor Sans, Google Fonts) stands in; it is only downloaded where
     Optima is missing. A licensed Optima nova web font can replace it later. */
  --serif: Optima, "Optima nova", "Optima Nova", "URW Classico", "Tenor Sans", Candara, "Segoe UI", sans-serif;
  --sans:  var(--serif);

  --pad: clamp(24px, 5vw, 72px);   /* side gutter: 24px on phones, up to 72px on wide screens */
  --max: 1280px;
  --nav-h: 76px;
  --radius: 4px;
  --photo-r: 8px;    /* every photograph gets the same soft corner */
}

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

html { scroll-behavior: smooth; }
/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Reveal on scroll: hidden only when JS is running, shown with a soft rise */
.js [data-reveal] {
  transition:
    opacity .9s cubic-bezier(.2, .7, .2, 1),
    transform 1.1s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js [data-reveal]:not(.is-in) { opacity: 0; }
.js [data-reveal]:not([data-reveal="fade"]):not(.is-in) { transform: translateY(32px); }
.js [data-reveal="fade"] { transition-property: opacity; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
/* the second part of a heading is plain Optima in the same colour (no italic) */
em { font-style: normal; font-weight: inherit; color: inherit; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 108px) var(--pad);
}

.eyebrow {
  /* the one small label used above every heading on the site */
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 14px;   /* Optima runs small and thin: 14px keeps the wide-spaced caps easy to read */
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 20px;
}

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin-bottom: 28px;
}
.h2 em { color: inherit; font-style: normal; }

::selection { background: var(--awning); color: var(--espresso); }

/* ---------- Buttons & links ---------- */
/* Buttons (after Ottilie): small radius, a square arrow tile on the right.
   On hover a terracotta (or charcoal) circle grows from the cursor and fills the button,
   while the arrow slides out and a fresh one slides in. */
.btn {
  --fx: 50%;
  --fy: 50%;
  --btn-bg: var(--espresso);
  --btn-fg: var(--cream);
  --tile-bg: var(--cream);
  --tile-fg: var(--espresso);
  --btn-hover: var(--terracotta);   /* the fill that grows on hover */
  --arrow-hover: var(--terracotta); /* the arrow that slides in */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 5px 5px 5px 18px;
  border-radius: 3px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .45s cubic-bezier(.2, .7, .2, 1);
}
.btn__fill {
  position: absolute;
  z-index: -1;
  left: var(--fx);
  top: var(--fy);
  width: 300%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--btn-hover);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}
.btn__label { position: relative; }
.btn__icon {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--tile-bg);
  color: var(--tile-fg);
}
.btn__arrow {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.btn__arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
/* second arrow waits off to the left (or bottom-left for external links); it comes in orange */
.btn__arrow + .btn__arrow { transform: translate(-150%, 0); color: var(--arrow-hover); }
.btn--ext .btn__arrow + .btn__arrow { transform: translate(-150%, 150%); }

.btn:hover,
.btn:focus-visible { color: var(--paper); }
.btn:hover .btn__fill,
.btn:focus-visible .btn__fill { transform: translate(-50%, -50%) scale(1); }
.btn:hover .btn__arrow:first-child,
.btn:focus-visible .btn__arrow:first-child { transform: translate(150%, 0); }
.btn--ext:hover .btn__arrow:first-child,
.btn--ext:focus-visible .btn__arrow:first-child { transform: translate(150%, -150%); }
.btn:hover .btn__arrow + .btn__arrow,
.btn:focus-visible .btn__arrow + .btn__arrow { transform: none; }
.btn:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }

/* light version, for the charcoal and terracotta bands and photo banners */
.btn--light {
  --btn-bg: var(--paper);
  --btn-fg: var(--espresso);
  --tile-bg: var(--espresso);
  --tile-fg: var(--cream);
  --btn-hover: var(--charcoal);
}
.btn--small { gap: 12px; padding: 4px 4px 4px 14px; font-size: 15px; }
.btn--small .btn__icon { width: 28px; height: 28px; }
.btn--small .btn__arrow svg { width: 13px; height: 13px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn__fill, .btn__arrow { transition: none; }
}

/* one text-link style for the whole site.
   The underline is drawn under the words only (span.u). On hover it wipes
   away to the right and redraws from the left; the arrow lifts out and back. */
.link-arrow,
.life__link,
.guests__link,
.insta__link,
.visit__link {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
}
.link-arrow .u,
.life__link .u,
.insta__link .u,
.guests__link .u,
.visit__link .u {
  padding-bottom: var(--u-pad);
  background: linear-gradient(currentColor, currentColor) 100% 100% / 100% 1px no-repeat;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
.link-arrow:hover .u,
.life__link:hover .u,
.insta__link:hover .u,
.guests__link:hover .u,
.visit__link:hover .u,
.link-arrow:focus-visible .u,
.life__link:focus-visible .u,
.insta__link:focus-visible .u,
.guests__link:focus-visible .u,
.visit__link:focus-visible .u { animation: underline-redraw .8s cubic-bezier(.7, 0, .2, 1); }
@keyframes underline-redraw {
  0%   { background-size: 100% 1px; background-position: 100% 100%; }
  45%  { background-size: 0 1px;    background-position: 100% 100%; }
  55%  { background-size: 0 1px;    background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}
/* arrow: flies out to the top-right, comes back in from the bottom-left */
.arr { display: inline-block; overflow: hidden; vertical-align: baseline; }
/* the arrow is drawn (not the ↗ character), so iPhone Safari can't turn it into an emoji */
.arr svg {
  display: block;
  width: .72em;
  height: .72em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.life__link:hover .arr,
.insta__link:hover .arr,
.guests__link:hover .arr,
.link-arrow:hover .arr { animation: arrow-out-in .8s cubic-bezier(.7, 0, .2, 1); }
@keyframes arrow-out-in {
  0%   { transform: translate(0, 0); opacity: 1; }
  45%  { transform: translate(.5em, -.5em); opacity: 0; }
  55%  { transform: translate(-.5em, .5em); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}
/* like the buttons, the arrow comes back in orange: the colour swaps while it is
   out of sight (at ~45% of the loop) and stays orange while hovered.
   On hover out the script adds .is-leaving, so the arrow runs the loop in reverse and
   comes back in its normal colour (the swap again happens while it is hidden). */
.arr { transition: color 0s .36s; }
.is-leaving .arr { animation: arrow-back .8s cubic-bezier(.7, 0, .2, 1); }
/* hover out: the orange arrow backs out to the bottom-left,
   and the normal arrow rises back in from the bottom-left */
@keyframes arrow-back {
  0%   { transform: translate(0, 0); opacity: 1; }
  45%  { transform: translate(-.5em, .5em); opacity: 0; }
  55%  { transform: translate(-.5em, .5em); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}
.life__link:hover .arr,
.insta__link:hover .arr,
.guests__link:hover .arr,
.link-arrow:hover .arr,
.life__link:focus-visible .arr,
.insta__link:focus-visible .arr,
.guests__link:focus-visible .arr,
.link-arrow:focus-visible .arr { color: var(--orange); transition: color 0s .36s; }
@media (prefers-reduced-motion: reduce) {
  .u, .arr { animation: none !important; }
  .arr,
  .life__link:hover .arr, .insta__link:hover .arr, .guests__link:hover .arr, .link-arrow:hover .arr { transition: color .3s; }
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.logo__word {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 29px;
  letter-spacing: -.01em;
}
.logo__tag {
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* logo animation (letters are split into .ch by the script):
   on load each letter rises out of a mask, one after another;
   on hover a small wave runs through the word */
.logo__word.is-split { display: inline-flex; overflow: hidden; padding: 0 .02em .08em; margin-bottom: -.08em; }
.logo__word .ch {
  display: inline-block;
  white-space: pre;
  translate: 0 110%;
  transition: translate .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i) * 38ms + 150ms);
}
.logo.is-in .logo__word .ch { translate: 0 0; }
.logo__word.is-split + .logo__tag { opacity: 0; transition: opacity .8s ease .75s; }
.logo.is-in .logo__tag { opacity: 1; }
/* tagline split into words by the script: each word rises out of its own mask */
.logo__word.is-split + .logo__tag.is-split { opacity: 1; transition: none; }
.logo__tag .tw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .15em; margin-bottom: -.15em; }
.logo__tag .tw > span {
  display: inline-block;
  translate: 0 110%;
  opacity: 0;
  transition: translate .8s cubic-bezier(.2, .7, .2, 1), opacity .6s ease;
  transition-delay: calc(var(--w, 0) * 140ms + 560ms);
}
.logo.is-in .logo__tag .tw > span { translate: 0 0; opacity: 1; }
/* the wave is started by the script and always plays to the end,
   so the letters come back down even if the mouse leaves right away */
.logo.is-waving .logo__word .ch { animation: logo-wave .7s cubic-bezier(.3, .7, .3, 1) both; animation-delay: calc(var(--i) * 28ms); }
/* the rest of the top bar follows the logo in: links one by one, then the button */
.js .nav:not(.is-in) .nav__links a,
.js .nav:not(.is-in) > .btn { opacity: 0; }
.nav.is-in .nav__links a,
.nav.is-in > .btn { animation: nav-in .8s cubic-bezier(.2, .7, .2, 1) both; }
.nav.is-in .nav__links a:nth-child(1) { animation-delay: .35s; }
.nav.is-in .nav__links a:nth-child(2) { animation-delay: .43s; }
.nav.is-in .nav__links a:nth-child(3) { animation-delay: .51s; }
.nav.is-in > .btn { animation-delay: .62s; }
@keyframes nav-in {
  from { opacity: 0; translate: 0 -10px; }
  to   { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nav.is-in .nav__links a, .nav.is-in > .btn { animation: none; }
  .js .nav:not(.is-in) .nav__links a, .js .nav:not(.is-in) > .btn { opacity: 1; }
}
@keyframes logo-wave {
  0%   { transform: none; }
  40%  { transform: translateY(-22%); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .logo__word .ch { translate: none; transition: none; }
  .logo.is-waving .logo__word .ch { animation: none; }
  .logo__word.is-split + .logo__tag { opacity: 1; transition: none; }
  .logo__tag .tw > span { translate: none; opacity: 1; transition: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  padding: 0 var(--pad);
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
/* once the page scrolls the top bar gets a see-through stone background;
   at the very top it is transparent, and over a dark header (.is-on-dark,
   set by the script) it uses light colours */
.nav.is-scrolled {
  background: rgb(var(--page-rgb) / .92);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px);
}
.nav .logo,
.nav__links a { transition: color .3s ease; }
.nav > .btn,
.nav > .btn .btn__icon { transition: color .3s ease, background-color .3s ease; }
.nav.is-on-dark:not(.is-scrolled):not(.is-menu-open) .logo,
.nav.is-on-dark:not(.is-scrolled):not(.is-menu-open) .nav__links a,
.nav.is-on-dark:not(.is-scrolled):not(.is-menu-open) .nav__links a:hover,
.nav.is-on-dark:not(.is-scrolled):not(.is-menu-open) .nav__links a[aria-current="page"] { color: var(--cream); }
.nav.is-on-dark:not(.is-scrolled):not(.is-menu-open) > .btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--espresso);
  --tile-bg: var(--espresso);
  --tile-fg: var(--cream);
  --btn-hover: var(--charcoal);
}
.nav__links { display: flex; gap: 44px; }
.nav__links a {
  position: relative;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s;
  letter-spacing: 0;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--leaf); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 1px;           /* same gap under the letters as the other links */
  width: 0; height: 1px;
  background: currentColor;
  transition: width .25s;
}
.nav__links a:hover::after { width: 100%; }

/* ---------- Photo placeholders ----------
   Swap any .ph block for <img src="..."> with the same classes
   (add `object-fit: cover` — already handled below).            */
.ph {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--stone);
  display: flex;
  align-items: flex-end;
}
img.ph { display: block; width: 100%; height: 100%; object-fit: cover; }

.ph__label {
  margin: 14px;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: .04em;
  background: rgba(245, 240, 230, .85);
  color: var(--ink);
  border-radius: 999px;
}

/* textured "scenes" so the page still reads well before real photos */
.ph--latte {
  background:
    radial-gradient(circle at 50% 46%, #F3E5CF 0 9%, transparent 9.5%),
    radial-gradient(circle at 50% 46%, #B88A5E 0 15%, transparent 15.5%),
    radial-gradient(circle at 50% 46%, #F6F1E8 0 20%, transparent 20.5%),
    radial-gradient(circle at 50% 46%, rgba(0,0,0,.08) 0 23%, transparent 23.5%),
    radial-gradient(ellipse at 20% 10%, #E7DBC6, transparent 60%),
    linear-gradient(160deg, #D8C9AE, #BCA885);
}
.ph--stone {
  background:
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(90,70,45,.12) 58px 60px),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(90,70,45,.10) 118px 120px),
    radial-gradient(ellipse at 30% 30%, #E9DEC9, transparent 70%),
    linear-gradient(135deg, #D6C6A8, #BFAE8C);
}
.ph--sea {
  background:
    linear-gradient(180deg, #D7E2E1 0%, #B8CDCF 45%, #5E8790 46%, #2E5560 100%);
}
.ph--awning {
  background:
    repeating-linear-gradient(90deg, #EADBB0 0 40px, #F4EBD2 40px 80px);
}
.ph--dark {
  background:
    radial-gradient(circle at 60% 40%, #6B4B33, transparent 55%),
    linear-gradient(160deg, #3A2E25, #1F1A16);
}
.ph--dark .ph__label { background: rgba(245,240,230,.9); }

/* ---------- Hero ---------- */
.hero {
  --mx: 0;
  --my: 0;
  position: relative;
  /* the hero runs up under the transparent top bar, so its grain fills the
     whole first screen with no flat strip behind the logo */
  margin-top: calc(-1 * var(--nav-h));
  padding-top: var(--nav-h);
  min-height: 100svh;
  min-height: max(560px + var(--nav-h), 100svh);
  /* clip sideways only: a few beans spill past the bottom into the next section */
  overflow: hidden;
  overflow-x: clip;
  overflow-y: visible;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: var(--page);
  --cup: clamp(300px, 38vw, 640px);   /* photo box incl. shadow; the mug itself is ~58% of it */
}

/* giant wordmark either side of the cup */
.hero__word {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 10.5vw, 190px);
  line-height: .9;
  letter-spacing: -.02em;
  white-space: nowrap;
  /* two equal columns around the centre, so the gap always sits under the cup
     whatever the width of each word */
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  column-gap: calc(var(--cup) * .84);
  color: var(--charcoal);
  transform: translate3d(calc(var(--mx) * 8px), calc(var(--my) * 6px), 0);
  animation: rise 1.2s cubic-bezier(.2,.7,.2,1) both;
}
.hero__word > span:first-child { justify-self: end; }
.hero__word > span:last-child { justify-self: start; }

/* the cappuccino: a cut-out photo (img/hero-cappuccino.webp) with its own soft
   shadow, so it sits on the stone page like a real cup on a table.
   In the image the cup and handle span 8%–80% across and the mug's centre is at 46% down:
   the translate centres cup + handle in the hero */
.hero__cup {
  position: absolute;
  z-index: 3;
  left: 50%;
  /* the middle of the area under the top bar, where the words are centred */
  top: calc(50% + var(--nav-h) / 2);
  width: var(--cup);
  translate: -44% -46%;
  transform: translate3d(calc(var(--mx) * -12px), calc(var(--my) * -12px), 0);
}
.hero__cup-in {
  position: relative;
  animation: cup-in 1.6s cubic-bezier(.2,.7,.2,1) .15s both;
}
.hero__cup img {
  display: block;
  width: 100%;
  height: auto;
}
/* the coffee surface, measured on the photo: centre 37.46% / 45.3%, the crema reaches the rim
   ~302px across and ~309px down (of 1120 x 1024). The whole surface turns; only the last
   few pixels at the rim are feathered so the edge has no hard seam */
.hero__crema {
  position: absolute;
  inset: 0;
  -webkit-mask-image: radial-gradient(ellipse 27% 30.2% at 37.46% 45.3%, #000 95%, transparent 100%);
          mask-image: radial-gradient(ellipse 27% 30.2% at 37.46% 45.3%, #000 95%, transparent 100%);
  filter: url(#crema);
}
.hero__crema img { transform-origin: 37.46% 45.3%; will-change: transform; }
/* touch screens: no ripple filter, it is heavy on phones; the coffee still turns */
@media (hover: none), (pointer: coarse) { .hero__crema { filter: none; } }
.hero__fx { position: absolute; width: 0; height: 0; }

/* coffee beans */
.beans-layer {
  position: absolute;
  inset: var(--nav-h) 0 0;   /* below the top bar: the hero runs up under it */
  pointer-events: none;
}
.beans-layer--back  { z-index: 0; }
.beans-layer--front { z-index: 2; }

.cbean {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: auto;
  display: block;
  /* parallax (transform) + idle float (translate/rotate) combine */
  transform:
    translate3d(calc(var(--mx) * var(--d) * -1px), calc(var(--my) * var(--d) * -1px), 0)
    rotate(calc(var(--r) + var(--mx) * var(--d) * .5deg));
  /* entrance: each bean pops in after the word (order set by --bi), then floats */
  animation:
    bean-in 1s cubic-bezier(.2, .8, .25, 1.15) both,
    float 7s ease-in-out infinite;
  animation-delay: calc(var(--bi, 0) * 70ms + 350ms), 0s;
  user-select: none;
}
@keyframes bean-in {
  from { opacity: 0; scale: .4; }
}
.cbean:nth-child(3n)   { animation-duration: 1s, 9s; animation-delay: calc(var(--bi, 0) * 70ms + 350ms), -3s; }
.cbean:nth-child(3n+1) { animation-duration: 1s, 8s; animation-delay: calc(var(--bi, 0) * 70ms + 350ms), -5s; }
.cbean:nth-child(4n)   { animation-direction: normal, reverse; }

.cbean.far  { opacity: .6; filter: blur(1px); }
.cbean.mid  { opacity: 1; }
.cbean.near { opacity: .95; }

@keyframes float {
  0%, 100% { translate: 0 0;        rotate: 0deg; }
  35%      { translate: 4px -15px;  rotate: 11deg; }
  70%      { translate: -3px -6px;  rotate: -4deg; }
}
/* bottom bar: side texts fade up, the scroll tab slides up from the edge */
.hero__bottom > p { animation: hero-foot-in 1s cubic-bezier(.2, .7, .2, 1) 1s both; }
.hero__bottom > p:last-child { animation-delay: 1.1s; }
.hero__scroll { animation: tab-in .9s cubic-bezier(.2, .7, .2, 1) 1.2s both; }
@keyframes hero-foot-in { from { opacity: 0; translate: 0 12px; } }
@keyframes tab-in { from { translate: 0 100%; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(40px); }
}
@keyframes cup-in {
  from { opacity: 0; transform: scale(.94) rotate(-6deg); }
}

/* bottom strip */
.hero__bottom {
  position: absolute;
  z-index: 4;
  left: var(--pad);
  right: var(--pad);
  bottom: 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: 0;
  font-weight: 400;
}
.hero__bottom-right { text-align: right; }
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  /* a tab that runs down to the bottom edge of the screen */
  align-self: end;
  margin-bottom: -28px;          /* cancels the bottom bar's 28px offset */
  padding: 11px 15px 11px 13px;   /* equal top and bottom: text sits in the middle */
  border-radius: var(--photo-r) var(--photo-r) 0 0;
  background: var(--terracotta);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
}
.hero__scroll:hover { color: var(--paper); }
.hero__scroll {
  transition: background-color .25s;
  /* slides down into the edge as the page scrolls (--tuck 0 → 1, set by the script).
     The clip eats the part that has gone past the edge, so the tab sinks behind it
     instead of sliding over the green band. Negative insets keep the focus ring. */
  transform: translateY(calc(var(--tuck, 0) * 100%));
  clip-path: inset(-6px -6px calc(var(--tuck, 0) * 100%) -6px);
}
.hero__scroll.is-hidden { visibility: hidden; pointer-events: none; }
/* the icon and label fade out quickly while the tab sinks, so nothing lingers over the green band */
.hero__scroll > * { opacity: clamp(0, calc(1 - var(--tuck, 0) * 1.8), 1); }

/* mouse outline with a wheel dot that rolls down */
.hero__mouse {
  position: relative;
  width: 9px;
  height: 14px;
  border: 1.1px solid currentColor;
  border-radius: 5px;
  flex: none;
}
.hero__mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 2.5px;
  width: 1.5px;
  height: 3px;
  margin-left: -.75px;
  border-radius: 2px;
  background: currentColor;
  animation: wheel 1.8s cubic-bezier(.6, 0, .4, 1) infinite;
}
@keyframes wheel {
  0%   { translate: 0 0;    opacity: 0; }
  20%  { opacity: 1; }
  70%  { translate: 0 4px;  opacity: 0; }
  100% { translate: 0 4px;  opacity: 0; }
}
/* no bobbing: the tab sits on the edge; the wheel dot inside still rolls */
@keyframes nudge {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 3px; }
}

/* ---------- Intro (after hero): "the daily" photo grid ---------- */
.daily__title {
  margin: 0 auto clamp(48px, 5.5vw, 88px);
  max-width: 16ch;
  text-align: center;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.daily__title em { font-style: normal; color: inherit; }
.daily__layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 120px);
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}
.daily__main { margin: 0; }
.daily__main img,
.daily__small img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--photo-r);
}
.daily__main img { aspect-ratio: 4 / 5; object-position: 50% 74%; }
.daily__side { display: grid; gap: clamp(32px, 4vw, 56px); padding-top: clamp(0px, 1.5vw, 24px); }
.daily__statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.32;
  letter-spacing: -.005em;
  color: var(--ink);
  max-width: 22ch;
}
.daily__small { margin: 0; width: 62%; justify-self: end; }
.daily__small img { aspect-ratio: 4 / 5; }
.daily__text {
  max-width: 36ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}

/* ---------- Story / Hvar: a short walk from the door ----------
   four stops in a row, each with its photo, minutes and a line of text;
   a hairline with a dot runs along the stops like a route */
.walk__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px clamp(40px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.walk__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: 1.04;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.walk__intro { max-width: 420px; justify-self: end; font-size: 17px; line-height: 1.6; color: var(--text); }
.stops {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  padding: 0;
  list-style: none;
}
.stop__img {
  border-radius: var(--photo-r);
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.stop__time {
  position: relative;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--stone);
  font-size: 13px;
  color: var(--label);
}
.stop__time::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}
.stop__time b {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(44px, 4vw, 64px);
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stop__name {
  margin: 12px 0 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.2;
  letter-spacing: -.005em;
}
.stop__note { font-size: 15px; line-height: 1.55; color: var(--text); max-width: 34ch; }

/* ---------- Menu (home): a paper card on a soft, sunlit stone ground ---------- */
.section__head { max-width: 640px; margin-bottom: 64px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__note { color: var(--text); }
.nowrap { white-space: nowrap; }

.menu {
  position: relative;
  isolation: isolate;
  padding: clamp(56px, 7vw, 112px) var(--pad);
  background: var(--espresso);
}
/* the terrace photo sits behind the card, softly darkened so the card reads */
.menu__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  opacity: .82;
}
/* white board with a thin inner frame, like the sign by the door */
.carte {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(40px, 5.5vw, 72px) clamp(28px, 5.5vw, 80px) clamp(32px, 3.5vw, 42px);
  background: var(--paper);
  border: 1px solid var(--stone);
  outline: 1px solid var(--stone);
  outline-offset: -10px;
}
.carte__mark {
  text-align: center;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -.01em;
  color: var(--espresso);
}
.carte__title {
  margin: 6px 0 clamp(32px, 4vw, 48px);
  text-align: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--label);
}
.carte__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 48px) clamp(24px, 4vw, 56px);
}
.carte__head {
  color: var(--ink);
  margin-bottom: 20px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -.01em;
}
/* just the names, one per line, set like the rows on the full menu page */
.carte__items { display: grid; gap: 10px; padding: 0; list-style: none; }
.carte__items li { font-size: 18px; line-height: 1.4; color: var(--ink); }
.carte__note { margin-top: clamp(32px, 4vw, 48px); text-align: center; font-size: 14px; color: var(--text); }
.carte__cta { margin-top: 24px; text-align: center; }
/* "Looking for prices?": a quiet row with a small QR code, the question and a link beside it,
   to the menu with prices (kept off the site itself). Used on the homepage menu board and
   at the end of the Menu page */
.prices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: left;
}
.prices__qr {
  flex: none;
  display: block;
  width: 76px;
  padding: 7px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(34 34 32 / .08);
}
.prices__qr img { display: block; width: 100%; height: auto; }
.prices__title {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
}
.prices__text {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--label);
}
.prices__link {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;   /* the arrow stays on the same line */
}
/* on the board: the divider runs from frame to frame, out through the board's side padding
   to the thin inner frame (10px in); the space above the row matches the space below it
   (the board's bottom padding, minus the 10px to the frame) */
.carte__prices {
  margin: clamp(28px, 3.5vw, 40px) calc(10px - clamp(28px, 5.5vw, 80px)) 0;
  padding: calc(clamp(32px, 3.5vw, 42px) - 10px) calc(clamp(28px, 5.5vw, 80px) - 10px) 0;
  border-top: 1px solid rgb(34 34 32 / .12);
}
/* on the Menu page: after the last drinks, the row sits in a thin rounded frame, centred,
   with the same space above and below it */
.mprices {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(8px, 1.5vw, 16px) var(--pad) clamp(48px, 6vw, 80px);
}
.mprices .prices {
  width: fit-content;
  margin: 0 auto;
  padding: 20px 28px 20px 20px;
  border: 1px solid rgb(34 34 32 / .16);
  border-radius: 18px;
}

/* ---------- Life at coffee snob ----------
   one huge line in the middle, floating stat chips and tilted photos */
.life {
  position: relative;
  min-height: clamp(500px, 44vw, 660px);
  padding: clamp(72px, 10vw, 160px) var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--page);
}
.life .eyebrow { margin-bottom: clamp(20px, 2.4vw, 36px); }
.life { --big: clamp(96px, 13.5vw, 216px); }
.life__big {
  font-family: var(--serif);
  font-weight: 200;
  font-size: var(--big);
  line-height: .86;
  letter-spacing: -.025em;
  color: var(--espresso);
}
.life__lead {
  /* at least as wide as the "8 AM" above it (in Optima the word is ~2.25× its font size),
     and wide enough for the first sentence to sit on one line */
  max-width: max(calc(var(--big) * 2.25), min(100%, 520px));
  text-wrap: balance;
  margin: clamp(20px, 2.4vw, 32px) auto 18px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}

.life__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--awning);
  color: var(--leaf);
  font-size: 18px;
}
/* floating photos: a slow idle drift (translate) plus a small lean towards
   the cursor (transform, driven by --lx/--ly from the script) */
.life__photo {
  position: absolute;
  z-index: 1;
  display: block;
  width: clamp(140px, 13vw, 210px);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--photo-r);
  transform: translate3d(calc(var(--lx, 0) * var(--d) * 1px), calc(var(--ly, 0) * var(--d) * 1px), 0);
  animation: life-drift 9s ease-in-out infinite alternate;
}
.life__photo--a { top: 9%; right: 9%; --d: 16; }
.life__photo--b { bottom: 9%; left: 12%; --d: -12; width: clamp(120px, 11vw, 180px); animation-duration: 11s; animation-delay: -5s; }
@keyframes life-drift {
  from { translate: 0 -10px; }
  to   { translate: 0 12px; }
}


/* ---------- What guests say (real Google figures) ----------
   big rating on the left, what reviews mention most as quiet bars */
.guests {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
}

.guests__big {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(104px, 12vw, 184px);
  line-height: .86;
  letter-spacing: -.025em;
  color: var(--espresso);
  font-variant-numeric: tabular-nums;
}
.guests__of { font-size: .22em; letter-spacing: 0; color: var(--label); }
/* five stars, filled to the rating */
.guests__stars { margin-top: 20px; }
.guests__stars span {
  display: inline-block;
  font-size: 22px;
  letter-spacing: 4px;
  line-height: 1;
  background: linear-gradient(90deg, var(--ochre) calc(var(--r) / 5 * 100%), var(--stone) 0);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.guests__stars span::before { content: "★★★★★"; }
.guests__count { margin-top: 10px; color: var(--text); }
.guests__link { display: inline-block; margin-top: 28px; }

.mentions { padding: 0; list-style: none; }
.mention {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(0, 2fr) 40px;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.mention:last-child { border-bottom: 1px solid var(--line); }
.mention__name { font-family: var(--serif); font-size: clamp(18px, 1.7vw, 22px); white-space: nowrap; letter-spacing: 0; font-weight: 400; }
.mention__bar { position: relative; height: 1px; background: var(--stone); }
.mention__bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  top: -1px;
  height: 3px;
  width: var(--w);
  background: var(--ink);
}
/* the bars fill in once their row has revealed, one after another */
.js .mention__bar::after {
  transition: width 1.6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 120ms + 250ms);
}
.js .mention:not(.is-in) .mention__bar::after { width: 0; }
.mention__count, .guests__big span:first-child { font-variant-numeric: tabular-nums; }
.mention__count {
  text-align: right;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ochre);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.005em;
  font-weight: 300;
}
.guests__note { margin-top: 12px; font-size: 13px; color: var(--label); }

/* ---------- Visit (above footer) ---------- */
.visit {
  display: grid;
  /* same container and gap as the intro block above (1120px, 7vw gap);
     the text column is the narrower one so it fills its space */
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.visit > * { min-width: 0; }
@media (min-width: 861px) {
  .visit { max-width: calc(1120px + 2 * var(--pad)); }
}
.visit__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 4.1vw, 62px);
  text-wrap: balance;
  line-height: 1.04;
  letter-spacing: -.015em;
  margin-bottom: 36px;
}
.visit__title em { color: inherit; font-style: normal; }
.visit__address {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.3;
  letter-spacing: -.005em;
  color: var(--ink);
}
.visit__lead {
  max-width: 400px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 36px;
}
.visit__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.hours li span:first-child { color: var(--text); }
.hours li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Instagram grid: nine square tiles, each a link to the profile */
.insta__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.insta__foot .eyebrow { margin: 0; }
/* on a narrow phone the label and the handle wrap as whole pieces, never mid-phrase */
.insta__foot { flex-wrap: wrap; row-gap: 8px; }
.insta__foot .eyebrow,
.insta__link { white-space: nowrap; }
.insta__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 20px;
}
.insta__grid a {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--linen);
}
.insta__grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .4s ease;
}
.insta__grid a:hover img,
.insta__grid a:focus-visible img { transform: scale(1.06); opacity: .88; }
.insta__grid a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Footer ----------
   linen band; three columns: big serif navigation, about + hours, social */
.footer {
  background: var(--linen);
}
.footer__inner,
.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, .7fr);
  gap: 48px clamp(40px, 6vw, 96px);
  padding-block: clamp(56px, 6vw, 88px) clamp(40px, 5vw, 64px);
}
.footer .eyebrow { margin-bottom: 24px; }
.footer__nav { display: grid; gap: clamp(10px, 1.2vw, 18px); justify-items: start; }
.footer__nav a {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--espresso);
  text-decoration: none;
  transition: color .35s ease;
}
/* hover: like every other link, an underline draws in from the left;
   the current page keeps its underline */
.footer__nav a .u {
  padding-bottom: var(--u-pad);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .55s cubic-bezier(.7, 0, .2, 1);
}
.footer__nav a:hover .u,
.footer__nav a:focus-visible .u,
.footer__nav a[aria-current="page"] .u { background-size: 100% 1px; }

.footer__text {
  max-width: 460px;
  margin-bottom: 48px;   /* same as the gap between the footer blocks */
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}
.footer__hours { display: grid; max-width: 460px; margin: 0; }
.footer__hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
}
.footer__hours div:last-child { padding-bottom: 0; }
/* hours change through the season: one line of hours, then a note pointing to Google Maps and Instagram */
.footer__hours-note {
  max-width: 460px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgb(var(--on-dark) / .18);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--cream);
}
.footer__hours-small {
  max-width: 460px;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: rgb(var(--on-dark) / .62);
}
.footer__hours-small a { color: inherit; text-decoration: none; transition: color .2s; }
.footer__hours-small a .u {
  padding-bottom: 1px;
  background: linear-gradient(currentColor, currentColor) 100% 100% / 100% 1px no-repeat;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
/* hover: the underline runs out to the right and draws back in from the left, like the other text links */
.footer__hours-small a:hover .u,
.footer__hours-small a:focus-visible .u { animation: underline-redraw .8s cubic-bezier(.7, 0, .2, 1); }
.footer__hours-small a:hover { color: var(--cream); }
.footer__hours dt { color: var(--text); }
.footer__hours dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }

.footer__social { display: grid; gap: 10px; }
.footer__social a {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--espresso);
  text-decoration: none;
  transition: color .2s;
  letter-spacing: 0;
  font-weight: 400;
}
/* hover: an underline draws in from the left */
.footer__social a .u {
  padding-bottom: var(--u-pad);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s cubic-bezier(.7, 0, .2, 1);
}
.footer__social a:hover .u,
.footer__social a:focus-visible .u { background-size: 100% 1px; }

.footer__bottom {
  width: min(calc(100% - 2 * var(--pad)), calc(var(--max) - 2 * var(--pad)));
  padding-inline: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: clamp(48px, 5vw, 80px) 32px;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--label);
}

/* =========================================================
   Full menu page (menu.html)
   ========================================================= */
.nav__links a[aria-current="page"]::after { width: 100%; }

.mpage-head {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--pad) clamp(32px, 5vw, 56px);
  text-align: center;
}
.mpage-head__title {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 1;
  text-wrap: balance;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.mpage-head__title em { color: inherit; display: block; font-style: normal; }
.mpage-head__note { color: var(--text); font-size: 14px; }

.mlist-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--pad);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px clamp(32px, 5vw, 72px);
}
.mlist__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.mlist__head img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.mlist:hover .mlist__head img { transform: rotate(-14deg) scale(1.06); }
.mlist__head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -.005em;
  line-height: 1.15;
}
.mlist__items li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  font-size: 20px;
}
.mlist__items span { min-width: 0; }
.mlist__items small {
  display: block;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--label);
  margin-top: 2px;
}
.mlist__items i {
  flex: 1;
  min-width: 16px;
  border-bottom: 1px dotted var(--sand);
  transform: translateY(-5px);
}
.mlist__items b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  color: var(--ochre);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: 0;
}

/* special: a photo on the left, the two specials on the right as menu rows,
   on the page background like the lists around it */
.mspecial {
  max-width: calc(1120px + 2 * var(--pad));
  margin: clamp(8px, 2vw, 24px) auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: center;
}
.mspecial__photo { margin: 0; }
.mspecial__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 70%;
  border-radius: var(--photo-r);
}
.mspecial__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 0 0 clamp(24px, 3vw, 40px);
  color: var(--ink);
}
.mspecial__items li { font-size: 21px; padding: 14px 0; }
.mspecial__items b { font-size: 22px; }

/* ---------- Story page ----------
   alternating photo + text chapters on the page background,
   with one large statement between them */
.schap {
  max-width: calc(1120px + 2 * var(--pad));
  margin: clamp(64px, 9vw, 136px) auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: center;
}
/* first chapter right under the page header: less air, so it is on screen and animates in on load */
.mpage-head + .schap { margin-top: clamp(40px, 5vw, 72px); }
.schap--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.schap--flip .schap__photo { order: 2; }
.schap__photo { margin: 0; }
.schap__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--photo-r);
}
.schap__photo--square img { aspect-ratio: 1; }
.schap__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 0 0 clamp(20px, 2.4vw, 32px);
  color: var(--ink);
  text-wrap: balance;
}
.schap__text {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}
.schap__text + .schap__text { margin-top: 16px; }
.sstate {
  max-width: calc(1040px + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(8px, 2vw, 24px) var(--pad);
  text-align: center;
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(32px, 4.6vw, 68px);
  line-height: 1.08;
  letter-spacing: -.018em;
  text-wrap: balance;
  color: var(--ink);
}
@media (max-width: 860px) {
  .schap,
  .schap--flip { grid-template-columns: minmax(0, 1fr); }
  .schap--flip .schap__photo { order: 0; }
  .schap__photo img { aspect-ratio: 4 / 3; }
  /* the statement between the chapters: left-aligned with the text, between two terracotta lines */
  .sstate {
    margin: 0 var(--pad);
    padding: 28px 0;
    text-align: left;
    text-wrap: pretty;
    border-top: 1px solid var(--terracotta);
    border-bottom: 1px solid var(--terracotta);
  }
}

/* homepage intro: a light button through to the story page, on the terracotta band */
/* the side column is a grid with a large gap; pull the button back up so it sits 32px under the text */
.daily__cta { margin-top: calc(32px - clamp(32px, 4vw, 56px)); }
/* the plain-words line under the intro statement (who and where we are, also for search):
   pulled up close under the statement, out of the column's large gap */
.daily__about {
  margin-top: calc(20px - clamp(32px, 4vw, 56px));
  max-width: 40ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--cream);
}

/* closing banner, full width: the terrace photo under a warm dark wash, heading and button on top */
/* closing section: two columns. Left, the terrace photo under a dark wash with the
   heading and button; right, the map in the site's colours */
.mpage-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(400px, 42vw, 600px);
  margin-top: clamp(8px, 2vw, 24px);
  background: var(--charcoal);
}
.mpage-cta__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 7vw, 104px) var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.mpage-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 40%;
  transform: scale(1.06);
  transition: transform 1.6s cubic-bezier(.2, .7, .2, 1);
}
.mpage-cta.is-in .mpage-cta__bg { transform: none; }
.mpage-cta__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* a lighter wash: the photo shows through, with a little more shade behind the text */
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(24, 24, 22, .3), transparent 80%),
    linear-gradient(rgba(24, 24, 22, .2), rgba(24, 24, 22, .32));
}
.mpage-cta .h2 { max-width: 820px; color: var(--cream); font-size: clamp(36px, 3.8vw, 60px); }
.mpage-cta .h2 em { display: block; }
.mpage-cta .btn { margin-top: 8px; --btn-hover: var(--terracotta); }   /* on the photo the hover fill is terracotta */
/* the map: Google's own map, turned greyscale and multiplied with the stone colour,
   so the roads and buildings take on the palette */
.mpage-cta__map {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 360px;
  background: var(--ivory);   /* light while the map loads, so it never flashes dark */
}
.mpage-cta__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(.95) brightness(1.06);
}
.mpage-cta__map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--stone-page);
  mix-blend-mode: multiply;
  opacity: .5;            /* a light stone tint: the map stays bright and easy to read */
  pointer-events: none;   /* the map stays draggable */
}
@media (max-width: 860px) {
  .mpage-cta { grid-template-columns: minmax(0, 1fr); }
  .mpage-cta__panel { min-height: 380px; }
  .mpage-cta__map { min-height: 340px; }
}

@media (max-width: 1024px) {
  .mlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .mlist-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .mspecial { grid-template-columns: minmax(0, 1fr); }
  .mspecial__photo img { aspect-ratio: 4 / 3; }
}

/* Story: photo gallery, a 4-column grid with two tall photos */
.sgallery {
  /* a full-width terracotta band; the content keeps the same 1280px track as the other sections */
  margin-top: clamp(64px, 9vw, 136px);
  padding-block: clamp(56px, 7vw, 108px);
  padding-inline: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  color: var(--cream);
}
.sgallery .eyebrow { color: rgb(var(--on-dark) / .82); }
.sgallery .sgallery__title { color: var(--cream); }
.sgallery + .sreviews { margin-top: 0; }   /* the two bands meet directly */
.sgallery__head { text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }
.sgallery__title,
.sreviews__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
.sgallery__title em,
.sreviews__title em { color: inherit; font-style: normal; }
.sgallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 19vw, 280px);
  gap: clamp(8px, 1.2vw, 16px);
}
.sgallery__grid li { overflow: hidden; border-radius: var(--photo-r); }
.sgallery__grid .is-tall { grid-row: span 2; }
.sgallery__grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.sgallery__grid li:hover img { transform: scale(1.04); }

/* Story: reviews, a charcoal band with the same slider as the homepage */
.sreviews {
  margin-top: clamp(64px, 9vw, 136px);
  padding-block: clamp(56px, 7vw, 108px);
  /* content on the same 1280px track as the other sections */
  padding-inline: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  color: var(--cream);
}
.sreviews .eyebrow { color: rgb(var(--on-dark) / .6); }
.sreviews .sreviews__title { color: var(--cream); }
.sreviews__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 32px;
  margin-bottom: clamp(28px, 3.4vw, 48px);
}
.sreviews__actions { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 32px); }
.sreviews .insta__link { color: var(--cream); }
/* Story: the reviews in three columns, each card as tall as its own text
   (a masonry layout), with the link to all reviews under it */
.reviews__grid {
  columns: 3;
  column-gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reviews__grid .review {
  width: auto;
  margin-bottom: 16px;
  break-inside: avoid;
}
.sreviews__more { margin-top: clamp(16px, 2.4vw, 32px); text-align: center; }   /* the last cards already carry 16px below */
@media (max-width: 1024px) {
  .reviews__grid { columns: 2; }
  .reviews__grid .review:nth-child(n + 9) { display: none; }   /* eight: four even rows */
}
@media (max-width: 600px) {
  .reviews__grid { columns: 1; }
  .reviews__grid .review:nth-child(n + 5) { display: none; }   /* four on a phone */
}
/* the full-width photo banner sits straight under the charcoal band, with no strip of page colour between */
.sreviews + .mpage-cta { margin-top: 0; }

@media (max-width: 600px) {
  .sgallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .visit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .guests { grid-template-columns: minmax(0, 1fr); }
  .walk__head { grid-template-columns: minmax(0, 1fr); }
  .walk__intro { justify-self: start; }
  .stops { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .carte__grid { grid-template-columns: minmax(0, 1fr); }
  /* one column: the heading and note line up on the left with the drinks; the button stays centred */
  .carte__mark, .carte__title, .carte__note { text-align: left; }
  /* the prices row starts on the left like the rest, a little smaller so it fits narrow phones */
  .prices { justify-content: flex-start; gap: 14px; }
  .mprices .prices { width: auto; padding: 16px; }
  .prices__qr { width: 66px; padding: 6px; }
  .prices__link { letter-spacing: .05em; }
  .daily__layout { grid-template-columns: minmax(0, 1fr); }
  .daily__side { padding-top: 0; }
  .daily__statement { max-width: none; font-size: clamp(25px, 6.4vw, 32px); }   /* stacked under the photo: full width, a little larger */
  .daily__title { margin-left: 0; text-align: left; }   /* lines up on the left with the photo and text below */
  .mpage-head { text-align: left; }   /* Menu and Story headers line up on the left with the page below */
  .daily__small { width: 100%; }   /* full column width, like the photo above it */
  .footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__about { grid-column: 1 / -1; grid-row: 2; }
  /* phones and tablets: the two photos sit side by side in two columns, above "8 AM" */
  .life {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    justify-items: center;
  }
  .life > * { grid-column: 1 / -1; }
  .life > .life__photo {
    grid-column: auto;
    grid-row: 2;
    position: static;
    width: 100%;
    margin: 0 0 clamp(48px, 13vw, 72px);   /* clear air above the big "8 AM" */
    transform: none;
    animation: none;
  }
      .hero { min-height: max(520px + var(--nav-h), 100svh); }
  .hero { --cup: 80vw; }
  .hero__word { font-size: 21vw; line-height: .9; grid-template-columns: minmax(0, 1fr); row-gap: calc(var(--cup) * .76); }
  .hero__word > span:first-child,
  .hero__word > span:last-child { justify-self: center; }
  .cbean.near { width: 72px; }
  .cbean.mid, .cbean.far { width: calc(var(--s) * .72); }
  /* the bean on the bottom edge sits halfway between the bottom of the cup and the
     "Open every day" text: the cup ends 32.2% of its height (--cup * .914) below the middle
     of the layer, the text starts 74px above its bottom; -55px centres the bean on that point */
  .beans-layer--front .cbean:last-child { left: 16%; top: calc(75% + var(--cup) * .147 - 55px); }
  /* the three beans along the top: spread out so they don't bunch up on a narrow screen */
  .beans-layer--back .cbean:nth-child(2) { left: 80%; top: 1%; }    /* small, top right */
  .beans-layer--front .cbean:nth-child(3) { left: 44%; top: 15%; }  /* middle, a little lower */
  /* the bean on the bottom edge at the right would slip under the Scroll tab: left out on phones */
  .beans-layer--back .cbean:nth-child(3) { display: none; }
  .hero__bottom { grid-template-columns: 1fr auto; font-size: 16px; }
  .hero__bottom-right { display: none; }
  .visit { grid-template-columns: minmax(0, 1fr); }
  .insta { max-width: 520px; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .mention { grid-template-columns: minmax(0, 1fr) 40px; }
  .mention__bar { grid-column: 1 / -1; grid-row: 2; }
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__about { grid-row: auto; }
  .footer__nav { gap: 20px; }   /* a little more air between the big links, easier to tap */
  .footer__bottom { flex-direction: column; }
  /* on its own line, Cookie settings needs no separator dot */
  .footer__sep { display: none; }
  .footer__cookies { display: block; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .cbean,
  .hero__word,
  .hero__cup-in,
  .hero__bottom > p,
  .hero__scroll,
  .life__photo,
  .hero__scroll,
  .hero__mouse::after { animation: none; }
  html { scroll-behavior: auto; }
}


/* =========================================================
   v4 colour layer: the two-tone heading accent turns burnt orange,
   the footer becomes a dark roast green band, bars go green
   ========================================================= */
::selection { background: var(--terracotta); color: var(--ivory); }

.mention__bar::after { background: var(--green); }
.stop__time::before { background: var(--orange); }

.footer { background: var(--green); color: var(--cream); }
.footer .eyebrow,
.footer__bottom { color: rgb(var(--on-dark) / .62); }
.footer__nav a,
.footer__social a,
.footer__text,
.footer__hours dd { color: var(--cream); }
.footer__hours dt { color: rgb(var(--on-dark) / .75); }
.footer__nav a[aria-current="page"] { color: var(--cream); }

/* the section under the hero is the terracotta band */
.daily {
  max-width: none;
  background: var(--terracotta);
  color: var(--cream);
}
.daily__title,
.daily__statement { color: var(--cream); }
.daily__text { color: var(--cream); }

/* the inner page headers (Menu, Story) are terracotta bands too, kept short so the
   first menu rows still show below it on a laptop screen */
.mpage-head {
  max-width: none;
  padding: clamp(44px, 5.5vw, 80px) var(--pad);
  color: var(--cream);
}
.mpage-head > * { max-width: 1200px; margin-inline: auto; }
.mpage-head .eyebrow { color: rgb(var(--on-dark) / .92); font-size: 15px; margin-bottom: 24px; }
.mpage-head__title { color: var(--cream); margin-bottom: 20px; }
.mpage-head__note { color: rgb(var(--on-dark) / .9); font-size: clamp(16px, 1.4vw, 19px); }

/* the rating section is a charcoal band */
.guests {
  max-width: none;
  /* keep the content on the same 1280px track as the other sections */
  padding-inline: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  background: var(--green);
  color: var(--paper);
  --line: rgb(var(--on-dark) / .16);
}
.guests .eyebrow,
.guests__of,
.guests__note { color: rgb(var(--on-dark) / .6); }
.guests__big,
.mention__name,
.guests .guests__link { color: var(--paper); }
.guests__count { color: rgb(var(--on-dark) / .8); }
.guests .mention__bar { background: rgb(var(--on-dark) / .2); }
.guests .mention__bar::after { background: var(--orange); }
.guests__stars span { background: linear-gradient(90deg, var(--orange) calc(var(--r) / 5 * 100%), rgb(var(--on-dark) / .25) 0); -webkit-background-clip: text; background-clip: text; }

/* reviews slider on the charcoal band: soft tiles in a row that scrolls sideways
   (swipe, trackpad, or the arrows), snapping card by card */
/* the slider row sits closer under the score: a smaller row gap than the column gap */
.guests { row-gap: clamp(72px, 9vw, 128px); }
.reviews { grid-column: 1 / -1; min-width: 0; }
.reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.reviews .eyebrow { margin: 0; color: rgb(var(--on-dark) / .6); }
.reviews__nav { display: flex; gap: 8px; }
.reviews__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgb(var(--on-dark) / .08);
  color: var(--cream);
  cursor: pointer;
  transition: background-color .3s, color .3s, opacity .3s;
}
.reviews__btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.reviews__btn:hover:not(:disabled),
.reviews__btn:focus-visible { background: var(--terracotta); color: var(--paper); }
.reviews__btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.reviews__btn:disabled { opacity: .35; cursor: default; }
.reviews__track {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
/* full width: the row runs to both edges of the screen, while the first card
   (and every snap point) lines up with the content column above it */
.reviews__track {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  /* snap points line up with the content column (reviews.js sets the exact value) */
  scroll-padding-inline: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
}
/* where 100vw includes a scrollbar, don't let the row push the page sideways */
.guests,
.sreviews { overflow-x: clip; }
.review {
  flex: none;
  width: clamp(280px, 30%, 400px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 2.4vw, 32px);
  border-radius: var(--photo-r);
  background: rgb(var(--on-dark) / .06);
}
.review__stars { font-size: 14px; letter-spacing: .14em; line-height: 1; }
.review__stars span {
  background: linear-gradient(90deg, var(--orange) calc(var(--r) / 5 * 100%), rgb(var(--on-dark) / .25) 0);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.review__stars span::before { content: "★★★★★"; }
.review__text {
  flex: 1;
  font-size: 17px;
  line-height: 1.55;
  color: rgb(var(--on-dark) / .86);
}
.review__by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; }
.review__name { font-weight: 500; color: var(--cream); text-decoration: none; }
a.review__name:hover { color: var(--orange); }
.review__date { color: rgb(var(--on-dark) / .55); }
@media (max-width: 600px) {
  .review { width: 84%; }
}
@media (prefers-reduced-motion: reduce) {
  .reviews__track { scroll-behavior: auto; }
}

/* colour bands: a fine paper grain plus a soft wash of light from the top-left,
   so the charcoal and terracotta read like printed, slightly uneven stock rather than a flat fill */
.daily,
.guests,
.footer,
.mpage-head,
.sgallery,
.sreviews {
  background-color: var(--band, var(--charcoal));
  background-image:
    radial-gradient(ellipse 70% 60% at 15% 0%, rgba(255, 250, 240, .07), transparent 65%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(0, 0, 0, .2), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='l'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .98  0 0 0 0 .94  0 0 0 .12 0'/></filter><filter id='d'><feTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='2' seed='9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .2 0'/></filter><rect width='100%' height='100%' filter='url(%23d)'/><rect width='100%' height='100%' filter='url(%23l)'/></svg>");
  background-size: auto, auto, 260px 260px;
}
.daily,
.mpage-head,
.sgallery { --band: var(--terracotta); }

/* the Scroll down tab: the same grain as the terracotta band under it, with no extra light,
   and the grain is pinned to the viewport on both the tab and the band under it,
   so the specks line up across the seam. As the tab sinks it is clipped at the
   edge, so it disappears into the band instead of sitting on top of it. */
.hero__scroll {
  background-color: var(--terracotta);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='l'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .98  0 0 0 0 .94  0 0 0 .12 0'/></filter><filter id='d'><feTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='2' seed='9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .2 0'/></filter><rect width='100%' height='100%' filter='url(%23d)'/><rect width='100%' height='100%' filter='url(%23l)'/></svg>");
  background-size: 260px 260px;
  background-attachment: fixed;
}
.hero__scroll:hover { background-color: #A4614A; }

/* hero: the same fine paper grain as the colour bands, tuned for the light stone,
   so the page under the cup reads like printed stock rather than a flat fill */
.hero {
  background-color: var(--page);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='l'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .99  0 0 0 0 .96  0 0 0 .16 0'/></filter><filter id='d'><feTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='2' seed='9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .13  0 0 0 0 .13  0 0 0 0 .12  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23d)'/><rect width='100%' height='100%' filter='url(%23l)'/></svg>");
  background-size: 260px 260px;
}
.daily { background-attachment: scroll, scroll, fixed; }

/* credit link in the footer: same draw-in underline as the other footer links */
.footer__credit { color: inherit; text-decoration: none; transition: color .2s; }
.footer__credit .u {
  padding-bottom: var(--u-pad);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s cubic-bezier(.7, 0, .2, 1);
}
.footer__credit:hover { color: var(--paper); }
.footer__credit:hover .u,
.footer__credit:focus-visible .u { background-size: 100% 1px; }

/* inner pages (Menu, Story): the top bar floats over the terracotta header
   (light colours come from .is-on-dark, like over every dark section) */
.is-inner main { margin-top: calc(-1 * var(--nav-h)); }
.is-inner .mpage-head { padding-top: calc(var(--nav-h) + clamp(44px, 5.5vw, 80px)); }

/* ---------- Mobile menu (phones and tablets) ----------
   a hamburger in the top bar opens a full-screen stone panel with large links;
   the top bar stays on top, so the logo and the close (X) button stay in place */
.nav__toggle {
  display: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--charcoal);
  cursor: pointer;
  transition: color .3s ease;
}
.nav__toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: currentColor;
  transition: top .35s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child  { top: 25px; }
.nav.is-menu-open .nav__toggle span { top: 21.25px; }
.nav.is-menu-open .nav__toggle span:first-child { transform: rotate(45deg); }
.nav.is-menu-open .nav__toggle span:last-child  { transform: rotate(-45deg); }
.nav__toggle:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.nav.is-on-dark:not(.is-scrolled):not(.is-menu-open) .nav__toggle { color: var(--cream); }

.mmenu {
  position: fixed;
  inset: 0;
  z-index: 45;   /* under the top bar (50) */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  overflow-y: auto;
  padding: calc(var(--nav-h) + clamp(32px, 8vh, 72px)) var(--pad) 40px;
  background-color: var(--page);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='l'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .99  0 0 0 0 .96  0 0 0 .16 0'/></filter><filter id='d'><feTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='2' seed='9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .13  0 0 0 0 .13  0 0 0 0 .12  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23d)'/><rect width='100%' height='100%' filter='url(%23l)'/></svg>");
  background-size: 260px 260px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.mmenu.is-open { opacity: 1; visibility: visible; transition: opacity .4s ease; }
/* generous spacing and a tall tap area on every link, so each one is easy to hit with a thumb */
.mmenu__links { display: grid; justify-items: start; gap: clamp(14px, 3.5vh, 28px); }
.mmenu__links a {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(40px, 11vw, 64px);
  line-height: 1.15;
  padding-block: 6px;
  color: var(--charcoal);
  text-decoration: none;
  opacity: 0;
  translate: 0 18px;
  transition: opacity .5s ease, translate .6s cubic-bezier(.2, .7, .2, 1);
}
.mmenu.is-open .mmenu__links a {
  opacity: 1;
  translate: 0 0;
  transition-delay: calc(var(--i) * 60ms + 120ms);
}
.mmenu__links a[aria-current="page"] {
  padding-bottom: var(--u-pad);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.mmenu__foot {
  display: grid;
  justify-items: start;
  gap: 20px;
  font-size: 17px;
  line-height: 1.5;
  opacity: 0;
  transition: opacity .5s ease;
}
.mmenu.is-open .mmenu__foot { opacity: 1; transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  .mmenu, .mmenu__links a, .mmenu__foot, .nav__toggle span { transition: none; }
}
@media (max-width: 860px) {
  .nav { gap: 12px; }
  .nav > .btn { margin-left: auto; }
  .nav__toggle { display: block; }
}
@media (max-width: 600px) {
  .nav > .btn { display: none; }   /* on phones the button lives in the menu panel */
}
@media (min-width: 861px) {
  .mmenu { display: none; }
}

/* phones: the hero is just the cup (the logo is already in the top bar).
   "coffee snob" stays in the page as the main heading for Google and screen
   readers, only visually hidden */
@media (max-width: 600px) {
  .hero__word {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    animation: none;
  }
  .hero { --cup: 94vw; }
  /* the two beans that spill over into the terracotta intro: left out on phones */
  .beans-layer--back .cbean:nth-child(4),
  .beans-layer--back .cbean:nth-child(5) { display: none; }
}

/* ============ cookie consent (consent.js) ============ */
/* "Cookie settings" in the footer: a button styled like the credit link */
.footer__cookies {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

/* the banner: a small ivory card, bottom left, both choices equally easy */
.consent {
  position: fixed;
  z-index: 200;
  left: var(--pad);
  bottom: 24px;
  width: min(440px, calc(100vw - 2 * var(--pad)));
  padding: 22px 24px 24px;
  background: var(--ivory);
  color: var(--charcoal);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgb(34 34 32 / .22), 0 2px 8px rgb(34 34 32 / .10);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.consent.is-in { opacity: 1; transform: none; }
.consent[hidden] { display: none; }
.consent__text {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}
.consent__actions { display: flex; gap: 10px; }
.consent__btn,
.map-gate__btn {
  flex: 1;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--charcoal);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.consent__btn--yes,
.map-gate__btn { background: var(--charcoal); color: var(--ivory); }
.consent__btn:hover,
.map-gate__btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--ivory); }
.consent__btn:focus-visible,
.map-gate__btn:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }
@media (max-width: 600px) {
  .consent { left: 16px; right: 16px; bottom: 16px; width: auto; padding: 20px; }
}

/* the map waits behind this until the visitor accepts or asks for it */
.map-gate {
  position: absolute;
  inset: 0;
  z-index: 2;   /* above the stone tint (::after) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
  color: var(--charcoal);
}
.map-gate__text {
  margin: 0;
  max-width: 300px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}
.map-gate__btn { flex: none; padding: 14px 26px; }
.map-gate__link { font-family: var(--sans); font-size: 15px; color: inherit; text-decoration: none; }
.map-gate__link .u {
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.mpage-cta__map.is-loaded .map-gate { display: none; }
.footer__sep { margin: 0 .4em; opacity: .6; }
