/* A single, readable masthead for the family campaign. */
.site-header {
  position: relative;
  z-index: 40;
  width: min(84rem, calc(100% - 6rem));
  min-height: 116px;
  height: auto;
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  border-bottom: 1px solid #c9bea5;
  background: var(--paper);
}
.site-header .wordmark {
  flex: 0 0 auto;
  gap: 1rem;
  font-size: .875rem;
  line-height: 1.4;
  letter-spacing: .11em;
}
.site-header .wordmark strong {
  margin-top: .125rem;
  font-size: 1.625rem;
  line-height: 1.15;
  letter-spacing: .075em;
}
.site-header .wordmark small {
  color: #66604f;
  font-size: .75rem;
  line-height: 1.4;
  letter-spacing: .065em;
  margin-top: .375rem;
}
.site-header .monogram {
  width: 56px;
  height: 56px;
  border-color: #a38a55;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px #d9cfb7;
  color: #17243a;
  font-size: 1.5rem;
}
.site-header #navigation {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.125rem, 1.6vw, 1.75rem);
  min-width: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.site-header #navigation > a:not(.button) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: .625rem 0;
  color: #243149;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
}
.site-header #navigation > a:not(.button)::after {
  content: '';
  position: absolute;
  inset: auto 0 .375rem;
  height: 2px;
  background: #9d7f43;
  opacity: 0;
}
.site-header #navigation > a:not(.button):hover,
.site-header #navigation > a[aria-current]:not(.button) { color: #735725; }
.site-header #navigation > a:not(.button):hover::after,
.site-header #navigation > a:not(.button):focus-visible::after,
.site-header #navigation > a[aria-current]:not(.button)::after { opacity: 1; }
.site-header #navigation > .petition-link {
  flex: 0 0 auto;
  min-height: 52px;
  padding: .875rem 1.375rem;
  border: 1px solid #18263d;
  border-radius: 3px;
  background: #18263d;
  color: #fffaf0;
  box-shadow: inset 0 0 0 1px #cdb17b33;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  transform: none;
}
.site-header #navigation > .petition-link:hover {
  background: #2b3e59;
  border-color: #2b3e59;
  text-decoration: none;
  transform: none;
}
.site-header a:focus-visible,
.site-header button:focus-visible { outline: 3px solid #9d7f43; outline-offset: 5px; }
.site-header .menu-toggle { display: none; }

@media (max-width: 74rem) {
  .site-header { width: calc(100% - 3rem); min-height: 106px; gap: 1.5rem; }
  .site-header .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: .875rem;
    min-height: 48px;
    padding: .75rem 1rem;
    color: #243149;
    background: #f3f0e8;
    border: 1px solid #c4b89c;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
  }
  .site-header .menu-toggle:hover,
  .site-header .menu-toggle[aria-expanded="true"] { background: #eae5d9; border-color: #9d8554; }
  .site-header .menu-toggle span { display: block; width: 18px; height: 14px; font-size: 0; }
  .site-header .menu-toggle span::before { content: ''; display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 6px currentColor, 0 12px currentColor; }
  .site-header #navigation {
    display: none;
    position: absolute;
    inset: calc(100% - 1px) 0 auto;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .75rem 1.5rem 1.5rem;
    background: #faf8f3;
    border: 1px solid #c9bea5;
    border-top: 2px solid #a38a55;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 18px 32px #15243a20;
    max-height: calc(100dvh - 7rem);
    overflow-y: auto;
  }
  .site-header #navigation.is-open { display: flex; }
  .site-header #navigation > a:not(.button) {
    min-height: 56px;
    padding: 1rem 0;
    border-bottom: 1px solid #dfdbd0;
    font-size: 1.125rem;
    line-height: 1.4;
    white-space: normal;
  }
  .site-header #navigation > a:not(.button)::after { display: none; }
  .site-header #navigation > a:not(.button):hover { color: #735725; }
  .site-header #navigation > .petition-link { width: 100%; margin-top: 1.25rem; min-height: 54px; }
}

@media (max-width: 40rem) {
  .site-header { min-height: 102px; padding-block: 1.125rem; gap: 1rem; }
  .site-header .wordmark { gap: .75rem; font-size: .8125rem; letter-spacing: .075em; }
  .site-header .wordmark strong { font-size: 1.5rem; letter-spacing: .065em; }
  .site-header .wordmark small { font-size: .75rem; letter-spacing: .045em; }
  .site-header .monogram { width: 48px; height: 48px; font-size: 1.375rem; }
  .site-header .menu-toggle { padding-inline: .75rem; gap: .625rem; }
  .site-header #navigation { padding-inline: 1.25rem; }
}

@media (max-width: 23rem) {
  .site-header { width: calc(100% - 2.5rem); gap: .625rem; }
  .site-header .wordmark { gap: .625rem; font-size: .75rem; }
  .site-header .wordmark strong { font-size: 1.375rem; }
  .site-header .wordmark small { font-size: .75rem; letter-spacing: .025em; }
  .site-header .monogram { width: 44px; height: 44px; font-size: 1.25rem; }
  .site-header .menu-toggle { padding-inline: .625rem; }
}
