/* style.css: developer territory. The owner edits menu.json and config.js, not this. */

/* ---------------------------------------------------------------- type ---
   Four families, with a clear division of labour.

   Epoch is the display face and the voice of the site: geometric, one weight,
   built rather than written. It carries the wordmark, the headlines and the
   section names — anything set large.

   Oskon 90s stays, italic only, and is now the hand: section notes, the
   standfirst, the asides. It never carries anything a visitor has to act on.

   Darker Grotesque is the body sans. Fragment Mono keeps the small utility
   type: prices, timestamps, hours, anywhere tabular numbers matter.

   Epoch ships as the supplied OTF, unsubsetted and unconverted, because its
   licence forbids modifying the file. That costs about 20KB over a WOFF2 and
   is the honest way to use it. fonts/LICENSE-Epoch.txt is the licence. */

@font-face {
  font-family: 'Epoch';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/epoch.otf') format('opentype');
}
@font-face {
  font-family: 'Oskon';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/oskon-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Oskon';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/oskon-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Oskon';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/oskon-light.woff2') format('woff2');
}
@font-face {
  font-family: 'Darker Grotesque';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('fonts/darker-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fragment Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fragment-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------------------------------------------------- tokens ---
   The palette is lifted straight from the gouache paintings: cream paper,
   two greens, butter yellow, blush, a dusty sky blue, and the one red sun
   that appears in every landscape. The sun is the accent everywhere. */

:root {
  --paper:  #F7EFDF;   /* the sheet everything sits on */
  --paper-2:#F1E4CC;   /* a warmer second sheet */
  --ink:    #2E331D;   /* deep forest, the text colour; warmed toward the paintings' olive */
  --pine:   #404A2E;   /* dark green blocks, warmed the same way */
  /* The ink pushed down to near-black, used for exactly one full-bleed field
     on the site. Paper on it measures 14.9:1, butter 11.5:1. */
  --dark:   #1B1E13;
  --moss:   #75823A;   /* olive mid-green */
  --butter: #F3CE5C;   /* butter yellow */
  --blush:  #F4CDBA;   /* blush pink wash */
  --rose:   #E39FA6;   /* pink cloud */
  --sky:    #A9BDCE;   /* dusty blue */
  --sun:    #D9543E;   /* the red sun */
  --sun-deep: #B84431; /* the sun as a text/UI colour: 4.7:1 on paper */
  --sun-press: #9C3826;
  --moss-text: #5A6530; /* moss dark enough to carry small type */

  /* Five more, lifted off a pair of gouache landscapes: the acid yellow-green
     the low sun puts on grass, the periwinkle a sky sits on before it turns,
     the chalk of a bare peak, the pink left in a crevice once the light has
     gone over the ridge, and the amber of the flowers in the foreground.
     These are painting colours. They tint a rule and a hover and they never
     carry type, which is why none of them needs to clear a contrast bar. */
  --lichen:   #B9C74F;
  --lavender: #AFB0CE;
  --clay:     #E0CCC0;
  --peony:    #E4536B;
  --amber:    #E8A33D;
  /* Clay is the lit face of the chalk peak and is invisible as a mark on
     cream: 1.36:1. This is the shaded face of the same rock, and the only
     thing it is for is being seen — the same job --sun-deep and --moss-text
     already do for their own colours. 2.7:1 on paper, brighter than the
     lavender rule that reads perfectly well at 1.9:1. */
  --clay-deep: #A79280;

  --ink-12: rgba(46, 51, 29, 0.12);
  --ink-18: rgba(46, 51, 29, 0.18);
  --ink-30: rgba(46, 51, 29, 0.30);
  --ink-45: rgba(46, 51, 29, 0.45);
  --ink-60: rgba(46, 51, 29, 0.60);
  --ink-75: rgba(46, 51, 29, 0.75);
  --cream-85: rgba(247, 239, 223, 0.85);
  --cream-35: rgba(247, 239, 223, 0.35);

  /* --display is set large and never small; --serif is now italic-only and
     only ever carries an aside. See the note at the top of the file. */
  --display: 'Epoch', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Oskon', Georgia, 'Times New Roman', serif;
  --sans: 'Darker Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Fragment Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Oskon reads a size smaller than Epoch at the same em — lower x-height,
     finer strokes. Every place the two sit together winds the italic up by
     this much so they land level. */
  --italic-up: 1.17;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);

  --bar-h: 78px;
  --gutter: clamp(20px, 3.57vw, 56px);

  /* Menu page: the two type columns hold 660px between them and the margins
     take whatever is left, up to the 230px the spots hang in. */
  --board-w: 1120px;
  /* This used to be 230px, and every pixel of it was there to hold a painting
     hanging in the outer margin. The paintings live in the section bars now,
     so the margin went back to the columns: they were 302px, which is not wide
     enough for a name, its italic note and the bar's own end on one line. */
  --board-margin: 96px;
}

/* Each time of day tints the interface a little, so the UI follows the
   painting instead of ignoring it. */
/* Three pigments per hour, not one, because that is how many are on the brush
   in the landscapes these come from: a sky is never a single colour across a
   sheet. The rule is painted with them and the hover is mixed from the first,
   so the time of day reaches the board and not only the hero. */
[data-state='morning'] {
  --accent: var(--sky);    --accent-ink: var(--ink);
  --rule-1: var(--lavender); --rule-2: var(--sky);    --rule-3: var(--lichen);
}
[data-state='midday'] {
  --accent: var(--butter); --accent-ink: var(--ink);
  --rule-1: var(--lichen);   --rule-2: var(--butter); --rule-3: var(--moss);
}
[data-state='late'] {
  --accent: var(--rose);   --accent-ink: var(--ink);
  --rule-1: var(--amber);    --rule-2: var(--peony);  --rule-3: var(--rose);
}
[data-state='closed'] {
  --accent: var(--blush);  --accent-ink: var(--ink);
  --rule-1: var(--clay);     --rule-2: var(--lavender); --rule-3: var(--sky);
}

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

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 20px/1.5 var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

a {
  color: var(--sun-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 140ms var(--ease-out);
}
a:hover { color: var(--sun-press); }

::selection { background: var(--butter); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--sun-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
/* On pine grounds the sun ring cannot be seen; butter can. */
[data-state='closed'] .bar :focus-visible,
[data-state='closed'] .hero-type :focus-visible,
.visit :focus-visible,
.foot :focus-visible { outline-color: var(--butter); }
/* Pills take a pill-shaped ring. */
.nav a:focus-visible, .ind-trigger:focus-visible,
.hero-onward:focus-visible { border-radius: 999px; }

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

/* --------------------------------------------------------------- marks ---
   CSS-masked line icons, one edit point for all pages. Painted in the sun
   red so they read as part of the accent system. */

:root {
  --mk-hours:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13' cy='13' r='10.4'/%3E%3Cpath d='M13 7.4V13l4.4 2.8'/%3E%3C/svg%3E");
  --mk-findus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 24.2s8.4-8.2 8.4-13.4a8.4 8.4 0 10-16.8 0C4.6 16 13 24.2 13 24.2z'/%3E%3Ccircle cx='13' cy='10.6' r='2.9'/%3E%3C/svg%3E");
  --mk-onward: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' preserveAspectRatio='none' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.6 13h19M16.6 7.4L22.2 13l-5.6 5.6'/%3E%3C/svg%3E");
  --mk-note:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M13 2.6v20.8M3.8 7.8l18.4 10.4M22.2 7.8L3.8 18.2'/%3E%3C/svg%3E");
  --mk-board:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3.4 8.2h19.2M3.4 13h14.2M3.4 17.8h17'/%3E%3C/svg%3E");
  --mk-close:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6.4 6.4l13.2 13.2M19.6 6.4L6.4 19.6'/%3E%3C/svg%3E");
  /* a hand-drawn squiggle, used as the site's rule */
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M2 8c6-6 12-6 18 0s12 6 18 0 12-6 18 0 12 6 18 0 12-6 18 0 12 6 18 0'/%3E%3C/svg%3E");
}

.mark {
  flex: none;
  display: block;
  width: var(--mark-size, 14px);
  height: var(--mark-size, 14px);
  background-color: var(--mark-color, var(--sun));
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: contain;     mask-size: contain;
}
.mark--hours  { -webkit-mask-image: var(--mk-hours);  mask-image: var(--mk-hours); }
.mark--findus { -webkit-mask-image: var(--mk-findus); mask-image: var(--mk-findus); }
.mark--note   { -webkit-mask-image: var(--mk-note);   mask-image: var(--mk-note); }
.mark--board  { -webkit-mask-image: var(--mk-board);  mask-image: var(--mk-board); }
.mark--close  { -webkit-mask-image: var(--mk-close);  mask-image: var(--mk-close); }
.mark--onward {
  -webkit-mask-image: var(--mk-onward); mask-image: var(--mk-onward);
  width: 18px; height: 10px;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  transition: transform 180ms var(--ease-spring);
}
a:hover > .mark--onward, button:hover > .mark--onward { transform: translateX(4px); }

/* The squiggle rule: pigment-coloured, repeats to fill its box.

   Painted along its length rather than filled flat, with the hour's three
   pigments, the way one stroke of a loaded brush changes colour as it crosses
   a sheet. The mask means only the squiggle takes any of it. The flat colour
   underneath is not decoration: a browser that will not interpolate a gradient
   in Oklch drops the whole background-image and keeps the rule. */
.hero-rule, .page-rule {
  height: 10px;
  background-color: var(--rule-2, var(--sun));
  background-image: linear-gradient(in oklch 90deg,
    var(--rule-1, var(--sun)) 4%,
    var(--rule-2, var(--sun)) 48%,
    var(--rule-3, var(--sun)) 92%);
  -webkit-mask-image: var(--squiggle); mask-image: var(--squiggle);
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-size: 96px 10px; mask-size: 96px 10px;
  -webkit-mask-position: left center; mask-position: left center;
}


/* ----------------------------------------------------------------- bar --- */

.bar {
  position: relative;
  z-index: 4;
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--ink-18);
  background: var(--paper);
}

.hero > .bar {
  position: absolute;
  inset: 0 0 auto;
  background: linear-gradient(180deg, var(--cream-85), rgba(247, 239, 223, 0));
  border-bottom: none;
}

/* The lockup: half built, half written. "sia" slides back under the m and sits
   a touch lower, so the italic's entry stroke crosses the geometric.

   It has a floor. Below about 28px the italic's entry stroke merges with the m
   and it stops reading as two words, so anything smaller sets the two parts
   apart with a normal space instead. There is no such place on the site today;
   the rule is here so adding one cannot break the mark silently. */
.wordmark {
  font: 400 34px/1 var(--display);
  color: var(--ink);
  letter-spacing: -0.045em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 200ms var(--ease-out);
}
.wordmark .wm-b {
  font: italic 400 calc(1.04em * 1) var(--serif);
  letter-spacing: 0;
  margin-left: -0.08em;
  display: inline-block;
  transform: translateY(0.11em);
}
@media (max-width: 400px) {
  .wordmark { font-size: 28px; }
}
@media (hover: hover) and (pointer: fine) {
  .wordmark:hover { color: var(--ink); opacity: 0.72; }
}

.nav {
  display: flex;
  gap: 28px;
  font: 700 13.5px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--sun-deep); border-bottom-color: var(--sun); }
}
.nav a[aria-current='page'] { border-bottom-color: var(--sun); }

