/* brutalist · black on white · for content focus */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    background: #ffffff;
    color: #000000;
    font-family: "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}
body { padding-bottom: 80px; }

a { color: #000; text-decoration: underline; text-underline-offset: 2px; }
a:hover { background: #fffacd; }

code, .mono {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
code { background: #f0f0f0; padding: 1px 5px; font-size: 0.92em; }
pre {
    background: #f0f0f0;
    padding: 12px 14px;
    border: 1px solid #000;
    overflow-x: auto;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 13px;
}
pre code { background: none; padding: 0; }

/* topbar */
header.top { border-bottom: 2px solid #000; background: #fff; }
header.top .row {
    max-width: 760px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.brand {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
}
.brand:hover { background: #fffacd; }
nav.primary a {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 12.5px;
    margin-left: 14px;
    color: #000;
    text-decoration: underline;
}

main { max-width: 760px; margin: 0 auto; padding: 26px 20px 60px; }

/* typography */
h1 {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}
h2 {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 32px 0 12px;
    padding-top: 12px;
    border-top: 2px solid #000;
}
h3 {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 22px 0 8px;
}

.toolbar {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 12px;
    padding: 6px 0;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    margin: 8px 0 18px;
}
.toolbar a { margin-right: 12px; }
.one-liner { font-size: 16px; font-style: italic; margin: 8px 0 14px; line-height: 1.5; }
.note { font-size: 14px; margin-top: 18px; color: #333; }

/* reading-path list (used on index) */
.reading-path { list-style: none; counter-reset: step; padding: 0; }
.reading-path li {
    counter-increment: step;
    padding: 12px 0 12px 36px;
    position: relative;
    border-bottom: 1px dashed #000;
}
.reading-path li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 13px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 12px;
    font-weight: 700;
}
.reading-path strong { display: block; font-size: 16px; margin-bottom: 4px; }
.reading-path a { color: #000; text-decoration: underline; }
.path-blurb { font-size: 13.5px; color: #444; line-height: 1.5; display: block; }

/* body / article — the chapter prose */
article.body { font-size: 17px; line-height: 1.65; }
article.body p { margin-bottom: 14px; }
article.body ul, article.body ol { margin: 0 0 14px 22px; }
article.body li { margin-bottom: 4px; }
article.body h1 {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 26px;
    margin-bottom: 16px;
}
article.body h2 {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 16px;
    margin: 32px 0 12px;
    padding-top: 12px;
    border-top: 2px solid #000;
}
article.body h3 { font-size: 14px; }
article.body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
article.body th, article.body td {
    padding: 6px 10px;
    border: 1px solid #000;
    text-align: left;
    vertical-align: top;
}
article.body th {
    background: #f0f0f0;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
article.body blockquote {
    border-left: 3px solid #000;
    padding: 4px 12px;
    margin: 12px 0;
    font-style: italic;
    color: #333;
}
article.body em { font-style: italic; }
article.body strong { font-weight: 700; }

/* footnotes */
.footnote {
    font-size: 14px;
    line-height: 1.55;
}
.footnote ol { margin-left: 22px; margin-bottom: 14px; }
.footnote li { margin-bottom: 10px; color: #222; }
.footnote-ref, .footnote-backref {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 11px;
    text-decoration: underline;
}
hr {
    border: 0;
    border-top: 1px solid #000;
    margin: 28px 0 18px;
}

/* mobile */
@media (max-width: 640px) {
    main { padding: 18px 14px 60px; }
    h1, article.body h1 { font-size: 22px; }
    header.top .row { padding: 12px 14px; }
    nav.primary a { margin-left: 10px; font-size: 12px; }
}
