:root {
  --gray: #aeaeae;
  --darkgray: #939393;
}

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

@font-face {
  font-family: "Workhorse";
  src: url("./fonts/WorkhorseScript-Text.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

body {
  font-family: "Moderat", system-ui, sans-serif;
  min-height: 100dvh;
  color: var(--gray);
}

h1,
h2,
p {
  font-size: inherit;
  font-weight: inherit;
}

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

ul {
  list-style: none;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  padding: 40px 20px;
}

.header__nav {
  display: flex;
  gap: 5px;
}

@media (min-width: 1024px) {
  .header {
    position: fixed;
    top: 16px;
    right: 16px;
    padding: 0;
  }
}

/* ==========================================================================
   Main
   ========================================================================== */

.main {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  gap: 99px;
}

/* ==========================================================================
   Content
   ========================================================================== */

.content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 20px;
  gap: 33px;
  font-size: 26px;
  line-height: 1.3;
}

.content br {
  display: none;
}

@media (min-width: 1024px) {
  .content {
    padding: 33px;
  }

  .content br {
    display: block;
  }
}

.content em {
  color: var(--darkgray);
  font-family: "Workhorse";
}

.content__link {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  color: var(--darkgray);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.link--underline {
  text-decoration: underline;
}

.link--inactive {
  opacity: 0.5;
}

.text-sm {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer__top {
  margin: 0 auto;
  padding: 0 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__image {
  margin-bottom: 48px;
  max-width: 148px;
  transform: rotate(-1.06deg);
  box-shadow: 1px 1px 0.7px 0 var(--gray);
}

.footer__logo {
  display: block;
  height: 34px;
  margin-bottom: 34px;
  fill: currentColor;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer__title {
  font-size: 14.5px;
  line-height: 1.2;
  font-family: "Workhorse";
}

.footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footer__links {
  font-size: 14px;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.5px;
}

.dot {
  display: block;
  width: 2px;
  height: 2px;
  border-radius: 1px;
  background-color: currentColor;
  transform: translateY(2px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding: 99px 20px 40px 20px;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .footer__bottom {
    padding: 30px 18px 18px 18px;
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__brand-line {
  display: block;
  width: 60px;
  height: 0.8px;
  background-color: currentColor;
}
