/* Box model reset */
*, *::before, *::after { box-sizing: border-box; }

/* Global element defaults */
html, body {
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; overflow-x: clip; }

/* Replaced elements */
img, svg, video { display: block; max-width: 100%; }
picture { display: contents; }

/* Interactive resets */
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Heading scale */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--fg2);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-tight);
  font-weight: 800;
  margin: 0 0 .5em;
}
h1 { font-size: var(--fs-h1); font-weight: 900; line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 700; }

/* Body text */
p { margin: 0 0 1em; color: var(--fg1); }
code, pre { font-family: var(--font-mono); font-size: 0.92em; }

/* Links */
a { color: var(--link); text-decoration: none; border-bottom: 1px solid currentColor; transition: color .2s ease; }
a:hover { color: var(--accent); }

/* Text selection highlight */
::selection { background: var(--accent); color: #fff; }
.bg-coral ::selection,
.bg-coral::selection { background: var(--wab-dark-water); color: #fff; }
