/* Mossman's: shared system. Runs in the order a page is read, header to footer. */

/* Properties: --tone-* colours, --face-* families, --step-* type sizes, --measure-* lengths. */
:root {
  --tone-griddle: #F5CB30;
  --tone-petrol: #123C42;
  --tone-char: #112326;
  --tone-bar: #214CFF;
  --tone-floor: var(--tone-griddle);
  --tone-type: var(--tone-char);
  --tone-focus: var(--tone-bar);
  --face-board: 'Oxanium', 'Segoe UI', Tahoma, sans-serif;
  --face-listing: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --step-fine: 0.9375rem;
  --step-read: 1rem;
  --step-row: 1.25rem;
  --step-head: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --step-trade: clamp(1.8125rem, 1.1rem + 2.7vw, 3.5rem);
  --measure-page: 78rem;
  --measure-side: clamp(1rem, 4vw, 3rem);
  --measure-band: clamp(2.5rem, 9vh, 6.5rem);
  --measure-part: 1.5rem;
  --measure-number: 3.375rem;
  --measure-bar: 0.375rem;
  --measure-tap: 2.75rem;
  --measure-slope: 0.08;
  --measure-foot: 0rem;
}
@media (min-width: 48em) {
  :root { --step-read: 1.0625rem; }
}

/* Base: yellow ground, near-black serif text, no margins anywhere (siblings are spaced by gap). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: var(--face-listing);
  font-size: var(--step-read);
  line-height: 1.5;
  color: var(--tone-type);
  background: var(--tone-floor);
}
h1, h2, h3, p, figure, ul, ol, dl, dd, address { margin: 0; }
main { flex: 1 0 auto; display: flex; flex-direction: column; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a {
  color: inherit;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
  transition: color 180ms, text-decoration-color 180ms, background-color 180ms;
}
a:hover { text-decoration-thickness: 0.2em; }
:focus-visible { outline: 0.1875rem solid var(--tone-focus); outline-offset: 0.1875rem; }

/* Words for screen readers only: .hide-words */
.hide-words {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Jump link, first thing in the body: .jump-main */
.jump-main {
  position: absolute;
  left: 0.75rem; top: -6rem;
  z-index: 40;
  padding: 0.6rem 1rem;
  color: var(--tone-griddle);
  background: var(--tone-char);
}
.jump-main:focus { top: 0.75rem; }

/* Header: yellow band .top-griddle holding the centred ink pill .float-capsule (.sign-name, .draw-sign, .link-page). */
.top-griddle {
  display: flex;
  justify-content: center;
  padding: 0.75rem var(--measure-side);
  background: var(--tone-griddle);
}
.float-capsule {
  --tone-focus: var(--tone-griddle);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 0.125rem;
  max-width: 100%;
  padding: 0.25rem;
  color: var(--tone-griddle);
  background: var(--tone-char);
  border-radius: 1.75rem;
}
.float-capsule a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: var(--measure-tap);
  padding: 0 0.85rem;
  border-radius: 1.5rem;
  text-decoration: none;
  white-space: nowrap;
}
.float-capsule a:hover { background: var(--tone-petrol); }
.float-capsule a:focus-visible { outline-offset: -0.25rem; }
.float-capsule a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 0.125rem; }
.link-page { flex: none; }
.draw-sign { flex: none; width: 1.5rem; height: 1.5rem; }
/* Label swap for the phone capsule: .say-wide shows on wide windows, .say-narrow on phones.
   On a phone the five items are tightened until they stand on one line; the pill never wraps. */
.say-narrow { display: none; }
@media (max-width: 30em) {
  .top-griddle { padding-inline: 0.5rem; }
  .float-capsule {
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.2rem;
    font-size: 0.9rem;
  }
  .float-capsule a { padding: 0 0.3rem; gap: 0.2rem; }
  .float-capsule .sign-name { padding-inline: 0.35rem 0.45rem; }
  .draw-sign { width: 1.25rem; height: 1.25rem; }
  .say-wide { display: none; }
  .say-narrow { display: inline; }
}

/* Cookie band, in flow right under the header: #optional.ask-cookies with .answer-cookies buttons.
   .say-full is the long wording for wide windows, .say-brief the short one for phones,
   where the band is one row: the label, then the two text buttons beside it. */
