/* How to Use AI, by Patrick Taylor.
   Brand follows patrickmtaylor.com: Satoshi for text, Instrument Serif for
   headings, a zinc grey ladder on white, thin rules, 11px cards, one green
   accent used sparingly. Light only, like the main site. */

:root {
    --bg: #ffffff;
    --ink: #0a0a0a;      /* headings, emphasis */
    --mid: #3f3f46;      /* body prose (about 10:1 on white) */
    --soft: #52525b;     /* secondary text (about 7:1) */
    --faint: #71717a;    /* meta labels only (about 4.8:1) */
    --rule: #ebebeb;
    --rule-strong: #d9d9d6;
    --panel: #fbfbfa;
    --panel2: #f4f4f3;
    --accent: #2f7d55;
    --accent-bg: #f1f9f4;
    --accent-br: #cbe6d5;

    --sans: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --serif: 'Instrument Serif', Georgia, serif;
    --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    --measure: 68ch;
    --gutter: 16px;
    --radius: 11px;
}

* { box-sizing: border-box; }

html {
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 72px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--mid);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: -0.006em;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

/* ---- Focus and skip link ---------------------------------------------- */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.skip {
    position: absolute;
    left: var(--gutter);
    top: -60px;
    z-index: 20;
    padding: 8px 14px;
    background: var(--ink);
    color: #fff;
    border-radius: 7px;
    font-size: 14px;
    text-decoration: none;
}
.skip:focus { top: 10px; color: #fff; }

/* ---- Site header ------------------------------------------------------- */

.site-head {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: saturate(1.4) blur(8px);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--rule);
}

.site-head-in {
    max-width: 1080px;
    margin: 0 auto;
    padding: 12px 32px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.2;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.byline {
    font-size: 14px;
    color: var(--soft);
    white-space: nowrap;
}
.byline a {
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--rule-strong);
}
.byline a:hover { border-bottom-color: var(--ink); }

/* ---- Layout ------------------------------------------------------------ */

.layout {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 32px 72px;
    display: grid;
    grid-template-columns: 200px minmax(0, var(--measure));
    gap: 64px;
    justify-content: center;
}

.content { min-width: 0; }

/* ---- Guide navigation: sidebar on wide screens, disclosure on narrow ---- */

.side {
    position: sticky;
    top: 76px;
    align-self: start;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding-right: 4px;
}

.guide-nav ul {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.guide-nav li {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.guide-nav .nav-label {
    margin: 0 0 6px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--faint);
}

.guide-nav a,
.guide-nav .current {
    display: block;
    padding: 4px 10px;
    margin-left: -10px;
    border-radius: 7px;
    color: var(--soft);
    text-decoration: none;
}
.guide-nav a:hover { color: var(--ink); background: var(--panel2); }
.guide-nav .current { color: var(--ink); font-weight: 500; background: var(--panel2); }

.mnav { display: none; }

@media (max-width: 960px) {
    .layout {
        grid-template-columns: minmax(0, var(--measure));
        gap: 0;
        padding-top: 20px;
    }
    .side { display: none; }

    .mnav {
        display: block;
        margin: 0 0 32px;
        border: 1px solid var(--rule);
        border-radius: var(--radius);
        background: var(--panel);
    }
    .mnav summary {
        cursor: pointer;
        padding: 11px 16px;
        font-size: 14px;
        font-weight: 500;
        color: var(--ink);
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: var(--radius);
    }
    .mnav summary::-webkit-details-marker { display: none; }
    .mnav summary::after { content: "+"; color: var(--faint); font-size: 18px; line-height: 1; }
    .mnav[open] summary::after { content: "\2212"; }
    .mnav .guide-nav {
        padding: 4px 16px 6px;
        border-top: 1px solid var(--rule);
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0 20px;
    }
    .mnav .guide-nav ul { margin: 12px 0 6px; }
}

/* ---- Type -------------------------------------------------------------- */

h1, h2 {
    font-family: var(--serif);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.015em;
}

h1 {
    font-size: 46px;
    line-height: 1.08;
    margin: 0 0 14px;
}

h2 {
    font-size: 30px;
    line-height: 1.18;
    margin: 56px 0 14px;
    padding-top: 22px;
    border-top: 1px solid var(--rule);
}

h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ink);
    letter-spacing: -0.012em;
    margin: 32px 0 8px;
}

