/* The same ivory paper, forest ink and brass registration marks as the field dossier. */
:root { --header:80px }
.masthead {
  --mh-paper:#f8f4ea; --mh-ink:#253b32; --mh-gold:#b69b68;
  color:var(--mh-ink); background:var(--mh-paper); border:0; z-index:25;
  box-shadow:0 1px 0 #b7a582,0 3px 14px #27372c09;
}
.masthead .masthead__inside {
  width:min(1380px,calc(100% - 2 * clamp(18px,4.5vw,80px)));
  display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center; gap:clamp(10px,1.75vw,30px); min-height:var(--header);
}
.masthead .wordmark {
  grid-column:1;grid-row:1;justify-self:start;display:grid;align-items:center;
  width:clamp(132px,12.2vw,166px);min-height:44px;
}
.masthead .wordmark img {width:100%;filter:none}
.masthead .nav {
  grid-column:2;grid-row:1;justify-self:center;justify-content:center;
  gap:clamp(12px,2.1vw,33px);font-weight:600;line-height:1.4;
}
.masthead .nav a {position:relative;justify-content:center;color:var(--mh-ink);text-align:center}
.masthead .nav a::after {
  content:"";position:absolute;inset:auto 17% 3px;height:1px;background:var(--mh-gold);
  transform:scaleX(0);opacity:0;
}
.masthead .nav a:is(:hover,:focus-visible,[aria-current]) {color:var(--mh-ink);text-decoration:none}
.masthead .nav a:is(:hover,:focus-visible,[aria-current])::after {transform:scaleX(1);opacity:1}
.masthead .masthead__actions {grid-column:3;grid-row:1;justify-self:end;margin:0}
.masthead .button--entry {
  display:inline-flex;align-items:center;gap:.9em;min-height:44px;padding:.55em 1.15em;
  border:1px solid var(--mh-ink);border-radius:4px;color:#fff7e6;background:var(--mh-ink);
  font:inherit;font-size:1.02rem;font-weight:650;line-height:1.35;
}
.masthead .button--entry svg {color:#e5c892;flex:none}
.masthead .button--entry:is(:hover,:active) {color:white;background:#354d41;border-color:#876b3a}
.masthead :is(a,button):focus-visible {outline:2px solid #826334;outline-offset:3px}
.masthead .reading-ruler {inset:auto 0 0;height:2px;background:transparent}
.masthead .reading-ruler i {background:var(--mh-gold)}
@media (prefers-reduced-motion:no-preference) {
  .masthead .nav a::after {transition:transform .18s ease-out,opacity .18s ease-out}
  .masthead .button--entry {transition:background .16s ease-out}
}
@media (max-width:910px) {
  :root {--header:68px}
  .masthead .masthead__inside {width:calc(100% - 2 * clamp(12px,3vw,26px));gap:6px}
  .masthead .wordmark {grid-column:2;justify-self:center;width:clamp(106px,27vw,143px)}
  .masthead .menu-toggle:not([hidden]) {
    grid-column:1;grid-row:1;justify-self:start;display:grid;place-content:center;
    width:44px;height:44px;gap:5px;border:1px solid #bdaf95;border-radius:50%;background:transparent;color:var(--mh-ink);
  }
  .masthead .menu-toggle:is(:hover,[aria-expanded="true"]) {background:#eae2d2}
  .masthead .menu-toggle span {width:17px;height:1.5px;border-radius:3px}
  .masthead .menu-toggle[aria-expanded="true"] span:first-child {transform:translateY(3.25px) rotate(45deg)}
  .masthead .menu-toggle[aria-expanded="true"] span:last-child {transform:translateY(-3.25px) rotate(-45deg)}
  .masthead .button--entry {padding:.45em .75em;gap:.45em;font-size:.96rem}
  .masthead .button--entry svg {width:15px;height:15px}
  .masthead .nav {grid-column:1/-1;grid-row:2;gap:0;padding:.4rem 0;justify-content:stretch}
  .masthead .nav:not([data-open]),.masthead .nav[data-open="true"] {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:var(--mh-paper);
  }
  .masthead .nav[data-open="true"] {
    inset:100% 0 auto;width:100%;padding:.65rem max(12px,5vw);
    border-block:1px solid #d3c5ad;box-shadow:0 12px 20px #253b3220;
  }
  .masthead .nav a {min-height:48px;white-space:normal}
}
@media(max-width:440px) {
  .masthead .button--entry {padding-inline:.6em;font-size:.9rem}
  .masthead .button--entry svg {display:none}
}
@media(max-width:360px) {
  .masthead .wordmark {width:90px}
  .masthead .button--entry {padding-inline:.45em}
}