#optional {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.125rem 1.5rem;
  padding: 0.3rem var(--measure-side);
  font-size: var(--step-fine);
  line-height: 1.35;
  color: var(--tone-char);
  background: var(--tone-griddle);
  border-top: 0.125rem solid var(--tone-char);
}
#optional[hidden] { display: none; }
.ask-cookies p { min-width: 0; }
.answer-cookies { display: flex; gap: 1.25rem; }
.answer-cookies button, .list-ways button {
  min-height: var(--measure-tap);
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.answer-cookies button:hover, .list-ways button:hover { text-decoration-thickness: 0.2em; }
.say-brief { display: none; }
@media (max-width: 47.99em) {
  #optional {
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: 0 0.75rem;
    border-top: 0;
  }
  .ask-cookies p { white-space: nowrap; }
  .answer-cookies { flex: none; gap: 1rem; }
  .say-full { display: none; }
  .say-brief { display: inline; }
}

/* Ground blocks with hard full-width seams: .lay-griddle (yellow, ink type) and .lay-petrol (petrol, yellow type). */
.lay-griddle {
  --tone-floor: var(--tone-griddle);
  --tone-type: var(--tone-char);
  --tone-focus: var(--tone-bar);
  color: var(--tone-type);
  background: var(--tone-floor);
}
.lay-petrol {
  --tone-floor: var(--tone-petrol);
  --tone-type: var(--tone-griddle);
  --tone-focus: var(--tone-griddle);
  color: var(--tone-type);
  background: var(--tone-floor);
}

/* Page measure and band padding: .hold-measure centres content, .pad-band gives a block its top and bottom room. */
.hold-measure {
  width: 100%;
  max-width: var(--measure-page);
  margin-inline: auto;
  padding-inline: var(--measure-side);
}
.pad-band { padding-block: var(--measure-band); }

/* Stacks: .stack-parts is a column with one gap; .set-copy is a reading column for long text. */
.stack-parts, .set-copy { display: flex; flex-direction: column; gap: var(--measure-part); min-width: 0; }
.set-copy { max-width: 44rem; gap: 1em; }

/* Headings: every h1-h3 stands on one 6px blue bar; .stand-bar gives the bar to other text, .lift-bar takes it away. */
h1, h2, h3, .stand-bar {
  width: fit-content;
  max-width: 100%;
  padding-bottom: 0.12em;
  font-family: var(--face-board);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.14;
  text-wrap: balance;
  border-bottom: var(--measure-bar) solid var(--tone-bar);
  transition: border-color 180ms;
}
h1, .say-trade { font-size: var(--step-trade); }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-row); }
.lift-bar { padding-bottom: 0; border-bottom: 0; }

/* Page opening for inner pages: .start-page puts the h1 stack beside a .hold-photo; .say-slogan is the line under the h1. */
.start-page {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--measure-part) clamp(1.5rem, 4vw, 3.5rem);
}
.start-page > * { flex: 1 1 22rem; min-width: 0; }
.say-slogan { font-size: 1.25rem; line-height: 1.35; max-width: 34rem; }

/* Photograph and caption: figure.hold-photo (give it a flex-basis in rows), img.cut-photo hand-cut, .name-photo caption. */
.hold-photo {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}
.hold-photo img, .hold-photo video { width: 100%; object-fit: cover; filter: grayscale(1); }
.cut-photo {
  clip-path: polygon(0 1.2%, 31% 0, 33% 1.6%, 36% 0.2%, 99% 0, 100% 46%, 98.800% 52%, 100% 58%,
    100% calc(100% - var(--measure-foot)), 0 100%, 0.9% 61%, 0 22%);
}
.name-photo { font-size: var(--step-fine); line-height: 1.4; }

/* The table edge (recurring device): .cut-edge on a .cut-photo slants its foot low-left to high-right; .run-edge draws the bare line. */
.cut-edge { --measure-foot: calc(100cqw * var(--measure-slope)); }
.run-edge {
  width: 100%;
  aspect-ratio: 1 / var(--measure-slope);
  background: currentColor;
  clip-path: polygon(0 calc(100% - 0.25rem), 100% 0, 100% 0.25rem, 0 100%);
}