/* Closed takes a solid pine bar; nav goes cream. */
[data-state='closed'] .hero > .bar { background: var(--pine); border-bottom-color: transparent; }
[data-state='closed'] .hero .wordmark { color: var(--paper); }
[data-state='closed'] .hero .nav a { color: var(--cream-85); }
[data-state='closed'] .hero .nav a:hover { color: var(--paper); border-bottom-color: var(--butter); }
[data-state='closed'] .hero .nav a[aria-current='page'] { color: var(--paper); border-bottom-color: var(--butter); }
[data-state='closed'] .hero .ind-label { color: var(--paper); }

/* ----------------------------------------------------------- indicator ---
   Top right of every page: a pill that answers "open or not". Without JS the
   trigger is hidden and the panel is in flow, expanded. */

.ind { position: relative; }

.ind-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 16px 11px;
  background: var(--cream-85);
  border: 1px solid var(--ink-30);
  /* Square, because the panel it opens is square. A lozenge above a hard-edged
     card read as two different pieces of furniture. */
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .ind-trigger:hover { border-color: var(--ink-60); background: var(--paper); }
}
[data-state='closed'] .hero .ind-trigger { background: transparent; border-color: var(--cream-35); }
[data-state='closed'] .hero .ind-trigger:hover { border-color: var(--cream-85); background: transparent; }
.ind-dot {
  flex: none;
  width: 11px; height: 11px;
  background: var(--sun);
  border-radius: 50%;
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
/* shut is still: no breathing while the room is dark */
[data-state='closed'] .ind-dot { animation: none; }
.ind-label {
  font: 700 13.5px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.ind-trigger .mark { --mark-size: 14px; --mark-color: currentColor; }
[data-state='closed'] .hero .ind-trigger .mark { --mark-color: var(--paper); }

/* The panel is a card lifted off the paper, and it used to say so with a
   rounded corner and a soft glow. The rest of the site now cuts square and
   prints flat, so it lifts the way a printed block does: hard edge, solid
   offset, no blur. */
.ind-panel {
  padding: 24px 26px 26px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(46, 51, 29, 0.13);
}
html.js .ind-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 20;
  width: 300px;
}
html:not(.js) .ind-trigger { display: none; }
html:not(.js) .ind { margin: 10px 0; }
html:not(.js) .stamp { display: none; }
html:not(.js) .bar { align-items: flex-start; }

.ind-title {
  font: 700 13.5px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun-deep);
  margin: 0 0 12px;
}
/* An address is something a visitor acts on, so it is set in the face that
   carries information. The italic is the hand, and the hand never says where
   to go — same reason `.find address` is Epoch. */
.ind-addr {
  font: 400 25px/1.12 var(--display);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 18px;
}
.ind-panel .hours { margin-top: 4px; }
.ind-close {
  position: absolute;
  top: 16px; right: 16px;
  padding: 6px;
  background: none;
  border: 0;
  cursor: pointer;
}
.ind-close .mark { --mark-size: 13px; --mark-color: var(--ink); }
.ind-close:hover .mark { --mark-color: var(--sun); }
html:not(.js) .ind-close { display: none; }

.hours, .hero-hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 20px;
  font: 400 13.5px/1.5 var(--mono);
  color: var(--ink);
}
.hours dt, .hero-hours dt { color: var(--ink-60); }
.hours dd, .hero-hours dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- hero ---
   One component, four variants keyed off [data-state]. The geometry of each
   state (which side the type sits, where the paper strip lies) is kept;
   the type inside it is the new voice. */

.hero {
  position: relative;
  /* Above the wash layer, which is z-index 2. The wash paints on the board and
     the preview and never inside the hero, so it has no business compositing
     there either: this keeps one more blended layer off the one part of the
     site that already carries a live WebGL canvas and a multiply wash under
     its type.

     This rule was first written with a contrast justification, and that
     justification was wrong: the 4.76:1 to 4.49:1 drop it cited was noise in
     tools/check-contrast.mjs, which was sampling one frame of a moving picture
     and measuring a headline's whole bounding box rather than its letters. It
     read the same on main with no wash on the page at all. Both faults are
     fixed in that file; the hero clears AA everywhere with room to spare. */
  z-index: 3;
  /* Short of the full viewport by the day dial's height, so the dial,
     the way into the other three paintings, is on screen from the start. */
  height: calc(100svh - 114px);
  min-height: 640px;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

.plate-wrap { position: absolute; inset: 0; z-index: 0; }
.plate, .plate img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plate img { object-position: var(--plate-pos, center); }

/* The scans keep their own white paper, which sat cold against the site's
   cream. A multiply wash of the page colour over the whole plate turns the
   scan's white into this paper, so painting and page share one sheet. Sits
   above the pigment canvas so the tint holds while the paint moves. */
.plate-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--paper);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.pigment {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}
.pigment.is-lit { opacity: 1; transition: opacity 300ms linear; }

:root {
  --strip-alpha: 0.86;
  --bleed: clamp(48px, 9vw, 150px);
}

.strip {
  position: absolute;
  z-index: 2;
  object-fit: cover;
  pointer-events: none;
}

.hero-type { position: absolute; z-index: 3; }

/* The type carries its own feathered sheet of paper so it always sits on a
   measured ground, whatever the owner writes. */
