/* Shared public-page masthead. Loaded after page-specific styles. */
.site-header,
.site-footer {
  width: min(100% - 64px, 1180px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 105px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid #d8d1ca;
}

.site-header .brand-link {
  display: block;
  flex: 0 0 auto;
}

.site-header .brand-link img {
  display: block;
  width: 162px;
  height: auto;
}

.site-header nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #211a16;
  font-family: "Latin Modern", serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav .current {
  color: #ad4c28;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    width: min(100% - 40px, 1180px);
  }

  .site-header {
    min-height: 88px;
    gap: 18px;
  }

  .site-header .brand-link img {
    width: 130px;
  }

  .site-header nav {
    gap: 16px;
  }

  .site-header nav a {
    font-size: .64rem;
    letter-spacing: .07em;
  }
}

@media (max-width: 470px) {
  .site-header {
    align-items: flex-start;
    min-height: 155px;
    padding-block: 12px;
  }

  .site-header nav {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    text-align: right;
  }

  .site-header nav a {
    justify-content: flex-end;
    min-height: 44px;
    white-space: nowrap;
  }
}