p { margin: 0 0 18px; }

strong, b { color: var(--ink); font-weight: 500; }

.lead {
    font-size: 19.5px;
    line-height: 1.55;
    color: var(--soft);
    margin: 0 0 28px;
}

.meta-line {
    font-size: 14px;
    color: var(--faint);
    margin: -14px 0 22px;
}
.meta-line a { color: var(--soft); }

a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: #c4c4c0;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--ink); }

ol, ul { padding-left: 22px; margin: 0 0 22px; }
li { margin-bottom: 8px; }
li::marker { color: var(--faint); }
ol li::marker { font-weight: 500; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }

code, kbd {
    font-family: var(--mono);
    font-size: 0.86em;
    background: var(--panel2);
    border: 1px solid var(--rule);
    padding: 1px 5px;
    border-radius: 5px;
    color: var(--ink);
}

blockquote {
    margin: 18px 0 22px;
    padding: 14px 18px;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    border-left: 3px solid var(--rule-strong);
    color: var(--ink);
    font-size: 15.5px;
    line-height: 1.6;
    font-style: normal;
}
blockquote p:last-child { margin-bottom: 0; }

/* ---- On this page ------------------------------------------------------ */

.on-page {
    margin: 0 0 36px;
    padding: 16px 20px 6px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--panel);
}
.on-page-title {
    margin: 0 0 8px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--faint);
}
.on-page ol {
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
    columns: 2 220px;
    column-gap: 28px;
}
.on-page li {
    margin: 0 0 6px;
    font-size: 14.5px;
    line-height: 1.4;
    break-inside: avoid;
}
.on-page a { color: var(--soft); text-decoration: none; }
.on-page a:hover { color: var(--ink); text-decoration: underline; }

/* ---- Cards: callouts, pointers, notes --------------------------------- */

.callout,
.start-pointer,
.extras-note {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin: 26px 0;
}
.callout p:last-child,
.start-pointer p:last-child,
.extras-note p:last-child { margin-bottom: 0; }
.callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }

.callout-title,
.start-pointer-title {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 8px;
}

.start-pointer {
    background: var(--accent-bg);
    border-color: var(--accent-br);
}
.start-pointer .start-pointer-title { color: var(--accent); }

.extras-note {
    border-style: dashed;
    border-color: var(--rule-strong);
    background: transparent;
    font-size: 15px;
    color: var(--soft);
}

/* ---- Home page table of contents -------------------------------------- */

.toc-item {
    padding: 14px 0;
    border-top: 1px solid var(--rule);
    margin: 0;
}
.toc-item + h2, .toc-item + .callout { margin-top: 40px; }
h2 + .toc-item, .extras-note + .toc-item { border-top: 0; }
.closing { margin-top: 32px; }

.toc-item .toc-title {
    font-weight: 500;
    font-size: 17px;
    color: var(--ink);
    text-decoration: none;
}
.toc-item .toc-title:hover { text-decoration: underline; }

.toc-item p {
    margin: 2px 0 0;
    color: var(--soft);
    font-size: 15.5px;
    line-height: 1.55;
}

/* ---- Prev / next and site footer -------------------------------------- */

