@font-face {
  font-family: Garet;
  src: url("../webfonts/Garet-Book.woff2") format("woff2"),
       url("../webfonts/Garet-Book.woff") format("woff"),
       url("../webfonts/Garet-Book.otf") format("opentype"),
       url("../webfonts/Garet-Book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --page-width: 1280px;
  --page-pad: 30px;
  --color-text: #737373;
  --color-text-active: #000;
  --color-bg: #fff;
  --color-header-bg: #f5f5f5;
  --header-height: 3.25rem;
  --font-family: Garet, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 14px;
  font-family: var(--font-family);
}

body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
.Normal,
.NormalBold,
.Head,
.SubHead {
  font-family: var(--font-family);
}

body {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text);
  font-weight: 700;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.75rem;
}

h3 {
  font-size: 2.5rem;
}

h4 {
  font-size: 2.25rem;
}

h5,
h6 {
  font-size: 2rem;
}

body.is-drawer-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--color-header-bg);
}

.site-header__inner,
.site-footer__inner {
  width: 100%;
  max-width: var(--page-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--page-pad);
  padding-left: var(--page-pad);
}

.site-header__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  min-height: var(--header-height);
}

.site-logo {
  flex: 0 0 auto;
  color: inherit;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-logo:hover {
  color: var(--color-text-active);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 1.75rem;
  font-weight: 400;
}

.site-nav ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  font-weight: 400;
}

.site-nav li + li {
  margin-left: 1.05rem;
}

.site-nav li::before {
  content: "";
  display: block;
  flex: 0 0 1px;
  width: 1px;
  height: 0.85em;
  margin-right: 1.05rem;
  background: currentColor;
}

.site-nav a,
.site-nav span {
  color: inherit;
  letter-spacing: 0.18em;
  line-height: 1;
  text-decoration: none;
  text-transform: lowercase;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav .selected a {
  color: var(--color-text-active);
}

.site-header__tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1.1rem;
  margin-left: auto;
}

.site-social {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
}

.site-social:hover {
  color: var(--color-text-active);
}

.site-social__icon {
  display: block;
}

.site-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.site-nav-toggle:hover {
  color: var(--color-text-active);
}

.site-nav-toggle__bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav-toggle.is-open .site-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle.is-open .site-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-nav-toggle.is-open .site-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-drawer {
  position: relative;
  z-index: 30;
}

.site-drawer__backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.site-drawer__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(20rem, 100%);
  padding: calc(var(--header-height) + 1.5rem) 1.75rem 2rem;
  overflow: auto;
  background: var(--color-header-bg);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s ease;
}

.site-drawer.is-open .site-drawer__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.site-drawer.is-open .site-drawer__panel {
  transform: translateX(0);
  visibility: visible;
}

.site-drawer__panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-drawer__panel li + li {
  margin-top: 0.85rem;
}

.site-drawer__panel a,
.site-drawer__panel span {
  color: inherit;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: lowercase;
}

.site-drawer__panel a:hover,
.site-drawer__panel .selected > a {
  color: var(--color-text-active);
}

.site-drawer__panel li ul {
  margin-top: 0.75rem;
  padding-left: 1rem;
}

.site-main {
  width: 100%;
  max-width: none;
  min-height: 50vh;
  margin: 0;
  padding: 0;
}

.site-footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (max-width: 1099px) {
  .site-nav {
    display: none;
    margin-left: 0;
  }
}
