/* =====================================================================
   Latigo design system 1.0 (2026-11-12) | base.css
   Fonts, reset, body defaults, type roles, page shell. Needs tokens.css.
   ===================================================================== */

/* ---------------------------------------------------------------------
   FONTS
   The live site imports these from Google Fonts:
   css2?family=DM+Sans:wght@400;500;700&family=Inter:wght@400;500
   Same files, self-hosted (variable woff2, latin subset), so the system
   works offline and needs no CDN. License: SIL Open Font License 1.1.
   Only the weights the site loads are declared. DM Sans italic is not
   loaded by the site; the testimonial italic is the browser's slant of
   the upright, kept as measured.
   --------------------------------------------------------------------- */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/design-system/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/design-system/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------
   RESET (the site's own: border-box, zero margins)
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, video, svg { display: block; max-width: 100%; }
ul[role="list"], ol[role="list"] { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

/* ---------------------------------------------------------------------
   BODY (measured: Inter 16px / 1.65, ink on paper)
   --------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-lede);
  color: var(--color-text);
  background: var(--latigo-paper);
  overflow-x: hidden; /* full-bleed bands never cause sideways scroll */
}

/* Any element with a tone paints its surface and inherits its text color */
[data-tone] { background-color: var(--color-surface); color: var(--color-text); }

/* ---------------------------------------------------------------------
   FOCUS (decided, applied: the site draws none of its own)
   One ring everywhere; the tone re-points its color.
   --------------------------------------------------------------------- */
:focus { outline: none; }
:focus-visible {
  outline: var(--ring-width) solid var(--color-focus);
  outline-offset: var(--ring-offset);
  border-radius: 2px;
}

/* ---------------------------------------------------------------------
   TYPE ROLES
   Use the class on whatever element the outline needs (h1, h2, p).
   --------------------------------------------------------------------- */
.t-display, .t-title-xl, .t-title-l, .t-title-s, .t-quote {
  font-family: var(--font-display);
  color: var(--color-heading);
}
/* Hero line. Replaces 80px (1440) and 48px (390). */
.t-display  { font-size: var(--text-display);  font-weight: var(--weight-bold); line-height: var(--leading-tight); }
/* Centered band titles. Replaces 60.8 / 38.4. */
.t-title-xl { font-size: var(--text-title-xl); font-weight: var(--weight-bold); line-height: var(--leading-title); }
/* Split-band titles. Replaces 56 / 35.2. */
.t-title-l  { font-size: var(--text-title-l);  font-weight: var(--weight-bold); line-height: var(--leading-tight); }
/* Names, step titles, footer column heads. Replaces 24. */
.t-title-s  { font-size: var(--text-title-s);  font-weight: var(--weight-bold); line-height: var(--leading-snug); }
/* Testimonial. Replaces 32 / 22.4, regular, slanted. */
.t-quote    { font-size: var(--text-quote);    font-weight: var(--weight-regular); font-style: italic; line-height: var(--leading-quote); }

/* Hero line under the display. Replaces 22.4 / 17.6. */
.t-lede   { font-size: var(--text-lede);   line-height: var(--leading-lede); }
/* Band paragraphs. Replaces 19.2 / 16. */
.t-body-l { font-size: var(--text-body-l); line-height: var(--leading-body-l); }
/* Card text. Replaces 16. */
.t-body   { font-size: var(--text-body);   line-height: var(--leading-card); }
/* Footer links and tagline. Replaces 15.2. */
.t-small  { font-size: var(--text-small);  line-height: var(--leading-snug); }
/* Caps label: team roles. Replaces 12.8, tracked 0.1em. */
.t-label  { font-size: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-text-soft); }
/* Caps citation: testimonial attribution, tracked 0.14em. */
.t-cite   { font-size: var(--text-label); letter-spacing: var(--tracking-cite); text-transform: uppercase; color: var(--color-text-soft); }
/* Fine print: copyright. Replaces 12. */
.t-fine   { font-size: var(--text-fine); color: var(--color-muted); }

/* ---------------------------------------------------------------------
   PAGE SHELL
   --------------------------------------------------------------------- */
/* Skip link: first focusable element, hidden until focused. Added (floor). */
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: var(--space-xs) var(--space-s);
  background: var(--latigo-paper); color: var(--latigo-ink);
  font-size: var(--text-body); font-weight: var(--weight-medium);
  border-radius: var(--radius-button);
  --color-focus: var(--latigo-ink);
}
.skip-link:focus { top: var(--space-s); }

/* Band: every full-width section. Side gutter 4vw, vertical 6vw. */
.band { padding: var(--space-band) var(--gutter); }
.band--tight { padding: var(--space-band-s); }
.band--center { text-align: center; }

/* Containers */
.container       { max-width: var(--container-wide);  margin-inline: auto; }
.container-intro { max-width: var(--container-intro); margin-inline: auto; }
.container-quote { max-width: var(--container-quote); margin-inline: auto; }

/* Screen-reader-only text */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Reduced motion: every transition and animation becomes instant. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