.page-footer {
    margin-top: 64px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.page-footer a {
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    padding: 10px 14px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.page-footer a:hover { background: var(--panel2); }
.page-footer a:last-child { margin-left: auto; }

.site-foot {
    max-width: 1080px;
    margin: 0 auto;
    padding: 22px 32px 40px;
    border-top: 1px solid var(--rule);
    font-size: 13.5px;
    color: var(--faint);
}
.site-foot a { color: var(--soft); }

/* ---- Video embed (appears only when an iframe is pasted in) ----------- */

figure.video-embed { display: none; }
figure.video-embed:has(iframe) { display: block; margin: 0 0 36px; padding: 0; }
figure.video-embed iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}

/* ---- Diagrams ---------------------------------------------------------- */

figure.diagram {
    margin: 32px 0;
    padding: 18px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: #fff;
}
figure.diagram svg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}
figure.diagram figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--soft);
    text-align: center;
    line-height: 1.5;
}

pre.tree {
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.6;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 24px 0;
    overflow-x: auto;
    color: var(--ink);
    white-space: pre;
}

/* ---- Quizzes ----------------------------------------------------------- */

.quiz {
    margin: 36px 0;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 20px 22px;
}

.quiz-title {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--faint);
    margin: 0 0 8px;
}

.quiz .q {
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.45;
    margin: 0 0 14px;
}

.quiz .options { list-style: none; padding: 0; margin: 0; }
.quiz .options li { margin: 0 0 8px; }

.quiz label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--mid);
}
.quiz label:hover { border-color: var(--rule-strong); background: var(--panel2); }
.quiz label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.quiz input[type="radio"] {
    margin: 4px 0 0;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.quiz .options li.correct:has(input:checked) label {
    border-color: var(--accent-br);
    background: var(--accent-bg);
    color: var(--accent);
    font-weight: 500;
}
.quiz .options li.correct:has(input:checked) label::after {
    content: "Correct";
    margin-left: auto;
    padding-left: 10px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.quiz .options li:not(.correct):has(input:checked) label { color: var(--faint); }
.quiz .options li:not(.correct):has(input:checked) label .opt-text { text-decoration: line-through; }
.quiz .options li:not(.correct):has(input:checked) label::after {
    content: "Not quite";
    margin-left: auto;
    padding-left: 10px;
    font-size: 12px;
    white-space: nowrap;
}

.quiz .reveal {
    display: none;
    margin-top: 14px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--accent-br);
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--mid);
}
.quiz .reveal p { margin: 0 0 8px; }
.quiz .reveal p:last-child { margin-bottom: 0; }
.quiz:has(input:checked) .reveal { display: block; }

/* ---- Milestone ladder (start page, coding agents page) ---------------- */

.milestones { list-style: none; padding: 0; margin: 32px 0; }

.milestone {
    display: flex;
    gap: 18px;
    margin: 0 0 16px;
    padding: 20px 22px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.milestone:last-child { margin-bottom: 0; }

.milestone-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.milestone-body { flex: 1; min-width: 0; }
.milestone-body > *:first-child { margin-top: 0; }

.milestone-tag {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--faint);
    margin: 0 0 4px;
}

.milestone-title {
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 10px;
}

.milestone .do-label {
    display: block;
    margin-bottom: 2px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--accent);
}

.milestone .done {
    margin: 16px 0 0;
    padding: 10px 14px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-br);
    border-radius: 8px;
    font-size: 15.5px;
}

.milestone .step-links {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--soft);
}

/* ---- Comparison tables ------------------------------------------------- */

.table-scroll {
    overflow-x: auto;
    margin: 28px 0;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}

table.tool-map {
    font-size: 14.5px;
    border-collapse: collapse;
    width: 100%;
    min-width: 560px;
}
table.tool-map th {
    text-align: left;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--faint);
    padding: 12px 14px;
    background: var(--panel);
    border-bottom: 1px solid var(--rule);
}
table.tool-map td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
    line-height: 1.5;
}
table.tool-map tr:last-child td { border-bottom: 0; }
table.tool-map td:first-child { font-weight: 500; color: var(--ink); }

/* ---- Small screens ----------------------------------------------------- */

