:root {
  --paper: #faf8f3;
  --band: #f1ece1;
  --ink: #1c1a17;
  --muted: #5f5a52;
  --rule: #ddd7cb;
  --accent: #b3321f;
  --on-accent: #ffffff;
  --code-bg: #1f1d1a;
  --code-fg: #f0ece3;
  --inline-code: #ece6d9;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161513;
    --band: #211f1b;
    --ink: #efeae0;
    --muted: #aaa398;
    --rule: #38342e;
    --accent: #f08a74;
    --on-accent: #1c1a17;
    --code-bg: #0f0e0d;
    --inline-code: #2c2925;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 4px 8px; z-index: 2; }

.site-header, .site-footer, .hero, .section { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 600 20px var(--serif); }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.site-header nav a:hover { color: var(--accent); }
.site-footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: 64px; padding-block: 20px 28px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--muted); }
.folio { margin-left: auto; font-family: var(--mono); font-size: 13px; }

.hero { display: grid; gap: 40px; align-items: center; padding-block: 28px 56px; }
.kicker { margin: 0 0 12px; color: var(--accent); font: 600 13px var(--mono); letter-spacing: .03em; }
.hero h1 { margin: 0; font-size: clamp(38px, 6.4vw, 60px); }
.lede { color: var(--muted); font-size: 19px; }
.hero .lede { max-width: 34em; margin: 20px 0 24px; }

.waitlist { max-width: 480px; }
.waitlist label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 8px; }
.waitlist input[type="email"] { flex: 1 1 220px; min-width: 0; padding: 11px 12px; border: 1px solid var(--muted); border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; }
.waitlist button { flex: 0 0 auto; padding: 11px 18px; border: 0; border-radius: 4px; background: var(--accent); color: var(--on-accent); font: 600 16px var(--sans); cursor: pointer; }
.waitlist button:hover { filter: brightness(1.1); }
.hp { position: absolute; left: -9999px; }
.fine { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* The two printed pages in the hero stay white in dark mode, like paper. */
.proof { margin: 0; }
.sheets { position: relative; aspect-ratio: 1 / .94; container-type: inline-size; }
.sheet { position: absolute; width: 56%; aspect-ratio: 1 / 1.35; padding: 5% 4.5% 0; background: #fff; color: #1c1a17; font: 2.05cqw/1.3 var(--sans); box-shadow: 0 1px 2px rgba(28, 26, 23, .18), 0 10px 26px rgba(28, 26, 23, .13); }
.sheet-one { top: 0; left: 0; transform: rotate(-1.2deg); }
.sheet-two { right: 0; bottom: 0; transform: rotate(1deg); }
.sheet-title { margin: 0 0 5%; font: 600 3.8cqw var(--serif); }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th { background: #1c1a17; color: #fff; font-weight: 600; text-align: left; }
.sheet th, .sheet td { padding: .55em .6em; }
.sheet td { border-bottom: 1px solid #ddd7cb; }
.sheet th:nth-child(n+2), .sheet td:nth-child(n+2) { text-align: right; }
.sheet-total td { border-bottom: 0; font-weight: 700; }
.sheet-folio { position: absolute; right: 0; bottom: 4%; left: 0; margin: 0; color: #5f5a52; text-align: center; }
.proof figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; text-align: center; }

.section { padding-block: 32px; }
.section h2, .band h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 36px); }
.section-intro { max-width: 40em; margin: 0 0 20px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.ledger { width: 100%; min-width: 560px; border-collapse: collapse; }
.ledger th { padding: 0 16px 8px 0; border-bottom: 2px solid var(--ink); font-size: 14px; text-align: left; }
.ledger td { width: 50%; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger td:first-child { color: var(--muted); }
code { padding: .1em .3em; border-radius: 3px; background: var(--inline-code); font: .88em var(--mono); overflow-wrap: anywhere; }
pre { margin: 20px 0; padding: 16px 18px; border-radius: 6px; background: var(--code-bg); color: var(--code-fg); overflow-x: auto; font: 14px/1.55 var(--mono); }
pre code { padding: 0; background: none; font: inherit; overflow-wrap: normal; color: inherit; }

.guide-list { margin: 0; padding: 0; list-style: none; }
.guide-list li { padding: 16px 0; border-top: 1px solid var(--rule); }
.guide-list a { font: 600 20px/1.3 var(--serif); }
.guide-list p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }

.band { max-width: 1040px; margin: 40px auto 0; padding: 32px 28px; background: var(--band); border-radius: 6px; }
.band > p { margin-top: 0; }

.prose, .prose-width { max-width: 720px; margin-inline: auto; padding-inline: 20px; }
.band.prose-width { max-width: 680px; padding-inline: 28px; }
@media (max-width: 1080px) { .band { margin-inline: 20px; } }
@media (max-width: 720px) { .band.prose-width { margin-inline: 20px; padding-inline: 20px; } }
.prose h1, .page-head h1 { margin: 16px 0 8px; font-size: clamp(32px, 5.4vw, 44px); }
.prose h2 { margin: 40px 0 8px; font-size: 26px; }
.prose table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 15.5px; }
.prose th { padding: 6px 12px 6px 0; border-bottom: 2px solid var(--ink); text-align: left; vertical-align: bottom; }
.prose td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tested { margin: 0 0 24px; color: var(--muted); font: 13px/1.5 var(--mono); }
.more { margin-top: 40px; }
.more h2 { margin: 0 0 8px; font-size: 22px; }
.page-head .lede { margin-top: 8px; }

@media (max-width: 640px) {
  .ledger { min-width: 0; }
  .ledger thead { position: absolute; left: -9999px; }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: auto; }
  .ledger tr { padding-block: 12px; border-bottom: 1px solid var(--rule); }
  .ledger td { padding: 0; border: 0; }
  .ledger td:last-child { margin-top: 6px; }
  .ledger td:last-child::before { content: "With PagedPDF: "; font-weight: 600; }
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 1fr; gap: 56px; padding-top: 44px; }
}

