/* =========================================================
   Site Header
   ========================================================= */

.site-header {
  position: relative;
  z-index: 1000;
  background: var(--header);
  border-bottom: 2px solid var(--accent);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--accent);
}

.site-header__inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* =========================================================
   Brand
   ========================================================= */

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  text-decoration: none;
}

.site-brand__crest {
  height: 50px;
  display: block;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-brand__kicker {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-brand__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 2vw, 20px);
  letter-spacing: .04em;
  color: var(--ink);
}

/* =========================================================
   Navigation
   ========================================================= */

.site-nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow: visible;
}

.site-nav__link,
.site-nav__button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  position: relative;
  display: inline-flex;
  align-items: center;
  height: auto;
  padding: 6px 18px 6px 24px;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.site-nav__link::before,
.site-nav__button::before {
  content: "\276F";
  position: absolute;
  left: 8px;
  font-size: 12px;
  opacity: 0;
}

/* Hover state */
.site-nav__link:hover,
.site-nav__button:hover {
  color: white !important;
  background: var(--accent);
  text-shadow: 0 0 1px currentColor;
}

.site-nav__link:hover::after,
.site-nav__button:hover::after {
  transform: scaleX(1);
}

/* Active/current page state */
.site-nav__link.is-active,
.site-nav__group.is-active > .site-nav__button {
  font-weight: inherit;
  text-shadow: none;
  border: 0;
  color: var(--accent);
}

.site-nav__link.is-active::before,
.site-nav__group.is-active > .site-nav__button::before {
  opacity: 1;
}

/* Dropdown group */
.site-nav__group {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: visible;
}

.site-nav__button {
  gap: 6px;
}

.site-nav__caret {
  font-size: 10px;
  opacity: .8;
}

/* Dropdown panel */
.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  margin-top: 0;
  padding: 10px 12px;
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 34px rgba(0,0,0,.22);
  z-index: 99999;
}

/* Invisible hover bridge */
.site-nav__dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

/* Keep dropdown open */
.site-nav__group:hover .site-nav__dropdown,
.site-nav__group:focus-within .site-nav__dropdown {
  display: block;
}

.site-nav__drop-link {
  display: block;
  padding: 12px 10px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.site-nav__drop-link:last-child {
  border-bottom: 0;
}

.site-nav__drop-link:hover {
  color: white;
  background: var(--accent);
}

/* =========================================================
   Mobile Toggle
   ========================================================= */

.site-nav-toggle,
.site-nav-button {
  display: none;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1040px) {
  .site-header__inner {
    width: calc(100% - 36px);
  }

  .site-nav__link,
  .site-nav__button {
    font-size: 11px;
    letter-spacing: .12em;
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 860px) {
  .site-header__inner {
    width: calc(100% - 32px);
    min-height: 76px;
  }

  .site-nav-button {
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
  }

  .site-nav-button span {
    width: 26px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: var(--header);
    border-top: 1px solid var(--line);
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 18px 30px rgba(0,0,0,.18);
    z-index: 9999;
  }

  .site-nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav__link,
  .site-nav__button {
    width: 100%;
    height: auto;
    padding: 16px 24px;
    justify-content: flex-start;
    border-bottom: 1px solid var(--line);
  }

  .site-nav__link:hover,
  .site-nav__button:hover {
    color: #fff !important;
    background: var(--accent);
  }

  .site-nav__group {
    display: block;
    width: 100%;
  }

  .site-nav__dropdown {
    position: static;
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: rgba(0,0,0,.025);
    border: 0;
    box-shadow: none;
  }

  .site-nav__dropdown::before {
    display: none;
  }

  .site-nav__drop-link {
    padding: 14px 24px 14px 44px;
    border-bottom: 1px solid var(--line);
  }
}

/* =========================================================
   Small Screens
   ========================================================= */

@media (max-width: 460px) {
  .site-header__inner {
    width: calc(100% - 24px);
  }

  .site-brand__crest {
    height: 42px;
  }

  .site-brand__name {
    font-size: 16px;
  }
}