/* Foundry Bakehouse — components */

/* -- Buttons --------------------------------------------------------------- */

.fbh-btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fbh-space-xs);
  margin-top: var(--fbh-space-m);
}

.fbh-btn {
  --btn-bg: transparent;
  --btn-fg: var(--fbh-ink);
  --btn-bd: var(--fbh-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--fbh-space-2xs);
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--fbh-radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--fbh-font-text);
  font-size: var(--fbh-step--1);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--fbh-transition), color var(--fbh-transition), border-color var(--fbh-transition);
}

.fbh-btn--primary { --btn-bg: var(--fbh-cta); --btn-fg: var(--fbh-on-cta); --btn-bd: var(--fbh-cta); }
.fbh-btn--primary:hover { --btn-bg: var(--fbh-cta-hover); --btn-bd: var(--fbh-cta-hover); color: var(--fbh-on-cta); }

.fbh-btn--secondary { --btn-bg: transparent; --btn-fg: var(--fbh-ink); --btn-bd: var(--fbh-line-strong); }
.fbh-btn--secondary:hover { --btn-bd: var(--fbh-ink); color: var(--fbh-ink); }

.fbh-btn--solid { --btn-bg: var(--fbh-ink); --btn-fg: var(--fbh-ground); --btn-bd: var(--fbh-ink); }
.fbh-btn--solid:hover { --btn-bg: var(--fbh-cta); --btn-bd: var(--fbh-cta); color: var(--fbh-on-cta); }

.fbh-btn--ghost { --btn-bd: transparent; padding-inline: 0; text-decoration: underline; }

/* A glyph after a button's label — the download arrow on the menu buttons.
   The label carries the meaning, so the icon is sized to the text and never
   stands alone. */
.fbh-btn__icon { width: 1.1em; height: 1.1em; flex: none; }

/* Pill: the header's call to action, and anywhere else a softer shape suits. */
/* The header's order button. It was on --fbh-accent (clay), where the cream
   label measured 2.92:1 — under AA for text this size. The CTA teal carries it
   at 5.59. */
.fbh-btn--pill {
  --btn-bg: var(--fbh-cta);
  --btn-fg: var(--fbh-on-cta);
  --btn-bd: var(--fbh-cta);
  border-radius: var(--fbh-radius-pill);
  padding-inline: 1.35rem;
}
.fbh-btn--pill:hover { --btn-bg: var(--fbh-cta-hover); --btn-bd: var(--fbh-cta-hover); color: var(--fbh-on-cta); }

/* The header's second pill — catering. Outlined rather than filled, so the bar
   carries one filled call to action instead of two competing for the same
   glance, while the shape and colour keep it reading as the same kind of
   button. Declared after --pill, which it overrides on equal specificity. */
.fbh-btn--quiet { --btn-bg: transparent; --btn-fg: var(--fbh-cta); --btn-bd: var(--fbh-cta); }
.fbh-btn--quiet:hover { --btn-bg: var(--fbh-cta); --btn-bd: var(--fbh-cta); color: var(--fbh-on-cta); }

.fbh-btn .fbh-ui-icon { width: 1.05em; height: 1.05em; flex: 0 0 auto; }

/* The teal band was missing from this list, which left a secondary button
   there with an ink label on teal: 2.10:1. */
.fbh-section--band .fbh-btn--secondary,
.fbh-section--contrast .fbh-btn--secondary,
.fbh-section--photo .fbh-btn--secondary { --btn-fg: var(--fbh-on-contrast); --btn-bd: var(--fbh-contrast-muted); }

/* And the hover, which is what made the label fade out on the breakfast hero.
   The rule above hands the button its colour through --btn-fg, but
   .fbh-btn--secondary:hover sets `color` outright, and a real declaration
   beats .fbh-btn's `color: var(--btn-fg)` however the variable is set — the
   same trap the primary button's inversion documents further down. So on a
   dark ground the label went to --fbh-ink on hover: 1.47:1 against the
   lightest ground the espresso wash can produce, and 1.07:1 over a dark part
   of the photograph, which is the fade. Cream reads 8.02:1 at worst. Set
   outright here for exactly the same reason. */
.fbh-section--band .fbh-btn--secondary:hover,
.fbh-section--contrast .fbh-btn--secondary:hover,
.fbh-section--photo .fbh-btn--secondary:hover {
  --btn-bd: var(--fbh-on-contrast);
  color: var(--fbh-on-contrast);
}

/* The light photo cut is a cream wash with ink on it, so there the ordinary
   ink hover is right. One class more specific than the rule above. */
.fbh-section--photo.fbh-section--photo-light .fbh-btn--secondary:hover {
  --btn-bd: var(--fbh-ink);
  color: var(--fbh-ink);
}

/* On a dark band the teal CTA stops being a CTA: against the teal band it is
   the same colour and disappears, and against espresso its edge is 2.09 — under
   the 3.0 WCAG asks for a control boundary. Inverted, the fill is cream and the
   label is the teal, which reads at 4.23 and 11.77 respectively. */
.fbh-section--band :is(.fbh-btn--primary, .fbh-btn--pill),
.fbh-section--contrast :is(.fbh-btn--primary, .fbh-btn--pill),
.fbh-section--photo :is(.fbh-btn--primary, .fbh-btn--pill) {
  --btn-bg: var(--fbh-on-cta);
  --btn-fg: var(--fbh-cta);
  --btn-bd: var(--fbh-on-cta);
  /* Set outright, not only through the token: these bands colour every <a>
     inside them, and that rule would otherwise paint the label cream on a
     cream fill. */
  color: var(--fbh-cta);
}
.fbh-section--band :is(.fbh-btn--primary, .fbh-btn--pill):hover,
.fbh-section--contrast :is(.fbh-btn--primary, .fbh-btn--pill):hover,
.fbh-section--photo :is(.fbh-btn--primary, .fbh-btn--pill):hover {
  --btn-bg: var(--fbh-surface);
  --btn-bd: var(--fbh-surface);
  color: var(--fbh-cta-hover);
}

.fbh-link-underline {
  display: inline-block;
  font-size: var(--fbh-step--1);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.4em;
}

.fbh-link-arrow { text-decoration: none; font-weight: 500; }
.fbh-link-arrow::after { content: " \2192"; }
.fbh-link-arrow:hover { text-decoration: underline; }

/* -- Top utility bar ------------------------------------------------------- */

.fbh-topbar {
  background: var(--fbh-contrast);
  color: var(--fbh-contrast-muted);
  font-size: var(--fbh-step--1);
}

.fbh-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem clamp(1rem, -0.5rem + 3vw, 3.5rem);
  padding-block: 0.6rem;
  /* The mark laps up into this strip, so the text is kept clear of its column
     rather than being centred underneath it. */
  padding-left: 9.5rem;
  text-align: center;
}

.fbh-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.fbh-topbar a { color: inherit; text-decoration: none; }
.fbh-topbar a:hover { color: var(--fbh-on-contrast); text-decoration: underline; text-underline-offset: 0.25em; }

.fbh-topbar .fbh-ui-icon { width: 1.05em; height: 1.05em; flex: 0 0 auto; opacity: 0.85; }