.hero-type::before {
  content: '';
  position: absolute;
  inset: -80px -110px -68px -110px;
  z-index: -1;
  opacity: 0.8;
  background-image: image-set(
    url('art/tex-paper-1376w.avif') type('image/avif'),
    url('art/tex-paper-1376w.webp') type('image/webp'));
  background-size: cover;
  background-position: 45% 55%;
  -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, #000 48%, rgba(0,0,0,0) 100%);
          mask-image: radial-gradient(50% 50% at 50% 50%, #000 48%, rgba(0,0,0,0) 100%);
}
/* Morning's box has the same exposed bottom-left corner as midday's, and the
   404 is the page that found it — the checker only ever renders index, so the
   one page with its own headline had never been measured. That headline then
   ran three lines at 1440 and put the last line's first glyph on the counter's
   dark green, 8px inside the sheet's feathered edge: two pixels at 2.96:1
   against a 3.0 bar, the same ghost the note below describes. Reach down as
   well as left. The home morning this also widens went 3.63 to 3.99, and the
   corner stays covered for whatever the 404 says next — it is two lines now
   and measures 4.22, but it was three lines yesterday. */
[data-state='morning'] .hero-type::before {
  left: calc(-1 * var(--bleed) - 72px);
  bottom: -110px;
}
[data-state='late'] .hero-type::before { right: calc(-1 * var(--bleed) - 52px); }
/* Midday's headline reaches into the bottom-left of its box, over the dark
   of the city window, where the ellipse had already faded out, measured at
   2.1:1. Reach further left and down so that corner sits on wash too. */
[data-state='midday'] .hero-type::before {
  left: calc(-1 * var(--bleed) - 52px);
  bottom: -110px;
}
[data-state='closed'] .hero-type::before { display: none; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font: 700 13.5px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* Ink, not moss: the eyebrow sits over the paintings' washes, where moss
     measured as low as 2.4:1. The mark beside it carries the colour. */
  color: var(--ink);
}
.hero-eyebrow .mark { --mark-size: 13px; --mark-color: var(--sun); }

.hero-headline {
  font: 400 var(--h1, 74px)/0.94 var(--display);
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-body {
  font: 500 20px/1.5 var(--sans);
  color: var(--ink);
  text-wrap: pretty;
}
/* The arrow sits on the page, not in a pill. A filled capsule put a box round
   the one mark on the site that reads as movement; a rule under the words and
   the arrow on bare paper says the same thing and says it louder. */
.hero-onward {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 0 6px;
  border: 0;
  background: none;
  border-bottom: 2px solid currentColor;
  font: 700 16px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun-deep);
  text-decoration: none;
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hero-onward:hover { color: var(--sun-press); }
}
.hero-onward:active { opacity: 0.8; }
/* The mark takes the link's own colour now that there is no fill behind it. */
.hero-onward .mark { --mark-color: currentColor; }
.hero-hours { display: none; }   /* only the closed state shows a table in the hero */

/* The spinning stamp: circular type around a red sun, the paintings' one
   constant made into a piece of interface. Decorative only. */
.roundel {
  position: absolute;
  z-index: 3;
  right: calc(var(--gutter) + 6px);
  bottom: clamp(22px, 5%, 48px);
  width: clamp(110px, 12vw, 160px);
  height: auto;
  pointer-events: none;
  /* It used to turn on a 26s loop. A badge that rotates forever is the single
     most farmers-market thing on the page; stamped still, it reads as a seal. */
  transform: rotate(-6deg);
  filter: drop-shadow(0 2px 0 rgba(46,51,29,0.25));
}
[data-state='closed'] .roundel { display: none; }

.stamp {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: clamp(18px, 4.1%, 40px);
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-75);
  font-variant-numeric: tabular-nums;
}
.hero .stamp::before {
  content: '';
  position: absolute;
  inset: -9px -34px -9px calc(-1 * var(--gutter));
  z-index: -1;
  opacity: 0.95;
  background-image: image-set(
    url('art/tex-paper-900w.avif') type('image/avif'),
    url('art/tex-paper-900w.webp') type('image/webp'));
  background-size: cover;
  background-position: 30% 70%;
  -webkit-mask-image: radial-gradient(125% 150% at 10% 50%, #000 42%, rgba(0, 0, 0, 0) 86%);
          mask-image: radial-gradient(125% 150% at 10% 50%, #000 42%, rgba(0, 0, 0, 0) 86%);
}
[data-state='closed'] .hero .stamp::before { display: none; }
/* Closed puts the type in the page's lower-left; the timestamp moves to the
   free corner so the two never touch. */
[data-state='closed'] .hero .stamp { left: auto; right: var(--gutter); }

/* -- morning: type column right, strip masked in from the right ----------- */
[data-state='morning'] { --plate-pos: 22% center; }
[data-state='morning'] .strip {
  inset: 0 0 0 auto;
  width: 44%;
  opacity: var(--strip-alpha);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40%);
          mask-image: linear-gradient(to right, transparent, #000 40%);
}
[data-state='morning'] .hero-type {
  top: 21.5%;
  right: var(--gutter);
  width: clamp(310px, 34.5%, 450px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  --h1: clamp(54px, 6vw, 86px);
}
[data-state='morning'] .hero-eyebrow { margin-bottom: 20px; }
[data-state='morning'] .hero-headline { margin-bottom: 22px; margin-left: calc(-1 * var(--bleed)); }
[data-state='morning'] .hero-rule { align-self: stretch; margin-bottom: 18px; }
[data-state='morning'] .hero .hero-onward { margin-top: 26px; }

/* -- midday: type across the upper third, strip masked in from the top ---- */
[data-state='midday'] { --plate-pos: center 88%; }
[data-state='midday'] .strip {
  inset: 0 0 auto 0;
  height: 31%;
  opacity: var(--strip-alpha);
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent);
          mask-image: linear-gradient(to bottom, #000 58%, transparent);
}
[data-state='midday'] .hero-type {
  top: 15.5%;
  left: var(--gutter);
  right: var(--gutter);
  display: grid;
  grid-template-columns: 1fr clamp(250px, 27.5%, 360px);
  column-gap: 44px;
  align-items: end;
  --h1: clamp(56px, 7.4vw, 92px);
}
[data-state='midday'] .hero-headline {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  line-height: 0.96;
}
[data-state='midday'] .hero-eyebrow { grid-column: 2; grid-row: 1; margin-bottom: 16px; justify-self: start; }
[data-state='midday'] .hero-rule    { grid-column: 2; grid-row: 2; margin-bottom: 14px; }
[data-state='midday'] .hero-body    { grid-column: 2; grid-row: 3; padding-bottom: 8px; }
[data-state='midday'] .hero .hero-onward  { display: none; }

/* -- late: type column left, strip masked in from the left ---------------- */
[data-state='late'] { --plate-pos: 78% center; }
[data-state='late'] .strip {
  inset: 0 auto 0 0;
  width: 46%;
  opacity: var(--strip-alpha);
  -webkit-mask-image: linear-gradient(to left, transparent, #000 42%);
          mask-image: linear-gradient(to left, transparent, #000 42%);
}
[data-state='late'] .hero-type {
  top: 24.5%;
  left: var(--gutter);
  width: clamp(310px, 34.5%, 450px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  --h1: clamp(54px, 5.8vw, 82px);
}
[data-state='late'] .hero-eyebrow { margin-bottom: 20px; }
[data-state='late'] .hero-headline { margin-bottom: 22px; margin-right: calc(-1 * var(--bleed)); }
[data-state='late'] .hero-rule { align-self: stretch; margin-bottom: 18px; }
[data-state='late'] .hero .hero-onward { display: none; }

/* -- closed: no strip, plate cropped to a band, the base is real page ----- */
[data-state='closed'] { --plate-pos: center 42%; }
[data-state='closed'] .plate-wrap {
  inset: var(--bar-h) 0 auto 0;
  height: 54%;
  background: var(--pine);
}
[data-state='closed'] .strip { display: none; }
[data-state='closed'] .hero-type {
  top: calc(var(--bar-h) + 54% + var(--gutter));
  left: var(--gutter);
  right: var(--gutter);
  display: grid;
  grid-template-columns: 1fr clamp(260px, 29.5%, 380px);
  column-gap: 48px;
  align-items: start;
  --h1: clamp(50px, 5.8vw, 80px);
}
[data-state='closed'] .hero-headline {
  grid-column: 1;
  grid-row: 1 / span 3;
  line-height: 0.98;
}
[data-state='closed'] .hero-eyebrow { grid-column: 2; grid-row: 1; margin-bottom: 16px; justify-self: start; }
[data-state='closed'] .hero-rule    { grid-column: 2; grid-row: 2; margin-bottom: 16px; }
[data-state='closed'] .hero-hours   { display: grid; grid-column: 2; grid-row: 3; }
[data-state='closed'] .hero .hero-onward  { display: none; }
[data-state='closed'] .hero-body {
  grid-column: 1;
  grid-row: 4;
  margin-top: 22px;
  max-width: 52ch;
  color: var(--ink-75);
}

/* The hero is a fixed, clipped box, and on a short desktop viewport (a
   laptop with its browser chrome) the closed state's fourth row, the body,
   fell past the clip line and lost half its sentence. Give the type room by
   shallowing the plate band and capping the headline; closed only, because
   the other three states keep their copy beside the painting, not below it. */
@media (min-width: 720px) and (max-height: 940px) {
  [data-state='closed'] .plate-wrap { height: 44%; }
  [data-state='closed'] .hero-type {
    top: calc(var(--bar-h) + 44% + var(--gutter));
    --h1: clamp(44px, 4.6vw, 62px);
  }
  [data-state='closed'] .hero-body { margin-top: 16px; }
}

/* --------------------------------------------------------------- no JS --- */

html:not(.js) .hero {
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
html:not(.js) .hero > .bar {
  position: static;
  order: 1;
  height: auto;
  padding-block: 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--ink-18);
  flex-wrap: wrap;
  gap: 18px;
}
html:not(.js) [data-state] .plate-wrap,
html:not(.js) .plate-wrap {
  position: relative;
  inset: auto;
  order: 2;
  width: 100%;
  height: min(56vh, 430px);
}
html:not(.js) [data-state='midday'] .hero-type,
html:not(.js) [data-state='closed'] .hero-type,
html:not(.js) .hero-type {
  position: static;
  order: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  grid-template-columns: none;
  width: auto;
  max-width: 68ch;
  padding: 32px var(--gutter) 44px;
}
html:not(.js) .hero-eyebrow { margin-bottom: 18px; }
html:not(.js) .hero-headline { margin-bottom: 22px; }
html:not(.js) .hero-rule { margin-bottom: 18px; align-self: stretch; }
html:not(.js) .roundel { display: none; }

/* ------------------------------------------------------------- day dial ---
   Under the hero: the same room at four hours, one click apart. The buttons
   set the hero's state and the pigment layer bleeds between paintings. */

.daystrip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 14px 48px;
  padding: 46px var(--gutter) 20px;
  border-top: 1px solid var(--ink-12);
  border-bottom: 1px solid var(--ink-12);
  background: var(--paper-2);
}
/* The dial gets the board's lockup rather than a lone italic line: the name in
   Epoch, the note tucked under its shoulder. Same two faces, same tuck. */
.daystrip-label {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font: 400 34px/1 var(--display);
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
}
/* Sized off the name rather than in pixels, so the phone's smaller label keeps
   the same pair rather than ending up with an italic larger than its name. */
.daystrip-label i {
  font: italic 400 0.64em/1 var(--serif);
  letter-spacing: 0;
  color: var(--ink-75);
  position: relative;
  top: 0.28em;
}
/* The dial: a dotted horizon arc with the red sun riding it. offset-path
   carries the sun between the four hours; browsers without motion paths get
   the buttons alone, which lose nothing but the ornament. */
.dial { position: relative; width: 330px; max-width: 100%; }
.dial-arc {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(100% - 10px);
  height: 48px;
  color: var(--ink-30);
  pointer-events: none;
}
.dial-sun {
  display: none;
  position: absolute;
  top: -38px;
  left: 0;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 4px rgba(217, 84, 62, 0.18);
  offset-path: path('M6,44 Q165,-34 324,44');
  offset-distance: calc(var(--sun-i, 1) * 33.333%);
  transition: offset-distance 500ms cubic-bezier(0.45, 0.05, 0.35, 1);
}
@supports (offset-path: path('M0,0 L1,1')) {
  .daystrip .dial-sun { display: block; }
}
.daystrip-btns {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.daystrip-btns button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 4px 13px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font: 700 13.5px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-75);
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .daystrip-btns button:hover { color: var(--sun-deep); }
}
.daystrip-btns button[aria-pressed='true'] {
  color: var(--sun-deep);
  border-bottom-color: var(--sun);
}
/* Without JS the buttons cannot turn anything. */
html:not(.js) .daystrip { display: none; }

/* ---------------------------------------------------- the day, scrubbed ---
   With a wheel to spare, the daystrip grows into a tall passage with the
   room pinned inside it: scroll drags the sun along the arc and the room
   through all four paintings, the incoming one arriving wet; the dial's
   buttons become bookmarks into the same scroll. app.js builds this only
   when motion is welcome and data is not being saved; everyone else keeps
   the compact dial exactly as it was, which is also the reduced-motion
   answer: an instant turn of the room. */

.dayscroll { height: 380vh; }
.dayscroll-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px var(--gutter) 6px;
}
.dayscroll-room {
  position: relative;
  /* the painting's own ratio, capped so the dial always fits beneath */
  width: min(1180px, 100%, calc(60svh * 1376 / 768));
  aspect-ratio: 1376 / 768;
  overflow: hidden;
}
.dayscroll-room .dayplate {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
}
.dayscroll-room .dayplate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* A scrubbed sun tracks the finger; the eased glide is for clicks only. */
.dayscroll .dial-sun { transition: none; }

/* Inside the stage the dial sits directly on the page, where the compact strip's
   paper band would read as a floating box under the painting. */
.dayscroll .daystrip {
  background: none;
  border: 0;
  padding: 30px 0 0;
}

@media (max-width: 719px) {
  .dayscroll { height: 300vh; }
  .dayscroll-room { width: min(100%, calc(46svh * 1376 / 768)); }
}

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

.foot {
  position: relative;
  isolation: isolate;
  background: var(--pine);
  color: var(--paper);
  padding: 0 var(--gutter);
  overflow: hidden;
}

/* The room after close is the footer's ground, not a strip laid on top of it.
   It used to lead the hero, and because the cafe is shut six days a week that
   made a dark empty room the first thing very nearly everyone saw. It is the
   wrong first impression of a place and the right last one, so the whole foot
   of every page is now that room, with the sign and the links standing in it.

   The scrim is pine, graded: light at the top where nothing is set, heaviest
   at the bottom where the small type is. The painting has a lit doorway in it
   and the scan carries pure white at its border, so the top of the gradient is
   as far as it can be lifted and still keep 13.5px type off the floor. */
.foot-plate {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center 34%;
  /* cover fits the width here, so the scan's own torn paper border sits at
     both ends of the band; the hero never showed it because it crops harder. */
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0, #000 6%, #000 94%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0, #000 6%, #000 94%, rgba(0,0,0,0) 100%);
}
.foot::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(64, 74, 46, 0.34) 0%,
    rgba(64, 74, 46, 0.74) 34%,
    rgba(64, 74, 46, 0.91) 68%,
    rgba(64, 74, 46, 0.97) 100%);
}
.foot-sign, .foot-inner { position: relative; z-index: 2; }
.foot-inner {
  max-width: var(--board-w);
  margin: 0 auto;
  padding: 30px 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  justify-content: space-between;
  align-items: baseline;
  font: 700 13.5px/1.6 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-85);
}
.foot-inner a { color: var(--cream-85); text-decoration: none; }
.foot-inner a:hover { color: var(--butter); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-inner .stamp { position: static; color: inherit; letter-spacing: 0.16em; font-size: 11px; }

/* the big sign-off wordmark above the footer columns */
/* The lockup at the one size where it can be as large as it likes. */
.foot-sign {
  max-width: var(--board-w);
  margin: 0 auto;
  /* The footer is the room after close, so it is given the height to be a room
     rather than a band with a wordmark in it. */
  padding: clamp(96px, 13vw, 190px) 0 0;
  font: 400 clamp(64px, 10vw, 150px)/0.9 var(--display);
  letter-spacing: -0.05em;
  color: var(--paper);
  text-align: left;
}
.foot-sign .wm-b {
  font: italic 400 1.04em var(--serif);
  letter-spacing: 0;
  margin-left: -0.08em;
  display: inline-block;
  transform: translateY(0.11em);
}
.foot-sign .foot-sun {
  display: inline-block;
  width: 0.42em; height: 0.42em;
  margin-left: 0.18em;
  border-radius: 50%;
  background: transparent;
  border: 0.045em solid var(--sun);
}
.foot .foot-inner { border-top: 1px solid rgba(247,239,223,0.28); margin-top: 36px; }

/* ---------------------------------------------------------------- page ---
   Menu and Find us share the board's measure and its section bars. The menu
   runs one column with a painting capping each bar; Find us keeps two, because
   four short sections in one column is a long thin page. */

.page { padding: 0 var(--gutter); }
.page-inner { max-width: var(--board-w); margin: 0 auto; }

/* The trail above the title. Two levels is all this site has: one link back,
   an arrow, and where you stand. Search engines read the same two steps from
   the BreadcrumbList block in each page's head. */
.crumbs { padding: 34px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.crumbs li {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 700 13.5px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-text);
}
.crumbs li + li::before {
  content: '';
  flex: none;
  width: 15px; height: 9px;
  background-color: var(--sun);
  -webkit-mask: var(--mk-onward) center / 100% 100% no-repeat;
          mask: var(--mk-onward) center / 100% 100% no-repeat;
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--sun-deep); }
.crumbs + .page-head { padding-top: 28px; }