@media (max-width: 600px) {
    body { font-size: 16.5px; }
    .site-head-in { padding: 10px var(--gutter); }
    .brand { font-size: 20px; }
    .byline { font-size: 13px; }
    .layout { padding: 16px var(--gutter) 56px; }
    .site-foot { padding: 20px var(--gutter) 36px; }

    h1 { font-size: 36px; }
    h2 { font-size: 26px; margin-top: 44px; }
    .lead { font-size: 18px; }

    .callout, .start-pointer, .extras-note, .quiz { padding: 16px; }
    figure.diagram { padding: 10px; margin-left: 0; margin-right: 0; }
    pre.tree { font-size: 12px; padding: 14px; }

    .milestone { gap: 12px; padding: 16px; }
    .milestone-num { width: 30px; height: 30px; font-size: 13px; }
    .milestone-title { font-size: 22px; }

    .quiz label { font-size: 14.5px; padding: 9px 12px; gap: 10px; }
    .page-footer a { width: 100%; text-align: center; }
    .page-footer a:last-child { margin-left: 0; }
}

@media (max-width: 380px) {
    .site-head-in { flex-wrap: wrap; gap: 0 12px; }
}

hr + h2 { border-top: 0; padding-top: 0; margin-top: 0; }

/* ==== Editorial body (2026-10) ========================================= */
/* Hybrid with patrickmtaylor.com's research-article look. The header, the
   serif title and the headings above stay as they were. The body moves to
   warm paper, serif prose in a 640px column, figures wider than the text on
   warm rounded panels with small grey captions, and warm panel boxes. */

:root {
    --bg: #faf9f5;
    --ink: #1a1a18;
    --mid: #3d3d3a;
    --soft: #5e5d59;
    --faint: #8f8e88;
    --rule: #e5e3da;
    --rule-strong: #d9d6cc;
    --panel: #f0eee6;
    --panel2: #e6e3d8;
    --accent: #a5492a;
    --accent-bg: #f8e6de;
    --accent-br: #ecc7b8;
    --clay: #c4623f;
    --sky: #6b93c7;
    --sky-ink: #2c5487;
    --sky-bg: #dbe6f3;
    --prose: 'Source Serif 4', Georgia, serif;
    --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
    --read: 640px;
    --fig: 820px;
}

.site-head { background: rgba(250, 249, 245, 0.94); }
.skip, .skip:focus { color: var(--bg); }

.layout { grid-template-columns: 200px minmax(0, var(--fig)); gap: 48px; max-width: 1140px; }
.site-head-in, .site-foot { max-width: 1140px; }
@media (max-width: 960px) {
    .layout { grid-template-columns: minmax(0, var(--fig)); gap: 0; }
}

/* Text sits in a centred 640px reading column; figures and tables run wider. */
.content > * { max-width: var(--read); margin-left: auto; margin-right: auto; }
.content > figure.diagram,
.content > .table-scroll,
.content > figure.video-embed { max-width: var(--fig); }

/* Serif body prose. Navigation, labels, quizzes and tables stay sans. */
.content > p,
.content > ul > li,
.content > ol > li,
.callout p, .callout li,
.start-pointer p,
.extras-note p,
.toc-item p,
.milestone-body p, .milestone-body li,
blockquote {
    font-family: var(--prose);
    color: var(--ink);
    letter-spacing: 0;
}
.content > p,
.content > ul > li,
.content > ol > li { font-size: 19px; line-height: 1.55; }
.lead { font-family: var(--prose); font-size: 21px; line-height: 1.45; color: var(--mid); }
.callout p, .callout li, .start-pointer p, .extras-note p,
.milestone-body p, .milestone-body li { font-size: 17px; line-height: 1.55; }
.toc-item p { font-size: 16.5px; line-height: 1.5; color: var(--mid); }
.meta-line { color: var(--soft); }
.meta-line a { color: var(--ink); }
strong, b { font-weight: 600; }
a { text-decoration-color: var(--rule-strong); }
a:hover { text-decoration-color: var(--clay); }

