/* NursingRidge — reset + base typography
   Everything here reads from nr-tokens.css. No literal colours. */

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

html {
  background: var(--nr-paper);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--nr-paper);
  color: var(--nr-ink);
  font-family: var(--nr-sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--nr-display);
  font-weight: 400;
  letter-spacing: .012em;
  line-height: .94;
  margin: 0 0 .5em;
  color: var(--nr-head);
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 6.4vw, 80px); }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.04; }
h4 { font-size: clamp(18px, 2vw, 22px); line-height: 1.1; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--nr-teal-700); text-underline-offset: 2px; }
a:hover { color: var(--nr-navy-800); }

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

:focus-visible {
  outline: 3px solid var(--nr-teal-700);
  outline-offset: 2px;
  border-radius: 2px;
}

hr { border: 0; border-top: 1px solid var(--nr-line); margin: 2rem 0; }

code, pre, kbd { font-family: var(--nr-mono); font-size: .92em; }
code { color: var(--nr-teal-800); }

blockquote {
  margin: 1.5rem 0;
  padding-left: 20px;
  border-left: 4px solid var(--nr-gold-600);
  font-size: 1.12em;
  color: var(--nr-head);
}

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--nr-line); }
th { font-weight: 600; color: var(--nr-head); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 200;
  background: var(--nr-teal-500); color: #062E2B;
  padding: 12px 20px; border-radius: 0 0 3px 3px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