.page-head {
  padding: 60px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.page-head h1 {
  font: 400 clamp(64px, 10vw, 130px)/0.88 var(--display);
  letter-spacing: -0.035em;
  color: var(--ink);
}
.page-meta {
  padding-bottom: 12px;
  text-align: right;
  font: 700 13.5px/1.7 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-text);
}
.page-rule { margin-top: 28px; }

.board {
  --board-margin-live: clamp(0px, (100% - 660px) / 2, var(--board-margin));
  padding: 40px var(--board-margin-live) 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  overflow-x: clip;                     /* a bled spot must never make the page scroll */
}
.board-col { display: flex; flex-direction: column; gap: 58px; }

.sec { position: relative; }
/* The paintings reach in under the type now, so everything set on them
   stacks above: a wash may touch the words, never cover them. */
.sec-head, .items, .standfirst, .sec-more, .sec address, .sec p, .find-links { position: relative; }
/* ---------------------------------------------------------- the pigments ---
   Every section on the board is one colour, and the colour is the one that is
   actually in the painting hanging beside it: the bowl's green on Matcha, the
   drop of jam on Kitchen, the cherry on Desserts, the lilac in the glass on
   Cold, the paper bag on Take home.

   Keyed off the painting and never off the section, because a section's slug
   comes out of menu.json and is the owner's to rename; the painting is
   developer territory and is the thing the colour was taken from anyway. A
   section with no painting keeps moss, which is what the whole board used to
   be, so Find us and anything new stay in the family. */

.sec { --pigment: var(--moss); }
.sec:has(.spot--matcha)    { --pigment: var(--lichen); }
.sec:has(.spot--toast)     { --pigment: var(--amber); }
.sec:has(.spot--coldbrew)  { --pigment: var(--lavender); }
.sec:has(.spot--cake)      { --pigment: var(--peony); }
/* Take home is a kraft paper bag, so it is the one section whose colour is the
   packet rather than what is in it. It was pine for a while, which was true to
   "the dark green showing through the sides" but made three of six sections
   green and left the board reading greener than either painting does. Two
   greens is the honest number: the acid one on Matcha and the olive one on
   Coffee, which are the two sections that really are green. */
.sec:has(.spot--beans)     { --pigment: var(--clay-deep); }
.sec:has(.spot--cup)       { --pigment: var(--moss); }
.sec:has(.spot--flatwhite) { --pigment: var(--sky); }
.sec:has(.spot--teapot)    { --pigment: var(--lavender); }
.sec:has(.spot--espresso)  { --pigment: var(--clay-deep); }

/* ── the section bar ───────────────────────────────────────────────────────
   The head is the colour. It shrink-wraps its own words, so the copy sets the
   bar's length and the six sections stagger down the board on their own —
   nothing here is positioned by hand, and renaming a section in menu.json just
   moves the bar with it.

   The pigment is lifted 16% toward paper so the italic note clears its
   contrast floor on every section: at full strength moss measured 3.12:1
   against ink and the note is the smallest thing that sits on colour. The far
   end of the gradient mixes in the hour's accent, which is the only way the
   time of day still reaches the board now that the rule is gone. */