.fbh-topbar__item--promo .fbh-ui-icon { color: var(--fbh-accent-soft); opacity: 1; }
.fbh-topbar__item--promo a {
  color: var(--fbh-accent-soft);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.fbh-topbar__item--promo a:hover { color: var(--fbh-accent-soft); }

.fbh-topbar__item.is-closed .fbh-ui-icon { color: var(--fbh-accent-soft); opacity: 1; }

/* The middle slot is the first thing to go when the bar runs out of room. */
@media (max-width: 60rem) {
  .fbh-topbar__item--promo { order: 3; flex-basis: 100%; justify-content: center; }
}
@media (max-width: 36rem) {
  .fbh-topbar__item:first-child { display: none; }
}

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

.fbh-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--fbh-surface);
  border-bottom: 1px solid var(--fbh-line);
}

.fbh-header__inner {
  display: flex;
  align-items: center;
  gap: var(--fbh-space-s);
  padding-block: var(--fbh-space-2xs);
  min-height: 6.5rem;
}

/* The mark sits proud of the bar and laps over the utility strip above it.
   Once the header sticks, the strip is gone, so the overhang is dropped. */
.fbh-header__brand { flex: 0 0 auto; position: relative; z-index: 1; }
.fbh-header__brand img {
  display: block;
  width: auto;
  max-height: 8.75rem;
  /* Deliberately taller than the bar: the mark breaks out of it top and bottom,
     lapping over the strip above and the page below. The negative margins keep
     it from stretching the bar to match. */
  margin-block: -2rem;
  transition: max-height var(--fbh-transition), margin var(--fbh-transition);
}

/* Once the header sticks there is nothing above it to lap over, and an
   overhanging mark would be clipped by the top of the viewport. */
.fbh-header--stuck .fbh-header__brand img { max-height: 4.5rem; margin-block: 0; }

/* A mark that breaks its container has to sit above what it breaks into. */
.fbh-header__brand { z-index: 2; }

/* Below tablet there is no column to spare and the strip wraps to two rows, so
   the mark stops overhanging and sits inside the bar instead. Declared after
   the rules above because it has the same specificity. */
@media (max-width: 47.999rem) {
  .fbh-topbar__inner { padding-left: 0; }
  .fbh-header__brand img { max-height: 5.25rem; margin-block: 0; }
}

.fbh-logo--text { font-family: var(--fbh-font-heading); font-size: var(--fbh-step-2); font-weight: 700; letter-spacing: 0.02em; text-decoration: none; }

.fbh-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--fbh-space-2xs); }

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

/* The panel the search button drops. Neither display:none nor the hidden
   attribute can be transitioned, so it collapses by max-height with its
   contents clipped. The 0fr/1fr grid this started as is the tidier pattern,
   but it has to interpolate a <flex> track and where that is not supported the
   panel does not open at all rather than opening without the animation — so a
   height it is. The cap sits just above the one row of content, which keeps
   the easing honest. visibility goes along so the field leaves the tab order
   and the accessibility tree while the panel is shut, and the border appears
   only once there is something to separate. */
.fbh-searchpanel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  background: var(--fbh-surface);
  border-bottom: 1px solid transparent;
  transition:
    max-height var(--fbh-transition),
    opacity var(--fbh-transition),
    visibility var(--fbh-transition),
    border-color var(--fbh-transition);
}
.fbh-searchpanel__inner > .fbh-wrap { padding-block: var(--fbh-space-s); }
.fbh-searchpanel.is-open { max-height: 12rem; opacity: 1; visibility: visible; border-bottom-color: var(--fbh-line); }

/* The field has the panel to itself, so it is not the 17rem it was in the bar.
   A measure rather than the full width: a search box the width of a desktop
   page reads as a mistake. */
.fbh-searchpanel .fbh-headersearch { flex: 1 1 auto; max-width: min(100%, 34rem); }

/* Motion off: the panel still opens and closes, it just arrives. */
@media (prefers-reduced-motion: reduce) {
  .fbh-searchpanel { transition: none; }
}

.fbh-headersearch {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 11rem;
  max-width: 17rem;
  min-width: 0;
}

.fbh-headersearch input[type="search"] {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.5rem 3.1rem 0.5rem 1.1rem;
  background: var(--fbh-ground-2);
  border: 1px solid var(--fbh-line);
  border-radius: var(--fbh-radius-pill);
  color: var(--fbh-ink);
  font-size: var(--fbh-step--1);
  -webkit-appearance: none;
  appearance: none;
}
.fbh-headersearch input::placeholder { color: var(--fbh-ink-3); }
.fbh-headersearch input:focus { outline: none; border-color: var(--fbh-line-strong); background: var(--fbh-surface); }
.fbh-headersearch:focus-within { border-radius: var(--fbh-radius-pill); outline: 3px solid var(--fbh-focus); outline-offset: 2px; }
.fbh-headersearch input:focus-visible { outline: none; }

.fbh-headersearch__go {
  position: absolute;
  right: 0.3rem;
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fbh-accent);
  color: var(--fbh-on-accent);
  cursor: pointer;
  transition: background var(--fbh-transition);
}
.fbh-headersearch__go:hover { background: var(--fbh-brand); color: var(--fbh-on-brand); }
.fbh-headersearch__go .fbh-ui-icon { width: 1.1rem; height: 1.1rem; }

/* -- Round icon button (cart) ---------------------------------------------- */

.fbh-iconbtn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  flex: 0 0 auto;
  border: 1.5px solid var(--fbh-line-strong);
  border-radius: 50%;
  color: var(--fbh-ink);
  text-decoration: none;
  transition: border-color var(--fbh-transition), background var(--fbh-transition);
}
/* Every child shares one cell. The cart link carries a screen-reader label
   beside its icon, and WooCommerce swaps that whole span on an AJAX cart
   update, so it has to stay in the markup. Unstyled it was an in-flow grid
   item, which gave the button a second row of 12px and lifted the icon 6px
   above the centre of the circle. The count badge is positioned absolutely
   and is unaffected either way. */
.fbh-iconbtn { grid-template-areas: "stack"; }
.fbh-iconbtn > * { grid-area: stack; }

.fbh-iconbtn:hover { border-color: var(--fbh-ink); background: var(--fbh-ground-2); color: var(--fbh-ink); }
.fbh-iconbtn .fbh-ui-icon { width: 1.25rem; height: 1.25rem; }
.fbh-iconbtn__count {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.25rem;
  padding: 0 0.3rem;
  border-radius: var(--fbh-radius-pill);
  background: var(--fbh-brand);
  color: var(--fbh-on-brand);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}

/* -- Burger ---------------------------------------------------------------- */

.fbh-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.9rem; height: 2.9rem;
  padding: 0;
  border: 1.5px solid var(--fbh-line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--fbh-ink);
  cursor: pointer;
}
.fbh-burger span { display: block; height: 2px; width: 1.1rem; margin-inline: auto; background: currentColor; }

/* -- Navigation ------------------------------------------------------------ */

.fbh-nav__list { list-style: none; margin: 0; padding: 0; }
.fbh-nav__tail { display: none; }

