/* ==========================================================================
   New Ways of Working — Base
   Reset, typography, generic elements. No component or page styles here.
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--c-primary);
}

h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { margin-bottom: var(--space-2); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-blue-text); /* AA-safe for small link text */
  text-decoration: none;
}
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }

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

strong { font-weight: 700; }

blockquote {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.45;
}

::selection {
  background: var(--c-blue);
  color: var(--c-white);
}