/* Index beside one narrow picture gutter: .pair-gutter holds a list or stack and one .hold-photo. */
.pair-gutter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--measure-part) clamp(1.5rem, 4vw, 3rem);
}
.pair-gutter > * { flex: 1 1 26rem; min-width: 0; }
.pair-gutter > .hold-photo { flex: 0 1 36%; min-width: min(18rem, 100%); }
@media (max-width: 47.99em) {
  .pair-gutter > .hold-photo { flex-basis: 100%; }
}

/* Service index: ol.list-services > li.serve-row with .count-row (01-05), .tell-row (.name-dish + facts), .act-row. */
.list-services { display: flex; flex-direction: column; padding: 0; list-style: none; }
.serve-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding-block: 0.7rem;
  border-top: 0.125rem solid currentColor;
}
.list-services > .serve-row:last-child { border-bottom: 0.125rem solid currentColor; }
.js .serve-row[data-serve] { cursor: pointer; }
.count-row {
  flex: 0 0 var(--measure-number);
  font-family: var(--face-board);
  font-size: 1.375rem;
  line-height: 1.2;
  transition: color 180ms;
}
.tell-row { flex: 1 1 16rem; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.name-dish {
  padding-bottom: 0;
  font-family: var(--face-board);
  font-size: var(--step-row);
  font-weight: 500;
  line-height: 1.2;
  border-bottom: 0;
}
.act-row { flex: 0 0 auto; display: flex; justify-content: flex-end; }
@media (max-width: 40em) {
  .act-row { flex-basis: 100%; justify-content: flex-start; padding-left: calc(var(--measure-number) + 1rem); }
}

/* Facts list for a dish or service: dl.list-specs > div > dt + dd. */
.list-specs { display: flex; flex-direction: column; }
.list-specs > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1rem;
  padding-block: 0.55rem;
  border-top: 0.125rem solid currentColor;
}
.list-specs dt { flex: 0 0 8.5rem; font-family: var(--face-board); }
.list-specs dd { flex: 1 1 12rem; }

/* Small solid hand-cut label: .tag-label */
.tag-label {
  display: inline-flex;
  width: fit-content;
  padding: 0.25rem 0.8rem 0.3rem;
  font-family: var(--face-board);
  font-size: var(--step-fine);
  line-height: 1.3;
  color: var(--tone-floor);
  background: var(--tone-type);
  clip-path: polygon(0 12%, 46% 0, 50% 10%, 54% 0, 100% 6%, 98% 100%, 2% 92%);
}

/* Action link with the blue marker: .point-action (inline), used in .act-row and in running text. */
.point-action, .pass-way {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: var(--measure-tap);
}
.point-action::before, .pass-way::before, .press-tab::before {
  content: "";
  flex: none;
  width: 1.1em;
  height: var(--measure-bar);
  background: var(--tone-bar);
}

/* Action tab, hand-cut: a.press-tab or button.press-tab; add data-press and it takes .pressed once when used. */
.press-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  width: fit-content;
  min-height: 3rem;
  padding: 0.6rem 1.6rem 0.75rem 1.2rem;
  font-family: var(--face-board);
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--tone-floor);
  background: var(--tone-type);
  border: 0;
  box-shadow: inset 0 calc(-1 * var(--measure-bar)) 0 transparent;
  clip-path: polygon(0 8%, 4% 0, 58% 3%, 62% 0, 100% 5%, 97% 52%, 100% 100%, 30% 95%, 3% 100%);
  cursor: pointer;
  transition: box-shadow 180ms, transform 180ms;
}
.press-tab:hover { box-shadow: inset 0 calc(-1 * var(--measure-bar)) 0 var(--tone-bar); }
.press-tab:focus-visible, .ring-shop:focus-visible { outline-color: var(--tone-floor); outline-offset: -0.4rem; }
.pressed { transform: translateY(0.125rem) scale(0.97); }

/* Closing hand-off before the footer: .pass-table row of .pass-way links to the next pages. */
.pass-table {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2.5rem;
}
.pass-way { font-family: var(--face-board); font-size: var(--step-head); line-height: 1.2; }

/* Arrival on scroll (colour only, nothing hides or moves): put data-setting on a block; its bars turn blue with .arrived. */
.js [data-setting]:not(.arrived) :is(h2, h3, .stand-bar) { border-bottom-color: currentColor; }

