/* site.css — design variant B, "the operator's ledger" (design/b-ledger/).
   The block below is copied verbatim from the mockups' <style> element; the
   additions at the foot cover Hugo structures the mockups do not show
   (pagination, tag lists, figure captions, auto-TOC, content links). */
:root { --paper:#faf7ef; --ink:#2c261c; --faint:#8a7f6d; --rule:#ddd5c2; --ox:#8a2b1d; }
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink);
       font: 19px/1.75 Charter, 'Iowan Old Style', Georgia, 'Times New Roman', serif;
       margin: 0; text-rendering: optimizeLegibility; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 24px; }
header.site { border-bottom: 3px double var(--ink); padding: 28px 0 18px; display: flex;
              justify-content: space-between; align-items: baseline; }
header.site .name { font-variant: small-caps; letter-spacing: .08em; font-size: 26px; }
header.site .name a { color: inherit; text-decoration: none; }
nav.top a { font-family: ui-monospace, 'JetBrains Mono', monospace; font-size: 12px; color: var(--faint);
            text-decoration: none; margin-left: 18px; letter-spacing: .08em; text-transform: uppercase; }
nav.top a:hover { color: var(--ox); }
.kicker { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
          color: var(--faint); }
.postlist { list-style: none; margin: 0; padding: 0; }
.postlist li { border-bottom: 1px solid var(--rule); padding: 26px 0; }
.postlist .t { font-size: 27px; line-height: 1.25; margin: 4px 0 6px; }
.postlist .t a { color: inherit; text-decoration: none; }
.postlist .t a:hover { color: var(--ox); }
.postlist .dek { color: #5c5344; font-size: 17px; }
article { padding-top: 40px; }
article h1 { font-size: 38px; line-height: 1.15; margin: 6px 0 10px; font-weight: 500; }
.meta { font-family: ui-monospace, monospace; font-size: 12px; color: var(--faint); margin-bottom: 30px; }
.lede { font-size: 22px; font-style: italic; color: #4c4436; }
article.wrap h2, section h2 { font-family: ui-monospace, monospace; font-size: 13px; letter-spacing: .16em;
             text-transform: uppercase; color: var(--ox); border-bottom: 1px solid var(--rule);
             padding-bottom: 6px; margin-top: 44px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 20px 0; }
th { font-family: ui-monospace, monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
     text-align: left; border-bottom: 2px solid var(--ink); padding: 6px 8px; }
td { border-bottom: 1px solid var(--rule); padding: 7px 8px; vertical-align: top; }
.toc { margin: 30px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 16px 0; }
.toc .toc-label { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
                  color: var(--faint); }
.toc ol, .toc #TableOfContents ul { list-style: none; margin: 10px 0 0; padding: 0; }
.toc > ol, .toc #TableOfContents > ul { counter-reset: toc; }
.toc li { counter-increment: toc; padding: 3px 0; }
.toc li a { color: inherit; text-decoration: none; }
.toc li a::before { content: counter(toc, decimal-leading-zero) "  "; font-family: ui-monospace, monospace;
                    color: var(--ox); }
.toc li a:hover { color: var(--ox); }
code { font-family: ui-monospace, monospace; font-size: .85em; background: #f0ebdd; padding: 1px 4px; }
pre { font: 14px/1.6 ui-monospace, monospace; background: #f0ebdd; border: 1px solid var(--rule);
      padding: 14px 16px; overflow-x: auto; }
.chart { width: 100%; height: auto; margin: 16px 0; }
.figcap { font-family: ui-monospace, monospace; font-size: 11px; color: var(--faint); letter-spacing: .08em;
          text-transform: uppercase; margin-bottom: 28px; }
figure figcaption { font-family: ui-monospace, monospace; font-size: 11px; color: var(--faint);
                    letter-spacing: .08em; text-transform: uppercase; margin-bottom: 28px; }
.footnotes details { border-top: 1px solid var(--rule); padding: 6px 0; }
.footnotes summary { font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .14em;
                     text-transform: uppercase; cursor: pointer; color: var(--ox); list-style: none; }
.footnotes summary::before { content: "+ "; }
.footnotes details[open] summary::before { content: "− "; }
.footnotes ol { font-size: 15px; color: #5c5344; }
.editnote { font-size: 14px; font-style: italic; color: var(--faint); }
footer.site { border-top: 3px double var(--ink); margin-top: 56px; padding: 18px 0 40px; text-align: center;
              font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
              color: var(--faint); }

/* Hugo structures the mockups do not show. */
article a { color: var(--ox); }
article img { max-width: 100%; height: auto; }
.pagination { list-style: none; padding: 0; display: flex; gap: 16px; font-family: ui-monospace, monospace;
              font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.pagination a { color: var(--ink); }
.tag-list { list-style: none; padding: 0; }
.tag-list li { border-bottom: 1px solid var(--rule); padding: 10px 0;
               font-family: ui-monospace, monospace; font-size: 13px; }
.tag-list a { color: inherit; text-decoration: none; }
.tag-list a:hover { color: var(--ox); }