.sec-head {
  --rule-h: 7px;
  --bar-pig: color-mix(in srgb, var(--pigment) 84%, var(--paper));
  --bar-pad-r: 76px;
  --bar-overhang: 152px;
  position: relative;
  width: fit-content;
  /* .board clips horizontally, so the bar has to stop short by exactly the
     amount its painting hangs past the end or the painting is cut off. */
  max-width: calc(100% - var(--bar-overhang));
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  padding: 14px var(--bar-pad-r) 16px 18px;
  margin: 0 0 22px;
  background-color: var(--bar-pig);
  background-image: linear-gradient(in oklch 95deg,
    var(--bar-pig) 0%,
    color-mix(in oklch, var(--bar-pig) 62%, var(--accent)) 100%);
}

/* The squiggle is not deleted, it is reassigned: it was the section's rule and
   it is now the bar's wet lower edge. Machine-cut on three sides, laid by
   brush on the fourth. */
.sec-head::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: var(--rule-h);
  background-color: var(--pigment);
  -webkit-mask: var(--squiggle) left top / 63px 7px repeat-x;
          mask: var(--squiggle) left top / 63px 7px repeat-x;
}

/* Each painting hangs off the end of its own bar, part on pigment and part on
   paper, so it caps the terminus instead of sitting in a lane beside it. It is
   anchored to the bar, so it follows whatever length the copy gives it. The
   width is bounded because the board's spots run 200–380px and the widest of
   them would otherwise reach back under the section's own name. */
.sec-head > .spot {
  position: absolute;
  /* The offset is a share of the painting's own width, so every section keeps
     the same small overlap whatever size its artwork is: about a quarter of it
     on the pigment, the rest out on the paper. It used to sit mostly on the
     bar, which buried the drawing in its own section's colour. */
  --spot-w: clamp(150px, calc(var(--w, 220px) * 0.62), 205px);
  right: calc(var(--spot-w) * -0.74);
  top: 50%;
  width: var(--spot-w);
  max-width: none;
  transform: translateY(-50%) rotate(var(--tilt, 0deg));
}
@media (hover: hover) and (pointer: fine) {
  .sec:hover .sec-head > .spot {
    transform: translateY(-50%) rotate(calc(var(--tilt, 0deg) * 2.4)) scale(1.05);
  }
}

.sec-name {
  font: 400 40px/1 var(--display);
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
}

/* The note drops rather than pulls. A fixed negative margin tucks beautifully
   under a round final letter and runs straight into a straight one: Matcha,
   Desserts, Take home and Coffee end in a, s and e and give the italic a
   pocket; Kitchen ends on a stem and Cold on a d and there is none. Closing up
   horizontally and dropping instead puts the italic's ascenders into Epoch's
   x-height whatever the name ends with — and section names come out of
   menu.json, so it has to hold for a name nobody has written yet. */
.sec-note {
  flex: none;
  font: italic 400 26px/1 var(--serif);
  color: var(--ink-75);
  position: relative;
  top: 0.3em;
  white-space: nowrap;
}

/* One column means the board is nearly a thousand pixels wide. A price is no
   use to anyone sitting that far from its name, so the list keeps a measure
   even though the bar above it is free to be as long as its own words. */
.items { display: flex; flex-direction: column; gap: 0; max-width: 620px; }
/* The dot leader is gone. It was doing a job a ruled column does better, and
   it was the last thing on the board holding the eye at a slant. */
.item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font: 600 20px/1.3 var(--sans);
  color: var(--ink);
  padding: 9px 8px 10px;
  margin: 0 -8px;
  border-bottom: 1px solid var(--ink-12);
  transition: background 140ms var(--ease-out);
}
.items > .item:last-child { border-bottom: 0; }
@media (hover: hover) and (pointer: fine) {
  /* Butter was written in by hand here and stayed butter at every hour. A line
     now lights in its own section's pigment, warmed by the hour you are reading
     it at: the colour says which part of the board you are in, the warmth says
     when. The flat fallback keeps the old value where color-mix is not
     understood, and every mix here is pale enough that the item's own ink is
     nowhere near its contrast floor on top of it. */
  .item:hover { background: rgba(243, 206, 92, 0.35); }
  .item:hover {
    background: color-mix(in oklch,
      color-mix(in oklch, var(--pigment, var(--accent)) 64%, var(--accent)) 34%,
      transparent);
  }
}
/* Kept in the markup because both generators write it and a crawler has seen
   it for years; it simply no longer draws anything. */
.item-lead { display: none; }
.item-price {
  margin-left: auto;
  font: 400 15px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--pine);
}

.standfirst {
  margin: 18px 0 0;
  font: italic 400 24px/1.3 var(--serif);
  color: var(--pine);
  max-width: 34ch;
  text-wrap: pretty;
}

/* Short sections carry a floor that clears their own spot. Every section
   hangs one painting now, beside its list; a second painting below the
   items needs the 560px floor back, and drags that much paper with it. */
/* The paintings sit in the head now, so a section no longer needs a floor
   tall enough to clear one hanging in the margin beside it. */

.spot {
  position: absolute;
  height: auto;
  pointer-events: none;
  mix-blend-mode: multiply;
  width: var(--w);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 400ms var(--ease-spring), opacity 360ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .sec:hover .spot { transform: rotate(calc(var(--tilt, 0deg) * 2.4)) scale(1.05); }
}

/* --into, --t1 and --t2 hung the paintings in the board's outer margin, one
   per section, all the same distance out. They are unused now: every painting
   is anchored to the end of its own bar instead. The values stay on the spots
   below because --w and --tilt are still read from there. */
.sec-head > .spot:nth-of-type(2) { display: none; }

.spot--cup       { --w: 330px; --into: 230px; --tilt: -1.6deg; --t1: -52px; }
.spot--espresso  { --w: 200px; --into: 210px; --tilt: 2.2deg; --t2: 200px; }
.spot--teapot    { --w: 270px; --into: 230px; --tilt: -2.4deg; --t1: -36px; }
.spot--beans     { --w: 200px; --into: 216px; --tilt: 1.4deg; --t1: -30px; }
.spot--croissant { --w: 320px; --into: 230px; --tilt: 1.8deg; --t1: -44px; --t2: 260px; }
.spot--toast     { --w: 220px; --into: 216px; --tilt: -2deg; }
.spot--cake      { --w: 300px; --into: 230px; --tilt: 1.2deg; --t1: -48px; }
.spot--coldbrew  { --w: 220px; --into: 214px; --tilt: -1.6deg; --t1: -36px; }
.spot--matcha    { --w: 280px; --into: 226px; --tilt: 2.6deg; --t1: -44px; }
.spot--flatwhite { --w: 380px; --into: 240px; --tilt: -1.8deg; --t1: -48px; }

/* One small trick on the board: the croissant rides on the cake's exact
   position and only shows itself while the croissant line is under the
   pointer. Both paintings hang in Desserts, so the swap needs no tall floor
   and opens no gap; on a phone the second spot is hidden and the cake stays. */
.sec-head > .spot--cake ~ .spot--croissant {
  --w: 300px;
  opacity: 0;
}

.sec:has(.item[data-item='croissant']:hover) .spot--cake { opacity: 0; }
.sec:has(.item[data-item='croissant']:hover) .spot--croissant { opacity: 1; }

.board-foot { padding: 72px 0 32px; }
.board-foot .foot-inner {
  padding-top: 18px;
  border-top: 1px solid var(--ink-30);
  color: var(--ink-60);
  font: 700 13px/1.6 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.board-foot .foot-inner .stamp { color: var(--ink-60); }

/* ------------------------------------------------- the board, in brief ---
   The home page's taste of the menu, sitting on a butter-yellow block so the
   page changes register the moment the hero ends. */

.preview {
  background: var(--paper-2);
  border-top: 1px solid var(--ink-12);
  border-bottom: 1px solid var(--ink-12);
  padding-top: clamp(54px, 9vh, 104px);
  padding-bottom: clamp(54px, 9vh, 104px);
}
.preview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.preview-head h2 {
  font: 400 clamp(44px, 5.4vw, 76px)/0.92 var(--display);
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 14ch;
}
.preview .page-meta { color: var(--ink-75); }
.preview .page-rule { background-color: var(--ink); margin-top: 30px; display: none; }

.preview-cols {
  --board-margin-live: clamp(0px, (100% - 660px) / 2, var(--board-margin));
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  row-gap: 64px;
  margin-top: 64px;
  padding: 0 var(--board-margin-live);
  overflow-x: clip;
}

/* Each previewed section is a sheet of paper dropped on the yellow, tilted
   like everything else pinned up in the room. */
/* Flat and square. The tilt and the blurred shadow made two sheets of paper
   dropped on a table; the room this describes is built, not scattered. */
.preview .sec {
  background: var(--paper);
  border: 1px solid var(--ink-18);
  padding: 30px 32px 30px;
  transition: border-color 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .preview .sec:hover { border-color: var(--pigment); }
}
.preview .sec:has(.spot) { min-height: 0; }

/* Inside a card the spot hangs off the top corner rather than in a margin. */
/* A preview card is narrower than the board, so its bar carries a smaller
   painting; everything else about the treatment is the same. */
.preview .sec-head {
  --bar-pad-r: 52px;
  --bar-overhang: 112px;
}
.preview .sec-head > .spot { --spot-w: clamp(112px, calc(var(--w, 190px) * 0.46), 145px); }
.preview .sec-name { font-size: 32px; }
.preview .sec-note { font-size: 21px; }

.sec-more {
  margin-top: 14px;
  font: 700 13px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun-deep);
}
.preview-tail {
  margin-top: 48px;
  padding: 0 var(--board-margin-live, 0);
  --board-margin-live: clamp(0px, (100% - 660px) / 2, var(--board-margin));
}
.preview-rest {
  font: 600 20px/1.45 var(--sans);
  color: var(--ink-75);
}
.preview-more { margin-top: 20px; }

