.site-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--pb-rule);
  background: var(--pb-root-bg);
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: grid;
  gap: 0.1rem;
  text-decoration: none;
}

.brand__name {
  font-weight: 500;
  letter-spacing: 0;
}

.brand__meta {
  color: var(--pb-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand__meta span {
  display: inline;
}

.brand__meta span + span::before {
  content: " - ";
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  display: none;
  border: 1px solid var(--pb-rule);
  padding: 0.42rem 0.65rem;
  color: var(--pb-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  content: "";
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  position: absolute;
  left: 0;
}

.menu-icon::before {
  transform: translateY(-6px);
}

.menu-icon::after {
  transform: translateY(6px);
}

.menu-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.7rem);
  color: var(--pb-muted);
  font-size: 0.83rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--pb-root-accent);
}

.section,
.contact-section,
.downloads {
  margin-top: clamp(3.8rem, 7vw, 6.5rem);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: end;
  border-top: 1px solid var(--pb-rule);
  padding-top: 1rem;
  margin-bottom: 1.4rem;
}

.section-head--flush {
  display: block;
  border-top: 0;
  padding-top: 0;
}

.section-head--flush .eyebrow {
  font-weight: 500;
}

.section-head h2 {
  max-width: 17ch;
  margin: 0;
  color: var(--pb-ink);
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.98;
}

.section-head--flush h2,
.section-head--flush p {
  max-width: var(--measure);
}

.section-head--flush h2 {
  margin-top: 0.2rem;
}

.section-head p:last-child {
  grid-column: 2;
  max-width: var(--measure);
  margin: 0;
  color: var(--pb-muted);
}

.section-head--flush p:last-child {
  grid-column: auto;
  margin-top: 0.75rem;
}

.site-footer {
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--pb-rule);
  background: var(--pb-root-bg);
  padding: 1.8rem 0;
  color: var(--pb-muted);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header__inner {
    min-height: 78px;
    align-items: flex-start;
    padding-top: 0.65rem;
  }

  .brand {
    gap: 0;
  }

  .brand__meta span {
    display: block;
  }

  .brand__meta span + span::before {
    content: "";
  }

  .nav-menu summary {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    align-self: start;
    margin-top: -0.45rem;
    border: 0;
    padding: 0;
    background: var(--pb-root-bg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(1.5rem, 5vh, 3rem);
    min-width: 0;
    width: 100vw;
    min-height: 100vh;
    border: 0;
    background: var(--pb-root-bg);
    padding: clamp(4.5rem, 12vh, 7rem) max(16px, calc((100vw - 1180px) / 2 + 16px));
    box-shadow: none;
    color: var(--pb-ink);
    font-size: clamp(1.8rem, 9vw, 3.2rem);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
  }

  .nav-menu:not([open]) .site-nav {
    display: none;
  }

  .site-nav a {
    padding: 0;
  }

  .nav-menu[open] .menu-icon {
    background: transparent;
  }

  .nav-menu[open] .menu-icon::before {
    transform: translateY(0) rotate(45deg);
  }

  .nav-menu[open] .menu-icon::after {
    transform: translateY(0) rotate(-45deg);
  }

  body.menu-open {
    overflow: hidden;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head p:last-child {
    grid-column: 1;
  }

  #selected-evidence,
  #writings {
    margin-top: calc(clamp(3.8rem, 7vw, 6.5rem) + 2rem);
  }

  .site-footer__inner {
    display: grid;
    gap: 0;
    line-height: 1.25;
  }
}
