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

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

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { max-width: 68ch; }

a { color: inherit; }

ul, ol { list-style: none; }

button { font-family: inherit; }

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

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

:focus-visible {
  outline: 3px solid var(--ht-blue);
  outline-offset: 2px;
}

/* Haitian blue measures 11.44:1 on cream (fine) but only 1.18:1 on the
   wood nav/footer background — both are dark, low-luminance colors, and
   1.18:1 fails WCAG 1.4.11's 3:1 non-text-contrast minimum badly. Gold on
   wood measures 7.63:1, so override just the two wood-background
   components rather than changing the default ring everywhere. */
.site-nav :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}