/* Warm panel boxes */
.callout, .on-page, .quiz, .milestone, blockquote, pre.tree {
    background: var(--panel);
    border: 0;
    border-radius: 16px;
}
.start-pointer { background: var(--accent-bg); border: 0; border-radius: 16px; }
.extras-note { border-radius: 16px; }
.mnav { background: var(--panel); border: 0; border-radius: 12px; }
code, kbd { background: var(--panel); border: 0; }
.page-footer a { background: var(--panel); border: 0; border-radius: 10px; }
.page-footer a:hover { background: var(--panel2); }
.table-scroll { border-color: var(--rule); border-radius: 16px; background: #fff; }
table.tool-map th { background: var(--panel); }
.quiz label { border-color: var(--rule); }
.quiz label:hover { background: #fff; border-color: var(--rule-strong); }
.quiz .reveal { border: 0; }
.quiz .options li.correct:has(input:checked) label { border-color: var(--sky); background: var(--sky-bg); color: var(--sky-ink); }
.quiz input[type="radio"] { accent-color: var(--sky-ink); }
.milestone-num { color: var(--bg); }
.milestone .done { background: #fff; border: 0; }

/* Figures: warm rounded panel, caption underneath in small grey sans. */
figure.diagram {
    margin: 44px auto;
    padding: 0;
    border: 0;
    background: none;
}
figure.diagram svg {
    background: var(--panel);
    border-radius: 16px;
    padding: 22px;
}
figure.diagram.fig svg { padding: 0; }
figure.diagram figcaption {
    max-width: var(--read);
    margin: 12px 0 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--soft);
    text-align: left;
}
@media (max-width: 600px) {
    .content > p, .content > ul > li, .content > ol > li { font-size: 17.5px; }
    .lead { font-size: 18.5px; }
    figure.diagram { margin: 32px auto; padding: 0; }
    figure.diagram svg { padding: 10px; border-radius: 12px; }
    figure.diagram.fig svg { padding: 0; }
}

/* Shared marks for the research-style inline diagrams (svg.dg). */
svg.dg text { font-family: var(--mono); font-size: 20px; fill: var(--ink); }
svg.dg .hd { font-family: var(--sans); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
svg.dg .lb { font-family: var(--sans); font-size: 19px; fill: var(--soft); }
svg.dg .sm { font-size: 17px; }
svg.dg .dim { fill: var(--faint); }
svg.dg .soft { fill: var(--soft); }
svg.dg .t-sys { fill: var(--sky-ink); }
svg.dg .t-out { fill: var(--accent); }
svg.dg .card { fill: #fff; stroke: var(--rule-strong); stroke-width: 1.5; }
svg.dg .sys { fill: var(--sky-bg); stroke: var(--sky); stroke-width: 1.6; stroke-dasharray: 6 4; }
svg.dg .out { fill: var(--accent-bg); stroke: var(--clay); stroke-width: 1.6; }
svg.dg .ghost { fill: none; stroke: #c9c6bb; stroke-width: 1.5; stroke-dasharray: 6 4; }
svg.dg .arr { fill: none; stroke: var(--faint); stroke-width: 1.8; }
svg.dg .arr-c { fill: none; stroke: var(--clay); stroke-width: 1.8; }
svg.dg .arr-s { fill: none; stroke: var(--sky); stroke-width: 1.8; }
svg.dg .rule { stroke: var(--rule-strong); stroke-width: 1.5; }
svg.dg .h-dim { fill: var(--faint); }
svg.dg .h-c { fill: var(--clay); }
svg.dg .h-s { fill: var(--sky); }
svg.dg .fill-c { fill: var(--clay); }
svg.dg .fill-s { fill: var(--sky); }
@media (max-width: 600px) {
    /* On phones, let figures run edge to edge so diagram labels stay legible. */
    .content > figure.diagram { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); max-width: none; }
    .content > figure.diagram svg { border-radius: 0; }
    .content > figure.diagram figcaption { padding: 0 var(--gutter); }
}
