/* ==========================================================================
   Alignment Marketing design system 1.0 (2026-11-12): tokens
   Faithful round. Source: material/styles.css (the site's one Tailwind 4
   sheet, its :root under @layer theme), computed-type.txt at 1440 and 390,
   boxes.json at 1440 and 390, the four screenshots.
   Load order: tokens.css, base.css, components.css.
   Naming: --am-<group>-<step> for primitives, --<role> for semantics.
   Page CSS reads semantic names only; a tone re-points them.
   ========================================================================== */

:root {
  /* ---------------------------------------------------------------------
     Color primitives
     Measured: a pure neutral oklch greyscale, chroma 0, no brand hue.
     Decided: kept exactly; written as the oklch the site ships, hex beside.
     --------------------------------------------------------------------- */
  --am-grey-1000: oklch(14.5% 0 0);  /* #0a0a0a  site --color-foreground */
  --am-grey-900:  oklch(20.5% 0 0);  /* #171717  site --color-primary */
  --am-grey-500:  oklch(55.6% 0 0);  /* #737373  site --color-muted-foreground */
  --am-grey-400:  oklch(70.8% 0 0);  /* #a1a1a1  site --color-ring */
  --am-grey-200:  oklch(92.2% 0 0);  /* #e5e5e5  site --color-border, --color-input */
  --am-grey-100:  oklch(97% 0 0);    /* #f5f5f5  site --color-secondary, --color-accent */
  --am-grey-50:   oklch(98.5% 0 0);  /* #fafafa  site --color-primary-foreground */
  --am-white:     oklch(100% 0 0);   /* #ffffff  site --color-background */
  --am-red-600:   oklch(57.7% .245 27.325); /* site --color-destructive; unused on the home */

  /* ---------------------------------------------------------------------
     Color roles (tone: paper, the only tone the capture shows)
     Contrast, computed from oklch L (achromatic, so Y = L^3):
       ink on paper 19.79:1; ink on wash 18.15:1
       muted on paper 4.73:1; muted on wash 4.34:1 (large text only there);
       muted on the card hover fill (wash at 50%, about #fafafa) 4.53:1
       line on paper 1.26:1: decorative card and band edges only, never the
         sole cue for a control (cards are identified by their text)
       focus ring (ink) on paper 19.79:1, on wash 18.15:1
     Large text threshold: 24 px, or 18.66 px at 700. Body text needs 4.5:1.
     --------------------------------------------------------------------- */
  --paper:        var(--am-white);    /* page and band surface */
  --wash:         var(--am-grey-100); /* quiet fill: card hover base */
  --wash-hover:   color-mix(in oklab, var(--am-grey-100) 50%, transparent); /* measured: hover:bg-secondary/50 */
  --ink:          var(--am-grey-1000);/* headings, wordmark, card titles */
  --ink-strong:   var(--am-grey-900); /* reserved: primary fill; unused on the home */
  --ink-soft:     color-mix(in oklab, var(--am-grey-1000) 80%, transparent); /* measured: group-hover text-foreground/80, about 12.5:1 */
  --muted:        var(--am-grey-500); /* lede, eyebrow, numbers, footer */
  --line:         var(--am-grey-200); /* 1 px rules: header, footer, card, separator */
  --line-hover:   color-mix(in oklab, var(--am-grey-1000) 20%, transparent); /* measured: hover:border-foreground/20 */
  --danger:       var(--am-red-600);  /* status: error; unused on the home */
  --focus:        var(--am-grey-1000);/* decided: ring in ink, see Focus below */

  /* ---------------------------------------------------------------------
     Type
     Measured: font-family "Inter", ui-sans-serif, system-ui, sans-serif on
     every node. No @font-face and no font link exist in the capture, so
     Inter shows only where the visitor has it installed; elsewhere the
     system UI face renders (the capture itself rendered in system-ui).
     Decided: keep the stack as shipped; base.css names Inter by local()
     only. Self-hosting Inter is an open question in REPORT.md.
     Loaded weights: 400, 500, 600, 700 (the four the classes use).
     --------------------------------------------------------------------- */
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Scale primitives: the Tailwind steps the site uses, unchanged. */
  --am-size-12: 0.75rem;   /* 12 px, line 16 */
  --am-size-14: 0.875rem;  /* 14 px, line 20 */
  --am-size-16: 1rem;      /* 16 px, line 24 */
  --am-size-18: 1.125rem;  /* 18 px, line 28 */
  --am-size-36: 2.25rem;   /* 36 px, line 40 */
  --am-size-48: 3rem;      /* 48 px, line 48 */

  /* Type roles. Each replaces exactly the measured size named. */
  --type-display-size: var(--am-size-36);  /* replaces h1 36 px at 390 */
  --type-display-line: 2.5rem;             /* 40 px, boxes-390 h1 height 40 */
  --type-display-size-wide: var(--am-size-48); /* replaces h1 48 px at 1440 (from 40rem up) */
  --type-display-line-wide: 1;             /* 48 px, boxes h1 height 48 */
  --type-lede-size: var(--am-size-18);     /* replaces p 18 px muted */
  --type-lede-line: 1.75rem;
  --type-wordmark-size: var(--am-size-18); /* replaces header a 18 px 600 */
  --type-wordmark-line: 1.75rem;
  --type-title-size: var(--am-size-16);    /* replaces card h2 16 px 600 */
  --type-title-line: 1.5rem;
  --type-body-size: var(--am-size-16);     /* replaces body and card a 16 px */
  --type-body-line: 1.5;
  --type-small-size: var(--am-size-14);    /* replaces footer p 14 px italic */
  --type-small-line: 1.25rem;
  --type-eyebrow-size: var(--am-size-12);  /* replaces card span and footer p 12 px */
  --type-eyebrow-line: 1rem;

  --tracking-tight: -0.025em;  /* h1 and wordmark */
  --tracking-wide: 0.05em;     /* eyebrows, uppercase */
  --measure-lede: 42rem;       /* site --container-2xl; lede measure */

  /* ---------------------------------------------------------------------
     Spacing
     Measured: Tailwind base --spacing .25rem; used steps 2, 4, 6, 8, 16.
     Decided: a named 4 px scale holding exactly those steps plus 12.
     --------------------------------------------------------------------- */
  --space-1: 0.25rem;  /*  4 */
  --space-2: 0.5rem;   /*  8  eyebrow to title */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16  header block padding, grid gap, lede gap, separator */
  --space-6: 1.5rem;   /* 24  page gutter, card inset */
  --space-8: 2rem;     /* 32  footer block padding */
  --space-16: 4rem;    /* 64  section rhythm: main top and bottom, hero to grid */

  --section-y: var(--space-16);
  --gutter: var(--space-6);
  --grid-gap: var(--space-4);
  --card-inset: var(--space-6);

  /* ---------------------------------------------------------------------
     Containers and breakpoints
     Measured: max-w-5xl 64rem with px-6 (content 976 px, left edge 232 at
     1440); max-w-2xl 42rem lede; max-w-xs 20rem footer rule.
     Breakpoints from the sheet: sm 40rem (640), lg 64rem (1024).
     CSS custom properties cannot sit in @media, so the two values are
     written literally in base.css and components.css with this comment.
     --------------------------------------------------------------------- */
  --container: 64rem;
  --container-narrow: 20rem;
  /* --bp-sm: 40rem; --bp-lg: 64rem; (documentation only) */

  /* ---------------------------------------------------------------------
     Radii, rules, shadows
     Measured: rounded-lg 8 px on cards; 1 px borders. No shadow is drawn
     on any home element (shadow-xs exists in the sheet for buttons only).
     Decided: one radius, one rule weight, no shadow.
     --------------------------------------------------------------------- */
  --radius: 0.5rem;
  --rule: 1px;

  /* ---------------------------------------------------------------------
     Focus
     Measured: the site draws ring/50 (#a1a1a1 at 50%, under 2:1) only on
     buttons; cards and links fall back to the browser default.
     Decided (applied, an accessibility fix): one ring, 2 px solid ink with
     a 2 px offset, 19.79:1 on paper, 18.15:1 on wash. Appears only on
     keyboard focus, so the resting look is unchanged.
     --------------------------------------------------------------------- */
  --focus-width: 2px;
  --focus-offset: 2px;

  /* ---------------------------------------------------------------------
     Motion
     Measured: transition-colors 150 ms cubic-bezier(.4, 0, .2, 1) on cards
     and links. The one signature motion: the card's quiet color shift on
     hover. Reduced motion: the shift becomes instant (duration 0).
     No video, no autoplay on the site.
     --------------------------------------------------------------------- */
  --duration: 150ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration: 0ms; }
}
