:root {
  --bg: #ffffff;
  --text: #14243a;
  --heading: #0d1c2b;
  --link: #18324b;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --content: 645px;
  --wide: 1340px;
  --pad: clamp(30px, 5vw, 50px);
  --size-body: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.196), 1.125rem);
  --size-h1: clamp(2.15rem, 2.15rem + ((1vw - 0.2rem) * 1.333), 3rem);
  --size-h2: clamp(1.75rem, 1.75rem + ((1vw - 0.2rem) * 0.392), 2rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--size-body);
  font-weight: 300;
  letter-spacing: -0.1px;
  line-height: 1.4;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: none; }

h1, h2 {
  color: var(--heading);
  font-weight: 400;
  letter-spacing: -0.1px;
  line-height: 1.125;
  text-wrap: pretty;
}

p { text-wrap: pretty; }

.site-header {
  background: var(--bg);
}

.site-header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-brand {
  display: block;
  line-height: 0;
}

.site-brand img {
  display: block;
  height: 72px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.15rem;
}

.site-nav a {
  color: var(--text);
  font-weight: 300;
  white-space: nowrap;
}

.site-nav a.is-active {
  color: var(--heading);
  font-weight: 400;
}

.site-drawer { display: none; }

.page {
  flex: 1;
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 1.5rem var(--pad) 4.5rem;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: -0.1px;
  text-transform: none;
}

.page h1 {
  margin: 0 0 1.25rem;
  font-size: var(--size-h1);
}

.lead {
  margin: 0 0 1.2rem;
  font-size: inherit;
  font-weight: 300;
}

.corpus-link { margin: 0 0 1.75rem; }
.corpus-link a { overflow-wrap: anywhere; }

.prose h2 {
  margin: 2.75rem 0 1rem;
  font-size: var(--size-h2);
}

.prose p,
.prose ul { margin: 0 0 1.2rem; }

.prose ul { padding-left: 1.25rem; }

.prose li { margin: 0.35rem 0; }

.note {
  margin: 0 0 1.75rem;
  font-weight: 400;
}

.site-footer {
  margin-top: auto;
  padding: 3.5rem var(--pad) 2.75rem;
  text-align: center;
  color: var(--text);
  font-weight: 300;
}

.site-footer-mark {
  display: block;
  width: 168px;
  height: auto;
  margin: 0 auto 1.35rem;
}

.site-footer p { margin: 0; }

.site-footer-tag { margin: 0 0 0.85rem; }

.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem var(--pad);
  text-align: center;
}

.error-card h1 {
  margin: 0 0 0.75rem;
  font-size: var(--size-h1);
}

.error-card .subtitle { margin: 0 0 1.5rem; }

@media (max-width: 781px) {
  .site-brand img { height: 52px; }
  .site-nav-bar { display: none; }

  .site-drawer { display: block; }

  .menu-toggle {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }

  .menu-toggle::-webkit-details-marker { display: none; }
  .menu-toggle::marker { content: ""; }

  .menu-icon { fill: var(--heading); }
  .menu-icon-close { display: none; }

  .site-drawer[open] {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: var(--bg);
    padding: var(--pad);
  }

  .site-drawer[open] .menu-toggle {
    position: absolute;
    top: 1rem;
    right: calc(var(--pad) - 10px);
  }

  .site-drawer[open] .menu-icon-open { display: none; }
  .site-drawer[open] .menu-icon-close { display: block; }

  .site-nav-overlay {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.15rem;
    margin-top: 4.5rem;
    font-size: 1.35rem;
  }
}
