/* Shared typography, header, and basic page layout. */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }

:root {
  --paper: #fff;
  --tint: #f3f6fc;
  --ink: #1c2230;
  --secondary: #464e5e;
  --muted: #6c7483;
  --rule: #dde2e6;
  --accent: #2457d6;
  --accent-hover: #1a44ad;
  --text: 'STIX Two Text', Cambria, Georgia, serif;
  --ui: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --measure: 40rem;
  --wrap: 57.5rem;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
[hidden] { display: none !important; }
.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 30;
  padding: .5rem .75rem;
  background: var(--ink);
  color: var(--paper);
  font: .875rem var(--ui);
}
.skip-link:focus { top: 1rem; }
.site-header {
  max-width: var(--wrap);
  margin: auto;
  padding: 4.5rem 1.5rem 1.75rem;
}
.breadcrumb {
  color: var(--muted);
  font: .875rem/1.6 var(--ui);
}
.breadcrumb a { color: var(--secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb span { margin: 0 .35em; color: var(--rule); }

main { min-width: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; }
h1 {
  font-size: clamp(2.5rem, 5.4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -.012em;
}
h2 { margin: 3.5rem 0 1.1rem; font-size: 1.875rem; }
h3 { margin: 2.25rem 0 .75rem; font-size: 1.4375rem; }
h1 + p { margin-top: 1.1rem; }
.subtitle {
  margin-top: .75rem;
  margin-bottom: 1.1rem;
  color: var(--secondary);
  font-size: 1.875rem;
  line-height: 1.2;
}
p + p { margin-top: 1rem; }
ul, ol {
  margin-top: 1rem;
  padding-left: 1.4rem;
}
li + li { margin-top: .4rem; }
li::marker { color: var(--muted); }
li > ul, li > ol { margin-top: .4rem; }
ul + p, ol + p { margin-top: 1.4rem; }
blockquote {
  margin: 1rem 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--rule);
}
math { font-family: 'STIX Two Math', 'Cambria Math', math; }

.page {
  max-width: var(--wrap);
  margin: auto;
  padding: 0 1.5rem 7rem;
}
.page-intro {
  margin: 0 -1.5rem;
  padding: 0 1.5rem 3.5rem;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 1000px) {
  .site-header { padding-top: 3.5rem; }
}
@media (max-width: 820px) {
  body { font-size: 1.0625rem; }
  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 3.5rem;
    padding: .7rem 1.25rem;
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    z-index: 20;
  }
  .page { padding: 2.25rem 1.25rem 4rem; }
  .page-intro { margin: 0 -1.25rem; padding: 0 1.25rem 2.5rem; }
  h2 { margin-top: 3.25rem; font-size: 1.625rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .skip-link { display: none !important; }
  .page { padding: 0; }
  .page-intro { margin: 0; }
  h2, h3 { break-after: avoid; }
  a { color: inherit; }
}
