:root {
  color-scheme: light;
  --paper: #f9f8f4;
  --ink: #292e29;
  --muted: #61695e;
  --sage: #edf1e9;
  --rule: #d4dbce;
  --link: #3c6048;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.75 Arial, Helvetica, sans-serif; }
.page { width: min(100% - 48px, 760px); margin: 0 auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
a:hover { color: #253e2d; text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 1px; }
.skip-link { position: absolute; left: 24px; top: -100px; padding: 8px 16px; background: var(--paper); z-index: 2; }
.skip-link:focus { top: 12px; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0 23px; border-bottom: 1px solid var(--rule); font-size: 13px; line-height: 1.5; }
.site-name { color: var(--muted); text-decoration: none; }
nav { display: flex; gap: 18px; }
nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.opening { padding: 57px 0 42px; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.25; }
h1 { margin: 0 0 25px; max-width: 700px; font-size: clamp(36px, 4vw, 49px); letter-spacing: -1.3px; text-wrap: balance; }
h2 { margin: 0 0 25px; font-size: 30px; letter-spacing: -.5px; }
h3 { margin: 30px 0 11px; font-size: 23px; }
p { margin: 0 0 21px; }
.opening p { color: #505a4e; margin: 0; }
section { padding: 39px 0 18px; border-top: 1px solid var(--rule); }
.step:first-of-type h3 { margin-top: 5px; }
.caption { font-size: 14px; color: var(--muted); margin-top: -13px; }
.example-panel { background: var(--sage); border-left: 3px solid #899d82; padding: 26px 29px 6px; margin: 0 0 17px; }
strong { font-weight: 600; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f0f3ed; border: 1px solid var(--rule); border-radius: 2px; font: inherit; line-height: 2; padding: 25px 28px; margin: 29px 0 25px; }
.reading-list { margin: 12px 0 27px; padding-left: 22px; }
.reading-list li { padding-left: 3px; margin: 8px 0; }
.reading-list li::marker { color: #899d82; }
footer { border-top: 1px solid var(--rule); padding: 26px 0 39px; margin-top: 15px; font-size: 14px; color: var(--muted); }
footer p { margin: 0; }
@media (max-width: 640px) {
  .page { width: calc(100% - 44px); }
  .masthead { padding: 20px 0; }
  nav { display: none; }
  .opening { padding: 35px 0 33px; }
  h1 { font-size: 36px; letter-spacing: -.8px; }
  h2 { font-size: 28px; }
  section { padding-top: 31px; }
  .example-panel { padding: 20px 20px 1px; }
  pre { padding: 22px; font-size: 18px; line-height: 1.85; }
}
@media print {
  @page { size: A4; margin: 18mm; }
  body { background: white; color: black; font-size: 11pt; line-height: 1.5; }
  .page { width: 100%; }
  .skip-link, nav { display: none; }
  .masthead { padding: 0 0 10pt; }
  .opening { padding: 20pt 0; }
  h1 { font-size: 26pt; }
  h2 { font-size: 20pt; }
  h3 { font-size: 15pt; }
  h1, h2, h3 { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  section { padding-top: 18pt; }
  .example-panel { background: white; padding: 10pt 14pt 0; }
  pre { break-inside: avoid; background: white; font-size: 10pt; padding: 12pt; line-height: 1.7; }
  a { color: black; }
}
