/* ============================================================
   Kin & Folk chrome — ported VERBATIM from the live site's snippets
   (CORE #6 + header #7 + footer #8). Do not restyle: the client
   approved this design. Tokens live in tokens.css (brand-mapped).
   ============================================================ */
.kf-light { background: var(--kf-lt-bg); color: var(--kf-lt-text); }
.kf-light .kf-eyebrow { color: var(--kf-lt-accent); }
.kf-light .kf-mono { color: inherit; }
.kf-light .kf-btn { border-color: var(--kf-lt-text); color: var(--kf-lt-text); }
.kf-light .kf-btn::before { background: var(--kf-lt-text); }
.kf-light .kf-btn:hover { color: var(--kf-lt-bg); border-color: var(--kf-lt-text); }
.kf-light .kf-btn--primary { background: var(--kf-lt-text); color: var(--kf-lt-bg); border-color: var(--kf-lt-text); }
.kf-light .kf-btn--primary::before { background: var(--kf-lt-accent); }
.kf-light .kf-btn--primary:hover { color: var(--kf-lt-bg); border-color: var(--kf-lt-accent); }
.kf-light .kf-btn:focus-visible { outline-color: var(--kf-lt-accent); }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--kf-header-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
html, body { overscroll-behavior-y: none; }

.kf-nav, .kf-announce {
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

body.home .elementor-section-boxed > .elementor-container { max-width: 100% !important; }
body.home { overflow-x: hidden !important; }
.kf-home--dark { background: var(--kf-espresso); color: var(--kf-cream); font-family: var(--kf-font-body); }

/* ===== Shared helpers ===== */
.kf-eyebrow {
  font: 500 var(--kf-fs-eyebrow)/1 var(--kf-font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--kf-crema);
  display: inline-block;
}
.kf-mono { font-family: var(--kf-font-mono); }
.kf-wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 4rem); }

.kf-btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 1.05em 1.8em; position: relative; overflow: hidden;
  font: 500 0.78rem/1 var(--kf-font-body);
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--kf-cream); color: var(--kf-cream);
  background: transparent; isolation: isolate;
  text-decoration: none; cursor: pointer;
  border-radius: 8px;
  transition: color 0.4s cubic-bezier(0.77,0,0.175,1), border-color 0.4s;
}
.kf-btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--kf-crema); transform: translateX(-101%);
  transition: transform 0.45s cubic-bezier(0.77,0,0.175,1);
}
.kf-btn:hover { color: var(--kf-espresso); border-color: var(--kf-crema); }
.kf-btn:hover::before { transform: translateX(0); }
.kf-btn--primary { background: var(--kf-cream); color: var(--kf-espresso); border-color: var(--kf-cream); }
.kf-btn--primary::before { background: var(--kf-crema); }
.kf-btn--primary:hover { color: var(--kf-espresso); border-color: var(--kf-crema); }
.kf-btn .kf-arrow { transition: transform 0.4s ease; }
.kf-btn:hover .kf-arrow { transform: translateX(4px); }
.kf-btn:focus-visible { outline: 2px solid var(--kf-crema); outline-offset: 3px; }

