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

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

body {
  margin: 0;
  font-family: var(--f42-font-body);
  font-size: 17px;
  line-height: 1.58;
  color: var(--f42-text);
  background: var(--f42-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

a {
  color: var(--f42-accent);
  text-decoration: none;
  transition: color var(--f42-duration) var(--f42-ease);
}

a:hover {
  color: var(--f42-accent-hover);
}

h1,
h2,
h3,
h4,
.f42-display {
  font-family: var(--f42-font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--f42-brand);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

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

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

.site-main {
  min-height: 60vh;
  padding-top: calc(var(--f42-nav-height) + 1rem);
}
