/* Header proportions and treatment follow the supplied narrow header reference. */
.site-header {
  background-color: #111d13;
  background-image: linear-gradient(90deg, #0b140c22, #28301a18, #0b140c33), url('../images/header-grain.svg');
  border-bottom: 1px solid #c7ab7c55;
  color: #f2ebdd;
}

.site-header .header-inner {
  width: calc(100% - var(--site-inset) * 2);
  max-width: var(--site-max-width);
  min-height: 78px;
  gap: .75rem;
  padding-block: .6rem;
}

.header-brand {
  display: block;
  width: min(225px, calc(100% - 100px));
  flex-shrink: 0;
  text-decoration: none;
}

.header-brand img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 1;
  object-fit: cover;
}

.site-header .navigation {
  gap: .3rem;
  align-items: stretch;
  padding-bottom: .5rem;
}

.navigation > a:not(.button),
.nav-dropdown > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem .6rem;
  color: inherit;
  font-family: Bahnschrift, 'Arial Narrow', Arial, sans-serif;
  font-size: .82rem;
  font-weight: 500;
  font-stretch: condensed;
  letter-spacing: .025em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  justify-content: space-between;
  gap: .45rem;
  list-style: none;
  cursor: pointer;
}

.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::marker { content: ''; }

.nav-dropdown > summary:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}

.nav-chevron {
  width: .65rem;
  height: .45rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform .15s;
}

.nav-dropdown[open] .nav-chevron { transform: rotate(180deg); }

.navigation > a:not(.button):hover,
.nav-dropdown > summary:hover,
.nav-dropdown[open] > summary {
  color: var(--sand);
}

.nav-dropdown-panel {
  position: relative;
  min-width: 230px;
  padding: .5rem;
  background: #17261a;
  border: 1px solid #c7ab7c66;
  box-shadow: 0 8px 20px #0003;
}

.nav-dropdown-panel > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .6rem .75rem;
  color: var(--bone);
  font-size: .8rem;
  line-height: 1.4;
  text-decoration: none;
}

.nav-dropdown-panel > a:hover {
  background: #c7ab7c17;
  color: #e2c99f;
}

.nav-dropdown-panel > p {
  padding: .4rem .75rem;
  margin: 0;
  color: var(--bone);
  font-size: .82rem;
  line-height: 1.5;
}

.site-header .header-quote {
  align-self: center;
  min-height: 38px;
  padding: .55rem 1rem;
  background: linear-gradient(110deg, #d2b989, #c7ab7c);
  color: #10190f;
  border: 1px solid #e2c99e;
  border-radius: 2px;
  box-shadow: inset 0 0 0 2px #9c835740, 0 1px 3px #0004;
  font-family: Bahnschrift, 'Arial Narrow', Arial, sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.1;
  white-space: nowrap;
}

.site-header .header-quote:hover {
  background: #dfc69c;
  transform: none;
}

@media (max-width: 1049px) {
  .site-header .navigation { flex-direction: column; }
  .site-header .header-quote { align-self: stretch; min-height: 44px; }
  .navigation > a:not(.button), .nav-dropdown > summary { padding-inline: .6rem; }
  .nav-dropdown-panel { box-shadow: none; margin-bottom: .5rem; min-width: 0; }
}

@media (min-width: 650px) {
  .header-brand { width: 295px; }
}

@media (min-width: 1050px) {
  .site-header .header-inner { min-height: 80px; gap: 1.5rem; }
  .header-brand { width: clamp(280px, 27vw, 310px); }
  .site-header .navigation {
    flex: 1;
    justify-content: space-between;
    max-width: 900px;
    margin-left: 2.5rem;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(.65rem, 1.6vw, 1.7rem);
    padding-bottom: 0;
  }
  .navigation > a:not(.button), .nav-dropdown > summary { padding-inline: 0; }
  .nav-dropdown-panel {
    position: absolute;
    top: calc(100% + .6rem);
    left: -.75rem;
    z-index: 5;
    width: 250px;
  }
  .projects-dropdown .nav-dropdown-panel { left: auto; right: -.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-chevron { transition: none; }
}
