/* base element defaults — TriTechne */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font: var(--text-body);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
  font-family: var(--font-display);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
}
h1 { font: var(--text-h1); }
h2 { font: var(--text-h2); }
h3 { font: var(--text-h3); }
h4 { font: var(--text-h4); }

p { margin: 0 0 var(--space-4); line-height: var(--lh-body); }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--blue-200); color: var(--navy-900); }

:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-xs); }

img, svg { display: block; max-width: 100%; }

/* opt-in dark section helper */
.tt-on-dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}
.tt-on-dark h1, .tt-on-dark h2, .tt-on-dark h3, .tt-on-dark h4 { color: var(--text-on-dark); }
