.masthead,
.site-frame > .site-footer {
  color: #f4eddf;
  background: #0b101b;
  border-color: #e8c98f28;
}

.masthead {
  position: relative;
  z-index: 12;
  border-bottom: 1px solid #e8c98f28;
}

.masthead-inner,
.masthead-footer-inner {
  width: 100%;
  max-width: var(--page-width, 1384px);
  padding-inline: var(--page-gutter, clamp(1.125rem, 3.6vw, 3.25rem));
  margin-inline: auto;
  box-sizing: border-box;
}

.masthead-inner {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 38px);
}

.masthead a,
.masthead button,
.masthead-footer-inner a {
  color: inherit;
  text-decoration: none;
}

.masthead-brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.masthead-brand img { width: 41px; height: auto; }
.masthead-brand span,
.footer-wordmark {
  font-family: var(--serif, Georgia, serif);
  font-size: 1.7rem;
  font-weight: 500;
  font-variant-numeric: lining-nums;
  letter-spacing: .09em;
  line-height: 1;
}

.masthead #main-nav {
  align-self: stretch;
  display: flex;
  flex-direction: row;
  flex: 1;
  align-items: stretch;
  gap: clamp(14px, 2vw, 32px);
}

.masthead #main-nav a {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 44px;
  color: #c7c7c8;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.masthead #main-nav a:hover,
.masthead #main-nav a[aria-current="page"],
.masthead-footer-inner a:hover,
.masthead-footer-inner a[aria-current="page"] { color: #e8c98f; }

.masthead #main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  width: 100%;
  bottom: 0;
  height: 2px;
  background: #e8c98f;
}

.masthead #main-nav a:first-child,
.masthead .masthead-saved { margin-inline-start: auto; }

.masthead #main-nav .masthead-methods,
.masthead .masthead-menu { display: none; }

.masthead .masthead-saved { gap: 7px; }

.bookmark-icon {
  width: 13px;
  height: 17px;
  background-color: currentColor;
  clip-path: polygon(0 0,100% 0,100% 100%,50% 79%,0 100%,0 0,1.3px 1.3px,1.3px 87%,50% 70%,calc(100% - 1.3px) 87%,calc(100% - 1.3px) 1.3px,1.3px 1.3px);
}

.masthead-controls,
.masthead-profile,
.masthead-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.masthead-controls { gap: 10px; }
.masthead-profile,
.masthead-menu {
  flex: none;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  line-height: 1;
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid #e8c98f54;
  border-radius: 999px;
  background: transparent;
}

.masthead-profile:hover,
.masthead-menu:hover,
.masthead-menu[aria-expanded="true"] { border-color: #e8c98f; background: #e8c98f0a; }

.profile-icon,
.menu-strokes { display: inline-block; position: relative; width: 15px; height: 16px; }
.profile-icon::before,
.profile-icon::after,
.menu-strokes::before,
.menu-strokes::after { content: ""; position: absolute; }

.profile-icon::before {
  width: 7px;
  height: 7px;
  left: 4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  box-sizing: border-box;
}
.profile-icon::after {
  width: 13px;
  height: 7px;
  left: 1px;
  bottom: 0;
  border: 1px solid currentColor;
  border-radius: 9px 9px 2px 2px;
  box-sizing: border-box;
}

.menu-strokes::before,
.menu-strokes::after { width: 14px; left: 0; height: 1.5px; border-radius: 3px; background: currentColor; }
.menu-strokes::before { top: 4px; }
.menu-strokes::after { top: 10px; }
.masthead-menu[aria-expanded="true"] .menu-strokes::before { transform: translateY(3px) rotate(45deg); }
.masthead-menu[aria-expanded="true"] .menu-strokes::after { transform: translateY(-3px) rotate(-45deg); }

.site-frame > .site-footer {
  display: block;
  padding: 0;
  border-top: 1px solid #e8c98f28;
}
.masthead-footer-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 78px;
  padding-block: 12px;
}
.footer-wordmark { font-size: 1.125rem; }
.masthead-footer-inner p {
  margin: 0;
  font-size: .8125rem;
  color: #b5b6bb;
  order: initial;
  width: auto;
}
.masthead-footer-inner nav { display: flex; flex-direction: row; align-items: center; gap: 22px; margin-left: auto; }
.masthead-footer-inner a { display: inline-flex; align-items: center; min-height: 44px; color: #ceccd0; font-size: .8125rem; }

html:not(.navigation-ready) .masthead [data-interactive],
html:not(.navigation-ready) .site-footer [data-interactive] { display: none !important; }
html:not(.navigation-ready) .masthead #main-nav { justify-content: flex-end; }

@media (max-width: 59rem) {
  .masthead-inner { min-height: 64px; justify-content: space-between; }
  .masthead .masthead-menu { display: inline-flex; }
  .masthead-brand { gap: 8px; }
  .masthead-brand img { width: 35px; }
  .masthead-brand span { font-size: 1.5rem; }
  .masthead-controls { gap: 8px; }
  .masthead-profile, .masthead-menu { min-height: 44px; }
  .navigation-ready .masthead #main-nav { display: none; }
  .navigation-ready .masthead #main-nav.is-open {
    display: grid;
    grid-template-columns: 1fr;
    position: absolute;
    top: calc(100% - 1px);
    right: var(--page-gutter, 18px);
    width: min(290px, calc(100% - 36px));
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    padding: 6px;
    gap: 0;
    background: #121927;
    border: 1px solid #e8c98f4a;
    border-radius: 10px;
    box-shadow: 0 14px 34px #0006;
  }
  .masthead #main-nav a,
  .masthead #main-nav a:first-child,
  .masthead #main-nav .masthead-methods {
    margin-inline-start: 0;
    min-height: 44px;
    padding: 0 15px;
    display: flex;
  }
  .masthead #main-nav a[aria-current="page"] { border-radius: 5px; background: #e8c98f0e; }
  .masthead #main-nav a[aria-current="page"]::after { bottom: 12px; top: 12px; left: 0; width: 2px; height: auto; }
  .masthead .bookmark-icon { display: none; }
}

@media (max-width: 40rem) {
  .masthead-footer-inner { flex-wrap: wrap; gap: 4px 16px; padding-block: 18px 10px; }
  .masthead-footer-inner nav { width: 100%; margin-left: 0; }
  .masthead-profile,.masthead-menu { padding-inline: 11px; gap: 6px; }
  .masthead-inner { column-gap: 8px; }
}

@media (max-width: 22rem) {
  .masthead-profile .profile-icon { display: none; }
  .masthead-profile,.masthead-menu { padding-inline: 8px; }
  .masthead-brand img { width: 29px; }
  .masthead-brand span { font-size: 1.37rem; }
}

@media print {
  .masthead, .site-frame > .site-footer { display: none !important; }
}

.missing-page { background: #0b101b; color: #f4eddf; }
.missing-nav { margin-left: auto; }
.missing-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #e8c98f; }
.missing-page > main {
  box-sizing: border-box;
  max-width: var(--page-width, 1384px);
  margin: 0 auto;
  padding: clamp(64px, 12vw, 160px) var(--page-gutter, clamp(1.125rem, 3.6vw, 3.25rem));
}
.missing-page h1 {
  color: #f4eddf;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.045em;
  margin: 12px 0 22px;
}
.missing-page main > p:not(.eyebrow) { color: #c2c2c5; max-width: 47ch; }
.missing-links { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 28px; }
.missing-links > a:not(.button) { color: #e8c98f; text-underline-offset: .3em; }