@media (max-width: 719px) {
  .preview-head { display: block; }
  .preview-head h2 { font-size: 44px; margin-bottom: 12px; }
  .preview-cols {
    grid-template-columns: none;
    row-gap: 56px;
    margin-top: 40px;
    padding: 0;
  }
  .preview-tail { margin-top: 40px; padding: 0; }
  .preview-more { margin-top: 16px; }
}

/* ------------------------------------------------------------ visit band ---
   The page's closing argument: a pine block, one huge line, two buttons. */

/* The one place the site goes properly dark, and it only happens once. Pine
   was a green block; this is the ink pushed down until it reads as a field
   rather than a panel, which is what makes the paintings above it glow. */
.visit {
  background: var(--dark);
  color: var(--paper);
  padding: clamp(64px, 11vh, 130px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.visit-inner { max-width: var(--board-w); margin: 0 auto; position: relative; }
.visit h2 {
  font: 400 clamp(52px, 7.4vw, 110px)/0.92 var(--display);
  letter-spacing: -0.035em;
  max-width: 13ch;
  text-wrap: balance;
}
.visit h2 .u-sun { color: var(--butter); }
.visit p {
  margin-top: 22px;
  font: 500 20px/1.5 var(--sans);
  color: var(--cream-85);
  max-width: 46ch;
}
.visit-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.visit .hero-onward { color: var(--butter); }
.visit .hero-onward--ghost {
  background: transparent;
  border: 1px solid var(--cream-85);
  color: var(--paper);
  box-shadow: none;
}
.visit .hero-onward--ghost:hover { color: var(--butter); }
.visit .hero-onward--ghost .mark { --mark-color: currentColor; }
/* the red sun rising over the block's corner */
.visit::after {
  content: '';
  position: absolute;
  top: -70px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 60%, rgba(217, 84, 62, 0.85) 68%, rgba(217, 84, 62, 0) 71%);
  box-shadow: 0 0 0 34px rgba(217, 84, 62, 0.12);
}

/* ------------------------------------------------------------- find us --- */

.find {
  padding: 40px var(--board-margin-live, 0) 0;
  --board-margin-live: clamp(0px, (100% - 660px) / 2, var(--board-margin));
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  align-items: start;
  overflow-x: clip;
}
.find .sec { margin-bottom: 52px; }
/* The board takes each bar's colour from the painting hanging on it. Find us
   has one painting between four sections, so three of them fell back to the
   same moss and the page read as one long green column. These are the same
   pigments, assigned by hand because there is no painting to read them off. */
.find > div > .sec:nth-of-type(1) { --pigment: var(--lichen); }
.find > div > .sec:nth-of-type(2) { --pigment: var(--clay-deep); }
.find > div:nth-of-type(2) > .sec:nth-of-type(1) { --pigment: var(--sky); }
.find > div:nth-of-type(2) > .sec:nth-of-type(2) { --pigment: var(--amber); }
/* The board's bars are set to a full measure. These sit in half of one, so the
   pair is scaled to the column it lives in — at the board's 40px the notes had
   nowhere to tuck and dropped under the names, which is the one thing the
   lockup is not. Three of the four bars hang nothing and keep none of the
   board's overhang; the one that does gets the room back, and enough right
   padding that the painting caps the bar rather than landing on the note.
   Gated on the two columns existing: below 720px Find us is the same single
   stack the board is, and takes the board's bars unchanged. */
@media (min-width: 720px) {
  .find .sec-head {
    align-items: baseline;
    flex-wrap: nowrap;
    --bar-overhang: 0px;
    --bar-pad-r: 30px;
  }
  .find .sec-head:has(.spot) { --bar-overhang: 88px; --bar-pad-r: 70px; }
  .find .sec-name { flex: none; white-space: nowrap; font-size: 32px; }
  .find .sec-note { font-size: 21px; }
}
.find address {
  font: 400 clamp(32px, 3.1vw, 40px)/1.08 var(--display);
  letter-spacing: -0.03em;
  font-style: normal;
  color: var(--ink);
  margin: 0 0 20px;
}
/* Scoped to the section's own children, not every p under .find: the note in
   the bar is a p too, and this rule is a font shorthand, so as `.find p` it
   outranked .sec-note and quietly reset the tucked italic to the body sans. */
.find .sec > p { font: 500 20px/1.5 var(--sans); color: var(--ink); max-width: 44ch; text-wrap: pretty; }
.find .sec > p + p { margin-top: 12px; }
.find .hero-onward { margin-top: 24px; }
.find-links { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.find-links a {
  font: 400 17px/1.5 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-decoration-color: var(--sun);
  text-decoration-thickness: 1.5px;
}
.find-links a:hover { color: var(--sun-deep); }

/* --------------------------------------------------------------- mobile --- */

@media (max-width: 719px) {
  :root { --bar-h: 62px; --gutter: 20px; --lap: 118px; }

  body { font-size: 19px; }
  .wordmark { font-size: 27px; }

  .bar {
    height: auto;
    min-height: var(--bar-h);
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .nav {
    display: flex;
    order: 3;
    width: 100%;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 0 2px;
    border-top: 1px solid var(--ink-18);
    font-size: 13px;
  }
  .nav a { padding: 8px 15px 10px; }
  [data-state='closed'] .hero .nav { border-top-color: rgba(247, 239, 223, 0.3); }

  .ind-trigger { padding: 7px 13px 9px; }
  .ind-dot { width: 9px; height: 9px; }
  .ind-label { font-size: 12.5px; }
  .ind-trigger .mark { --mark-size: 12px; }
  html.js .ind-panel { width: min(300px, calc(100vw - 40px)); }

  .hero {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .hero > .bar { position: static; order: 1; background: var(--paper); border-bottom: 1px solid var(--ink-18); }
  [data-state='closed'] .hero > .bar { background: var(--pine); }
  .plate-wrap { position: relative; inset: auto; order: 2; height: var(--band, 290px); width: 100%; }
  [data-state='closed'] .plate-wrap { inset: auto; height: var(--band, 300px); }

  .hero-type {
    position: relative;
    z-index: 2;
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    margin-top: calc(-1 * var(--lap));
    padding: calc(var(--lap) * 0.58) var(--gutter) 0;
  }
  .hero-type::before {
    content: '';
    position: absolute;
    inset: 0 0 -54px 0;
    z-index: -1;
    opacity: 0.94;
    background-image: image-set(
      url('art/tex-paper-900w.avif') type('image/avif'),
      url('art/tex-paper-900w.webp') type('image/webp'));
    background-size: cover;
    background-position: 40% 62%;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0, #000 var(--lap), #000 calc(100% - 54px), rgba(0,0,0,0) 100%);
            mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0, #000 var(--lap), #000 calc(100% - 54px), rgba(0,0,0,0) 100%);
  }
  .hero .stamp { position: static; order: 4; padding: 26px var(--gutter) 24px; }
  .hero .stamp::before { display: none; }
  /* The roundel needs open painting to sit on; the phone plate band is too
     busy for it, so the stamp is a desktop pleasure. */
  .roundel { display: none; }

  /* The band was four fixed heights, which is a bet on one phone. It lost:
     500px of midday painting under a 139px bar left 83px of a small iPhone's
     first screen for type, so you landed on two thirds of a headline — and on
     a 667px phone you landed on none of it at all, in any state.

     It is measured off the viewport now, and off the small one: svh is the
     height with the browser's chrome up, which is what a phone shows on first
     paint. dvh would be wrong — it grows as the chrome collapses, and would
     resize the painting under the reader mid-scroll.

     320px is what the type above the fold needs: the bar, the sheet's overlap
     back onto the painting, the eyebrow, and the tallest headline any state
     carries at this width. One figure for all four, because the fold is the
     same for all four; what still differs per state is the crop, which is
     --plate-pos's job and always was. The floor keeps a painting on the
     shortest phone, the ceiling keeps the old height as the most it can be. */
  [data-state='morning'],
  [data-state='midday'],
  [data-state='late'],
  [data-state='closed']  { --band: clamp(240px, calc(100svh - 320px), 460px); }

  [data-state='morning'] { --plate-pos: 22% 46%; }
  [data-state='late']    { --plate-pos: 78% 46%; }
  [data-state='midday']  { --plate-pos: 55% 92%; }
  [data-state='closed']  { --plate-pos: 50% 42%; }

  [data-state='morning'] .hero-type,
  [data-state='midday']  .hero-type,
  [data-state='late']    .hero-type,
  [data-state='closed']  .hero-type {
    inset: auto;
    width: auto;
    max-width: none;
  }

  [data-state='morning'] .hero-type { --h1: 54px; }
  [data-state='late']    .hero-type { --h1: 52px; }
  [data-state='closed']  .hero-type { --h1: 50px; }
  [data-state='midday']  .hero-type { --h1: 56px; }

  [data-state='morning'] .hero-headline { margin-left: 0; }
  [data-state='late'] .hero-headline { margin-right: 0; }

  .hero-eyebrow { font-size: 12.5px; margin-bottom: 16px; }
  .hero-headline { margin-bottom: 20px; }
  .hero-rule { margin-bottom: 16px; align-self: stretch; }

  .strip { display: none; }
  [data-state='midday'] .hero-headline { position: static; margin: 0 0 18px; }
  [data-state='midday'] .hero-eyebrow { margin-bottom: 14px; }
  [data-state='midday'] .hero-body { padding-bottom: 0; }

  [data-state='closed'] .hero-headline { order: -1; margin-bottom: 18px; }
  [data-state='closed'] .hero-body    { order: 1; margin-bottom: 24px; max-width: none; }
  [data-state='closed'] .hero-eyebrow { order: 2; }
  [data-state='closed'] .hero-rule    { order: 3; }
  [data-state='closed'] .hero-hours   { order: 4; }

  [data-state='midday'] .hero-type,
  [data-state='closed'] .hero-type {
    grid-template-columns: none;
    display: flex;
    align-items: stretch;
  }
  [data-state='closed'] .hero-hours { margin-top: 0; }
  [data-state='midday'] .hero-eyebrow,
  [data-state='closed'] .hero-eyebrow { align-self: flex-start; }

  .daystrip { gap: 0 20px; padding: 24px var(--gutter) 16px; }
  .daystrip-label { font-size: 26px; width: 100%; justify-content: center; }
  /* the arc reaches 38px above the buttons; the label must clear it */
  .dial { margin-top: 58px; }
  .daystrip-btns button { letter-spacing: 0.1em; font-size: 12.5px; }

  /* The gap and the top padding are the room the paintings stand up into. Each
     one rises about 44% of its own height above its bar, and the tallest is
     186px, so a 40px gap put a cup through the last price of the section
     above it. */
  .board, .find {
    padding-left: 0;
    padding-right: 0;
    grid-template-columns: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 96px;
    padding-top: 92px;
  }
  .board-col, .find > div { display: contents; }
  .sec { min-height: 0 !important; }
  .items { max-width: none; }

  .crumbs { padding-top: 26px; }
  .crumbs + .page-head { padding-top: 22px; }

  .page-head { display: block; padding-top: 38px; }
  .page-head h1 { font-size: 72px; line-height: 0.9; margin-bottom: 14px; }
  .page-meta { text-align: left; padding: 0; font-size: 12.5px; }
  .page-rule { margin-top: 20px; }
  /* The bar runs the column here rather than shrink-wrapping its own copy.
     Shrink-wrapping is right on the desktop, where the bar and the painting
     float together in a wide measure and the varied lengths read as set. On a
     phone the list beneath runs edge to edge, so a bar that stops at two
     thirds of the column puts a hard vertical cut through the middle of the
     section and the set stops looking like one thing. Full width, and the
     squiggle — which is the bar's own wet edge — runs the width with it.

     Which leaves the painting somewhere to be. It rests on the top right
     corner: most of its body above the bar on paper, its base dipping into the
     pigment. That is the same job it always had, capping the end of the bar,
     resolved for a column too narrow to hang it off the side of one. Lift it
     further and it hovers; drop it and the drawing goes flat in the colour
     again. --art is the widest it may be and the bar reserves that much of its
     own right-hand end, so the two cannot drift apart. */
  .sec-head {
    --art: clamp(140px, 44vw, 186px);
    --bar-pad-r: calc(var(--art) * 0.62 + 16px);
    width: auto;
    max-width: none;
    padding: 11px var(--bar-pad-r) 13px 14px;
    margin-bottom: 18px;
  }
  /* An item row bleeds 8px each side of the measure so its hover ground and
     its rule run a little wider than its words. That was invisible while the
     bar was shorter than the list; now that they share a width, the bar has to
     share the bleed too or it sits 8px inside every rule under it. Only where
     there is a list to line up with — Find us has prose, which starts at the
     measure. */
  .board .sec-head, .preview .sec-head { margin-left: -8px; margin-right: -8px; }
  /* A bar with nothing standing on it has no reason to hold the room open; on
     Find us three of the four are like that. */
  .sec-head:not(:has(.spot)) { --bar-pad-r: 26px; }
  .sec-name { font-size: 36px; display: block; }
  /* The note has a line to itself here, so it may use two of them. It could
     not before: nowrap under a bar this much shorter puts a long note out past
     the pigment and onto the painting. */
  .sec-note {
    display: block;
    /* flex: none is what the tuck needs beside a name; on its own line it is
       what stops the note wrapping at all, so it holds its one-line width and
       walks out from under the bar. */
    flex: 0 1 100%;
    min-width: 0;
    margin-top: 8px;
    text-align: inherit;
    white-space: normal;
  }
  .item { font-size: 19px; }
  .standfirst { font-size: 21px; max-width: 28ch; }
  .board-foot { padding-top: 110px; }

  .sec { order: var(--i, 0); }
  .sec--flip .items { margin-left: 0; }

  .sec .items, .sec .standfirst, .sec .sec-head { position: relative; }

  /* --into-m and --t1-m below hung the paintings in the phone's margins and
     are unused now; --w is still read from the same rules. */
  /* Off the top edge rather than the side, and flush with the bar's right end.
     44% is where it reads as resting on the bar: much less and the drawing
     goes flat in the pigment, much more and it floats above it. */
  .sec-head > .spot {
    --spot-w: clamp(140px, calc(var(--w, 190px) * 0.86), var(--art));
    right: 0;
    top: 0;
    transform: translateY(-44%) rotate(var(--tilt, 0deg));
  }

  .spot--cup       { --w: 240px; --into-m: 72px; --t1-m: -44px; }
  .spot--espresso  { --w: 150px; --into-m: 56px; }
  .spot--teapot    { --w: 190px; --into-m: 58px; --t1-m: -54px; }
  .spot--croissant { --w: 250px; --into-m: 78px; --t1-m: -36px; }
  .spot--toast     { --w: 150px; --into-m: 58px; --t1-m: -60px; }
  .spot--cake      { --w: 210px; --into-m: 62px; --t1-m: -88px; }
  .spot--coldbrew  { --w: 180px; --into-m: 54px; --t1-m: -66px; }
  .spot--beans     { --w: 150px; --into-m: 50px; --t1-m: -80px; }
  .spot--matcha    { --w: 190px; --into-m: 58px; --t1-m: -74px; }
  .spot--flatwhite { --w: 280px; --into-m: 86px; --t1-m: -44px; }

  /* The card carries its own bar figures, so it does not inherit the board's
     and takes the same treatment separately — and the home page's preview is
     the surface a phone meets first, so it is where the bar stopping short was
     most visible. --art is smaller here because the card is narrower than the
     page by its own padding, and the card grows a top padding to stand the
     painting up in rather than letting it break the border. */
  .preview .sec-head {
    --art: clamp(120px, 36vw, 156px);
    --bar-pad-r: calc(var(--art) * 0.62 + 14px);
  }
  .preview .sec-head > .spot { --spot-w: clamp(120px, calc(var(--w, 190px) * 0.72), var(--art)); }
  .preview .sec { padding: 56px 22px 24px; }
  .preview-cols { gap: 76px; }

  .visit h2 { font-size: 52px; }
  .visit::after { width: 170px; height: 170px; top: -50px; right: -50px; }

  /* The footer's three groups are one row on the desktop. On the phone each of
     them is wider than the box, so each took a full line of its own and
     justify-content: space-between had nothing left to do — three loose bands
     with the gaps stretched between them, which is not a fold of that row but
     the loss of it. The nav goes last and takes a line to itself; the address
     and the hours then fit one line together and space-between works again.

     The band gets shorter with them, which is the other half of it: cover was
     cropping a quarter off the sides of a 1.79 painting to fill a 1.38 box, so
     the room lost its edges and read as a dark green field. */
  .foot-sign { font-size: 58px; padding-top: 30px; }
  .foot .foot-inner { margin-top: 26px; }
  .foot-inner { padding: 20px 0 24px; font-size: 12px; gap: 14px 18px; }
  .foot .foot-nav { order: 1; flex-basis: 100%; gap: 20px; }
}

/* Between the mobile comp and the full 1120 board there is no margin wide
   enough for a 206px spot. Scale them down and let them sit closer in. */
@media (min-width: 720px) and (max-width: 1179px) {
  [data-state='midday'] .strip {
    height: 43%;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
            mask-image: linear-gradient(to bottom, #000 70%, transparent);
  }

  .spot { transform-origin: center; }
  .spot--cup       { --w: 260px; --into: 190px; }
  .spot--espresso  { --w: 160px; --into: 172px; }
  .spot--teapot    { --w: 215px; --into: 188px; }
  .spot--beans     { --w: 160px; --into: 176px; }
  .spot--croissant { --w: 255px; --into: 190px; }
  .spot--toast     { --w: 175px; --into: 174px; }
  .spot--cake      { --w: 240px; --into: 188px; }
  .spot--coldbrew  { --w: 175px; --into: 172px; }
  .spot--matcha    { --w: 225px; --into: 186px; }
  .spot--flatwhite { --w: 300px; --into: 205px; }

  .preview .sec > .spot { --w: 170px; }
}

/* ------------------------------------------------------------- the week ---
   Seven marks, one a day, Monday first. Six of them are a hairline and one is
   the morning the door is open, so the shape of the place is legible before
   you have read a word of the table beside it. All seven marks occupy the same
   eight pixels and are centred in them, so the open day gains weight without
   knocking the row out of line.

   aria-hidden, and every day carries a title: the hours table next to this is
   the accessible answer, and a screen reader reading both would say the same
   thing twice in two different shapes. */

.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  max-width: 268px;
  margin: 0 0 18px;
}
.week-day { display: flex; flex-direction: column; gap: 7px; }
.week-letter {
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.08em;
  text-align: center;
  /* The shut days want to recede, but ink at 45% is 2.5:1 at eleven pixels and
     that is a contrast failure whatever it is doing. moss-text is in the
     palette for exactly this: quiet, and still 5.4:1. The step down from the
     open day is carried by the mark below, which is free to be as faint as it
     likes because it is not type. */
  color: var(--moss-text);
}
.week-mark { display: flex; align-items: center; height: 8px; }
.week-bar {
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--ink-18);
}
.week-day.is-open .week-letter { color: var(--ink); }
.week-day.is-open .week-bar { height: 8px; border-radius: 3px; background: var(--sun); }
/* Today is where you are standing in that week, not another opening. */
.week-day.is-today .week-letter { color: var(--sun-deep); }

/* ------------------------------------------------------------- the wash ---
   One canvas over the whole page for the four wet things: the damp trail the
   pointer leaves on the paper, the matcha bowl filling, the foam whisked up
   on it, and the steam off the hot paintings. wash.js draws it and app.js
   only loads that on a machine and a setting that want it.

   Multiply, because everything on it is pigment: a damp patch darkens the
   sheet, tea deepens the bowl, and steam is a pale cool wash the way it is
   painted rather than white laid over the top. That is what lets the layer
   sit above the type without touching its contrast: multiplying ink this
   dark by a colour this pale cannot lift it off the page.

   Below the bar and the hours panel, above everything else. Never hit-tested. */

.wash {
  position: fixed;
  inset: 0;
  z-index: 2;
  /* A canvas is a replaced element: pinned on all four sides with an auto
     width it takes its backing store's size and ignores the far edges, which
     draws the whole layer at the render scale in the top left corner. Both
     lengths are stated for the same reason .pigment states them. */
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 500ms var(--ease-out);
}
.wash.is-lit { opacity: 1; }

/* The one thing on this layer that has to lighten rather than darken: the
   foam whisked up on the matcha. Built only when a bowl is on the page, and
   only ever drawn inside one, so nothing else on the page is screened. */
.wash--foam { mix-blend-mode: screen; }

/* -------------------------------------------------------------- motion ---
   Cross-fade between pages through the paper; sections rise gently as they
   enter the viewport where scroll-driven animations are supported. All of it
   gone under reduced motion. */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  ::view-transition-group(root) {
    background-color: var(--paper);
    background-image: image-set(
      url('art/tex-paper-900w.avif') type('image/avif'),
      url('art/tex-paper-900w.webp') type('image/webp'));
    background-size: cover;
    background-position: center;
  }
  ::view-transition-old(root) { animation: dv-out 120ms ease-in both; }
  ::view-transition-new(root) { animation: dv-in 150ms 50ms ease-out both; }

  /* The hero settles like a wash drying: each line a beat after the last.
     Opacity, blur and a small lift only; the layout never moves. */
  .hero-eyebrow, .hero-headline, .hero-rule, .hero-body,
  .hero .hero-onward, .hero-hours, .crumbs, .page-head h1, .page-meta {
    animation: wash-in 640ms var(--ease-out) both;
  }
  .hero-headline, .page-head h1 { animation-delay: 90ms; }
  .hero-rule, .page-meta { animation-delay: 180ms; }
  .hero-body { animation-delay: 260ms; }
  .hero .hero-onward, .hero-hours { animation-delay: 340ms; }

  /* Page rules draw themselves as they arrive. */
  @supports (animation-timeline: view()) {
    .page-rule {
      animation: rule-draw linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 60%;
    }
  }
}

@keyframes wash-in {
  from { opacity: 0; filter: blur(3px); transform: translateY(8px); }
}
@keyframes rule-draw {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0); }
}

