/* Base reset, typography and small utilities. */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: inherit;
  margin: 0;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input, textarea, select { font-family: var(--font-body); color: var(--ink); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Text utilities */
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); }
.muted { color: var(--muted); }

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow--dim { color: var(--muted-2); }
.eyebrow--bright { color: var(--teal-bright); }

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
