/**
 * Kin & Folk — design tokens (ORIGINAL variable names, ported verbatim from
 * the live site's CORE snippet so every ported style keeps working).
 *
 * One brand source of truth: the HMG builder's Brand manager emits
 * :root{--hmg-brand-*}/{--hmg-font-*}; the core roles consume those with the
 * approved Kin & Folk values as fallbacks. Change the brand in wp-admin →
 * HMG Builder → Brand and espresso/bean/crema + the three families follow.
 */

/* ── Display face: Darker Grotesque, self-hosted (v2.5.0) ─────────────
 * Google ships Darker Grotesque as a VARIABLE font: the 500, 700 and 900
 * faces all resolve to one file per subset, so two woff2 (36 KB total)
 * cover the whole weight range rather than six static cuts. Declared with
 * a 300-900 range so any weight in between is a real instance, not a
 * synthesised one.
 *
 * Self-hosted per brief — no gstatic hop for the display face. Vietnamese
 * subset deliberately omitted (UK/Irish site).
 *
 * font-display: swap + Arial Narrow fallback: Arial Narrow is condensed,
 * so its metrics sit close enough to Darker Grotesque that the swap does
 * not reflow the page.
 */
@font-face {
	font-family: 'Darker Grotesque';
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url('../fonts/darker-grotesque-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Darker Grotesque';
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url('../fonts/darker-grotesque-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* The builder's Brand manager emits an inline :root that SETS
   --hmg-font-display to 'Playfair Display' — it is not left unset, so the
   var() fallbacks below can never fire, and the package's own rules read
   --hmg-font-display directly. Both tokens are therefore overridden here,
   at :root:root (0,2,0) so this wins over that inline block regardless of
   which lands later in <head>. Repointing the Brand display family in
   wp-admin would be cleaner, but it is a shared fleet setting. */
:root:root {
	--font-display:       'Darker Grotesque', 'Arial Narrow', Arial, sans-serif;
	--hmg-font-display:   'Darker Grotesque', 'Arial Narrow', Arial, sans-serif;
	--kf-font-display:    'Darker Grotesque', 'Arial Narrow', Arial, sans-serif;

	/* v2.11.0 — NO MONOSPACE. Client: the small mono meta read as "machine
	   written"; type should be one family across headings and body. The site
	   now has exactly two faces: Darker Grotesque for display, Inter Tight for
	   everything else.

	   BOTH tokens have to be overridden. The Brand manager EMITS
	   --hmg-font-mono ('JetBrains Mono'), so the var() fallbacks below can
	   never fire — and several package rules read --hmg-font-mono DIRECTLY
	   rather than going through --kf-font-mono, so setting only the kf token
	   would leave those elements monospaced. :root:root (0,2,0) beats the
	   Brand manager's inline :root regardless of head order. */
	--hmg-font-mono:      'Inter Tight', system-ui, -apple-system, sans-serif;
	--kf-font-mono:       'Inter Tight', system-ui, -apple-system, sans-serif;
}

:root {
	/* ===== ORIGINAL KF TOKENS (CORE snippet :root, brand-mapped) ===== */
	--kf-espresso: var(--hmg-brand-primary, #A6785E);
	--kf-ink:      #0A0806;
	--kf-bean:     var(--hmg-brand-text, #3E2C1C);
	--kf-crema:    var(--hmg-brand-secondary, #C9A57B);
	--kf-cream:    #F5EFE6;
	--kf-paper:    #C7C1B3;
	--kf-bone:     var(--hmg-brand-bg, #FAFAF7);
	--kf-forest:   #2D3B2D;

	--kf-lt-bg:            #C7C1B3;
	--kf-lt-bg-warm:       #F5EFE6;
	--kf-lt-text:          var(--kf-bean);
	--kf-lt-text-muted:    rgba(62, 44, 28, 0.72);
	--kf-lt-text-subtle:   rgba(62, 44, 28, 0.55);
	--kf-lt-text-faint:    rgba(62, 44, 28, 0.35);
	--kf-lt-border:        rgba(62, 44, 28, 0.14);
	--kf-lt-border-strong: rgba(62, 44, 28, 0.28);
	--kf-lt-accent:        #6B4423;
	--kf-lt-accent-soft:   var(--hmg-brand-accent, #8B6A3D);

	--kf-font-display: var(--hmg-font-display, 'Playfair Display', Georgia, serif);
	--kf-font-body:    var(--hmg-font-sans, 'Inter Tight', system-ui, -apple-system, sans-serif);
	--kf-font-mono:    var(--hmg-font-mono, 'JetBrains Mono', ui-monospace, monospace);

	--kf-fs-hero:    clamp(3.5rem, 8vw, 7.5rem);
	/* v2.13.0 — client: headings take the "Proudly independent" band's scale,
	   which is the reference for how type should read across the site. That
	   band is clamp(1.75rem, 3vw, 2.55rem) = 40.8px at 1440, against the 57.6px
	   these were — noticeably smaller and less in-your-face, as asked. */
	--kf-fs-h2:      clamp(1.75rem, 3vw, 2.55rem);
	--kf-fs-h3:      clamp(1.6rem, 2.5vw, 2.4rem);
	--kf-fs-body:    1.0625rem;
	/* v2.11.0: 12px -> 13px. Client: tiny subtext is poor UI. */
	--kf-fs-eyebrow: 0.8125rem;
	--kf-section-y:  clamp(5rem, 12vh, 10rem);

	/* Fixed-header offset — the clearance content needs BELOW the announcement
	   bar. v2.7.0: the bar is in NORMAL FLOW now and takes its own 40px, so
	   this covers only what is still fixed: the 4px gap + the 64px nav = 68px.
	   (Was 108px, which counted the bar as well — correct while it was fixed,
	   but it would now double-count and leave a 40px hole under the header.)
	   Every consumer — page padding, sticky offsets, scroll-margin — wants
	   this same "below the bar" number. kf-core.js only refines it. */
	--kf-header-h: 68px;

	/* ===== Theme-surface aliases (consumed by theme.css/woocommerce.css) ===== */
	--kf-primary:   var(--kf-espresso);
	--kf-secondary: var(--kf-crema);
	--kf-accent:    var(--hmg-brand-accent, #8B6A3D);
	--kf-muted:     #8F8478;
	/* v2.6.0: headings are BLACK again. --kf-espresso now carries the
	   terracotta ACCENT (brand primary), so aliasing heading to it turned
	   every theme heading terracotta. Headings read their own brand slot. */
	--kf-heading:   var(--hmg-brand-heading, #1A120B);
	--kf-text:      var(--kf-bean);
	--kf-bg:        var(--kf-bone);
	--kf-success:   #4A7042;
	--kf-danger:    #B05A45;
	--kf-surface:   #ffffff;
	--kf-line:      rgba(62, 44, 28, 0.14);
	--kf-line-soft: rgba(62, 44, 28, 0.07);
	--kf-wash:      #F5EFE6;
	--kf-shadow:    0 30px 60px -30px rgba(26, 18, 11, 0.25);
	--kf-font-sans: var(--kf-font-body);

	--kf-text-xs:   var(--hmg-type-xs, 13px);
	--kf-text-sm:   var(--hmg-type-sm, 15px);
	--kf-text-base: var(--hmg-type-base, 17px);
	--kf-text-lg:   var(--hmg-type-lg, 22px);
	--kf-text-xl:   var(--hmg-type-xl, 30px);
	--kf-text-2xl:  var(--hmg-type-2xl, 42px);
	--kf-text-3xl:  var(--hmg-type-3xl, 60px);

	--kf-space-xs:  var(--hmg-space-xs, 8px);
	--kf-space-sm:  var(--hmg-space-sm, 16px);
	--kf-space-md:  var(--hmg-space-md, 32px);
	--kf-space-lg:  var(--hmg-space-lg, 64px);
	--kf-space-xl:  var(--hmg-space-xl, 96px);

	--kf-radius-sm: var(--hmg-radius-sm, 4px);
	--kf-radius-md: var(--hmg-radius-md, 10px);
	--kf-radius-lg: var(--hmg-radius-lg, 20px);
	--kf-radius-pill: var(--hmg-radius-pill, 999px);

	--kf-container:        var(--hmg-container-normal, 1200px);
	--kf-container-narrow: var(--hmg-container-narrow, 720px);

	--kf-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--kf-fast: 160ms;
	--kf-slow: 320ms;
}

/* No responsive shrink: the announce (40px) + nav (64px) stack is the same
   height on every viewport, so --kf-header-h stays 108px. The old 100/84px
   overrides pre-date the uniform 64px nav and now under-clear the chrome. */