@media (min-width: 75rem) {
  .fbh-burger { display: none; }
  /* Positioned above the brand (z-index 2) so the logo's overhang never sits
     on top of a dropdown and swallows the pointer. */
  .fbh-nav { margin-inline: auto; min-width: 0; position: relative; z-index: 3; }
  /* Room to read. The old floor was 0.3rem, which came out at under 5px at
     1200, where the desktop bar starts: seven labels ran together. Measured
     there, the bar has about 100px of slack beside the nav, so a 12px floor
     spends roughly 40 of it across the six gaps and leaves the rest. */
  /* min-width keeps the list at its own size. The header row is one nowrap flex
   line and the nav was the only part of it that could shrink, so under
   pressure it collapsed below its content and, with overflow visible, the last
   item rendered underneath whatever sat to its right. */
.fbh-nav__list { display: flex; align-items: center; flex-wrap: nowrap; min-width: max-content; gap: clamp(0.75rem, -0.71rem + 1.94vw, 2rem); }
  .fbh-nav__item { position: relative; display: flex; align-items: center; gap: 0.12rem; }

  /* Sentence case, no tracking: the labels stay short enough for seven of them
     to share a row with a search field and a call to action. */
  .fbh-nav__item > .fbh-nav__link {
    display: inline-block;
    white-space: nowrap;
    padding: 0.5rem 0.1rem;
    font-size: var(--fbh-step--1);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    color: var(--fbh-ink-2);
    border-bottom: 2px solid transparent;
    transition: color var(--fbh-transition), border-color var(--fbh-transition);
  }
  .fbh-nav__item > .fbh-nav__link:hover { color: var(--fbh-ink); }
  .fbh-nav__item.is-current > .fbh-nav__link { color: var(--fbh-ink); border-bottom-color: var(--fbh-brand); }

  .fbh-nav__toggle {
    border: 0; background: transparent; padding: 0.25rem 0.1rem; cursor: pointer;
    line-height: 0; color: var(--fbh-ink-3);
  }
  .fbh-nav__toggle svg { width: 0.62rem; transition: transform var(--fbh-transition); }
  .fbh-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

  .fbh-nav__submenu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: -0.9rem;
    min-width: 15rem;
    margin: 0; padding: var(--fbh-space-2xs);
    list-style: none;
    background: var(--fbh-surface);
    border: 1px solid var(--fbh-line);
    border-radius: calc(var(--fbh-radius-card) * 3);
    box-shadow: var(--fbh-shadow-lift);
    /* Hidden rather than display: none, so the panel can stay up for a beat
       after the pointer leaves: a slightly diagonal path to a child link no
       longer drops it. The fade starts after 0.18s; it is gone by 0.34s. */
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--fbh-transition) 0.18s, visibility 0s linear 0.34s;
  }

  /* The panel sits 0.6rem below its label. Without this bridge the pointer
     crosses that gap over nothing, :hover drops, and the menu closes before
     it can be reached. The bridge belongs to the panel, so hovering it keeps
     the parent item hovered. */
  .fbh-nav__submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: calc(0.6rem + 2px);
  }

  .fbh-nav__item--has-children:hover > .fbh-nav__submenu,
  .fbh-nav__item--has-children:focus-within > .fbh-nav__submenu,
  .fbh-nav__submenu.is-open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }

  /* The panel being opened stacks above a neighbour's that is still fading. */
  .fbh-nav__item--has-children:hover,
  .fbh-nav__item--has-children:focus-within { z-index: 1; }
  /* The row is a flex container, because a top-level item has to sit beside
     its chevron, and the walker puts the same class on submenu items. That
     made the link a flex item, which takes the width of its text and no more:
     the hover panel highlighted "Catering Services" for 91px of a 222px row
     and the tint stopped where the words did. Growing fills the row, so the
     highlight runs the width of the panel inside its padding, and an item
     that does carry a toggle still has room for it. */
  .fbh-nav__submenu .fbh-nav__link {
    display: block;
    flex: 1 1 auto;
    padding: 0.55rem 0.8rem;
    font-size: var(--fbh-step--1);
    color: var(--fbh-ink-2);
    text-decoration: none;
    border-radius: var(--fbh-radius);
  }
  .fbh-nav__submenu .fbh-nav__link:hover { background: var(--fbh-ground-2); color: var(--fbh-ink); }
}

@media (max-width: 74.999rem) {
  /* Only the two pills drop out here. The search field used to as well, back
     when it sat in this row; it lives in its own panel now, which is the same
     at every width. */
  .fbh-header__cta { display: none; }

  .fbh-nav {
    position: fixed;
    inset: auto 0 0 0;
    top: var(--fbh-header-offset, 7.5rem);
    padding: var(--fbh-space-m) var(--fbh-gutter) var(--fbh-space-2xl);
    background: var(--fbh-ground);
    border-top: 1px solid var(--fbh-line);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--fbh-transition), transform var(--fbh-transition), visibility var(--fbh-transition);
  }
  .fbh-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .fbh-nav__item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--fbh-line); }
  .fbh-nav__link { flex: 1; padding: var(--fbh-space-s) 0; text-decoration: none; font-weight: 600; color: var(--fbh-ink); }
  .fbh-nav__toggle { border: 0; background: transparent; padding: var(--fbh-space-s); cursor: pointer; color: var(--fbh-ink-2); }
  .fbh-nav__toggle svg { width: 0.8rem; transition: transform var(--fbh-transition); }
  .fbh-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .fbh-nav__submenu { flex: 0 0 100%; margin: 0 0 var(--fbh-space-s); padding: 0 0 0 var(--fbh-space-s); list-style: none; display: none; }
  .fbh-nav__submenu.is-open { display: block; }
  .fbh-nav__submenu .fbh-nav__link { padding: var(--fbh-space-2xs) 0; font-weight: 400; color: var(--fbh-ink-2); }

  /* The calls to action move into the panel rather than vanishing. */
  .fbh-nav__tail { display: grid; gap: var(--fbh-space-s); margin-top: var(--fbh-space-l); }
  .fbh-nav__tail .fbh-btn { justify-content: center; }
}

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

.fbh-hero { padding-block: var(--fbh-space-3xl); }
.fbh-hero__title { font-size: var(--fbh-step-6); margin-bottom: var(--fbh-space-m); }
.fbh-hero__title em { font-style: italic; font-weight: 400; color: var(--fbh-brand); }
.fbh-hero__lede { max-width: 38ch; font-size: var(--fbh-step-1); color: var(--fbh-ink-2); }
.fbh-hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--fbh-space-m);
  margin-top: var(--fbh-space-xl);
  padding-top: var(--fbh-space-m);
  border-top: 1px solid var(--fbh-line);
  font-size: var(--fbh-step--1);
  color: var(--fbh-ink-2);
}
.fbh-hero__meta strong { color: var(--fbh-ink); }