/* Footer on petrol: .end-petrol > .show-approach (.show-plan with svg.draw-approach, then .read-legend of .key-legend groups).
   The plan and the legend start on one top line; the plan carries its own street and entrance labels. */
.end-petrol {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-block: var(--measure-band) 1.5rem;
  font-size: var(--step-fine);
}
.show-approach {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem clamp(1.5rem, 5vw, 4rem);
}
.show-plan { flex: 1 1 26rem; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.draw-approach { width: 100%; height: auto; }
.draw-approach text { font-family: var(--face-board); fill: var(--tone-griddle); }
.read-symbols { font-size: var(--step-fine); line-height: 1.4; }
.read-legend {
  flex: 1 1 30rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 1.75rem 2rem;
  min-width: 0;
}
.key-legend { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; min-width: 0; }
.key-ways { grid-column: 1 / -1; }
.name-key { font-family: var(--face-board); font-size: 1.125rem; line-height: 1.25; }
.key-legend address { display: flex; flex-direction: column; gap: 0.1rem; font-style: normal; }
.reach-shop { display: inline-flex; align-items: center; min-height: var(--measure-tap); overflow-wrap: anywhere; }
/* Link grid: every link stays on one line; a long label (.way-wide) takes two columns instead of wrapping. */
.list-ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 0 1.5rem;
  width: 100%;
  padding: 0;
  list-style: none;
}
.list-ways li { min-width: 0; }
.way-wide { grid-column: span 2; }
.list-ways a, .list-ways button {
  display: inline-flex;
  align-items: center;
  min-height: var(--measure-tap);
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
}
@media (min-width: 60em) {
  .list-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 40em) {
  .read-legend { grid-template-columns: 1fr; }
  .key-ways { grid-column: auto; }
}
.sign-year { line-height: 1.4; }

/* Phone call tab, in the footer's flow under the columns: a.ring-shop */
.ring-shop { display: none; }
@media (max-width: 47.99em) {
  .ring-shop {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: var(--measure-tap);
    margin-inline: var(--measure-side);
    padding: 0.45rem 1.5rem 0.55rem 1.1rem;
    font-family: var(--face-board);
    font-size: 1rem;
    text-decoration: none;
    color: var(--tone-griddle);
    background: var(--tone-char);
    clip-path: polygon(0 10%, 40% 0, 45% 7%, 100% 2%, 96% 100%, 22% 94%, 4% 100%);
    transition: transform 180ms;
  }
}

/* Offer stamp (only when the shop supplies an offer): #deal.stamp-offer, round and pressed in once; a slim pill on phones. */
#deal {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  z-index: 31;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: min(13.5rem, 58vw);
  min-height: 13.5rem;
  padding: 1.75rem 1.5rem;
  font-size: var(--step-fine);
  line-height: 1.3;
  text-align: center;
  color: var(--tone-char);
  background: var(--tone-griddle);
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.1875rem var(--tone-char), inset 0 0 0 0.5rem var(--tone-griddle), inset 0 0 0 0.625rem var(--tone-char);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(2rem) rotate(5deg) scale(1.18);
  transition: transform 180ms ease-out, opacity 180ms, visibility 180ms;
}
#deal[hidden] { display: none; }
#deal.is-in { opacity: 1; visibility: visible; pointer-events: auto; transform: rotate(5deg) scale(1); }
.stamp-offer p { min-width: 0; }
#deal button {
  min-width: var(--measure-tap);
  min-height: var(--measure-tap);
  font: inherit;
  font-size: 1.25rem;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
@media (max-width: 47.99em) {
  #deal {
    left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 0.6rem;
    width: auto;
    min-height: 0;
    max-height: 20vh;
    padding: 0.3rem 0.4rem 0.3rem 1rem;
    text-align: left;
    border-radius: 1.5rem;
    box-shadow: inset 0 0 0 0.125rem var(--tone-char);
    transform: translateY(150%);
  }
  #deal.is-in { transform: none; }
  #deal p { flex: 1 1 8rem; }
}

/* Reduced motion: every change is instant. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (min-width: 120.0625rem) { html { font-size: 0.8333vw; } }
nav a, nav button, header a, header button {
  position: relative;
  z-index: 2;
}
html,body{overflow-x:clip}
