header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  position: sticky !important;
  top: 0;
  z-index: 10 !important;
}

header a {
  color: var(--text);
  text-decoration: none;
}

.home {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
}

.logo {
  height: 40px;
}

.logo > * {
  width: unset;
  height: 100%;
}

.logo img,
.logo svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.title-text {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  font-family: var(--title);
  text-align: left;
}

.title {
  font-size: var(--large);
}

.subtitle {
  opacity: 0.65;
  font-weight: var(--thin);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 30px;
  height: 30px;
  margin: 0;
  color: var(--text);
  appearance: none;
  transition: background var(--transition);
}

.nav-toggle:after {
  content: "\f0c9";
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--text);
  font-size: 15px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.nav-toggle:checked:after {
  content: "\f00d";
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--heading);
  text-transform: uppercase;
  font-size: 1.1rem;
}

nav > a {
  padding: 7px 8px;
}

nav > a:hover {
  color: var(--primary);
}

@media (max-width: 700px) {
  header:not([data-big]) {
    justify-content: flex-end;
  }
  header:not([data-big]) .nav-toggle {
    display: flex;
  }
  header:not([data-big]) .nav-toggle:not(:checked) + nav {
    display: none;
  }
  header:not([data-big]) nav {
    align-items: flex-end;
    flex-direction: column;
    width: 100%;
  }
}

header[data-big] {
  --home-logo-w: clamp(360px, 24vw, 520px);
  --home-logo-offset-left: 60px;
  --home-profile-w: 260px;
  --home-page-w: 1000px;
  display: grid;
  grid-template-columns: 1fr minmax(0, var(--home-page-w)) 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: "logo title profile" "logo nav   profile";
  column-gap: 20px;
  row-gap: 18px;
  justify-content: center;
  align-items: center;
  padding: 100px 20px;
  top: unset;
}
header[data-big] .home-logo {
  grid-area: logo;
  justify-self: start;
  align-self: start;
  margin-left: var(--home-logo-offset-left);
}
header[data-big] .home-logo .logo {
  width: var(--home-logo-w);
  height: auto;
}
header[data-big] .home-logo .logo > * {
  width: 100%;
  height: auto;
}
header[data-big] .home-title {
  grid-area: title;
  justify-self: center;
  align-self: start;
  max-width: 100%;
}
header[data-big] .home-title .title-text {
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
header[data-big] nav {
  grid-area: nav;
  justify-self: center;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  gap: 14px;
}
header[data-big] nav > a {
  padding: 8px 10px;
}
header[data-big] .title {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  white-space: nowrap;
}
header[data-big] .subtitle {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
}
header[data-big] .home-profile {
  grid-area: profile;
  justify-self: end;
  align-self: start;
  max-width: var(--home-profile-w);
  width: var(--home-profile-w);
}
header[data-big] .home-profile .portrait {
  margin: 0;
  width: var(--home-profile-w);
  max-width: 100%;
}
header[data-big] .home-profile .portrait-image {
  margin-bottom: 14px;
}
@media (max-width: 1200px) {
  header[data-big] {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas: "logo" "title" "profile" "nav";
    column-gap: 0;
    row-gap: 20px;
  }
  header[data-big] .home-profile {
    justify-self: center;
    max-width: 320px;
  }
  header[data-big] .home-logo {
    justify-self: center;
  }
  header[data-big] .title {
    white-space: normal;
  }
}

/*# sourceMappingURL=header.css.map */