.kf-grain {
  position: fixed; inset: 0; z-index: 9990;
  pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Custom cursor CSS removed REV iii (2026-05). Native cursor restored.
   See kf-header.php for markup removal notes. */

/* v2.1.7 static-render safety net: visible by default; the fade/mask
   choreography only arms once kf-core.js adds html.hmg-anim (it does so
   before the observers start). No JS — or the builder's editor preview
   iframe, which loads this sheet without theme JS — shows everything. */
[data-kf-fade] { opacity: 1; transform: none; }
html.hmg-anim [data-kf-fade] {
  opacity: 0; transform: translateY(24px);
  /* v2.3.0: shared curve + duration tokens. Every reveal on the site
     now decelerates on the same easing, so the page has one gait
     instead of four hand-written beziers. */
  transition:
    opacity   var(--kf-t-reveal, 900ms) var(--kf-out-expo, cubic-bezier(0.16,1,0.30,1)) var(--kf-fade-delay, 0ms),
    transform var(--kf-t-reveal, 900ms) var(--kf-out-expo, cubic-bezier(0.16,1,0.30,1)) var(--kf-fade-delay, 0ms);
}
html.hmg-anim [data-kf-fade][data-visible="1"] { opacity: 1; transform: none; }

/* v2.3.0 — AUTOMATIC STAGGER.
 * A grid whose items all arrive on the same frame reads as a state
 * change, not as an entrance. Put data-kf-stagger on any container and
 * the runtime indexes its children into --kf-stagger-i; each one then
 * waits 70ms longer than the one before it, capped by the runtime at 8
 * steps so a long list never crawls in. Anything with its own inline
 * transition-delay is untouched. */
html.hmg-anim [data-kf-stagger] > [data-kf-fade] {
  --kf-fade-delay: calc(var(--kf-stagger-i, 0) * 70ms);
}

[data-kf-mask] { display: block; overflow: hidden; }
[data-kf-mask] > span { display: block; }
html.hmg-anim [data-kf-mask] > span {
  transform: translateY(110%);
  transition: transform var(--kf-t-reveal, 950ms) var(--kf-out-expo, cubic-bezier(0.16,1,0.30,1)) var(--kf-fade-delay, 0ms);
  will-change: transform;
}
html.hmg-anim [data-kf-mask][data-visible="1"] > span { transform: none; }

.kf-beans { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.kf-beans[data-on-light="1"] { mix-blend-mode: multiply; }
.kf-bean { position: absolute; will-change: transform; backface-visibility: hidden; }
.kf-bean svg { width: 100%; height: 100%; display: block; }
@media (max-width: 900px), (prefers-reduced-motion: reduce) { .kf-beans { display: none; } }

/* v2.3.0 — the hover-to-play tile is GONE.
 * It shipped a red "recording" dot and a "Hover to play" label over what
 * are premium still photographs (and over one whose film 404s), so it
 * advertised an interaction the page could not honour. The markup, the
 * badge, the still/video cross-fade and the JS handlers were all removed
 * together; this block is deleted rather than left dead so nothing can
 * reintroduce the affordance by reusing the class. */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================================
   ASTRA-DEFEATING HEADING RESET — SINGLE SOURCE OF TRUTH
   -------------------------------------------------------------------------
   Specificity strategy:
   - Page-scope class (.kf-home etc.) + element + utility = (0,2,1)
     beats Astra's body/.entry-content/h2 = (0,1,1)
   - !important reserved for the two properties Astra Customizer
     typography overrides most aggressively: word-spacing and
     text-align/text-align-last
   - Italic preserved via .kf-display-italic on inner span
   ========================================================================= */

/* Display font + sizing — natural cascade beats Astra */
.kf-home .kf-display,
.kf-home h1.kf-display,
.kf-home h2.kf-display,
.kf-home h3.kf-display,
.kf-home .kf-heading,
.kf-pdp .kf-display,
.kf-pdp h1.kf-display,
.kf-pdp h2.kf-display,
.kf-pdp h3.kf-display,
.kf-pdp .kf-heading,
.kf-archive .kf-display,
.kf-archive h1.kf-display,
.kf-archive h2.kf-display,
.kf-archive h3.kf-display,
.kf-archive .kf-heading,
.kf-cat .kf-display,
.kf-cat h1.kf-display,
.kf-cat h2.kf-display,
.kf-cat h3.kf-display,
.kf-cat .kf-heading,
.kf-cstory .kf-display,
.kf-cstory h1.kf-display,
.kf-cstory h2.kf-display,
.kf-cstory h3.kf-display,
.kf-cstory .kf-heading {
  font-family: var(--kf-font-display);
  /* v2.5.0 — tuned for Darker Grotesque. Playfair is a high-contrast serif
     that reads fine at 400; Darker Grotesque at 400 is a hairline, so 700
     is the working display weight (the hero line goes to 900 below). The
     face is tall and condensed, so the leading tightens from 1.06 and the
     tracking relaxes from -0.015em: condensed letterforms already sit
     close, and the old negative tracking collided them. */
  /* v2.8.0: 300 -> 400. Client feedback — the light cut was used too heavily
     and every heading read as one uniform hairline. This is the page-scoped
     block at (0,2,0), so it is the rule that actually decides the weight;
     raising only the (0,1,0) base left everything on 300. */
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.0;
  font-style: normal;
}

/* Second line of a two-line heading ("A cup of coffee, / a slice of home.")
   v2.5.0 — DARKER GROTESQUE HAS NO ITALIC. Playfair shipped a true italic
   and this rule leaned on it. Asking for font-style:italic now would make
   the browser synthesise a slanted clone, which on a condensed grotesque
   looks like a rendering fault rather than a design choice. The contrast
   the two-line lockup depends on is carried by WEIGHT instead — 500
   against the 700 base — which keeps the rhythm without faking a cut the
   family does not have. */
.kf-home .kf-display-italic,
.kf-pdp .kf-display-italic,
.kf-archive .kf-display-italic,
.kf-cat .kf-display-italic,
.kf-cstory .kf-display-italic {
  font-family: var(--kf-font-display);
  font-style: normal;
  /* v2.8.0: 400 -> 600. This is the SECOND line of every two-line lockup, and
     against the new 400 base it is the whole light/bold pairing the client
     asked for — 400 vs 400 was no contrast at all. */
  font-weight: 600;
}

/* Word-spacing + text-justify nuke — !important here because Astra
   injects these at body level via Customizer typography.
   REV x.4 (2026-05): REMOVED text-align: left !important from this block.
   That single rule was making it impossible for individual pages to set
   their own heading alignment (e.g. centered banners in storytelling
   layouts). Now Core only kills word-spacing and text-justify; each
   page is free to set text-align via normal cascade.

   REV x.6 (2026-05): RESTORED text-align: left (no !important).
   Removing it entirely caused homepage headings to inherit Astra's
   default alignment (which may be center for some heading levels via
   the customizer). At normal priority, browser cascade lets pages
   with more-specific selectors win — the banner's
   .kf-cstory__banner-text { text-align: center } correctly overrides
   .kf-cstory .kf-display { text-align: left } via specificity. */
.kf-home .kf-display,
.kf-home .kf-display *,
.kf-home .kf-heading,
.kf-home .kf-heading *,
.kf-home h1.kf-display,
.kf-home h2.kf-display,
.kf-home h3.kf-display,
.kf-pdp .kf-display,
.kf-pdp .kf-display *,
.kf-pdp .kf-heading,
.kf-pdp .kf-heading *,
.kf-pdp h1.kf-display,
.kf-pdp h2.kf-display,
.kf-pdp h3.kf-display,
.kf-archive .kf-display,
.kf-archive .kf-display *,
.kf-archive .kf-heading,
.kf-archive .kf-heading *,
.kf-cat .kf-display,
.kf-cat .kf-display *,
.kf-cat .kf-heading,
.kf-cat .kf-heading *,
.kf-cstory .kf-display,
.kf-cstory .kf-display *,
.kf-cstory .kf-heading,
.kf-cstory .kf-heading *,
.kf-cstory h1.kf-display,
.kf-cstory h2.kf-display,
.kf-cstory h3.kf-display {
  text-align: left;
  word-spacing: normal !important;
  text-justify: auto !important;
}

/* Multi-line heading utility: each line is a block.
   Simple, no flex, no width:max-content, no white-space hacks. */
.kf-home .kf-heading .kf-line,
.kf-pdp .kf-heading .kf-line,
.kf-archive .kf-heading .kf-line,
.kf-cat .kf-heading .kf-line,
.kf-cstory .kf-heading .kf-line {
  display: block;
}

/* Exceptions — journey words on the right side of the sticky comp
   are intentionally right-aligned. These selectors are more specific
   than the catch-all above so they win naturally. */
.kf-home .kf-journey__word[data-kf-side="right"],
.kf-home .kf-journey__eyebrow[data-kf-side="right"],
.kf-home .kf-journey__desc > div[data-kf-side="right"] {
  text-align: right !important;
}
@media (max-width: 900px) {
  .kf-home .kf-journey__word[data-kf-side="right"],
  .kf-home .kf-journey__eyebrow[data-kf-side="right"],
  .kf-home .kf-journey__desc > div[data-kf-side="right"] {
    text-align: left !important;
  }
}

/* =========================================================================
   REGULAR WP PAGES — NO GLOBAL HEADING OVERRIDES
   -------------------------------------------------------------------------
   REV vi (2026-05): The previous kf-styled-page heading rules block was
   removed. It was applying brand typography to every h1/h2/h3 across every
   WP page globally, which conflicted with per-page scoped styles in the
   HTML-converted Locations and About pages.

   Going forward: pages that need brand typography ship their own scoped
   styles inside an HTML widget (.kfl-, .kfa- prefixed rules). Core stays
   out of regular page typography entirely. This is the user's standing
   instruction: Core should not reach into individual pages.

   The kf-styled-page body class is still added in functions.php for now
   (harmless without these rules), but the class is no longer doing
   anything. It can be removed from functions.php in a future pass.
   ========================================================================= */

/* =========================================================================
   BLINDS PLUGIN DEFEATER (CSS layer)
   -------------------------------------------------------------------------
   Backup defense against the unidentified text-animation plugin that
   wraps every character in nested spans (.blinds-text-wrapper /
   .blinds-word / .char-clip). The JS defender in Core JS strips those
   wrappers on the way in, but if any slip through (race conditions,
   late-firing plugins), these CSS rules neutralise them so the heading
   still renders correctly.

   Strategy:
   - .blinds-text-wrapper inside .kf-heading: flatten to inline so each
     character flows naturally and word-spacing doesn't blow up.
   - .blinds-word: stop forcing block/flex layout.
   - .char-clip and its children: strip the staggered transforms and
     reveal the character immediately, no animation.
   - Critically, force the parent .kf-heading back to normal text flow
     so it doesn't matter how the inner DOM was scrambled.
   ========================================================================= */
.kf-heading .blinds-text-wrapper,
.kf-heading .blinds-word,
.kf-heading .char-clip {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.kf-heading .char-clip > span {
  display: inline !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}
/* The parent heading must allow normal flow even if it picked up
   .blinds-ready / .blinds-active. */
.kf-heading.blinds-ready,
.kf-heading.blinds-active {
  display: block !important;
  white-space: normal !important;
}
/* Each .kf-line is still a block — restore that even after plugin meddling */
.kf-heading .kf-line {
  display: block !important;
}
/* =========================================================================
   LAYER MAP (REV vi)
   -------------------------------------------------------------------------
   nav            50
   announce       60
   scrim          90
   drawer         95
   search panel   96
   bag panel      97

   The drawer, the search panel and the bag panel are all top-level siblings
   of .kf-nav, not children of it. .kf-nav is fixed with a z-index, so it
   forms a stacking context, and anything inside it can never rise above 50
   relative to the page no matter what z-index it is given. That is the bug
   the drawer had. Do not move any of the three back inside the header.
   ========================================================================= */

/* Announcement marquee.
   v2.7.0: NORMAL FLOW, not fixed. The carousel must scroll away with the
   page — it is explicitly not part of the sticky chrome. `static` (rather
   than relative) is deliberate: it makes every inherited `top` offset below
   a no-op, so the admin-bar rules cannot shunt it down the page. The fixed
   nav (z-index 50) still paints above it while they briefly overlap during
   the dock. */
.kf-announce {
  position: static;
  height: 40px;
  /* v2.6.0: the top bar stays BLACK. It was var(--kf-espresso), which now
     resolves to the terracotta accent — the strip is chrome, not an accent. */
  /* v2.9.0 — client: a single SOLID BLACK bar. --kf-ink is a warm near-black
     (#0A0806) and the hairline added a tonal edge; both are gone so there is
     no gradient, glow or shading of any kind.
     v2.17.0 — it computed as pure #000 and STILL looked graded, because
     .kf-grain (fixed, inset 0, z-index 9990, opacity .05, mix-blend-mode:
     overlay) paints its noise across the whole viewport, and an `overlay`
     blend lightens pure black unevenly. Lifting the bar above the grain is
     what actually makes it solid; the grain still covers everything else. */
  background: #000;
  position: relative;
  z-index: 9991;
  color: var(--kf-cream);
  border-bottom: 0;
  overflow: hidden;
  display: flex; align-items: center;
}

.kf-announce__track {
  display: flex; white-space: nowrap;
  font: 400 12px/1 var(--kf-font-body);
  letter-spacing: 0.2em; text-transform: uppercase;
  animation: kf-marquee 60s linear infinite;
  will-change: transform;
}
.kf-announce__track span { padding: 0 2.5rem; opacity: 0.85; }
/* Gold on the black strip — 8.0:1, and the crema accent the brand already
   uses elsewhere. (Was forced to cream while the strip was terracotta, where
   crema only made 3.1:1.) */
.kf-announce__track em { color: var(--kf-crema); font-style: normal; margin: 0 0.2em; }
.kf-announce:hover .kf-announce__track { animation-play-state: paused; }
@keyframes kf-marquee { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }
@media (prefers-reduced-motion: reduce) { .kf-announce__track { animation: none !important; } }

/* =========================================================================
   MAIN NAVIGATION — v2.7.0 TRANSPARENT DOCKING HEADER
   -------------------------------------------------------------------------
   The header is transparent in EVERY state: no background, border, shadow or
   blur, before/during/after scroll. Two consequences drive everything below.

   1. DOCKING. The announcement bar is in normal flow and scrolls away; the
      nav is fixed and rides up with it until it reaches the top, then stays.
      Driven by --kf-nav-dock (kf-core.js writes 0 → the nav's own top offset)
      applied as a TRANSFORM, not `top` — transform composites on the GPU, so
      tracking scroll 1:1 costs no layout. There is deliberately no transition
      on it: the movement IS the scroll, so easing it would make it lag.

   2. MARK COLOUR. With no backing surface, cream marks are only legible over
      a dark hero. --kf-nav-ink is cream at rest on a hero page, and ink
      everywhere else: once docked (data-scrolled), or from the start on pages
      that open on light content (body.kf-nav-on-light, set from the same
      predicate that used to draw the opaque strip).
   ========================================================================= */
.kf-nav {
  position: fixed;
  top: 44px;
  left: 0; right: 0; z-index: 50;
  /* v2.1.3: 64px, tightened from 80px. 64px keeps a comfortable 18px on each
     side of the content. kf-core.js measures --kf-header-h from this, so page
     clearance follows automatically (no other value to change). */
  height: 64px;
  display: flex; align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;

  --kf-nav-ink: var(--kf-cream);
  transform: translate3d(0, calc(-1 * var(--kf-nav-dock, 0px)), 0);
  will-change: transform;
}
body.admin-bar .kf-nav { top: 76px; }
@media (max-width: 782px) {
  body.admin-bar .kf-nav { top: 90px; }
}

/* Mark colour follows WHAT IS UNDER THE HEADER, not the scroll position.
   NO-JS BASELINE: ink on any page that does not open with a hero — the same
   server-side predicate that used to decide whether to draw the opaque strip. */
body.kf-nav-on-light .kf-nav {
  --kf-nav-ink: var(--kf-heading);
}
/* WITH JS: kf-core.js watches the dark sections and writes data-over, which
   supersedes the baseline above (equal specificity, declared later).

   This must NOT key off data-scrolled. A 100vh hero is still behind the
   header hundreds of pixels down, so "scrolled ⇒ ink" painted ink marks onto
   the dark hero and the wordmark vanished completely. */
/* v2.9.0 — client: header content is WHITE at the top of the page, not the
   slightly warm cream. Only applies where the nav is over dark imagery; on
   light pages it stays ink, or it would be white-on-cream and invisible. */
/* `body` lifts these to (0,2,1) so they beat the no-JS baseline above (v2.20.1). */
body .kf-nav[data-over="dark"]  { --kf-nav-ink: #fff; }
body .kf-nav[data-over="light"] { --kf-nav-ink: var(--kf-heading); }
/* The centre links fade out as the header docks, leaving the wordmark left
   and the controls right. `visibility` (not just opacity) so the links leave
   the a11y tree and the tab order rather than staying invisibly focusable;
   it is delayed by the fade duration on the way out and instant on the way
   back in. The grid columns are NOT collapsed — the brand and the icons are
   already pinned to the outer edges, so nothing moves and there is no shift. */
.kf-nav__inner > nav {
  transition:
    opacity var(--kf-t-ui, 320ms) var(--kf-out-quart, cubic-bezier(0.25,1,0.50,1)),
    visibility 0s linear 0s;
}
.kf-nav[data-scrolled="1"] .kf-nav__inner > nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--kf-t-ui, 320ms) var(--kf-out-quart, cubic-bezier(0.25,1,0.50,1)),
    visibility 0s linear var(--kf-t-ui, 320ms);
}

/* Reduced motion: no scroll-linked travel and no fade — the header simply IS
   docked once scrolled. kf-core.js stops writing --kf-nav-dock per frame and
   snaps it instead; this pins the resting geometry to match. */
@media (prefers-reduced-motion: reduce) {
  .kf-nav { will-change: auto; }
}

.kf-nav__inner {
  width: 100%; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem;
}
.kf-nav__brand {
  font: 400 22px/1 var(--kf-font-display);
  letter-spacing: -0.01em;
  color: var(--kf-nav-ink);
  text-decoration: none;
  white-space: nowrap;
}
.kf-nav__brand em { font-style: italic; font-weight: 300; opacity: 0.85; }

.kf-nav__links {
  display: flex; gap: 2.4rem; justify-content: center;
  list-style: none; margin: 0; padding: 0;
}
.kf-nav__links a {
  font: 400 13px/1 var(--kf-font-body);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--kf-nav-ink); text-decoration: none;
  position: relative; padding: 0.4rem 0;
  transition: transform 0.2s;
}
.kf-nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--kf-nav-ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.24s cubic-bezier(0.77,0,0.175,1);
}
.kf-nav__links a:hover { transform: translateY(-1px); }
.kf-nav__links a:hover::after { transform: scaleX(1); }

