/* ProvITe design tokens — see DESIGN.md for the rules these encode. */

:root {
  /* ---- brand ---- */
  --ink:        #0B2B2E; /* body text, header band, borders, primary buttons */
  --teal:       #0E6E66; /* links, the IT in the wordmark, secondary actions */
  --signal:     #22A69A; /* accent on DARK grounds only */
  --clay:       #E59A68; /* the tag's material — flat fields only */
  --clay-deep:  #B04E27; /* clay where it must carry small text on light */
  --alarm:      #8F2F12; /* FAIL chips only, never decorative */
  --slate:      #5B6B6B; /* secondary text, captions */
  --ground:     #F1F0EA; /* page background */
  --paper:      #FAF9F5; /* raised surfaces, text on ink */
  --mist:       #E1E3DD; /* borders, rules, card edges */

  /* alternative tag materials, all AA with ink text */
  --tag-manila: #E3D5B7;
  --tag-teal:   #9BD4CC;
  --tag-bone:   #D9CFC0;

  /* ---- semantic ---- */
  --bg:          var(--ground);
  --bg-raised:   var(--paper);
  --text:        var(--ink);
  --text-muted:  var(--slate);
  --border:      var(--mist);
  --accent:      var(--teal);
  --accent-text: var(--paper);

  /* ---- type ---- */
  --font-display: Archivo, system-ui, -apple-system, sans-serif;
  --font-body:    Inter, system-ui, -apple-system, sans-serif;
  --track-display: -0.035em;
  --track-hero:    -0.045em;

  /* ---- scale (8px base) ---- */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px;

  --measure: 68ch; /* body line length ceiling */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--track-display);
  line-height: 1.04;
  text-wrap: balance;
}

p { max-width: var(--measure); }

a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: #0A4F4A; }

/* Browser surfaces — defaults belong to no design system. */
::selection { background: var(--clay); color: var(--ink); }
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}
html { scrollbar-color: var(--slate) var(--ground); }
:where(td, th, .num) { font-variant-numeric: tabular-nums; }

/* Touch targets: 44x44 minimum. */
:where(a.btn, button, input[type="submit"]) { min-height: 44px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
