/*
 * Design tokens: FactScribe brand pack v1 (Direction 1B "Ledger", 18 Sep 2026).
 * The layout system is inherited from the performos.ai theme; colour, type and
 * geometry are FactScribe's own.
 *
 * Palette: deep teal ink, paper, ONE shared blue (#38AEE0, the SmartSam family
 * link) and acid lime (#C8FF4D), FactScribe's 5% accent.
 * Rules from the brand pack:
 *   - Lime is never a background panel and never body text. It marks state:
 *     the primary action, the terminal square, bullets.
 *   - Blue is never body text on paper (fails contrast below headline scale).
 *     It does rules, data emphasis, headline accent words, icons.
 *   - Ink on paper, white on teal.
 * Geometry: zero radius, 1px hairlines, no shadows. Motion: 120ms, linear.
 *
 * The --pos-* aliases keep the inherited section/component CSS working:
 * "primary" is ink, "accent" is blue, "secondary" is blue.
 */
:root {
	/* ---------- Brand palette ---------- */
	--teal: #0E2A2E;       /* Deep teal: the anchor. Dark grounds, all body ink */
	--blue: #38AEE0;       /* Shared blue: "Scribe", rules, data emphasis */
	--blue-2: #2496C7;     /* blue hover / pressed */
	--blue-ink: #1D86B8;   /* blue as text on light grounds (keyword in headlines; 3.7:1 on paper) */
	--key: var(--blue-ink); /* headline keyword colour (fs_lines *word*): change here */
	--lime: #C8FF4D;       /* Acid lime: state, primary action, terminal square */
	--lime-2: #B4EE2E;     /* lime hover / pressed */

	--paper: #F3F6F6;      /* alternate band (light UI ground) */
	--paper-2: #E9EEED;    /* recessed surfaces, table headers, browser chrome */
	--paper-3: #FFFFFF;    /* panel white: cards, list rows */
	--paper-4: #FBFCFC;    /* brand "Paper": page ground, hover */
	--ink: var(--teal);    /* body, dark bands */
	--ink-2: #3E5558;      /* secondary body copy */
	--ink-3: #75898C;      /* meta, captions, mono labels */
	--ink-4: #B3C1C2;      /* placeholder, locked */
	--rule: #DCE4E2;       /* hairline */
	--rule-2: #C4D0CE;     /* emphasised hairline */
	--accent: var(--blue);
	--accent-2: var(--blue-2);
	--accent-bg: rgba(56, 174, 224, 0.1);
	--accent-line: rgba(56, 174, 224, 0.45);
	--danger: #C8323C;     /* functional only: errors, required-field marks */
	--ice: var(--blue);    /* focus rings, info tags */
	--ice-bg: rgba(56, 174, 224, 0.1);
	--ice-line: rgba(56, 174, 224, 0.45);
	--moss: #2E7D5B;
	--amber: #C58B2C;

	/* ---------- Placeholders ----------
	   THE switch for the yellow "[TBC: …]" highlight (assets/css/factscribe.css).
	   Set to transparent once every TBC is filled to hide the highlight. */
	--tbc-bg: #FFE45C;

	/* ---------- Aliases used throughout the theme CSS ---------- */
	--pos-primary: var(--ink);
	--pos-secondary: var(--ice);
	--pos-accent: var(--accent);
	--pos-dark: var(--ink);
	--pos-navy: var(--ink);
	--pos-light: var(--paper-4);
	--pos-light-grey: var(--paper-2);
	--pos-pale-cyan: var(--paper);
	--pos-primary-subtle: var(--paper-2);
	--pos-white: var(--paper-3);
	--pos-grey-100: var(--paper-4);
	--pos-grey-200: var(--rule);
	--pos-grey-300: var(--rule);
	--pos-grey-500: var(--ink-4);
	--pos-grey-600: var(--ink-3);
	--pos-grey-700: var(--ink-2);
	--pos-gradient: var(--ink); /* no gradients in the brand: solid teal */

	/* Semantic */
	--color-text: var(--ink);
	--color-heading: var(--ink);
	--color-muted: var(--ink-2);
	--color-meta: var(--ink-3);
	--color-bg: var(--paper);
	--color-link: var(--ink); /* underlined in blue (base.css) */
	--color-link-hover: var(--ink-2);
	--color-border: var(--rule);

	/* ---------- Typography ---------- */
	--font-base: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-display: var(--font-base);
	--font-mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
	--fw-regular: 400;
	--fw-medium: 500;
	--fw-semibold: 600;
	--fw-bold: 700;
	--fw-extrabold: 700;
	--fw-display: 600;    /* Poppins 600, tight: every heading */

	--fs-body: 1rem;          /* 16px */
	--fs-small: 0.875rem;     /* 14px */
	--fs-lead: 1.125rem;      /* 18px */
	--fs-meta: 0.6875rem;     /* 11px mono labels / eyebrows */
	--lh-base: 1.5;
	--lh-heading: 1.1;

	/* Display = Poppins 600, tight (-0.03em) */
	--fs-h1: clamp(2.25rem, 1.5rem + 3vw, 4rem);         /* up to 64px */
	--fs-h2: clamp(1.625rem, 1.2rem + 1.6vw, 2.75rem);   /* up to 44px */
	--fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);     /* 24px */
	--fs-h4: 1.1875rem;                                   /* 19px card title */
	--tracking-display: -0.03em;
	--tracking-h: -0.025em;
	--tracking-mono: 0.14em;  /* eyebrows: uppercase, 0.14em */
	--tracking-mono-2: 0.1em;

	/* ---------- Layout ---------- */
	--container-max: 1320px;
	--container-medium: 1140px;
	--container-narrow: 860px;
	--container-blog: 860px;
	--gutter: clamp(1rem, 0.5rem + 1.5vw, 2rem);
	--section-py: clamp(3.5rem, 2.5rem + 3vw, 6rem);
	--col-gap: clamp(2rem, 1rem + 3vw, 5rem);

	/* ---------- Effects: hairlines not shadows, zero radius ---------- */
	--radius-sm: 0;
	--radius-md: 0;
	--radius-lg: 0;
	--radius-xl: 0;
	--radius-pill: 0;
	--shadow-card: none;
	--shadow-soft: 0 1px 0 rgba(14, 42, 46, 0.04), 0 12px 32px -16px rgba(14, 42, 46, 0.22); /* frames only */
	--shadow-glow: none;
	--bw: 1px;
	--bw-emph: 3px;

	--header-height: 64px;
	--notice-height: 44px;
	--transition: 120ms linear;
}