.kf-nav__icons {
  display: flex; gap: 1.2rem;
  justify-content: flex-end; align-items: center;
}
.kf-nav__icon-btn {
  background: none; border: none; padding: 0;
  color: var(--kf-nav-ink); opacity: 0.92;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none; cursor: pointer;
  position: relative;
}
.kf-nav__icon-btn:hover { opacity: 1; transform: translateY(-1px); }

/* Cart badge. Sits on the lip of the cup lid. */
.kf-nav__cart-count {
  position: absolute; top: -5px; right: -7px;
  min-width: 17px; height: 17px; padding: 0 3px;
  border-radius: 999px;
  background: var(--kf-espresso); color: var(--kf-cream);
  font: 600 10px/17px var(--kf-font-body);
  text-align: center;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.22,1.5,0.36,1);
  pointer-events: none;
}
.kf-nav__cart-count[data-show="1"] { transform: scale(1); }

/* Mobile cart shortcut — hidden on desktop, visible on mobile */
.kf-nav__mobile-cart { display: none; }

.kf-nav__burger {
  display: none; width: 28px; height: 28px;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.kf-nav__burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--kf-nav-ink);
  transition: transform 0.3s, opacity 0.3s;
}
.kf-nav[data-open="1"] .kf-nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.kf-nav[data-open="1"] .kf-nav__burger span:nth-child(2) { opacity: 0; }
.kf-nav[data-open="1"] .kf-nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================================================
   MOBILE DRAWER (REV v)
   Open state is now driven by data-open ON THE DRAWER ITSELF, because it
   is no longer a descendant of .kf-nav. The JS below mirrors #kf-nav's
   data-open onto it, so the burger handler in Core keeps working unchanged.
   ========================================================================= */
