/* josemotta.com — GENERATED from docs/tokens.json by scripts/build-tokens.mjs.
   Do not edit. Change docs/tokens.json and re-run `npm run tokens`. */

:root,
[data-theme="light"] {
  color-scheme: light;
  --surface: #fbfaf8; /* Page background. Warm off-white, never pure #fff — pure white reads clinical at full-page scale. */
  --surface-raised: #ffffff; /* Project cards and any panel lifted off the page. The only place pure white appears in light theme. */
  --surface-sunken: #f3f1ec; /* Recessed bands: the stack block, code samples, the footer. */
  --ink: #1a1917; /* Headings and body text on surface. Measures 16.8:1 in light, 16.1:1 in dark. */
  --ink-muted: #56534c; /* Secondary text: dates, roles, captions, project summaries. 7.4:1 in both themes. Also the label colour on surface-raised, where ink-subtle fails. */
  --ink-subtle: #6f6b63; /* Labels and metadata at 13px and up, on surface and surface-sunken ONLY (5.1:1 / 4.7:1 light, 4.6:1 / 4.8:1 dark). It falls under 4.5:1 on surface-raised in dark (4.2:1) and on accent-soft in both themes. On a card, use ink-muted. */
  --border: #e3e0d9; /* Hairline rules between sections and around cards. The main structural device on this site. */
  --border-strong: #c9c5bb; /* Borders that must be seen: inputs, the rule under the hero. NOT the focus ring — it measures 1.7:1 against surface and fails the 3:1 minimum for non-text UI. */
  --accent: #a33d16; /* Links, the active anchor, one rule per section. Burnt rust, chosen against the default developer-portfolio blue. 6.2:1 in light, 6.3:1 in dark. */
  --accent-ink: #ffffff; /* Text on an accent fill (6.5:1 light, 6.3:1 dark). The only correct foreground for accent backgrounds. */
  --accent-soft: #f6e9e2; /* Accent background wash for the detail-page callout. NOT behind stack tags, and never behind text below 15px — ink-subtle measures 4.46:1 light and 4.15:1 dark on it, both failing. */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #15140f;
    --surface-raised: #1f1d18;
    --surface-sunken: #0f0e0b;
    --ink: #f2efe8;
    --ink-muted: #a9a49a;
    --ink-subtle: #847f74;
    --border: #302d26;
    --border-strong: #474337;
    --accent: #e8784c;
    --accent-ink: #15140f;
    --accent-soft: #2b1b13;
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --surface: #15140f;
  --surface-raised: #1f1d18;
  --surface-sunken: #0f0e0b;
  --ink: #f2efe8;
  --ink-muted: #a9a49a;
  --ink-subtle: #847f74;
  --border: #302d26;
  --border-strong: #474337;
  --accent: #e8784c;
  --accent-ink: #15140f;
  --accent-soft: #2b1b13;
}

:root {
  /* Spacing — A 4px base. Section rhythm uses space-7 and space-8 only — generous vertical space is the single biggest difference between a considered page and a template. */
  --space-1: 4px; /* Gap between a tag and its neighbour. */
  --space-2: 8px; /* Label to the thing it labels. */
  --space-3: 16px; /* Paragraph spacing, card padding on mobile. */
  --space-4: 24px; /* Card padding, gap between project blocks. */
  --space-5: 40px; /* Heading to the content under it. */
  --space-6: 64px; /* Gap between entries inside a section. */
  --space-7: 96px; /* Between sections on mobile. */
  --space-8: 144px; /* Between sections on desktop. Do not reduce this to fit more above the fold. */

  /* Radius */
  --radius-none: 0; /* Section bands, images, the default. This is a square system. */
  --radius-sm: 4px; /* Stack tags and small chips. */
  --radius-md: 10px; /* Project cards and the thumbnail strip. The largest radius on the site. */
  --radius-full: 999px; /* The copy-email button only. */

  /* Layout — Values the brand book states in prose, named so CSS never hardcodes them. The 768px breakpoint stays a literal in media queries — CSS cannot read a custom property there. */
  --measure-prose: 576px; /* Max width of any column of running prose, including body text inside project cards. Measured: 640px set 76 characters in Inter at 17px, outside the comfortable range; 576px sets about 69. Target is 65-70 characters, verified by measuring the render. */
  --measure-wide: 960px; /* Max width of the project grid, the thumbnail strip and the page frame. */
  --hairline: 1px; /* Border width everywhere. There is no second border width on this site. */
  --underline-offset: 3px; /* Offset of the underline under a link. */
  --focus-width: 2px; /* Focus outline width. */
  --focus-offset: 2px; /* Focus outline offset. */
  --motion-fast: 200ms; /* The only transition duration on the site. Skipped entirely under prefers-reduced-motion. */
  --underline-hover: 2px; /* Link underline thickness on hover and focus. Links never change colour on hover — only this width changes, from hairline. */

  /* Families */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type styles — use font: var(--text-X) together with letter-spacing: var(--tracking-X). */
  --text-display-xl: 400 64px/60px var(--font-display); /* The hero name. Once per site. */
  --text-display-l: 400 44px/48px var(--font-display); /* Section headings and detail-page titles. */
  --text-title: 600 24px/32px var(--font-sans); /* Project names and role titles. */
  --text-subtitle: 500 18px/28px var(--font-sans); /* The one-line summary under a project name, and the hero tagline. */
  --text-body: 400 17px/28px var(--font-sans); /* All running prose. 17px because this site is read, not scanned. */
  --text-small: 400 15px/24px var(--font-sans); /* Experience entries, captions, the footer. */
  --text-label: 500 13px/16px var(--font-sans); /* Uppercase section labels and eyebrows. Always in ink-subtle or above. */
  --text-mono: 400 14px/20px var(--font-mono); /* Stack tags and any code. The mono face is what marks this as an engineer's site. */
  --tracking-display-xl: -0.01em;
  --tracking-display-l: -0.01em;
  --tracking-title: 0;
  --tracking-subtitle: 0;
  --tracking-body: 0;
  --tracking-small: 0;
  --tracking-label: 0.08em;
  --tracking-mono: 0;
}

/* Type utilities */
.display-xl {
  font: var(--text-display-xl);
  letter-spacing: var(--tracking-display-xl);
}
.display-l {
  font: var(--text-display-l);
  letter-spacing: var(--tracking-display-l);
}
.title {
  font: var(--text-title);
  letter-spacing: var(--tracking-title);
}
.subtitle {
  font: var(--text-subtitle);
  letter-spacing: var(--tracking-subtitle);
}
.body {
  font: var(--text-body);
  letter-spacing: var(--tracking-body);
}
.small {
  font: var(--text-small);
  letter-spacing: var(--tracking-small);
}
.label {
  font: var(--text-label);
  letter-spacing: var(--tracking-label);
}
.mono {
  font: var(--text-mono);
  letter-spacing: var(--tracking-mono);
}