@keyframes dv-out { to { opacity: 0; } }
@keyframes dv-in  { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .pigment, .wash { display: none; }
  .roundel { animation: none; }
  .ind-dot { animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ----------------------------------------------------------------- plan ---
   plan.html only. One column, because it is a document and a document is read
   rather than scanned: the two-column split that suits Find us would break the
   argument in half. Everything here leans on the tokens the rest of the site
   already sets, and the sections carry a painting each, so they pick up their
   pigment from .sec:has() above without naming a colour here. */

.plan {
  padding: 40px var(--board-margin-live, 0) 0;
  --board-margin-live: clamp(0px, (100% - 660px) / 2, var(--board-margin));
}

.plan-lede {
  font: italic 400 clamp(21px, 2.4vw, 27px)/1.45 var(--serif);
  color: var(--ink);
  max-width: 30ch;
  margin: 0 0 40px;
}

/* The answer, said once, before any of the working. */
.plan-verdict {
  padding: 26px 0 26px 26px;
  border-left: 3px solid var(--sun-deep);
  margin: 0 0 8px;
}
.plan-verdict-label {
  font: 700 12.5px/1.6 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sun-deep);
  margin: 0 0 12px;
}
.plan-verdict p { margin: 0 0 12px; max-width: 46ch; }
.plan-verdict p:last-child { margin-bottom: 0; }
.plan-verdict-sub {
  font: 400 clamp(22px, 2.6vw, 30px)/1.15 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Numbered because they are a sequence of consequences, not a list of topics:
   the permit problem is why the kitchen problem costs what it does. */
.plan-finds { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: find; }
.plan-finds li {
  counter-increment: find;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 18px;
  padding: 22px 0;
  border-top: 1px solid var(--ink-18);
}
.plan-finds li::before {
  content: counter(find);
  grid-row: 1 / span 2;
  font: 400 30px/1 var(--display);
  color: var(--pigment, var(--moss));
  padding-top: 2px;
}
.plan-finds h3 {
  margin: 0;
  font: 700 17px/1.35 var(--sans);
  letter-spacing: 0.01em;
  color: var(--ink);
}
.plan-finds p { margin: 8px 0 0; grid-column: 2; }

/* The figures. Generated into plan.html from the model, never typed. */
.plan-table-wrap { overflow-x: auto; margin: 26px 0 0; }
.plan-table { border-collapse: collapse; width: 100%; min-width: 420px; }
.plan-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 12px;
  font: 700 12.5px/1.6 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-text);
}
.plan-table th, .plan-table td {
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--ink-18);
  text-align: right;
  font: 400 15px/1.4 var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}