/* Cross-fade the marks as a dark section leaves the header band, instead of
   snapping. Declared AFTER the rules above because several of them set their
   own `transition` (link lift 0.2s, underline wipe 0.24s, burger 0.4s) and a
   shorthand declared earlier would simply be overwritten — so the colour
   channel is appended here, preserving each original animation. */
.kf-nav__brand { transition: color var(--kf-t-ui, 320ms) var(--kf-out-quart, cubic-bezier(0.25,1,0.50,1)); }
.kf-nav__links a { transition: transform 0.2s, color var(--kf-t-ui, 320ms) var(--kf-out-quart, cubic-bezier(0.25,1,0.50,1)); }
.kf-nav__links a::after { transition: transform 0.24s cubic-bezier(0.77,0,0.175,1), background var(--kf-t-ui, 320ms) var(--kf-out-quart, cubic-bezier(0.25,1,0.50,1)); }
.kf-nav__icon-btn { transition: opacity 0.3s, transform 0.3s, color var(--kf-t-ui, 320ms) var(--kf-out-quart, cubic-bezier(0.25,1,0.50,1)); }
.kf-nav__burger span { transition: transform 0.35s cubic-bezier(0.77,0,0.175,1), opacity 0.2s, background var(--kf-t-ui, 320ms) var(--kf-out-quart, cubic-bezier(0.25,1,0.50,1)); }

.kf-nav__drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(88%, 380px);
  /* v2.6.0: drawer is MUSHROOM to match the filled nav. */
    background: var(--kf-paper);
  border-left: 1px solid rgba(26,18,11,0.12);
  box-shadow: -20px 0 60px rgba(10,8,6,0.35);
  padding: 6rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);
  z-index: 95;
  display: flex; flex-direction: column; gap: 0.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
}
.kf-nav__drawer[data-open="1"] {
  transform: translateX(0);
  visibility: visible;
}
.kf-nav__drawer a,
.kf-nav__drawer button.kf-nav__drawer-search {
  color: var(--kf-heading); text-decoration: none;
  /* The drawer's links have always been display type (they were Playfair),
     so the face swap carries them across rather than restyling the drawer.
     Weight lifted 400 -> 500 only because Darker Grotesque at 400 is a
     hairline at this size. If the drawer should move to the body sans, that
     is a design decision, not part of a face swap. */
  font: 500 clamp(1.4rem, 4vw, 1.8rem)/1.2 var(--kf-font-display);
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(26,18,11,0.10);
  text-transform: uppercase;
  letter-spacing: 0;
  transition: color 0.2s, padding 0.2s;
  background: none;
  border-left: none; border-right: none; border-top: none;
  text-align: left; cursor: pointer;
  display: block; width: 100%;
}
.kf-nav__drawer a:hover,
.kf-nav__drawer button.kf-nav__drawer-search:hover {
  color: var(--kf-espresso); padding-left: 0.4rem;
}

/* Drawer cart row: cup + label left, count right */
.kf-nav__drawer a.kf-nav__drawer-cart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.kf-nav__drawer-cart-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.kf-nav__drawer-cart .kf-nav__cart-count {
  position: static;
  transform: scale(1);
  opacity: 0;
  transition: opacity 0.3s;
}
.kf-nav__drawer-cart .kf-nav__cart-count[data-show="1"] { opacity: 1; }

