/**
 * Kin & Folk package — design tokens (v2.2.1: self-contained).
 *
 * The builder's editor preview iframe loads ONLY this package's CSS, so the
 * package must stand on its own (the ASOLAS rule): fonts imported here, and
 * the full --kf-* token set mirrored from the theme. One brand source of
 * truth still holds — the HMG Brand manager emits :root{--hmg-brand-*}/
 * {--hmg-font-*} BEFORE this sheet, and every --kf-* role consumes those
 * with the approved Kin & Folk values as fallbacks. Nothing here redefines
 * an --hmg-* variable.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

: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, 'Darker Grotesque', 'Arial Narrow', Arial, sans-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);
	--kf-fs-h2:      clamp(2.2rem, 4vw, 3.85rem);
	--kf-fs-h3:      clamp(1.6rem, 2.5vw, 2.4rem);
	--kf-fs-body:    1.0625rem;
	--kf-fs-eyebrow: 0.75rem;
	--kf-section-y:  clamp(5rem, 12vh, 10rem);

	/* Fixed-header offset. Deterministic chrome stack (announce 40 + gap 4 +
	   nav 64 = 108px) at every width — exact, no JS needed. */
	--kf-header-h: 108px;

	/* ===== Surface aliases (shared vocabulary with the theme) ===== */
	--kf-primary:   var(--kf-espresso);
	--kf-secondary: var(--kf-crema);
	--kf-accent:    var(--hmg-brand-accent, #8B6A3D);
	--kf-muted:     #8F8478;
	--kf-heading:   var(--kf-espresso);
	--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;

	/* ═══ v2.3.0 — MOTION LANGUAGE ═══════════════════════════════════
	   The package had accumulated four near-identical bezier curves
	   written out longhand at ~90 call sites, so nothing shared a feel.
	   Two curves now, both decelerating — nothing in this brand should
	   overshoot or bounce:
	     --kf-out-expo   long, cinematic settles (media, stage changes)
	     --kf-out-quart  short, crisp UI moves (hover, buttons, chips)
	   Durations are named by intent so a whole tier retunes at once. */
	--kf-out-expo:  cubic-bezier(0.16, 1, 0.30, 1);
	--kf-out-quart: cubic-bezier(0.25, 1, 0.50, 1);
	--kf-in-out:    cubic-bezier(0.65, 0, 0.35, 1);

	--kf-t-micro:  180ms;   /* hover tints, arrows, chips        */
	--kf-t-ui:     320ms;   /* buttons, overlays, detail reveals */
	--kf-t-reveal: 900ms;   /* entrance choreography             */
	--kf-t-scene: 1100ms;   /* stage / scene changes             */

	/* ═══ v2.3.0 — PAPER TONE RAMP ═══════════════════════════════════
	   The homepage used to be a stack of opaque fills (#FAFAF7 next to
	   #F5EFE6 next to #C7C1B3), which drew a visible seam at every
	   section boundary. Sections are transparent now and the PAGE owns
	   one continuous warm gradient built from this ramp, so the tone
	   drifts rather than steps. Lightest at the top, warmest at the
	   close — the page literally warms up as the story goes on. */
	--kf-tone-0: #FDFCF9;
	--kf-tone-1: #FAF7F0;
	--kf-tone-2: #F5EFE6;
	--kf-tone-3: #EFE6D8;
	--kf-tone-4: #E8DCC8;

	/* ═══ v2.3.0 — ONE RADIUS SCALE ══════════════════════════════════
	   Was 4 / 8 / 12 / 16 / 999 used interchangeably (an 8px café card
	   sat beside a 16px journey frame in the same scroll). Three steps
	   now: chip, media, pill. */
	--kf-r-chip:  4px;    /* interactive UI: buttons, inputs, focus rings */
	--kf-r-media: 14px;   /* photography, cards, framed media           */
	--kf-r-pill:  999px;  /* meta tags and counters only                */

	/* ═══ v2.3.0 — ONE SHADOW SCALE ══════════════════════════════════
	   Warm-tinted, never neutral grey — grey shadow on cream paper is
	   what makes a warm palette look cheap. */
	--kf-sh-rest:  0 2px 8px rgba(46, 32, 20, 0.05), 0 12px 28px -18px rgba(46, 32, 20, 0.22);
	--kf-sh-lift:  0 4px 14px rgba(46, 32, 20, 0.07), 0 30px 60px -28px rgba(46, 32, 20, 0.34);
	--kf-sh-media: 0 8px 20px rgba(46, 32, 20, 0.06), 0 46px 80px -40px rgba(46, 32, 20, 0.42);

	/* ═══ v2.3.0 — INK SCALE (contrast-checked) ══════════════════════
	   Secondary text was being dimmed by writing an alpha inline at each
	   call site — 0.42, 0.45, 0.5, 0.55, 0.65, 0.72, 0.78, 0.82, 0.85,
	   0.88 all appeared in this file. Several of those, once composited
	   over the paper, landed between 2.4:1 and 2.9:1 — under WCAG AA,
	   and every one of them was 10px uppercase, the hardest thing on the
	   page to read. Three named steps now, each measured against the
	   mid-paper tone (#F5EFE6) so the floor holds anywhere on the ramp:

	     --kf-ink        #3E2C1C   12.9:1   headings, primary copy
	     --kf-ink-muted  78%        6.5:1   body-size secondary copy
	     --kf-ink-meta   72%        5.1:1   small caps, metadata, hints

	   Anything quieter than --kf-ink-meta is decoration, not text, and
	   must not carry information. */
	--kf-ink:       rgba(62, 44, 28, 1);
	--kf-ink-muted: rgba(62, 44, 28, 0.78);
	--kf-ink-meta:  rgba(62, 44, 28, 0.72);
	--kf-ink-rule:  rgba(62, 44, 28, 0.16);   /* hairlines — non-text */

	/* The accent, as TEXT. The bronze brand accent is ~4.3:1 on the warm
	   end of the paper ramp — fine for a display word, under AA for the
	   12px uppercase eyebrows that use it most. This is the same accent
	   family taken two steps deeper: 7.4:1 anywhere on the ramp. Use it
	   for accent-coloured TEXT; keep the brand accent for fills, rules
	   and other non-text marks.

	   Written as a literal, not var(--kf-lt-accent): the theme's own
	   tokens.css loads AFTER this one and can redefine any --kf-* it
	   shares, and a legibility floor must not be re-openable from a
	   sheet that does not know it is a floor. #6B4423 is "Oak" from the
	   brand palette in manifest.json, so this is still a brand colour. */
	--kf-accent-ink: #6B4423;

	/* ===== Package-private helpers (pre-2.2.1 contents, unchanged) ===== */
	--kfp-line: rgba(62, 44, 28, 0.12);
	--kfp-line-soft: rgba(62, 44, 28, 0.07);
	--kfp-wash: rgba(139, 106, 61, 0.06);
	--kfp-shadow: 0 20px 50px -24px rgba(26, 18, 11, 0.28);
	--kfp-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--kfp-pad: clamp(56px, 9vw, 120px);
	--kfp-gutter: clamp(20px, 4vw, 40px);
	--kfp-container: var(--hmg-container-normal, 1200px);
}

/* No responsive shrink — the announce+nav stack is 108px on every viewport. */
