/*
 * Design tokens — Furrow.
 *
 * Source: wcf-handover/design/design-tokens.md and the reference pages in
 * wcf-handover/design/reference/ (those win if the two disagree).
 * Every colour, size and space in the theme comes from here. Never hard-code
 * a value that has a token.
 *
 * Contrast figures are WCAG ratios against the surface named.
 */

:root {

	/* ---- Core ---------------------------------------------------------- */
	--ground:        #0A1F14;  /* primary dark: page, header, footer */
	--ground-2:      #0E2A1B;  /* slightly raised dark surface */
	--line:          #1C3827;  /* borders on dark */
	--line-2:        #2A4A34;  /* secondary borders on dark */
	--line-3:        #1F4A2C;  /* rule inside dark cards */
	--cream:         #F4F2E8;  /* primary light background */
	--cream-2:       #EDEADC;  /* "more from" band under posts */
	--white:         #FFFFFF;  /* cards on cream */
	--cream-text:    #F2F0E6;  /* body text on dark */
	--ink:           #0A1F14;  /* text on light */

	/* ---- Accent -------------------------------------------------------- */
	--crop:          #9BE564;  /* key words, primary buttons, active. 11.3:1 on ground */
	--gold:          #E8B64C;  /* CTA bands, highlights */

	/* ---- Supporting text ----------------------------------------------- */
	--mute-dark:     #8FA893;  /* metadata on dark, 6.7:1 */
	--mute-dark-2:   #C2CFC2;  /* standfirst on dark, 10.7:1 */
	--mute-dark-3:   #A9BBAB;  /* footer and card text on dark, 8.5:1 */
	--mute-dark-4:   #B8C9B9;  /* course-card text on dark */
	--link-dark:     #CBD8CB;  /* footer links */
	--mute-light:    #3C4A3E;  /* body on cream, 8.4:1 */
	--mute-light-2:  #5C6B5E;  /* metadata on cream, 5.0:1 (4.7:1 on cream-2) */
	--link-light:    #2F6B3A;  /* links on cream/white, 5.7:1 */
	--ink-on-crop:   #1E3524;  /* secondary text on crop, 8.7:1 */
	--ink-soft:      #2A3A2E;  /* chip text on cream */

	/* ---- Borders on light ---------------------------------------------- */
	--card-border:   #E2DECE;
	--rule-light:    #DDD9C9;
	--chip-border:   #BFC4B4;
	--pill-border:   #6E9179;  /* outlines on dark, 4.9:1 — passes 1.4.11 */

	/* ---- The furrow stripe: dark earth → crop → harvest gold ------------ */
	--furrow-1:  #1B3A24;
	--furrow-2:  #2A5531;
	--furrow-3:  #3D7139;
	--furrow-4:  #548C3F;
	--furrow-5:  #6FA847;
	--furrow-6:  #9BE564;
	--furrow-7:  #C3D96B;
	--furrow-8:  #E8B64C;
	--furrow-9:  #C98F33;
	--furrow-10: #8A5E24;
	--furrow-height: 10px;

	/* Heraldic colours live only inside the arms artwork, never in UI. */

	/* ---- Type ---------------------------------------------------------- */
	--font-sans: "Familjen Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--fs-hero:   clamp(44px, 6.6vw, 94px);   /* homepage hero */
	--fs-h1:     clamp(36px, 5.4vw, 68px);   /* standard page head */
	--fs-h1-post: clamp(32px, 4.6vw, 56px);  /* post head */
	--fs-display: clamp(32px, 4.2vw, 58px);  /* big section statements */
	--fs-h2:     clamp(28px, 3.4vw, 44px);
	--fs-h3:     23px;
	--fs-h3-sm:  19px;
	--fs-lede:   21px;
	--fs-lede-lg: 22px;
	--fs-body:   18px;
	--fs-small:  16px;
	--fs-xs:     15px;
	--fs-meta:   12px;                       /* the floor: nothing smaller, anywhere */
	--fs-meta-lg: 13px;

	--lh-tight:  1.04;
	--lh-head:   1.1;
	--lh-lede:   1.6;
	--lh-body:   1.7;
	--lh-read:   1.75;

	--track-hero: -0.04em;
	--track-h1:  -0.035em;
	--track-h2:  -0.03em;
	--track-h3:  -0.02em;
	--track-meta: 0.14em;
	--track-meta-wide: 0.18em;

	/* ---- Layout -------------------------------------------------------- */
	--container:      1320px;
	--container-pad:  44px;
	--section-pad-y:  96px;
	--section-pad-x:  64px;
	--article:        760px;
	--measure:        66ch;
	--gutter:         24px;
	--row-gap:        56px;

	/* ---- Components ---------------------------------------------------- */
	--radius-pill:  999px;
	--radius-card:  20px;
	--radius-panel: 18px;
	--btn-pad:      17px 33px;
	--card-pad:     34px 40px;
	--target:       24px;    /* WCAG 2.5.8 minimum target */

	--ease: .18s ease;
}

@media (max-width: 820px) {
	:root {
		--container-pad: 20px;
		--section-pad-y: 52px;
		--section-pad-x: 20px;
		--row-gap:       26px;
		--card-pad:      26px 20px;
	}
}
