/* Shared site header. One row at every width. Below 1280px the section links
   live in the menu; the bar keeps the logo, Email me, and the health check. */
@font-face{font-family:'Instrument Serif';font-style:normal;font-weight:400;font-display:optional;src:url(/fonts/instrument-serif-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-display:optional;src:url(/fonts/instrument-sans-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

header.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #F2EEE6;
  border-bottom: 1px solid #D6CFBF;
  color: #161412;
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.4;
  width: 100%;
}
header.nav .navin {
  max-width: 1296px;
  margin: 0 auto;
  min-height: 64px;
  padding: 8px max(12px, 2vw);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  box-sizing: border-box;
}
header.nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: #161412;
  text-decoration: none;
  min-height: 44px;
}
header.nav .logo img {
  display: block;
  width: 36px;
  height: 36px;
  flex: none;
  max-width: none;
}
header.nav .logo span {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
header.nav .navlinks {
  display: none;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex: none;
  min-width: 0;
}
header.nav .navlinks a {
  color: #161412;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
header.nav .navlinks a:hover { color: #7A5A12; }
header.nav .nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: none;
  min-width: 0;
}
header.nav .nav-rule {
  width: 1px;
  height: 22px;
  background: #D6CFBF;
  flex: none;
}
header.nav a.nav-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #161412;
  font-size: 15px;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: #B5AC98;
  text-underline-offset: 3px;
  white-space: nowrap;
}
header.nav a.nav-email:hover { color: #5E594F; }
header.nav .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1.5px solid #D4A645;
  background: #D4A645;
  color: #161412;
  font: 600 15px/1 "Instrument Sans", system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
header.nav .btn:hover { background: #C9993A; color: #161412; }
header.nav .nav-drawer { display: block; position: relative; flex: none; }
header.nav .nav-drawer > summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
header.nav .nav-drawer > summary::-webkit-details-marker { display: none; }
header.nav .nav-drawer > summary::marker { content: ""; }
header.nav .nav-drawer > summary::before,
header.nav .nav-drawer > summary::after,
header.nav .nav-drawer > summary span {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #161412;
}
header.nav .nav-drawer-panel {
  position: absolute;
  right: 0;
  top: 48px;
  width: 280px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 96px);
  overflow: auto;
  background: #FAF8F3;
  border: 1px solid #D6CFBF;
  padding: 8px 16px;
  display: grid;
  gap: 0;
  z-index: 50;
  box-sizing: border-box;
}
header.nav .nav-drawer-panel a {
  color: #161412;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
header.nav .nav-drawer-panel a.nav-email-mobile {
  gap: 6px;
  font-size: 17px;
  font-weight: 500;
  color: #161412;
  white-space: nowrap;
}
@media (max-width: 1279.98px) {
  header.nav .nav-drawer-panel {
    position: fixed;
    top: 64px;
    right: 12px;
  }
}
@media (max-width: 560px) {
  header.nav .navin { padding: 6px 10px; gap: 8px; }
  header.nav .logo { gap: 0; position: relative; overflow: hidden; }
  header.nav .logo span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  header.nav .logo img { width: 36px; height: 36px; }
  header.nav .nav-rule { display: none; }
  header.nav .nav-end { gap: 4px; }
  header.nav a.nav-email { font-size: 14px; gap: 4px; }
  header.nav .btn { font-size: 12px; padding: 0 6px; }
}
@media (min-width: 1280px) {
  header.nav .navin { min-height: 84px; padding: 12px max(16px, 3vw); gap: 16px; }
  header.nav .logo img { width: 40px; height: 40px; }
  header.nav .logo span { font-size: 28px; }
  header.nav .navlinks { display: flex; gap: 16px; }
  header.nav .nav-end { margin-left: 0; gap: 12px; }
  header.nav .btn { min-height: 48px; padding: 0 16px; font-size: 16px; }
  header.nav .nav-drawer { display: none; }
}
@media (min-width: 1440px) {
  header.nav .navlinks { gap: 28px; }
  header.nav .btn { padding: 0 22px; }
}