/* Code highlighting, generated by Pygments */
.highlight .c { color: #8b949e; font-style: italic } /* Comment */
.highlight .err { color: #f85149 } /* Error */
.highlight .esc { color: #e6edf3 } /* Escape */
.highlight .g { color: #e6edf3 } /* Generic */
.highlight .k { color: #ff7b72 } /* Keyword */
.highlight .l { color: #a5d6ff } /* Literal */
.highlight .n { color: #e6edf3 } /* Name */
.highlight .o { color: #ff7b72; font-weight: bold } /* Operator */
.highlight .x { color: #e6edf3 } /* Other */
.highlight .p { color: #e6edf3 } /* Punctuation */
.highlight .ch { color: #8b949e; font-style: italic } /* Comment.Hashbang */
.highlight .cm { color: #8b949e; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #8b949e; font-weight: bold; font-style: italic } /* Comment.Preproc */
.highlight .cpf { color: #8b949e; font-style: italic } /* Comment.PreprocFile */
.highlight .c1 { color: #8b949e; font-style: italic } /* Comment.Single */
.highlight .cs { color: #8b949e; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #ffa198; background-color: #490202 } /* Generic.Deleted */
.highlight .ge { color: #e6edf3; font-style: italic } /* Generic.Emph */
.highlight .ges { color: #e6edf3; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.highlight .gr { color: #ffa198 } /* Generic.Error */
.highlight .gh { color: #79c0ff; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #56d364; background-color: #0f5323 } /* Generic.Inserted */
.highlight .go { color: #8b949e } /* Generic.Output */
.highlight .gp { color: #8b949e } /* Generic.Prompt */
.highlight .gs { color: #e6edf3; font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #79c0ff } /* Generic.Subheading */
.highlight .gt { color: #ff7b72 } /* Generic.Traceback */
.highlight .g-Underline { color: #e6edf3; text-decoration: underline } /* Generic.Underline */
.highlight .kc { color: #79c0ff } /* Keyword.Constant */
.highlight .kd { color: #ff7b72 } /* Keyword.Declaration */
.highlight .kn { color: #ff7b72 } /* Keyword.Namespace */
.highlight .kp { color: #79c0ff } /* Keyword.Pseudo */
.highlight .kr { color: #ff7b72 } /* Keyword.Reserved */
.highlight .kt { color: #ff7b72 } /* Keyword.Type */
.highlight .ld { color: #79c0ff } /* Literal.Date */
.highlight .m { color: #a5d6ff } /* Literal.Number */
.highlight .s { color: #a5d6ff } /* Literal.String */
.highlight .na { color: #e6edf3 } /* Name.Attribute */
.highlight .nb { color: #e6edf3 } /* Name.Builtin */
.highlight .nc { color: #f0883e; font-weight: bold } /* Name.Class */
.highlight .no { color: #79c0ff; font-weight: bold } /* Name.Constant */
.highlight .nd { color: #d2a8ff; font-weight: bold } /* Name.Decorator */
.highlight .ni { color: #ffa657 } /* Name.Entity */
.highlight .ne { color: #f0883e; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #d2a8ff; font-weight: bold } /* Name.Function */
.highlight .nl { color: #79c0ff; font-weight: bold } /* Name.Label */
.highlight .nn { color: #ff7b72 } /* Name.Namespace */
.highlight .nx { color: #e6edf3 } /* Name.Other */
.highlight .py { color: #79c0ff } /* Name.Property */
.highlight .nt { color: #7ee787 } /* Name.Tag */
.highlight .nv { color: #79c0ff } /* Name.Variable */
.highlight .ow { color: #ff7b72; font-weight: bold } /* Operator.Word */
.highlight .pm { color: #e6edf3 } /* Punctuation.Marker */
.highlight .w { color: #6e7681 } /* Text.Whitespace */
.highlight .mb { color: #a5d6ff } /* Literal.Number.Bin */
.highlight .mf { color: #a5d6ff } /* Literal.Number.Float */
.highlight .mh { color: #a5d6ff } /* Literal.Number.Hex */
.highlight .mi { color: #a5d6ff } /* Literal.Number.Integer */
.highlight .mo { color: #a5d6ff } /* Literal.Number.Oct */
.highlight .sa { color: #79c0ff } /* Literal.String.Affix */
.highlight .sb { color: #a5d6ff } /* Literal.String.Backtick */
.highlight .sc { color: #a5d6ff } /* Literal.String.Char */
.highlight .dl { color: #79c0ff } /* Literal.String.Delimiter */
.highlight .sd { color: #a5d6ff } /* Literal.String.Doc */
.highlight .s2 { color: #a5d6ff } /* Literal.String.Double */
.highlight .se { color: #79c0ff } /* Literal.String.Escape */
.highlight .sh { color: #79c0ff } /* Literal.String.Heredoc */
.highlight .si { color: #a5d6ff } /* Literal.String.Interpol */
.highlight .sx { color: #a5d6ff } /* Literal.String.Other */
.highlight .sr { color: #79c0ff } /* Literal.String.Regex */
.highlight .s1 { color: #a5d6ff } /* Literal.String.Single */
.highlight .ss { color: #a5d6ff } /* Literal.String.Symbol */
.highlight .bp { color: #e6edf3 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #d2a8ff; font-weight: bold } /* Name.Function.Magic */
.highlight .vc { color: #79c0ff } /* Name.Variable.Class */
.highlight .vg { color: #79c0ff } /* Name.Variable.Global */
.highlight .vi { color: #79c0ff } /* Name.Variable.Instance */
.highlight .vm { color: #79c0ff } /* Name.Variable.Magic */
.highlight .il { color: #a5d6ff } /* Literal.Number.Integer.Long */
