/* Shared public header and footer navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 246, 234, 0.14);
  background: rgba(40, 27, 23, 0.92);
  color: #fff6ea;
  backdrop-filter: blur(16px);
}

.site-header--overlay {
  position: fixed;
  right: 0;
  left: 0;
}

.site-header__inner,
.header-inner.site-header__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  padding: 11px 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.site-brand {
  min-width: 0;
  color: #fff6ea;
  text-decoration: none;
}

.site-brand__title {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
}

.site-brand__subtitle {
  display: block;
  margin-top: 5px;
  color: #e6c896;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(16px, 2.5vw, 30px);
  overflow: visible;
}

.site-nav a {
  position: relative;
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 246, 234, 0.84);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #e6c896;
  opacity: 1;
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #d99a5f;
}

.site-nav .site-nav__order {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(230, 200, 150, 0.32);
  border-radius: 999px;
  background: rgba(217, 154, 95, 0.11);
  color: #fff6ea;
}

.site-nav .site-nav__order:hover,
.site-nav .site-nav__order:focus-visible,
.site-nav .site-nav__order[aria-current="page"] {
  border-color: #d99a5f;
  background: rgba(217, 154, 95, 0.2);
  color: #fff6ea;
}

.site-nav .site-nav__order[aria-current="page"]::after {
  display: none;
}

.site-footer__inner,
.footer-inner.site-footer__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.site-footer__nav,
.footer-links.site-footer__nav {
  min-width: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 22px;
}

.site-footer__nav a,
.footer-links.site-footer__nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 246, 234, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible,
.footer-links.site-footer__nav a:hover,
.footer-links.site-footer__nav a:focus-visible {
  color: #e6c896;
}

.site-footer__legal {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
}

@media (max-width: 760px) {
  .site-header__inner,
  .header-inner.site-header__inner {
    width: min(100%, calc(100% - 24px));
    min-height: auto;
    padding: 10px 0 11px;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .site-brand__title {
    font-size: 1.95rem;
  }

  .site-brand__subtitle {
    margin-top: 4px;
    font-size: 0.58rem;
  }

  .site-nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px 12px;
    overflow: visible;
  }

  .site-nav a {
    min-height: 38px;
    font-size: clamp(0.72rem, 3.2vw, 0.86rem);
  }

  .site-nav .site-nav__order {
    min-height: 36px;
    padding: 0 10px;
  }

  .site-footer__inner,
  .footer-inner.site-footer__inner {
    width: min(100%, calc(100% - 28px));
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    text-align: center;
  }

  .site-footer__nav,
  .footer-links.site-footer__nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 18px;
  }

  .site-footer__nav a,
  .footer-links.site-footer__nav a {
    min-height: 40px;
    font-size: 0.88rem;
  }

  .site-footer__meta {
    text-align: center;
  }

  .site-footer__legal {
    justify-content: center;
  }
}

@media (max-width: 350px) {
  .site-header__inner,
  .header-inner.site-header__inner {
    width: min(100%, calc(100% - 18px));
  }

  .site-nav {
    gap: 3px 9px;
  }

  .site-nav a {
    font-size: 0.7rem;
  }

  .site-nav .site-nav__order {
    padding: 0 7px;
  }

  .site-footer__nav,
  .footer-links.site-footer__nav {
    gap: 2px 14px;
  }
}
