:root {
  --paper: #f9f9f7;
  --ink: #111;
  --muted: #e5e5e0;
  --red: #c00;
  --meta: #525252;
  --measure: 1280px;
}
* {
  box-sizing: border-box;
  border-radius: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath fill='%23111' fill-opacity='.035' d='M1 3h1v1H1zm2-2h1v1H3z'/%3E%3C/svg%3E");
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--red);
}
button,
.button {
  min-height: 44px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1rem;
  font:
    700 0.76rem/1.2 Arial,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button.secondary,
button.secondary {
  background: transparent;
  color: var(--ink);
}
button:hover,
.button:hover {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.wrap {
  max-width: var(--measure);
  margin: auto;
  padding: 0 24px;
}
.masthead {
  border-bottom: 4px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.masthead-row {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  font:
    bold 1.4rem Georgia,
    serif;
  text-decoration: none;
}
.edition {
  font:
    600 0.65rem/1.2 "Courier New",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav a {
  font:
    700 0.72rem Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.menu {
  display: none;
  margin-left: auto;
  padding: 0.5rem;
}
.hero {
  border-bottom: 4px solid var(--ink);
  padding: 64px 0 48px;
}
.kicker,
.label {
  font:
    700 0.7rem "Courier New",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.kicker {
  color: var(--red);
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.98;
  margin: 0 0 1rem;
}
h1 {
  font-size: clamp(3.4rem, 9vw, 8rem);
  letter-spacing: -0.065em;
  max-width: 1100px;
}
h2 {
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  letter-spacing: -0.045em;
}
h3 {
  font-size: 1.55rem;
}
.dek {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 760px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.grid {
  display: grid;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cell {
  padding: 32px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.cell:last-child {
  border-right: 0;
}
.section {
  padding: 64px 0;
  border-bottom: 4px solid var(--ink);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.dark {
  background: var(--ink);
  color: var(--paper);
}
.dark a {
  color: var(--paper);
}
pre {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 22px;
  overflow: auto;
  font:
    500 0.86rem/1.75 "Courier New",
    monospace;
  white-space: pre;
}
code {
  font-family: "Courier New", monospace;
}
.dark pre {
  border-color: var(--paper);
}
.pipeline {
  font:
    700 clamp(0.85rem, 2vw, 1.2rem)/1.8 "Courier New",
    monospace;
  letter-spacing: 0.04em;
}
.red {
  color: var(--red);
}
.stat {
  font:
    700 2.3rem/1 "Courier New",
    monospace;
}
.small {
  font-size: 0.86rem;
  color: var(--meta);
}
footer {
  padding: 40px 0;
  border-top: 1px solid var(--ink);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.docs-shell {
  max-width: 1500px;
  margin: auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 850px) 220px;
  min-height: calc(100vh - 72px);
}
.sidebar,
.toc {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow: auto;
  padding: 28px 22px;
}
.sidebar {
  border-right: 1px solid var(--ink);
}
.toc {
  border-left: 1px solid var(--ink);
}
.sidebar strong,
.toc strong {
  font:
    700 0.7rem Arial,
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sidebar a,
.toc a {
  display: block;
  padding: 7px 0;
  font:
    600 0.76rem/1.3 Arial,
    sans-serif;
  text-decoration: none;
}
.doc {
  padding: 48px clamp(24px, 5vw, 72px) 96px;
}
.doc h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}
.doc h2 {
  font-size: 2.2rem;
  letter-spacing: -0.035em;
  border-top: 4px solid var(--ink);
  padding-top: 24px;
  margin-top: 56px;
}
.doc h3 {
  margin-top: 36px;
}
.doc p,
.doc li {
  font-size: 1.03rem;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.doc th,
.doc td {
  border: 1px solid var(--ink);
  text-align: left;
  padding: 10px;
  vertical-align: top;
}
.doc th {
  font:
    700 0.72rem Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.callout {
  border: 2px solid var(--ink);
  padding: 18px;
  margin: 24px 0;
}
.callout.redline {
  border-left: 8px solid var(--red);
}
.copy-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: -1px;
}
.copy-row button {
  min-height: 36px;
  padding: 0.5rem 0.75rem;
}
.skip {
  position: absolute;
  left: -10000px;
}
.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 99;
  background: var(--paper);
  padding: 10px;
}
@media (max-width: 1000px) {
  .docs-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .wrap {
    padding: 0 16px;
  }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 4px solid var(--ink);
    padding: 16px;
  }
  .nav.open {
    display: grid;
  }
  .menu {
    display: block;
  }
  .hero,
  .section {
    padding: 42px 0;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .cell {
    border-right: 0;
    padding: 24px;
  }
  .docs-shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
    display: none;
  }
  .sidebar.open {
    display: block;
  }
  .doc {
    padding: 36px 18px 72px;
  }
  .footer-row {
    display: block;
  }
  h1 {
    font-size: 3.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  button:hover,
  .button:hover {
    transform: none;
  }
}
