/*
  Base reset and typography.
  Keep this file small so page-specific styling remains easy to locate.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--dark);
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.55rem, 5vw, 4.95rem);
  font-weight: 850;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  font-weight: 820;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  font-weight: 760;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

:focus-visible {
  outline: 3px solid rgba(255, 96, 0, 0.45);
  outline-offset: 3px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.section-tight {
  padding-block: 72px;
}

.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;
}

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 2000;
  padding: 10px 14px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}
