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

html {
  min-height: 100%;
  background: var(--color-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: #f5f5f5;
  line-height: 1.55;
}

body::before {
  display: none;
}


h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

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

p {
  margin-top: 0;
}

a {
  color: var(--color-link);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--color-link-hover);
}

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

button {
  cursor: pointer;
}

img,
video,
iframe {
  max-width: 100%;
}

::selection {
  color: #ffffff;
  background: var(--color-accent);
}

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

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