.kf-nav__drawer-meta {
  margin-top: auto; padding-top: 2rem;
  font: 400 11px/1.6 var(--kf-font-mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(62,44,28,0.72);
}

/* Shared scrim — used by drawer AND search panel */
.kf-nav__scrim {
  position: fixed; inset: 0;
  background: rgba(10,8,6,0.6); backdrop-filter: blur(4px);
  z-index: 90; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}

/* =========================================================================
 *  SEARCH PANEL (REV ii)
 * ========================================================================= */
.kf-search-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(92%, 440px);
  background: var(--kf-bone);
  color: var(--kf-bean);
  border-left: 1px solid rgba(62,44,28,0.10);
  box-shadow: -20px 0 60px rgba(10,8,6,0.25);
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);
  z-index: 96; /* above drawer (95) and scrim (90) */
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex; flex-direction: column;
  visibility: hidden;
}
.kf-search-panel[data-open="1"] {
  transform: translateX(0);
  visibility: visible;
}
.kf-search-panel * { box-sizing: border-box; }

.kf-search-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.8rem;
  border-bottom: 1px solid rgba(62,44,28,0.10);
}
.kf-search-panel__eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8B6A3D;
}
.kf-search-panel__close {
  background: none;
  border: none;
  color: var(--kf-bean);
  cursor: pointer;
  padding: 0.6rem;
  margin-right: -0.6rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}
.kf-search-panel__close:hover {
  background: rgba(62,44,28,0.06);
  transform: rotate(90deg);
}

.kf-search-panel__body {
  padding: 2rem 1.8rem 2.5rem;
  flex: 1;
}
.kf-search-panel__title {
  font: 400 clamp(2rem, 5vw, 2.8rem)/1.05 var(--kf-font-display);
  letter-spacing: -0.025em;
  color: var(--kf-bean);
  margin: 0 0 1.8rem;
}
.kf-search-panel__title em {
  font-style: italic;
  color: #8B6A3D;
}

.kf-search-panel__form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.4rem;
}
.kf-search-panel__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.kf-search-panel__input-icon {
  position: absolute;
  left: 1rem;
  color: rgba(62,44,28,0.5);
  pointer-events: none;
}
.kf-search-panel__form input[type="search"] {
  width: 100%;
  min-height: 52px;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(62,44,28,0.22);
  border-radius: 6px;
  color: var(--kf-bean);
  font: 400 16px/1.3 var(--kf-font-body);
  transition: border-color 0.25s, background 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.kf-search-panel__form input[type="search"]:focus {
  outline: none;
  border-color: var(--kf-bean);
  background: rgba(255,255,255,0.85);
}
.kf-search-panel__form input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.kf-search-panel__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  background: var(--kf-espresso);
  color: var(--kf-cream);
  border: 1px solid var(--kf-espresso);
  border-radius: 6px;
  font: 500 11px/1 var(--kf-font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, gap 0.25s;
}
.kf-search-panel__submit:hover {
  background: #8B6A3D;
  border-color: #8B6A3D;
  gap: 0.7rem;
}

.kf-search-panel__quick,
.kf-search-panel__recent {
  margin-bottom: 2rem;
}
.kf-search-panel__quick-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8B6A3D;
  margin-bottom: 1rem;
}
.kf-search-panel__quick-list,
.kf-search-panel__recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.kf-search-panel__quick-list li,
.kf-search-panel__recent-list li {
  border-bottom: 1px solid rgba(62,44,28,0.10);
  list-style: none;
  margin: 0;
}
.kf-search-panel__quick-list a,
.kf-search-panel__recent-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 1rem 0;
  color: var(--kf-bean);
  text-decoration: none;
  font: 400 clamp(1.05rem, 1.4vw, 1.2rem)/1.2 var(--kf-font-display);
  letter-spacing: -0.005em;
  transition: padding 0.25s, color 0.25s;
}
.kf-search-panel__quick-list a:hover,
.kf-search-panel__recent-list a:hover {
  padding-left: 0.4rem;
  color: #8B6A3D;
}
.kf-search-panel__quick-arrow {
  font-size: 1rem;
  opacity: 0.5;
  transition: transform 0.25s, opacity 0.25s;
}
.kf-search-panel__quick-list a:hover .kf-search-panel__quick-arrow,
.kf-search-panel__recent-list a:hover .kf-search-panel__quick-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.kf-search-panel__recent-clear {
  background: none;
  border: none;
  color: rgba(62,44,28,0.55);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.8rem 0 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-bottom-color 0.25s;
}
.kf-search-panel__recent-clear:hover {
  color: #B05A45;
  border-bottom-color: currentColor;
}

/* =========================================================================
 *  BAG PANEL (REV vi)
 *  Same slide-from-right language as the search panel, same light surface,
 *  so the two read as siblings rather than two different systems.
 * ========================================================================= */
.kf-bag-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(94%, 420px);
  background: var(--kf-bone);
  color: var(--kf-bean);
  border-left: 1px solid rgba(62,44,28,0.10);
  box-shadow: -20px 0 60px rgba(10,8,6,0.25);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);
  z-index: 97;
  display: flex;
  flex-direction: column;
  visibility: hidden;
}
.kf-bag-panel[data-open="1"] { transform: translateX(0); visibility: visible; }
.kf-bag-panel * { box-sizing: border-box; }

.kf-bag-panel__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.8rem;
  border-bottom: 1px solid rgba(62,44,28,0.10);
}
.kf-bag-panel__eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8B6A3D;
}
.kf-bag-panel__close {
  background: none;
  border: none;
  color: var(--kf-bean);
  cursor: pointer;
  padding: 0.6rem;
  margin-right: -0.6rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}
.kf-bag-panel__close:hover { background: rgba(62,44,28,0.06); transform: rotate(90deg); }

/* Body scrolls; head and foot stay put. */
.kf-bag-panel__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.5rem 1.8rem;
}
.kf-bag-panel__foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.8rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(62,44,28,0.10);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(62,44,28,0.6);
}
.kf-bag-panel__foot svg { flex: 0 0 auto; color: #8B6A3D; }

/* Empty state */
.kf-bag-panel .woocommerce-mini-cart__empty-message {
  margin: 0;
  padding: 2.5rem 0 0;
  text-align: center;
  /* Also display type before the swap (it is a one-line empty state set as
     a statement, not running copy). Weight added to clear the 500 floor. */
  font-family: var(--kf-font-display);
  font-weight: 500;
  font-size: 1.3rem;
  color: rgba(62,44,28,0.7);
}

/* Hidden unless the bag is actually empty. Toggled by a data attribute on
   the PANEL, never by injecting a node into WooCommerce's fragment. */
.kf-bag-panel__empty-cta { display: none; }
.kf-bag-panel[data-empty="1"] .kf-bag-panel__empty-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 1.5rem;
  padding: 0.9rem 1.4rem;
  background: var(--kf-espresso);
  border: 1px solid var(--kf-espresso);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}
/* Hover deepens the terracotta — bronze was the last of the "creamy gold"
   hovers the client asked to remove. */
.kf-bag-panel[data-empty="1"] .kf-bag-panel__empty-cta:hover {
  background: #86604B;
  border-color: #86604B;
}

