/* Native Pico theme. System fonts, CSS color preferences, no external assets. MIT. */
:root {
    color-scheme: light dark;
    --paper: #faf9f5; --ink: #262e29; --muted: #59645b;
    --accent: #a3371c; --line: #d7dcd3; --surface: #f0f1eb; --mark: #eedfd4;
    font: 112.5%/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--paper); color: var(--ink);
}
@media (prefers-color-scheme: dark) {
    :root {
        --paper: #171c19; --ink: #e9ede4; --muted: #adb8ac;
        --accent: #ffc2a4; --line: #3c493f; --surface: #222b24; --mark: #3b3029;
    }
}
* { box-sizing: border-box; }
body { margin: 0; }
.site { max-width: 62rem; margin-inline: auto; padding: 1.75rem 2rem 0; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: .07em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 650; font-size: 1.05rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--mark); font: bold 1.5rem/1 Georgia, serif; padding-bottom: .15rem; }
nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.4rem; padding: 0; margin: 0; list-style: none; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .87rem; text-decoration: none; }
nav [aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .55em; }
main { min-height: 55vh; padding: 3.5rem 0 4rem; }
.prose { max-width: 42rem; margin-inline: auto; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.18; text-wrap: balance; }
h1 { margin: 0 0 1.5rem; font: 400 clamp(2.1rem, 5vw, 3.25rem)/1.12 Georgia, Cambria, serif; letter-spacing: -.035em; }
.home h1 { max-width: 13ch; font-size: clamp(2.8rem, 6.5vw, 4.6rem); }
h1 + p { color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
h2 { margin: 2.75rem 0 1rem; font-size: 1.35rem; font-weight: 650; letter-spacing: -.025em; }
h3 { margin-top: 2rem; font-size: 1.1rem; }
p, ul, ol, pre, blockquote, table { margin-block: 0 1.3rem; }
li { padding-inline-start: .2rem; margin-bottom: .45rem; }
li::marker { color: var(--accent); }
strong { font-weight: 650; }
hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--line); }
code { font: .88em/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; }
:not(pre) > code { padding: .12em .32em; border: 1px solid var(--line); border-radius: .2rem; background: var(--surface); }
pre { padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--surface); white-space: pre-wrap; overflow-x: auto; }
pre code { display: block; overflow-wrap: anywhere; }
blockquote { margin-inline: 0; padding: .15rem 0 .15rem 1.1rem; border-inline-start: 3px solid var(--accent); color: var(--muted); }
blockquote > :last-child { margin-bottom: 0; }
img, video, svg { max-width: 100%; height: auto; }
table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .55rem .8rem; border-bottom: 1px solid var(--line); text-align: start; }
th { background: var(--surface); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.site-footer a { color: var(--muted); }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 10; padding: .6rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
@media (max-width: 36rem) {
    .site { padding: 1.2rem 1.2rem 0; }
    .site-header { gap: .65rem; padding-bottom: 1rem; }
    nav { flex-basis: 100%; }
    nav ul { gap: .2rem 1.25rem; }
    main { padding-top: 2.5rem; }
    .site-footer { flex-direction: column; }
}
