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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-ivory);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--color-forest-deep); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-forest); }

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

.skip-link {
  position: absolute; left: 8px; top: -48px; background: var(--color-forest); color: #fff;
  padding: 8px 12px; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { top: 8px; }

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

main { flex: 1; }