/* THE BLACK BAR WITH NO TEXT.
   The background painted and the label did not. The usual cause is
   `-webkit-text-fill-color: transparent`, the gradient-text trick Astra and
   Elementor apply to links and buttons: it overrides `color` outright, so the
   background survives and the text disappears. Every property that can swallow
   a label is reset here, on the anchor AND its span, so it cannot recur
   whatever the theme does downstream. */
.kf-bag-panel__empty-cta,
.kf-bag-panel__empty-cta span {
  /* v2.9.0 — WHITE on the terracotta fill per client (was cream). The
     !important and the text-fill reset both have to carry the new value or
     the cream wins straight back. */
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  font: 500 11px/1 var(--kf-font-body) !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  text-indent: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
}

/* ===== Mobile breakpoint =====
   REV ii: dropped from 900px → 768px to give the desktop layout more
   room before collapsing. */
@media (max-width: 768px) {
  .kf-nav__links { display: none; }
  .kf-nav__icons { display: none; }

  .kf-nav__inner {
    grid-template-columns: 1fr auto auto;
    gap: 0.6rem;
  }
  .kf-nav__brand { font-size: 19px; }

  .kf-nav__mobile-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kf-nav-ink);
    text-decoration: none;
    padding: 0.4rem;
    margin-right: 0.2rem;
    opacity: 0.92;
    position: relative;
    transition: opacity 0.2s;
  }
  .kf-nav__mobile-cart:hover { opacity: 1; }
  .kf-nav__mobile-cart .kf-nav__cart-count { top: -1px; right: -3px; }
  .kf-nav__burger { display: flex; }
}

/* Very small screens — reduce announce bar text size so it doesn't crowd */
@media (max-width: 480px) {
  .kf-announce__track { font-size: 11px; letter-spacing: 0.16em; }
  .kf-announce__track span { padding: 0 1.8rem; }
  .kf-nav__brand { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .kf-nav__drawer,
  .kf-search-panel,
  .kf-bag-panel,
  .kf-nav__scrim,
  .kf-nav__cart-count { transition: none !important; }
}
/* Newsletter CSS removed REV iii (2026-05) along with the markup.
   Payment badge CSS (.kf-footer__pay) and mega wordmark CSS
   (.kf-footer__mega) removed REV iv (2026-07) along with their markup. */

/* Footer */
.kf-footer {
  /* v2.6.0: footer is MUSHROOM (#C7C1B3 = --kf-paper), not a dark slab.
     It matches the page background, so a top hairline is what separates it
     from the last section — without it the footer has no edge at all. */
  background: var(--kf-paper); color: var(--kf-heading);
  border-top: 1px solid rgba(26,18,11,0.12);
  position: relative; overflow: hidden;
  padding-top: 6rem;
  /* REV iv: the wordmark strip used to close the footer out. Without it
     the fine bar was sitting flush on the bottom edge of the document,
     so the bottom gutter is now explicit. */
  padding-bottom: 2.5rem;
}
.kf-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 4rem;
}
@media (max-width: 980px) {
  .kf-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
  .kf-footer__lede { grid-column: span 2; }
}
@media (max-width: 600px) {
  .kf-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .kf-footer__lede { grid-column: auto; }
}

.kf-footer__lede p {
  font-size: 14px; color: rgba(62,44,28,0.78);
  max-width: 320px; line-height: 1.6; margin: 1rem 0 0;
}
.kf-footer__brand {
  font: 400 26px/1 var(--kf-font-display);
  letter-spacing: -0.01em;
  color: var(--kf-heading);
}
.kf-footer__brand em { font-style: italic; font-weight: 300; }

.kf-footer__col h4 {
  font: 500 var(--kf-fs-eyebrow, 11px)/1 var(--kf-font-body);
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--kf-espresso); margin: 0 0 1.2rem;
}
.kf-footer__col ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.kf-footer__col ul li {
  list-style: none; margin: 0; padding: 0;
}
.kf-footer__col a {
  font-size: 14px; color: rgba(62,44,28,0.88);
  text-decoration: none; transition: color 0.2s;
}
.kf-footer__col a:hover { color: var(--kf-espresso); }

/* Fine bar. Top rule only now: the bottom rule existed to divide the bar
   from the wordmark strip below it, and with that gone it was drawing a
   line against nothing. */
.kf-footer__fine {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  padding: 1.6rem 0 0;
  border-top: 1px solid rgba(26,18,11,0.10);
  color: rgba(62,44,28,0.78); font-size: 12px;
}
.kf-footer__fine .kf-mono { letter-spacing: 0.1em; }
.kf-footer__fine a { color: inherit; }
.kf-footer__fine a:hover { color: var(--kf-espresso); }

@media (max-width: 600px) {
  .kf-footer { padding-top: 4rem; }
  .kf-footer__fine { gap: 0.6rem; }
}

/* ════ v2.1.1 — client-requested mobile chrome change ════════════════════
   One nav row on mobile: burger LEFT · "Kin and Folk" CENTERED · bag RIGHT.
   (The ported grid put the burger on a second row because the empty primary
   <nav> wrapper still occupied a column — it is hidden here too.) */
@media (max-width: 768px) {
	.kf-nav__inner { grid-template-columns: 44px 1fr 44px; grid-template-rows: auto; }
	.kf-nav__inner > nav { display: none; }
	.kf-nav__burger { grid-column: 1; grid-row: 1; justify-self: start; }
	.kf-nav__brand { grid-column: 2; grid-row: 1; justify-self: center; text-align: center; }
	.kf-nav__mobile-cart { grid-column: 3; grid-row: 1; justify-self: end; margin-right: 0; }
}

/* =========================================================================
   v2.6.0 — THE ONE TERRACOTTA BAND
   -------------------------------------------------------------------------
   Terracotta is an ACCENT everywhere else on the site; the single place it
   is allowed to be a BACKGROUND is the homepage's large horizontal café
   scroller. The homepage is otherwise one continuous paper gradient with
   transparent sections, so this is a deliberate hard-edged colour block.

   Scoping: the compact wayfinding rail (2nd instance) currently renders with
   a MALFORMED class — `kf-locationskf-locations--strip`, the template is
   missing a space before `{{ strip_variant }}` — so `.kf-locations` happens
   to match only the large strip today. `:not([class*="--strip"])` is belt
   and braces: it still excludes the compact rail once that space is fixed.

   Inversion is done by REDEFINING the package's ink-scale custom properties
   inside this scope, so every descendant that reads them flips in one go
   rather than needing a per-element override.
   ========================================================================= */
/* v2.6.0 — THE TERRACOTTA GROUND IS GONE.
   Terracotta is an ACCENT, not a surface. The only sanctioned terracotta
   panel on the site is the bakery chapter wash (.kf-journey__wash--bread).
   This block painted the whole locations section terracotta and then
   INVERTED the package's ink scale so cream text could survive on it. With
   the ground back on continuous paper the inversion has to go with it, or
   every label in the section stays cream-on-cream. Deleting the block
   restores the package's `.kf-home .kf-locations { background: transparent }`
   and the normal dark ink scale, so nothing else is needed. */