.plan-table thead th {
  font: 700 12.5px/1.6 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
  border-bottom-color: var(--ink-30);
}
.plan-table th[scope="row"] {
  text-align: left;
  font: 600 15.5px/1.4 var(--sans);
  letter-spacing: 0.01em;
  padding-right: 24px;
  white-space: normal;
  color: var(--ink-75);
}
.plan-table tr.is-total th, .plan-table tr.is-total td {
  border-bottom-color: var(--ink-30);
  font-weight: 700;
}
.plan-table tr.is-total th[scope="row"] { color: var(--ink); }
.is-loss { color: var(--sun-deep); }
/* The one column on this page with a number worth having. Moss rather than
   pine: pine is two points off the body ink and the figure read as ordinary
   text beside a red loss, which is the whole distinction the table is making.
   --moss-text is the palette's green for small type. */
.is-gain { color: var(--moss-text); font-weight: 700; }
.plan-table-foot {
  margin: 16px 0 0;
  font: 700 13px/1.6 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* Ranked, so the order is the argument. Only the first one is dressed. */
.plan-rank { list-style: none; margin: 10px 0 0; padding: 0; }
.plan-rank li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 0;
  border-top: 1px solid var(--ink-18);
}
.plan-rank li.is-first { border-top-color: var(--pigment, var(--moss)); }
.plan-rank-name {
  font: 400 clamp(21px, 2.2vw, 26px)/1.1 var(--display);
  letter-spacing: -0.018em;
  color: var(--ink);
}
.plan-rank li.is-first .plan-rank-name { color: var(--pine); }
.plan-rank-note { max-width: 52ch; }

/* The order to do things in. Numbered for the same reason as the findings:
   step two is only cheap because step one came first. */
.plan-steps { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: step; }
.plan-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 4px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--ink-18);
}
.plan-steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  font: 400 13px/1.5 var(--mono);
  color: var(--ink-45);
}
.plan-step-k {
  font: 700 16px/1.4 var(--sans);
  letter-spacing: 0.01em;
  color: var(--ink);
}
.plan-step-b { grid-column: 2; max-width: 52ch; }

.plan-note {
  margin: 48px 0 0;
  padding: 22px 24px;
  background: var(--paper-2);
  border: 1px solid var(--ink-18);
}
.plan-note p { margin: 0; max-width: 58ch; font-size: 0.95em; color: var(--ink-75); }

@media (max-width: 719px) {
  .plan { padding-top: 30px; }
  .plan-lede { margin-bottom: 30px; }
  .plan-verdict { padding-left: 18px; }
  .plan-finds li { grid-template-columns: 32px 1fr; gap: 4px 12px; }
  .plan-finds li::before { font-size: 24px; }
}

/* ---------------------------------------------------------------- print --- */

@media print {
  .bar, .ind, .pigment, .wash, .strip, .spot, .stamp, .daystrip, .roundel, .visit { display: none !important; }
  body { color: #000; background: #fff; }
  .board { display: block; }
  /* Browsers strip backgrounds when printing; the pale text on the coloured
     blocks would print white-on-white without this. */
  .foot, .foot * { color: #000 !important; background: none !important; }
  .preview { background: none !important; border: 0 !important; }
  .foot-sign { display: none !important; }
}