.fbh-hero--display .fbh-hero__title {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* The mosaic owns its own proportions: the tiles inside drop their intrinsic
   aspect ratios and fill the grid, so a tall tile can never push the track
   wider than the column it sits in. */
.fbh-mosaic {
  display: grid;
  gap: var(--fbh-space-xs);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  aspect-ratio: 5 / 4;
}
.fbh-mosaic > * { min-width: 0; min-height: 0; }
.fbh-mosaic > :first-child { grid-row: span 2; }
.fbh-mosaic img, .fbh-mosaic .fbh-face { height: 100%; width: 100%; aspect-ratio: auto; object-fit: cover; }
/* The tile is a grid, and its row has to be definite. height:100% on the image
   is a cyclic percentage against an auto row, so the row falls back to the
   image's intrinsic height, and for a lazily loaded image WordPress supplies a
   placeholder one: it ships
     img:is([sizes="auto" i], ...) { contain-intrinsic-size: 3000px 1500px }
   to make sizes="auto" work. The row took that 1500px literally. On Catering,
   where the hero is a single photograph carrying sizes="auto", the picture
   rendered 650x1500 inside a 650x488 frame and spilled over the section below.
   A definite row gives the percentage something real to resolve against. The
   card decks have had this since 1.3.12, which is why they were unaffected.

   Photo faces only. The illustrated tiles in a mosaic, the teal opening-hours
   panel on Careers among them, hold an icon above a label in two auto rows,
   and naming a single row here would change how those stack. */
.fbh-mosaic .fbh-face--photo { grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.fbh-mosaic--single { grid-template-columns: minmax(0, 1fr); aspect-ratio: 4 / 3; }
.fbh-mosaic--single > :first-child { grid-row: auto; }

/* -- Cards ----------------------------------------------------------------- */

.fbh-card {
  display: flex;
  flex-direction: column;
  background: var(--fbh-surface);
  border: 1px solid var(--fbh-line);
  border-radius: var(--fbh-radius-card);
  overflow: hidden;
  transition: box-shadow var(--fbh-transition), transform var(--fbh-transition);
}
.fbh-card:hover { box-shadow: var(--fbh-shadow-lift); }
.fbh-card__body { padding: var(--fbh-space-m); display: flex; flex-direction: column; gap: var(--fbh-space-2xs); flex: 1; }
.fbh-card__head { display: flex; gap: var(--fbh-space-s); align-items: baseline; justify-content: space-between; }
.fbh-card__title { margin: 0; font-size: var(--fbh-step-1); }
.fbh-card__desc { margin: 0; color: var(--fbh-ink-2); font-size: var(--fbh-step--1); }
.fbh-card__foot { margin-top: auto; padding-top: var(--fbh-space-s); }
.fbh-card__foot .fbh-btn { width: 100%; }

.fbh-card--out { opacity: 0.72; }
.fbh-card--out .fbh-card__foot .fbh-btn { pointer-events: none; --btn-bd: var(--fbh-line); --btn-fg: var(--fbh-ink-3); }

.fbh-badge {
  position: absolute; top: var(--fbh-space-xs); left: var(--fbh-space-xs);
  padding: 0.25rem 0.65rem;
  border-radius: var(--fbh-radius-pill);
  background: var(--fbh-surface);
  color: var(--fbh-ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* A badge that sits in the copy rather than over the picture: the Specials
   cards label the type above the name. The base badge is absolutely
   positioned, which inside the card body would lift it out of flow and park
   it in the corner of whatever is positioned nearest, so this puts it back in
   the flow. align-self keeps it to its own width — the card body is a flex
   column, and a stretched pill would run the full width of the card. */
.fbh-badge--inline {
  position: static;
  align-self: start;
  margin-bottom: var(--fbh-space-2xs);
  background: var(--fbh-ground-2);
}

/* The category tag takes the opposite corner from the sold-out badge, so a
   card that is both sold out and tagged reads cleanly. */
.fbh-badge--category {
  left: auto;
  right: var(--fbh-space-xs);
  background: var(--fbh-ground-2);
  color: var(--fbh-ink);
}

.fbh-price { font-family: var(--fbh-font-display); font-size: var(--fbh-step-1); color: var(--fbh-brand); white-space: nowrap; }
.fbh-price--link { font-size: var(--fbh-step-0); text-decoration: underline; text-underline-offset: 0.25em; }

.fbh-dietary { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: var(--fbh-space-2xs); }
.fbh-dietary span {
  padding: 0.12rem 0.5rem;
  border: 1px solid var(--fbh-line-strong);
  border-radius: var(--fbh-radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--fbh-ink-2);
}

/* Illustrated card faces (the flat colour tiles in the design) */

.fbh-face {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: var(--fbh-space-m);
  color: var(--fbh-on-contrast);
  text-align: center;
}
.fbh-face--photo { padding: 0; aspect-ratio: auto; }
.fbh-face--photo img { width: 100%; height: 100%; object-fit: cover; }

/* A photo face left on aspect-ratio:auto takes the shape of whatever was
   uploaded, so one card in a row can be a different height from its
   neighbours. That is not hypothetical: Counter-Coffee.png is 590px wide, too
   narrow for the 760x560 fbh-card crop, so WordPress falls back to 590x560 and
   that card alone comes out nearly square.

   In a deck the cards have to agree, so the photo faces go back to the same
   4/3 the illustrated faces use. aspect-ratio by itself is not enough: the
   image carries height:100%, which is cyclic against a ratio-derived height,
   so it falls back to its intrinsic size and the auto grid row grows to match,
   stretching that one card. Pinning the row to minmax(0, 1fr) gives the image
   a definite height to resolve against and leaves the cropping to object-fit.

   The hero mosaic is deliberately not in this list: it sets its own
   proportions and its tiles are meant to fill the grid. */
.fbh-feature .fbh-face--photo,
.fbh-rotating .fbh-face--photo,
.fbh-pricelist__aside .fbh-face--photo {
  aspect-ratio: 4 / 3;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}
.fbh-feature .fbh-face--photo img,
.fbh-rotating .fbh-face--photo img,
.fbh-pricelist__aside .fbh-face--photo img { display: block; }

/* Menu cards have the same problem for a different reason. Almost every item
   has an fbh-card crop behind it, so the faces agreed by accident; bread does
   not, because the loaves in the library are 601x450 and WordPress will not
   crop a 760x560 out of something smaller, so it serves the original. Left to
   the files, each face takes its own picture's proportions and a row comes out
   stepped by a few pixels. The ratio here is fbh-card's rather than the 4/3
   above, which is what these faces already measure — so this moves bread into
   line and leaves every other card exactly where it was. Scoped to the menu:
   specials cards are .fbh-card too, and theirs are deliberately natural. */
[data-fbh-menu] .fbh-card .fbh-face--photo {
  aspect-ratio: 760 / 560;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}
[data-fbh-menu] .fbh-card .fbh-face--photo img { display: block; }

/* Opt out of that 4:3 for a face that should keep its photograph's own
   proportions: fbh_card_face( [ 'natural' => true ] ) reads the file's width
   and height and passes them in as --fbh-face-ratio, so the box is the shape
   of the picture and object-fit has nothing left to crop. Square specials
   photographs are why this exists — pinned to 4:3 they lost their top and
   bottom. A deck using it wants its photographs to agree on a shape, since
   the box now follows each file; without a ratio it falls back to the 4:3. */
.fbh-feature .fbh-face--natural,
.fbh-rotating .fbh-face--natural,
.fbh-pricelist__aside .fbh-face--natural { aspect-ratio: var(--fbh-face-ratio, 4 / 3); }

/* A photograph carrying a kicker or a title. Picture, scrim and text share a
   single grid cell so the caption sits over the image without taking it out of
   flow; the scrim is the same espresso wash the tiles use, so cream type stays
   readable whatever the photograph is doing underneath. */
.fbh-face--captioned { grid-template-areas: "stack"; place-items: stretch; }
.fbh-face--captioned > * { grid-area: stack; }
.fbh-face--captioned::after {
  content: "";
  grid-area: stack;
  background: linear-gradient(to top, rgb(49 41 35 / 0.86) 0%, rgb(49 41 35 / 0.45) 40%, rgb(49 41 35 / 0.05) 75%);
}
.fbh-face--captioned .fbh-face__text {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: start;
  text-align: left;
  padding: var(--fbh-space-m);
}
.fbh-face--clay  { background: var(--fbh-face-clay); }
.fbh-face--teal  { background: var(--fbh-face-teal); }
.fbh-face--sage  { background: var(--fbh-face-sage); }
.fbh-face--honey { background: var(--fbh-face-honey); }
.fbh-face--ink   { background: var(--fbh-face-ink); }
.fbh-face__text { display: grid; gap: 0.2rem; }
.fbh-face__kicker { font-size: var(--fbh-step--1); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.88; }
.fbh-face__title { font-family: var(--fbh-font-display); font-style: italic; font-size: var(--fbh-step-2); line-height: 1.16; }
.fbh-icon { width: 4.5rem; height: 4.5rem; }
.fbh-face__text + .fbh-icon, .fbh-icon + .fbh-face__text { margin-top: var(--fbh-space-s); }

/* The full-width statement band. One per site, the Molder plate on the home
   page. Laid out as a grid so a single gap sets the rhythm between eyebrow,
   heading, copy and button, instead of four separate margins that have to be
   kept in step. The children's own margins are zeroed for the same reason. */
.fbh-banner {
  display: grid;
  justify-items: center;
  gap: var(--fbh-space-l);
  text-align: center;
}
.fbh-banner > * { margin: 0; max-width: 100%; }
.fbh-banner__actions { display: flex; justify-content: center; }

/* Feature card — image/face above, title and link below */

.fbh-feature { position: relative; display: flex; flex-direction: column; }
/* The body grows to fill whatever height the row settles on and the onward
   link is pushed to the bottom of it, so a deck of cards with titles and
   descriptions of different lengths still lines its calls to action up.
   Without this the link simply followed the text, and four cards gave four
   different link heights. align-self keeps the underline to its own words
   rather than stretching it the width of the card. */
.fbh-feature__body { padding: var(--fbh-space-m) 0 0; display: flex; flex-direction: column; flex: 1; }
.fbh-feature__body > .fbh-link-underline { margin-top: auto; align-self: start; }
.fbh-feature__title { font-size: var(--fbh-step-2); margin-bottom: var(--fbh-space-2xs); }
.fbh-feature__desc { color: var(--fbh-ink-2); font-size: var(--fbh-step--1); margin-bottom: var(--fbh-space-s); }

/* Overlay card — the home page's Breakfast / Lunch / Bakery Case / Catering tiles */

.fbh-tile { position: relative; display: block; overflow: hidden; border-radius: var(--fbh-radius-card); text-decoration: none; color: var(--fbh-on-contrast); }
.fbh-tile img, .fbh-tile .fbh-face { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }
.fbh-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(49 41 35 / 0.86) 0%, rgb(49 41 35 / 0.45) 38%, rgb(49 41 35 / 0.05) 72%);
}
.fbh-tile__body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: var(--fbh-space-m); }
/* Its own colour, not inherited: the tile is an <a>, and without this the
   kicker is the one child that picks up a link hover. */
.fbh-tile__kicker { display: block; font-size: var(--fbh-step--1); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.2rem; color: var(--fbh-on-contrast); }
.fbh-tile__title { display: block; font-size: var(--fbh-step-2); line-height: 1.16; margin: 0 0 0.3rem; color: var(--fbh-on-contrast); }
.fbh-tile__desc { display: block; margin: 0; font-size: var(--fbh-step--1); color: rgb(241 232 221 / 0.9); }
/* The global a:hover (0,1,1) outranks .fbh-tile (0,1,0), so hovering was
   turning the tile's text terracotta — over a dark photograph, which is both
   off-brief and poor contrast. Hold the colour at 0,2,0; the underline on the
   title is the affordance. */
.fbh-tile:hover,
.fbh-tile:focus-visible { color: var(--fbh-on-contrast); }
.fbh-tile:hover .fbh-tile__title { text-decoration: underline; text-underline-offset: 0.2em; }

/* -- Stats, steps, link rows ---------------------------------------------- */

.fbh-stats { display: grid; gap: var(--fbh-space-l) var(--fbh-space-xl); }
/* 1px to match the steps and the link row: three components drawing the same
   rule should draw it at the same weight. Colour unchanged. */
.fbh-stat { border-top: 1px solid var(--fbh-ink); padding-top: var(--fbh-space-s); }
.fbh-stat__value { display: block; font-family: var(--fbh-font-display); font-size: var(--fbh-step-4); line-height: 1.05; }
.fbh-stat__label { display: block; font-size: var(--fbh-step--1); color: var(--fbh-ink-2); letter-spacing: 0.06em; }

/* -- Numbered steps -------------------------------------------------------
   One row, one column per step, each under its own rule. The count comes from
   the template as a count class: auto-fit used to place two 16rem columns
   and leave the third step alone on a second row, which is what knocked the
   rules out of alignment. Below 48rem they stack. */

.fbh-steps { display: grid; gap: var(--fbh-space-l) var(--fbh-space-xl); counter-reset: fbh-step; }

.fbh-step {
  border-top: 1px solid var(--fbh-ink);
  padding-top: var(--fbh-space-s);
  counter-increment: fbh-step;
}

.fbh-step__num {
  display: block;
  font-family: var(--fbh-font-display);
  font-style: italic;
  font-size: var(--fbh-step-2);
  font-weight: 400;
  color: var(--fbh-teal);
  line-height: 1;
}
.fbh-step__num::before { content: "0" counter(fbh-step); }

/* The step description is small text too, so it stays on ink-2 rather than
   borrowing the accent. */

/* Regular weight, not the 600 headings inherit: these are labels in a row,
   not headings competing with the one above them. */
.fbh-step__title {
  font-family: var(--fbh-font-display);
  font-size: var(--fbh-step-1);
  font-weight: 400;
  letter-spacing: 0;
  margin: var(--fbh-space-xs) 0 var(--fbh-space-3xs);
}

.fbh-step p {
  margin: 0;
  font-family: var(--fbh-font-display);
  font-size: var(--fbh-step--1);
  line-height: 1.5;
  color: var(--fbh-ink-2);
}

/* The section head in this one section is set quieter than the site default:
   a sentence-case serif rather than the Charcuterie caps, so the numbers and
   the rules carry the structure instead of the title shouting over them. */

/* Sentence case, not the site-wide caps, and the darker teal: the eyebrow is
   small text, and the band teal only reaches 3.6:1 on the sand band — under
   the 4.5 AA floor. The numerals keep the lighter teal; at display size the
   bar is 3.0 and they clear it everywhere. */
.fbh-stepsection .fbh-eyebrow {
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: none;
  color: var(--fbh-teal-ink);
}

.fbh-stepsection .fbh-sectionhead { max-width: none; margin-bottom: var(--fbh-space-xl); }

.fbh-stepsection .fbh-sectionhead__title {
  font-family: var(--fbh-font-display);
  font-size: var(--fbh-step-4);
  font-weight: 400;
  letter-spacing: -0.012em;
  margin-bottom: 0;
}

.fbh-stepsection .fbh-sectionhead__title em { color: inherit; }

.fbh-linkrow { display: grid; gap: var(--fbh-space-l) var(--fbh-space-xl); }
.fbh-linkrow__item { border-top: 1px solid currentColor; padding-top: var(--fbh-space-s); }
.fbh-linkrow__title { font-size: var(--fbh-step-2); margin-bottom: var(--fbh-space-3xs); }
.fbh-linkrow__item p { margin: 0; font-size: var(--fbh-step--1); opacity: 0.85; }

.fbh-checklist { list-style: none; margin: 0; padding: 0; }
.fbh-checklist li { display: flex; gap: var(--fbh-space-s); padding: var(--fbh-space-xs) 0; border-bottom: 1px solid var(--fbh-line); }
.fbh-checklist li::before { content: "\2014"; opacity: 0.6; }
.fbh-section--contrast .fbh-checklist li,
.fbh-section--photo .fbh-checklist li { border-color: rgb(241 232 221 / 0.18); }

/* -- Quotes ---------------------------------------------------------------- */

.fbh-quotes { display: grid; gap: var(--fbh-space-xl); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.fbh-quote blockquote { margin: 0 0 var(--fbh-space-s); }
.fbh-quote__by { font-size: var(--fbh-step--1); }
.fbh-quote__by strong { font-weight: 600; }

/* -- FAQ ------------------------------------------------------------------- */

.fbh-faq__item { border-bottom: 1px solid var(--fbh-line); }
.fbh-faq__item:first-child { border-top: 1px solid var(--fbh-line); }
.fbh-faq__q {
  display: flex;
  gap: var(--fbh-space-m);
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  padding: var(--fbh-space-m) 0;
  border: 0;
  background: none;
  font-family: var(--fbh-font-display);
  font-size: var(--fbh-step-1);
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.fbh-faq__sign { flex: 0 0 auto; font-size: var(--fbh-step-1); color: var(--fbh-brand); line-height: 1; }
.fbh-faq__q[aria-expanded="true"] .fbh-faq__sign { transform: rotate(45deg); }
.fbh-faq__a { padding: 0 0 var(--fbh-space-m); max-width: var(--fbh-measure); color: var(--fbh-ink-2); }
.fbh-faq__a[hidden] { display: none; }

/* -- Forms ----------------------------------------------------------------- */

.fbh-form {
  padding: var(--fbh-space-l);
  background: var(--fbh-surface-2);
  border: 1px solid var(--fbh-line);
  border-radius: var(--fbh-radius-card);
  color: var(--fbh-ink);
}
/* A form hosted elsewhere. The panel keeps its frame so the embed sits in the
   same card the theme's own forms do, with less padding because the service
   draws its own margins inside the frame. The height is fixed rather than
   fluid: an iframe cannot be measured across origins, so there is nothing to
   size it from, and a fixed height at least means no layout shift when it
   loads. --fbh-embed-height is there to tune it per page. */
.fbh-form--embed { padding: var(--fbh-space-s); }
.fbh-embed {
  display: block;
  width: 100%;
  height: var(--fbh-embed-height, 1000px);
  margin: 0 auto;
  border: 0;
}

.fbh-form__title { font-size: var(--fbh-step-2); }
.fbh-form__intro { color: var(--fbh-ink-2); }
.fbh-form__grid { display: grid; gap: var(--fbh-space-s); grid-template-columns: 1fr; }
@media (min-width: 40rem) {
  .fbh-form__grid { grid-template-columns: 1fr 1fr; }
  .fbh-field { grid-column: 1 / -1; }
  .fbh-field--half { grid-column: span 1; }
  .fbh-field--full { grid-column: 1 / -1; }
}
.fbh-field__label { display: block; margin-bottom: 0.3rem; font-size: var(--fbh-step--1); font-weight: 600; }
.fbh-req { color: var(--fbh-brand); margin-left: 0.15em; }
.fbh-field__help { margin: 0.3rem 0 0; font-size: var(--fbh-step--1); color: var(--fbh-ink-2); }

.fbh-form input[type="text"],
.fbh-form input[type="email"],
.fbh-form input[type="tel"],
.fbh-form input[type="url"],
.fbh-form input[type="date"],
.fbh-form input[type="number"],
.fbh-form input[type="search"],
.fbh-form select,
.fbh-form textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  background: var(--fbh-surface);
  border: 1px solid var(--fbh-line-strong);
  border-radius: var(--fbh-radius);
  color: var(--fbh-ink);
}
/* The browser's own arrow was sitting hard against the right border, because
   the rule above styles the box but leaves appearance:auto, and a native
   select draws its arrow where it likes regardless of the padding. Replaced
   with the theme's chevron and real room to the right of the text. The ink is
   baked into the data URI, which cannot read currentColor, and that is safe
   here: --fbh-ink is #312923 in all three palettes, and this control always
   sits on the light form panel. */
.fbh-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23312923'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206%206-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.75rem;
}
/* Edge and IE draw a second arrow of their own on top of ours. */
.fbh-form select::-ms-expand { display: none; }

.fbh-form textarea { min-height: 8rem; resize: vertical; }
.fbh-form input::placeholder, .fbh-form textarea::placeholder { color: var(--fbh-ink-3); }
.fbh-form__submit { margin-top: var(--fbh-space-m); }
.fbh-form__note { margin-top: var(--fbh-space-s); font-size: var(--fbh-step--1); color: var(--fbh-ink-2); }

.fbh-check { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.2rem 0; font-size: var(--fbh-step--1); }
.fbh-checkset { border: 0; margin: 0; padding: 0; }
.fbh-checkset .fbh-check { display: inline-flex; margin-right: var(--fbh-space-m); }

.fbh-topics { border: 0; margin: 0 0 var(--fbh-space-m); padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fbh-topics legend { width: 100%; }
.fbh-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border: 1px solid var(--fbh-line-strong);
  border-radius: var(--fbh-radius-pill);
  font-size: var(--fbh-step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.fbh-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fbh-chip:has(input:checked) { background: var(--fbh-ink); color: var(--fbh-ground); border-color: var(--fbh-ink); }
.fbh-chip:has(input:focus-visible) { outline: 3px solid var(--fbh-focus); outline-offset: 2px; }

.fbh-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }

.fbh-notice { padding: var(--fbh-space-s) var(--fbh-space-m); border-radius: var(--fbh-radius); font-size: var(--fbh-step--1); }
.fbh-notice--ok { background: var(--fbh-ground-2); border-left: 3px solid var(--fbh-accent-2); }
.fbh-notice--error { background: var(--fbh-ground-2); border-left: 3px solid var(--fbh-brand); }

/* -- Newsletter + footer --------------------------------------------------- */

.fbh-newsletter { display: grid; gap: var(--fbh-space-m); align-items: center; }
/* The form column is given a width rather than left on auto. On auto the
   track is sized from the form's own max-content, which a wrapping flex row
   reports as its already-wrapped width, so the column came out just too
   narrow for the field and its button to share a line and the button dropped
   underneath. A real range breaks that circularity. */
@media (min-width: 52rem) {
  .fbh-newsletter { grid-template-columns: 1fr minmax(18rem, 26rem); }
}
.fbh-newsletter__title { font-size: var(--fbh-step-3); margin-bottom: var(--fbh-space-3xs); }
.fbh-newsletter p { margin: 0; font-size: var(--fbh-step--1); opacity: 0.86; }
.fbh-newsletter .fbh-form { padding: 0; background: none; border: 0; }
.fbh-newsletter .fbh-form__body { display: flex; flex-wrap: wrap; gap: var(--fbh-space-2xs); align-items: stretch; }
@media (max-width: 30rem) { .fbh-newsletter .fbh-form__body .fbh-form__submit { width: 100%; } }
/* 10rem, and allowed to shrink: the field gives way so the button always has
   room beside it, then grows into whatever is left. */
.fbh-newsletter .fbh-field { flex: 1 1 10rem; min-width: 0; }
.fbh-newsletter .fbh-field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* Cream, not the tan accent. The label is small uppercase text, so it owes
   4.5:1, and espresso on --fbh-accent-soft measured 3.81. Cream carries the
   same espresso label at 11.77 and reads as the brightest thing in the
   footer, which is what a sign-up button should be. Hover drops to the sand
   rung, still 8.90, so the state change is visible without going dim. */
.fbh-newsletter .fbh-form__submit {
  margin: 0;
  --btn-bg: var(--fbh-on-contrast);
  --btn-fg: var(--fbh-contrast);
  --btn-bd: var(--fbh-on-contrast);
}
.fbh-newsletter .fbh-form__submit:hover,
.fbh-newsletter .fbh-form__submit:focus-visible {
  --btn-bg: var(--fbh-ground-warm);
  --btn-bd: var(--fbh-ground-warm);
  --btn-fg: var(--fbh-contrast);
  /* The colour has to be set outright, not only through --btn-fg. The button
     carries fbh-btn--primary, whose :hover sets `color` directly, and a real
     declaration beats .fbh-btn's `color: var(--btn-fg)` however the variable
     is redefined. That left the cream label from the primary hover sitting on
     this sand ground at 1.32:1. Espresso on sand is 8.90. */
  color: var(--fbh-contrast);
}

/* The input sits on the dark ground, so it keeps its own light field. */
.fbh-newsletter input[type="email"],
.fbh-newsletter input[type="search"],
.fbh-newsletter input[type="text"] {
  background: var(--fbh-surface);
  border-color: transparent;
}

.fbh-footer { background: var(--fbh-contrast); color: var(--fbh-on-contrast); padding-block: var(--fbh-space-2xl) var(--fbh-space-m); }
.fbh-footer a { text-decoration: none; color: var(--fbh-contrast-muted); }
.fbh-footer a:hover { color: var(--fbh-on-contrast); text-decoration: underline; }
.fbh-footer__top { padding-bottom: var(--fbh-space-xl); border-bottom: 1px solid rgb(241 232 221 / 0.14); margin-bottom: var(--fbh-space-xl); }
.fbh-footer__cols { display: grid; gap: var(--fbh-space-xl) var(--fbh-space-l); grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
@media (min-width: 64rem) {
  /* Five equal columns, as in the design — the brand column needs no more
     room than a list of links. */
  .fbh-footer__cols { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* No filter here. `brightness(0) invert(1)` turns any logo that is not a flat
   silhouette into a solid white shape — the Foundry badge became a white disc.
   The mark carries its own light ground, so it reads on the dark footer as-is. */
.fbh-footer__brand img { max-height: 5.5rem; width: auto; }
.fbh-footer__address { font-style: normal; font-size: var(--fbh-step--1); line-height: 1.7; color: var(--fbh-contrast-muted); margin-top: var(--fbh-space-m); }

/* The app download, under the address. Footer links are set without
   underlines, so this one carries its own: it is the only thing in that
   column asking to be clicked, and it should look like it. Colour comes from
   .fbh-footer a, which already covers the dark and light footers. */
.fbh-footer__app { margin: var(--fbh-space-s) 0 0; font-size: var(--fbh-step--1); }
.fbh-footer__app a { text-decoration: underline; text-underline-offset: 0.25em; }
.fbh-footer__heading {
  font-family: var(--fbh-font-text);
  font-size: var(--fbh-step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fbh-accent-soft);
  margin-bottom: var(--fbh-space-s);
  text-wrap: balance;
}
.fbh-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; font-size: var(--fbh-step--1); }
.fbh-footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--fbh-space-s) var(--fbh-space-m);
  justify-content: space-between;
  margin-top: var(--fbh-space-xl);
  padding-top: var(--fbh-space-m);
  border-top: 1px solid rgb(241 232 221 / 0.14);
  font-size: var(--fbh-step--1);
  color: var(--fbh-contrast-muted);
}
.fbh-footer__legal { display: flex; flex-wrap: wrap; gap: var(--fbh-space-m); list-style: none; margin: 0; padding: 0; }


/* -- Light footer / top bar ------------------------------------------------
   Opt-in alternative for a page with no dark band anywhere. Text drops to the
   ink colour so contrast is unchanged. */

.fbh-footer-light .fbh-topbar {
  background: var(--fbh-ground-2);
  color: var(--fbh-ink-2);
  border-bottom: 1px solid var(--fbh-line);
}
.fbh-footer-light .fbh-topbar a:hover { color: var(--fbh-ink); }

.fbh-footer-light .fbh-footer {
  background: var(--fbh-ground-warm);
  color: var(--fbh-ink);
  border-top: 1px solid var(--fbh-line);
}
.fbh-footer-light .fbh-footer a { color: var(--fbh-ink-2); }
.fbh-footer-light .fbh-footer a:hover { color: var(--fbh-ink); }
.fbh-footer-light .fbh-footer__heading { color: var(--fbh-brand); }
.fbh-footer-light .fbh-newsletter .fbh-form__submit {
  --btn-bg: var(--fbh-cta);
  --btn-fg: var(--fbh-on-cta);
  --btn-bd: var(--fbh-cta);
}
.fbh-footer-light .fbh-newsletter input { border-color: var(--fbh-line-strong); }
.fbh-footer-light .fbh-footer__address,
.fbh-footer-light .fbh-footer__bottom { color: var(--fbh-ink-2); }
.fbh-footer-light .fbh-footer__top,
.fbh-footer-light .fbh-footer__bottom { border-color: var(--fbh-line); }
.fbh-footer-light .fbh-newsletter p { opacity: 1; color: var(--fbh-ink-2); }

/* -- Script accent --------------------------------------------------------
   "Baked with Love", "Made Fresh Daily" — a few words, never a sentence, and
   never below about 1.5rem where the stroke thins out to nothing. The face
   carries long entry swashes that sit outside the glyph box, so the inline
   padding stops the first letter being clipped by an overflow: hidden parent
   or the edge of a tinted band. Line height is loosened for the descenders. */

.fbh-script {
  font-family: var(--fbh-font-script);
  font-weight: 400;
  font-style: normal;
  font-size: var(--fbh-step-3);
  line-height: 1.45;
  letter-spacing: 0.01em;
  padding-inline: 0.12em 0.06em;
  color: var(--fbh-brand);
  text-wrap: balance;
}

.fbh-script--sm { font-size: var(--fbh-step-1); }
.fbh-script--lg { font-size: var(--fbh-step-4); }
.fbh-script--ink { color: inherit; }

/* The face has no bold and no italic: asking for either gets a synthesised
   slant or smear that wrecks the joins. */
.fbh-script b, .fbh-script strong, .fbh-script i, .fbh-script em {
  font-weight: 400;
  font-style: normal;
}

/* -- Split display hero ----------------------------------------------------
   The 404 Annex (page 44): copy on the left, a collage on the right — one
   wide frame across the top with two beneath it. Stacks below 64rem. */

.fbh-herosplit { display: grid; gap: var(--fbh-space-l); align-items: center; }

.fbh-herosplit__media {
  display: grid;
  gap: var(--fbh-space-s);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* The first frame spans both columns: in the design it is the wide room shot
   and the two food pictures sit under it. */
.fbh-herosplit__media > :first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.fbh-herosplit__media > :nth-child(n + 2) { aspect-ratio: 4 / 3; }

@media (min-width: 64rem) {
  .fbh-herosplit {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--fbh-space-xl);
  }
}

/* On the dark band the secondary button needs the cream outline, and the
   eyebrow its muted cream rather than the brand terracotta. */
.fbh-hero--split.fbh-section--contrast .fbh-hero__lede { color: var(--fbh-contrast-muted); }

/* -- Icon cards ------------------------------------------------------------
   A row of white cards, each led by a line drawing rather than a photograph
   or a colour panel: used where a section is a short list of what a page
   offers and a picture would be filler. A rule of colour across the top is
   what tells one card from the next.

   The radius is larger than --fbh-radius-card on purpose. These sit as a
   group on a tinted ground, and at 3px they read as a table of boxes rather
   than as cards; it is set here as a variable so the whole row moves
   together. */

.fbh-icongrid {
  --fbh-iconcard-radius: 10px;
  display: grid;
  gap: var(--fbh-space-m);
  margin-top: var(--fbh-space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

/* Past four across the cards get too narrow for a two-line description, so
   the wider decks wrap to a second row instead of squeezing. */
.fbh-icongrid--5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.fbh-iconcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--fbh-space-2xs);
  padding: var(--fbh-space-l) var(--fbh-space-m) var(--fbh-space-m);
  border: 1px solid var(--fbh-line);
  border-radius: var(--fbh-iconcard-radius);
  background: var(--fbh-surface);
}

/* The rule of colour. A pseudo-element rather than a border-top, so it can be
   inset to the card's own radius and not fight the border's corners. */
.fbh-iconcard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: var(--fbh-iconcard-radius) var(--fbh-iconcard-radius) 0 0;
  background: var(--fbh-iconcard-accent, var(--fbh-face-clay));
}

.fbh-iconcard--brand { --fbh-iconcard-accent: var(--fbh-brand); }
.fbh-iconcard--clay  { --fbh-iconcard-accent: var(--fbh-face-clay); }
.fbh-iconcard--teal  { --fbh-iconcard-accent: var(--fbh-face-teal); }
.fbh-iconcard--sage  { --fbh-iconcard-accent: var(--fbh-face-sage); }
.fbh-iconcard--honey { --fbh-iconcard-accent: var(--fbh-face-honey); }
.fbh-iconcard--ink   { --fbh-iconcard-accent: var(--fbh-face-ink); }

/* The drawing sits at the text's own colour and a little muted, so it reads
   as a mark against the title rather than competing with it. */
.fbh-iconcard__icon {
  display: block;
  color: var(--fbh-ink-2);
}

.fbh-iconcard__icon .fbh-icon {
  width: 3rem;
  height: 3rem;
}

.fbh-iconcard__title {
  margin: var(--fbh-space-2xs) 0 0;
  font-size: var(--fbh-step-1);
  line-height: 1.2;
}

.fbh-iconcard__desc {
  margin: 0;
  color: var(--fbh-ink-2);
  font-size: var(--fbh-step--1);
}

/* The link is pinned to the bottom so a row of cards with descriptions of
   different lengths still lines its links up. */
.fbh-iconcard__link {
  margin-top: auto;
  padding-top: var(--fbh-space-s);
  color: var(--fbh-cta);
  font-weight: 600;
  font-size: var(--fbh-step--1);
  text-decoration: none;
}

.fbh-iconcard__link:hover,
.fbh-iconcard__link:focus-visible { color: var(--fbh-brand); text-decoration: underline; }

/* The arrow steps forward on hover. Held still for anyone who has asked for
   less motion. */
.fbh-iconcard__arrow {
  display: inline-block;
  margin-left: 0.25em;
  transition: transform 0.15s ease;
}

.fbh-iconcard__link:hover .fbh-iconcard__arrow { transform: translateX(0.15em); }

@media (prefers-reduced-motion: reduce) {
  .fbh-iconcard__arrow { transition: none; }
  .fbh-iconcard__link:hover .fbh-iconcard__arrow { transform: none; }
}

/* The bare variant: no card, no icon, a rule above each column. Used for a
   strip of short reassurances under a hero, where four boxed cards would be
   four things to click and these are four things to know. The rule sits above
   the title rather than on a card's edge, so it reads as a heading rule. */
.fbh-icongrid--rules { gap: var(--fbh-space-m) var(--fbh-space-l); }

.fbh-icongrid--rules .fbh-iconcard {
  padding: var(--fbh-space-s) 0 0;
  border: 0;
  border-top: 2px solid var(--fbh-iconcard-accent, var(--fbh-face-clay));
  border-radius: 0;
  background: none;
}

/* The card variant draws its rule with ::before so it can follow the rounded
   corners; without the card there is nothing to round, and the border above
   does the job on its own. */
.fbh-icongrid--rules .fbh-iconcard::before { content: none; }

/* With a mosaic the heading sits in the left half of a split. Its own head
   block then has no business holding the measure it keeps when it runs full
   width, and the margin under it belongs to the split's gap. */
.fbh-icongrid__head { margin-bottom: var(--fbh-space-l); align-items: center; }
.fbh-icongrid__head .fbh-sectionhead { max-width: none; margin-bottom: var(--fbh-space-m); }

.fbh-icongrid__note {
  margin: var(--fbh-space-m) 0 0;
  color: var(--fbh-ink-2);
  font-size: var(--fbh-step--1);
}