/* The bronze-hover override that lived here existed ONLY because bronze was
   1.4:1 against terracotta. On paper the default hover is correct again. */

/* =========================================================================
   v2.8.0 — TERRACOTTA IS THE ACCENT (client feedback)
   -------------------------------------------------------------------------
   Two colours were doing "accent" duty and both read as pale sandy gold on
   cream paper: crema (#C9A57B) and the bronze brand accent (#8B6A3D). On
   hover they made things look like they were FADING rather than responding —
   the "gully creamy colour" in the feedback. Terracotta takes over every
   accent/hover role, with cream/white as the contrast on top of it.

   Specificity note: the package ships `.kf-home .kf-btn--primary` at (0,2,0).
   These are body-scoped to (0,2,0) as well and the theme's sheets load AFTER
   the package's, so they win on order without needing !important.
   ========================================================================= */

/* Primary button — was --kf-ink (near-black). Client: black buttons become
   terracotta. Cream text on terracotta is 6.3:1. On hover the fill wipes to
   cream and the label flips to terracotta, so the pair inverts and BOTH ends
   of the transition stay legible. */
.kf-btn--primary,
body.kf-home .kf-btn--primary,
body.kf-builder-page .kf-btn--primary {
  background: var(--kf-espresso);
  /* v2.9.0 — WHITE on terracotta per client (was cream). */
  color: #fff;
  border-color: var(--kf-espresso);
}
.kf-btn--primary::before,
body.kf-home .kf-btn--primary::before,
body.kf-builder-page .kf-btn--primary::before { background: var(--kf-cream); }
.kf-btn--primary:hover,
body.kf-home .kf-btn--primary:hover,
body.kf-builder-page .kf-btn--primary:hover {
  color: var(--kf-espresso);
  border-color: var(--kf-espresso);
}

/* Outline/ghost buttons — the wipe fills terracotta and the label goes cream. */
.kf-btn::before { background: var(--kf-espresso); }
.kf-btn:hover { color: var(--kf-cream); border-color: var(--kf-espresso); }
.kf-btn:focus-visible { outline-color: var(--kf-espresso); }

/* Ghost-on-light (the dark-text outline button used on paper sections). */
body.kf-home .kf-btn--ghost-dark:hover,
body.kf-builder-page .kf-btn--ghost-dark:hover {
  color: var(--kf-cream);
  border-color: var(--kf-espresso);
}
body.kf-home .kf-btn--ghost-dark::before,
body.kf-builder-page .kf-btn--ghost-dark::before { background: var(--kf-espresso); }

/* Editorial hovers that were bronze/crema. */
body.kf-home .kf-cafe:hover .kf-cafe__name,
body.kf-builder-page .kf-cafe:hover .kf-cafe__name { color: var(--kf-espresso); }
.kf-locations__more:hover,
.kf-cafe__dir:hover { color: var(--kf-espresso); }

/* v2.8.0 — DISPLAY WEIGHT + THE LIGHT/BOLD PAIRING, SITE-WIDE.
   The package pins `.kf-display, .kf-heading { font-weight: 300 }` at (0,1,0),
   which beat the theme's :where(h1-h6) base (zero specificity) — so raising
   the base alone left every section heading on 300. These tie on specificity
   and the theme's sheets load after the package's, so they win on order.

   The design already marks the SECOND line of every two-line lockup with
   .kf-display-italic (a legacy name — Darker Grotesque has no italic, so it
   now carries WEIGHT instead). Setting the pair here gives the client's
   "one light, one bolder" everywhere the lockup is used — hero, café strip,
   about, journey — instead of section-by-section. */
.kf-display, .kf-heading { font-weight: 400; }
.kf-display-italic { font-weight: 600; }

/* Eyebrows/small-caps take the terracotta accent rather than crema — the
   client asked for terracotta in the subheadings. 6.2:1 on cream paper;
   crema was 1.96:1 and effectively decorative. */
body.kf-home .kf-eyebrow--dark,
body.kf-builder-page .kf-eyebrow--dark { color: var(--kf-espresso); }

/* v2.8.0 fix — GHOST BUTTON LABEL ON THE TERRACOTTA WIPE.
   The outline button's ::before wipes terracotta across on hover, so its
   label has to end up CREAM. A package rule at (0,3,0) was still turning it
   terracotta, i.e. terracotta-on-terracotta — invisible mid-hover. Primary is
   excluded: it wipes CREAM, so its label correctly goes the other way. */
body.kf-home .kf-btn:not(.kf-btn--primary):not(.kf-btn--ghost-dark):hover,
body.kf-builder-page .kf-btn:not(.kf-btn--primary):not(.kf-btn--ghost-dark):hover {
  color: var(--kf-cream);
  border-color: var(--kf-espresso);
}

/* v2.9.0 — the section directly BELOW the horizontal scroller takes the exact
   cream already used behind the "Proudly independent" curved image
   (.kf-band__inner = #C7C1B3 = --kf-paper). Same token, not a new one, so the
   palette stays deliberate. */
body.home .kf-journey { background: var(--kf-paper); }

/* v2.9.0 — WHITE ON TERRACOTTA, without exception (client).
   These three carry a terracotta fill from elsewhere in the theme/plugin and
   were still labelled in cream (#F5EFE6) or paper (#C7C1B3). CSS cannot select
   "whatever computes to terracotta", so they are listed explicitly. Hover and
   focus inherit the same label colour, so every state stays white-on-terracotta
   (6.3:1) and no state can put dark brown, black or terracotta on terracotta. */
.kf-search-panel__submit,
.kf-search-panel__submit:hover,
.kf-search-panel__submit:focus-visible,
.kf-bag-panel__empty-cta,
.kf-bag-panel__empty-cta:hover,
.kf-bag-panel__empty-cta:focus-visible,
.hmg-form__submit,
.hmg-form__submit:hover,
.hmg-form__submit:focus-visible {
  color: #fff;
}

/* v2.10.0 — CAPITALISED HEADINGS (client).
   Applied as a transform rather than rewriting copy, so the underlying
   content stays sentence case and this is one line to undo. Eyebrows and
   small-caps are excluded — they already run uppercase with their own
   tracking, and capitalize would fight it. */
.kf-display:not(.kf-eyebrow),
.kf-heading:not(.kf-eyebrow),
h1.kf-display, h2.kf-display, h3.kf-display {
  text-transform: capitalize;
}

