@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Bold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

section[id],
h2[id] {
  scroll-margin-top: 72px;
}

@media (min-width: 768px) {
  html {
    scroll-padding-top: 88px;
  }

  section[id],
  h2[id] {
    scroll-margin-top: 88px;
  }
}

@media (min-width: 1200px) {
  html {
    scroll-padding-top: 96px;
  }

  section[id],
  h2[id] {
    scroll-margin-top: 96px;
  }
}

body {
  min-width: 320px;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: #f3efe8;
  background-image:
    linear-gradient(rgba(243, 239, 232, 0.42), rgba(243, 239, 232, 0.42)),
    url('../img/brand/pattern.png');
  background-repeat: repeat;
  background-position: top left;
  background-size: 180px 180px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text);
  font-weight: 800;
  line-height: var(--lh-heading);
  letter-spacing: -0.03em;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  color: var(--color-text-soft);
}

strong {
  font-weight: 700;
}

a {
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

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

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

@media (min-width: 768px) {
  :root {
    --container-gutter: 32px;
    --section-space-y: 88px;
  }
}

@media (min-width: 1200px) {
  :root {
    --section-space-y: 112px;
  }
}

body.no-scroll {
  overflow: hidden;
}
