/* The80Percent.ai design tokens. Direction A: Signal. Approved 2026-11-09.
   Source of truth for colour, type and spacing. See guidelines.md for usage. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@125,700;125,800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Primitives */
  --t80-paper: #F6F3EC;
  --t80-ink: #141414;
  --t80-signal: #FF4F1A;
  --t80-signal-deep: #C93A0C;
  --t80-stone: #5C5953;
  --t80-white: #FFFFFF;
  --t80-line: #E3DED3;

  /* Roles */
  --color-background: var(--t80-paper);
  --color-surface: var(--t80-white);
  --color-text: var(--t80-ink);
  --color-text-muted: var(--t80-stone);
  --color-border: var(--t80-line);
  --color-primary: var(--t80-ink);          /* main buttons */
  --color-primary-hover: #2A2A2A;
  --color-on-primary: var(--t80-paper);
  --color-accent: var(--t80-signal);        /* fills, highlights, big type only */
  --color-on-accent: var(--t80-ink);        /* 5.6:1 */
  --color-accent-text: var(--t80-signal-deep); /* orange text and links, 4.6:1 on paper */
  --color-success: #1F7A4D;
  --color-error: #B3261E;

  /* Type */
  --font-display: 'Archivo', 'Arial Black', sans-serif; /* font-stretch: 125% */
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --text-xs: 0.75rem;    /* 12 captions */
  --text-sm: 0.875rem;   /* 14 labels */
  --text-base: 1rem;     /* 16 body */
  --text-lg: 1.125rem;   /* 18 lead */
  --text-xl: 1.25rem;    /* 20 H4 */
  --text-2xl: 1.5rem;    /* 24 H3 */
  --text-3xl: 2rem;      /* 32 H2 */
  --text-4xl: 2.75rem;   /* 44 H1 */
  --text-5xl: 4rem;      /* 64 display */

  --leading-tight: 1.02;
  --leading-snug: 1.2;
  --leading-body: 1.55;

  /* Space (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Shape */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;   /* buttons and tags */
}

.t80-display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
}

.t80-heading {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 700;
  line-height: var(--leading-snug);
}

.t80-highlight {
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 0 0.15em;
}