/* =========================================================================
   v2.11.0 — LEGIBLE META, NOT MACHINE PRINT (client)
   -------------------------------------------------------------------------
   Two problems, one cause. The small print was set in a MONOSPACE face at
   9–10px with heavy tracking, which read as machine output rather than as
   information — and at that size it was not really readable at all.

   The face is dealt with in tokens.css (both mono tokens now resolve to the
   body family). This raises the SIZE floor to 12.5px and eases the tracking
   back, so the same content reads as quiet supporting copy. Declared here in
   the theme, which loads after the package, so it lifts the package's own
   10px meta without needing !important.
   ========================================================================= */
.kf-search-panel__eyebrow,
.kf-search-panel__quick-label,
.kf-search-panel__recent-clear,
.kf-bag-panel__eyebrow,
.kf-bag-panel__foot,
.kf-announce__track,
.kf-locs__est,
.kf-about__caption,
.kf-product__noimg,
.kf-journey__chapter-num,
.kf-journey__chapter-label,
.kf-locations__hint,
.kf-cafe__est,
.kf-cafe__hours,
.kf-loc__hero-meta,
.kf-loc__jump-num,
.kf-loc__jump-est,
.kf-loc__map-caption,
.kf-hero__scroll .kf-eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.12em;
}

/* Breadcrumb bars removed site-wide per client (the Bakery one was deleted
   from its template). These two are markup we do not own a clean hook for,
   so they are hidden and their container's spacing collapsed with them. */
.kf-pdp__crumb-bar,
.kf-pdp__crumb,
.kf-cart__crumb { display: none; }

/* v2.11.0 — THE FLOOR, APPLIED GENERALLY.
   The enumerated list above covers the chrome and the package, but the Woo
   and Bakery templates carry their own 9–11px meta (sort labels, counts,
   product tags, stage numbers, FAQ numerals). Rather than chase every class,
   the floor goes on .kf-mono itself — the class every one of them already
   carries to opt into the old "machine" styling.

   Verified against the live page before writing: the ONLY .kf-mono elements
   already at or above 12px are the ones set above (12.5px) and native form
   controls, so this lifts and never shrinks. select/input are excluded so a
   15px control is not pulled down.

   Tracking eases with it: 0.18–0.22em was drawn for 9px capitals and makes
   12.5px text sprawl, which is what pushed these into looking machine-set. */
.kf-mono:not(select):not(input):not(textarea) {
  font-size: 12.5px;
  letter-spacing: 0.1em;
}

/* v2.11.0 — the last sub-12px LABELS.
   These carry no .kf-mono class, so the floor above missed them, but they are
   real interface text: two "browse" links, product origin meta and the
   Instagram tile counts. .kf-arrow is deliberately excluded — it is a glyph
   (→), not copy, and scaling it breaks its optical alignment with the label
   beside it. */
.kf-shop__more,
.kf-locations__more,
.kf-product__origin,
.kf-ig__tile-meta {
  font-size: 12.5px;
  letter-spacing: 0.1em;
}

/* =========================================================================
   v2.12.0 — HEADER IS WHITE AT THE TOP OF EVERY PAGE (client, restated)
   -------------------------------------------------------------------------
   Previously the marks only went white where the nav sat over a dark hero,
   and stayed ink on the hero-less pages (FAQs, Contact). That was a
   legibility call, but the instruction was "all header content is white" —
   so at rest it is now white everywhere, on every template.

   Scrolled state is unchanged: once docked, the marks still follow whatever
   is actually underneath (--kf-nav-ink via data-over), because white over
   cream body content further down the page would be unreadable.

   Declared after the data-over rules; same (0,2,0) specificity, wins on order.
   ========================================================================= */
/* NB the leading `body`: the no-JS baseline is `body.kf-nav-on-light .kf-nav`
   = (0,2,1), and the element selector in it beats a bare
   `.kf-nav[data-scrolled="0"]` = (0,2,0) no matter how late it is declared.
   Matching it at (0,2,1) and declaring it after is what actually wins. */
/* v2.20.0 (James, 2026-11-27): superseded. Header ink follows what is behind it at
   every scroll position: white over dark imagery, ink over light pages (data-over). */

/* On the templates with no hero behind the nav, white needs something to sit
   against. This is a soft top-down vignette on the NAV ITSELF — not a bar: it
   fades to nothing well before the nav's lower edge, so the header still
   reads as transparent and no hard edge appears against the page. It is
   applied ONLY where the server says there is no hero to float over, and it
   disappears the moment the header docks. Delete this one block to go back to
   a completely unbacked header. */
/* v2.20.0: the vignette behind white marks on light pages is gone; the marks turn ink instead. */

/* =========================================================================
   v2.13.0 — THE "PROUDLY INDEPENDENT" BAND IS THE HEADING STANDARD (client)
   -------------------------------------------------------------------------
   That section is the reference for how type should read everywhere: the same
   display face and weight, at a smaller scale, with the ACCENT on the second
   line. The only change from it is the accent colour, which becomes terracotta
   instead of crema. Scale is handled by --kf-fs-h2 in tokens.css.
   ========================================================================= */
.kf-display-italic,
.kf-heading em,
.kf-display em,
.kf-band__h3 em {
  color: var(--kf-espresso);
  font-style: normal;
}
/* On the band itself the type sits on a dark photograph, where terracotta is
   1.9:1 and unreadable. Same accent, lifted into the light end of the same
   hue so it reads as terracotta without failing contrast on dark ground. */
.kf-band__h3 em,
.kf-journey .kf-display-italic,
.kf-hero__h1 .kf-display-italic {
  color: #C9A088;
}

/* v2.13.0 — SECTION TONES. Adjacent sections separate by a slight variation
   rather than a hard change: the journey band takes the same cream as the
   "Proudly independent" card (#C7C1B3 = --kf-paper), and the sections either
   side sit one step lighter so the seams read as intentional steps. */
/* v2.14.0: the journey now owns its ground per-panel (three stacked washes),
   so the section itself must stay transparent or it paints over them. The
   section BENEATH it takes the cream that matches the "Proudly independent"
   card exactly, as asked; shop steps one tone on from that. */
body.home .kf-journey { background: transparent; }
body.home .kf-about   { background: var(--kf-paper); }
body.home .kf-shop    { background: var(--kf-tone-2, #F5EFE6); }


/* v2.13.0 — every section heading takes the BAND'S SCALE.
   These hardcode clamp(2.4rem, 4vw, 3.85rem) = 57.6px at 1440 in the package,
   so raising --kf-fs-h2 alone did nothing. The band is clamp(1.75rem, 3vw,
   2.55rem) = 40.8px — the size the client pointed at as correct. Listed
   explicitly and declared in the theme, which loads after the package. */
.kf-about__h2,  .kf-about__h2 .kf-line,
.kf-shop__h2,   .kf-shop__h2 .kf-line,
.kf-split__h2,
.kf-locations__h2, .kf-locations__h2 .kf-line,
.kf-ig__h2, .kf-ig__h2 .kf-line,
.kf-cta__heading,
.kf-featured__title,
.kf-section-head h2,
.kf-bakery__section-title,
.kf-loc__h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}
