/* The wordmark, section index and reader's tools share one quiet, ruled band. */
.site-head {
  --mast-brass: #eed19a;
  --mast-rule: #ad8d6442;
  --mast-ground: #211a20;
  background: linear-gradient(105deg, #211a20fa, #2c2229fa 64%, #241c22fa);
  border-block-end: 1px solid var(--mast-rule);
  box-shadow: 0 3px 16px #140c191f;
  color: #f6ecdd;
}

.site-head .nav {
  width: min(1460px, calc(100% - clamp(40px, 8vw, 144px)));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.1vw, 36px);
  height: 76px;
}

.site-head .brand {
  flex: none;
  min-height: 44px;
  padding-inline-end: clamp(12px, 2vw, 32px);
  border-inline-end: 1px solid var(--mast-rule);
}

.site-head .brand img {
  width: clamp(130px, 10.5vw, 162px);
  height: auto;
}

.site-head #section-menu {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 32px);
}

.site-head #section-menu a {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  min-height: 44px;
  color: #e9dfd3;
  font: 1rem/1.5 Interface, sans-serif;
  white-space: nowrap;
}

.site-head #section-menu a svg,
.site-head .mast-close-strokes { display: none; }

.site-head #section-menu a::after {
  content: "";
  display: block;
  position: absolute;
  inset: auto 2px 0;
  height: 2px;
  background: var(--mast-brass);
  opacity: 0;
  transform: scaleX(.45);
  transition: transform .18s ease, opacity .18s ease;
}

.site-head #section-menu a:is(:hover, :focus-visible, [aria-current="location"]) { color: #ffe3a9; }
.site-head #section-menu a:is(:focus-visible, [aria-current="location"])::after { transform: none; opacity: 1; }

.mast-tools,
.site-head .finder,
.site-head .mast-library,
.site-head .section-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.mast-tools { gap: 8px; }

.site-head .finder,
.site-head .mast-library,
.site-head .section-menu-toggle {
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 13px;
  font: 1rem/1.5 Interface, sans-serif;
}

.site-head .mast-library { position: relative; color: #eadcca; }
.site-head .mast-library svg { color: var(--mast-brass); }
.site-head .mast-library:hover { background: #ffffff0b; border-color: var(--mast-rule); }
.site-head #desk-clip-count:empty { display: none; }
.site-head #desk-clip-count:not(:empty) {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  border-radius: 10px;
  padding: 1px 4px;
  color: #35261f;
  background: var(--mast-brass);
  font: 700 .75rem/1.3 Interface, sans-serif;
}

.site-head .finder {
  background: #f1d6a2;
  color: #35251f;
  border-color: #f4ddb2;
}
.site-head .finder:hover { background: #ffe6b7; }
.site-head .finder span { display: inline; }
.site-head .finder svg, .site-head .mast-library svg { width: 19px; height: 19px; }
.site-head :is(a, button):focus-visible { outline: 2px solid #ffe1a6; outline-offset: 3px; }
.site-head #section-menu a:focus-visible { outline-offset: -4px; border-radius: 5px; }
.site-head .section-menu-toggle { display: none; }
html.motion-calm .site-head #section-menu a::after { transition: none; }

@media (max-width: 1080px) {
  .site-head .nav {
    position: relative;
    width: calc(100% - clamp(30px, 6vw, 66px));
    height: 65px;
    gap: 12px;
    justify-content: flex-start;
  }

  .site-head .brand {
    margin: 0;
    margin-inline-end: auto;
    padding: 0;
    border: 0;
  }
  .site-head .brand img { width: clamp(106px, 16vw, 142px); }
  .site-head .section-menu-toggle {
    display: inline-flex;
    background: transparent;
    color: #f5e9db;
    border-color: var(--mast-rule);
  }
  .site-head .section-menu-toggle svg { color: var(--mast-brass); }
  .site-head .section-menu-toggle[aria-expanded="true"] { background: #3b2f34; border-color: #b89a71; }
  .site-head .section-menu-toggle[aria-expanded="true"] .mast-menu-strokes { display: none; }
  .site-head .section-menu-toggle[aria-expanded="true"] .mast-close-strokes { display: block; }

  .site-head #section-menu {
    position: absolute;
    display: none;
    inset: calc(100% + 8px) auto auto 0;
    z-index: 1;
    width: min(29rem, 100%);
    max-height: calc(100vh - 85px);
    max-height: calc(100dvh - 85px);
    overflow: auto;
    overscroll-behavior: contain;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 10px;
    border: 1px solid #887052;
    border-radius: 12px;
    background: var(--mast-ground);
    box-shadow: 0 12px 36px #100b1573;
  }
  .site-head .section-menu-toggle[aria-expanded="true"] + #section-menu { display: grid; }
  .site-head #section-menu a {
    white-space: normal;
    justify-content: flex-start;
    min-height: 56px;
    gap: 10px;
    padding: 7px 11px;
    border-radius: 5px;
    text-align: start;
    background: #ffffff06;
  }
  .site-head #section-menu a svg { display: block; color: #dab982; }
  .site-head #section-menu a::after { display: none; }
  .site-head #section-menu a:is(:hover, :focus-visible, [aria-current="location"]) {
    color: #ffdfa1;
    background: #b48f5c22;
    box-shadow: inset -2px 0 #d8b77f;
  }
  .site-head #section-menu a:focus-visible { outline-offset: -2px; }
  .site-head .finder { width: auto; height: 44px; margin: 0; padding-inline: 13px; }
}

@media (max-width: 580px) {
  .site-head .nav { gap: 6px; height: 61px; }
  .mast-tools { gap: 4px; }
  .site-head .finder, .site-head .mast-library { width: 44px; padding: 0; }
  .site-head .mast-library span, .site-head .finder span { display: none; }
  .site-head .section-menu-toggle { gap: 6px; padding-inline: 10px; }
}
@media (max-width: 340px) {
  .site-head .section-menu-toggle span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .site-head .section-menu-toggle { width: 44px; padding: 0; }
}

/* The same brass and mineral glass run through the masthead and the art frames. */
.site-head {
  --mast-ground: #182125;
  background: linear-gradient(108deg, #172529f2, #192527f7 42%, #28202af5 87%);
  border-block-end: 1px solid #bdb18b52;
  box-shadow: 0 3px 16px #100c181f;
}
.site-head::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #90bfb397 25%, transparent 46%, #ecd5a78a 72%, transparent);
}
.site-head .finder {
  background: linear-gradient(135deg, #fff0cd, #f0d299 70%, #dab980);
  box-shadow: inset 0 1px 0 #fffaf0a3, 0 1px 6px #1810152b;
}
.site-head .finder:is(:hover,:focus-visible) { box-shadow: inset 0 1px 0 #fffdf0, 0 0 15px #e8c78140; }
.site-head #section-menu a::after { background: linear-gradient(90deg,transparent,#a6cfc4,#efd297,transparent); }
