/**
 * The Ladd Firm — design tokens.
 *
 * Source: tokens.css from the design system, RECONCILED against computed values read
 * out of a real browser. Where the design's token disagreed with what it renders, the
 * measured value wins and the discrepancy is noted inline.
 *
 * See .claude/docs/measured-design-spec.md for the full measurement table.
 */

:root {
	/* ---------- Colour ---------- */
	--ladd-brand: #D57534;
	--ladd-alt-brand: #939498;
	--ladd-primary: #2B2B2B;
	--ladd-secondary: #F4F2EF;
	--ladd-headings: #2B2B2B;
	--ladd-body: #535353;
	--ladd-background: #FFFFFF;

	--ladd-accent: #D57534;
	--ladd-accent-text: #A65516;   /* links + accent text on white, for contrast */
	--ladd-accent-hover: #B45F22;  /* hover: always darker, never lighter, never a fade */

	/* Measured only in the design's inline styles, absent from its tokens.css.
	   Used for eyebrow labels sitting on --ladd-primary. */
	--ladd-accent-on-dark: #E8A56C;

	--ladd-bg-section-alt: #F4F2EF;
	--ladd-bg-card: #F4F2EF;
	--ladd-bg-form: #FFFFFF;
	--ladd-bg-footer: #2B2B2B;

	/* Footer-specific values, MEASURED off the design and absent from its tokens.css.
	   The footer runs on a dark ground so it needs its own text/link/rule colours
	   rather than reusing --ladd-body (#535353), which would be unreadable. */
	--ladd-footer-text: #E7E3DC;              /* footer body copy */
	--ladd-footer-link: #E6E6E6;              /* footer links */
	--ladd-footer-heading: #939498;           /* column headings (alt-brand grey) */
	--ladd-footer-rule: rgba(255, 255, 255, .14);  /* divider above the legal row */
	--ladd-bg-footer-deep: #1F1F1F;           /* the disclaimer strip */

	--ladd-hair: #E4E0DA;          /* hairline borders, cards, FAQ rules */
	--ladd-input-border: #C9C5BF;  /* MEASURED: inputs are NOT --ladd-hair */

	/* Semantic — muted, warm-neutral family, never saturated stock colours. */
	--ladd-info-bg: #EFF3F6;    --ladd-info-border: #9FB6C9;  --ladd-info-text: #35576F;
	--ladd-success-bg: #EEF5EE; --ladd-success-border: #8FBB8F; --ladd-success-text: #2E5C33;
	--ladd-warning-bg: #FBF1E4; --ladd-warning-border: #D57534; --ladd-warning-text: #8A4712;
	--ladd-error-bg: #FBEEEC;   --ladd-error-border: #D97361;  --ladd-error-text: #A23B2A;

	/* ---------- Type ---------- */
	--ladd-font-heading: 'DM Sans', system-ui, sans-serif;
	--ladd-font-body: 'Nunito Sans', system-ui, sans-serif;

	/* MEASURED: buttons and nav render in the BODY face, not the heading face,
	   contradicting STYLE.md. Aliased so intent is explicit at the use site. */
	--ladd-font-button: var(--ladd-font-body);
	--ladd-font-nav: var(--ladd-font-body);

	/* H1 is a clamp; 54px is the CEILING, not the rendered size.
	   At 1440 it computes to 51.84px (3.6vw). Never hardcode 54. */
	--ladd-fs-h1: clamp(38px, 3.6vw, 54px);
	--ladd-lh-h1: 1.25;
	--ladd-ls-h1: -0.015em;

	--ladd-fs-h2: 44px;  --ladd-lh-h2: 1.24;
	--ladd-fs-h3: 34px;  --ladd-lh-h3: 1.28;
	--ladd-fs-h4: 28px;  --ladd-lh-h4: 1.3;
	--ladd-fs-h5: 24px;  --ladd-lh-h5: 1.3;
	--ladd-fs-h6: 20px;  --ladd-lh-h6: 1.3;

	--ladd-fs-body: 18px;
	--ladd-lh-body: 1.556;         /* MEASURED 28px/18px. tokens.css claimed 1.7. */
	--ladd-fs-lead: 19px;
	--ladd-lh-lead: 1.65;
	--ladd-fs-small: 14px; --ladd-lh-small: 1.6;

	--ladd-fs-nav: 17px;
	--ladd-fs-faq: 21px;           /* FAQ summary, in the HEADING face */
	--ladd-fs-input: 17px;
	--ladd-fs-label: 16px;

	--ladd-fs-eyebrow: 13px;
	--ladd-ls-eyebrow: 0.16em;
	--ladd-fs-eyebrow-sm: 12px;    /* the grey alt-brand variant */
	--ladd-ls-eyebrow-sm: 0.14em;

	--ladd-weight-heading: 600;
	--ladd-weight-body: 400;
	--ladd-weight-button: 700;
	--ladd-weight-nav: 600;
	--ladd-weight-label: 700;

	/* ---------- Spacing ---------- */
	--ladd-space-1: 4px;  --ladd-space-2: 8px;  --ladd-space-3: 12px;
	--ladd-space-4: 16px; --ladd-space-5: 20px; --ladd-space-6: 24px;
	--ladd-space-7: 32px; --ladd-space-8: 40px; --ladd-space-9: 48px;
	--ladd-space-10: 64px; --ladd-space-11: 80px; --ladd-space-12: 96px;

	--ladd-container-max: 1200px;
	--ladd-gutter: 40px;
	--ladd-gutter-mobile: 20px;
	--ladd-section-padding: 96px;
	--ladd-section-padding-mobile: 48px;
	--ladd-card-gap: 28px;

	/* ---------- Radii ---------- */
	/* MEASURED: inputs render 8px, not the 6px --radius-sm in the design's tokens. */
	--ladd-radius-input: 8px;
	--ladd-radius-button: 8px;
	--ladd-radius-card: 10px;
	--ladd-radius-pill: 999px;

	/* ---------- Elevation — used sparingly; this design is flat by default ---------- */
	--ladd-shadow-sm: 0 4px 14px rgba(43, 43, 43, .08);
	--ladd-shadow-md: 0 12px 34px rgba(43, 43, 43, .10);

	/* ---------- Motion ---------- */
	--ladd-ease: ease;
	--ladd-duration-fast: .2s;
	--ladd-duration: .25s;
}

@media (max-width: 767px) {
	:root {
		--ladd-fs-h2: 32px;
		--ladd-fs-h3: 26px;
		--ladd-fs-h4: 22px;
		--ladd-fs-h5: 20px;
		--ladd-gutter: var(--ladd-gutter-mobile);
		--ladd-section-padding: var(--ladd-section-padding-mobile);
	}
}

/* Respect a user's reduced-motion preference — the design's transitions are
   decorative, so removing them costs nothing. */
@media (prefers-reduced-motion: reduce) {
	:root {
		--ladd-duration-fast: 0s;
		--ladd-duration: 0s;
	}
}
