:root { color-scheme: light; --paper: #fffdf9; --ink: #252e39; --muted: #626773; --accent: #7f2f1d; --line: #dcc9b5; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: #f7f1e8; color: var(--ink); font: 17px/1.8 Georgia, 'Times New Roman', serif; }
.site-nav, main, footer { max-width: 960px; margin: auto; padding: 24px 40px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font: 14px/1.6 Arial, sans-serif; border-bottom: 1px solid var(--line); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid #28718a; outline-offset: 4px; }
.skip-link { position: absolute; top: -80px; left: 16px; padding: 10px; background: white; z-index: 10; }
.skip-link:focus { top: 8px; }
main { background: var(--paper); padding-top: 50px; padding-bottom: 50px; }
h1, h2, h3, .eyebrow, .metadata, .actions, .contents, figcaption, table, footer { font-family: Arial, sans-serif; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.13; letter-spacing: -1.3px; overflow-wrap: anywhere; margin: 16px 0 24px; }
h2 { font-size: 1.7rem; line-height: 1.3; margin: 64px 0 22px; padding-top: 24px; border-top: 1px solid var(--line); }
h3 { font-size: 1.15rem; line-height: 1.4; margin-top: 36px; }
p { margin: 0 0 22px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); }
.lead { font-size: 1.3rem; line-height: 1.6; color: #59483d; }
.metadata { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 13px; margin: 26px 0; }
.metadata strong { display: block; color: var(--ink); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 14px; margin: 28px 0 40px; }
.button { background: #92442a; color: #fffdf9; border: 1px solid #92442a; border-radius: 5px; padding: 10px 16px; text-decoration: none; font-weight: bold; }
.button.secondary { color: var(--accent); background: #f4e9dc; border-color: var(--line); }
.callout { border-left: 4px solid #b85c38; background: #f7eee2; padding: 22px 26px; margin: 32px 0; }
.contents { padding: 24px 28px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; margin: 36px 0; }
.contents ol { columns: 2; column-gap: 40px; padding-left: 22px; margin-bottom: 0; }
.contents li { break-inside: avoid; padding: 3px 0; }
code { font: .84em/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; background: #f3eade; border-radius: 3px; padding: 2px 4px; overflow-wrap: anywhere; }
pre { color: #eaf0f2; background: #242b32; border-radius: 6px; padding: 22px; overflow-x: auto; font-size: 14px; line-height: 1.7; margin: 26px 0; }
pre code { font-size: inherit; background: transparent; padding: 0; overflow-wrap: normal; }
.equation { overflow-x: auto; overflow-y: hidden; padding: 10px 8px; margin: 24px 0; background: #faf5ee; border-radius: 4px; }
.equation mjx-container { min-width: min-content; }
.table-wrap { overflow-x: auto; margin: 26px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.6; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 14px; vertical-align: top; }
th { color: #583b2d; background: #f5ebde; }
td:first-child { font-weight: 500; }
figure { margin: 32px 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 5px; }
figure.compact img { max-width: 720px; margin: auto; }
figcaption { font-size: 13px; line-height: 1.65; color: var(--muted); margin-top: 12px; }
li { margin-bottom: 9px; }
.closing { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 40px; }
footer { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-nav, main, footer { padding-left: 20px; padding-right: 20px; }
  main { padding-top: 32px; }
  .contents ol { columns: 1; }
  .contents, .callout { padding: 18px; }
  h2 { font-size: 1.4rem; margin-top: 46px; }
  pre { padding: 16px; font-size: 12px; }
  th, td { padding: 10px; min-width: 140px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { body, main { background: white; } .site-nav, .actions, .contents, .skip-link, footer { display: none; } main { max-width: none; padding: 0; } pre { white-space: pre-wrap; color: black; background: #eee; } h2, h3 { break-after: avoid; } figure { break-inside: avoid; } }
