/* Ivory Dog article pages. Design B (Conversation): DM Serif Display + Inter, rust accent */
/* Fonts are self-hosted (SIL Open Font License): no Google request from visitors */
@font-face{font-family:"DM Serif Display";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/dm-serif-display-latin.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/inter-latin-var.woff2) format("woff2")}
:root{--bg:#fdfaf4;--panel:#f5eee2;--ink:#24211d;--muted:#5c5650;--line:#e3d9c8;
      --accent:#b14f2a;--accent-ink:#fff;--head:#fdfaf4;--th:#f0e6d6;--card:#fff;
      --serif:"DM Serif Display",Georgia,"Times New Roman",serif;
      --sans:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
@media (prefers-color-scheme:dark){
  :root{--bg:#1a1816;--panel:#24211e;--ink:#f1ece4;--muted:#c4bbae;--line:#3d3833;
        --accent:#e8875f;--accent-ink:#1a1816;--head:#1a1816;--th:#2e2a26;--card:#211e1b}
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:1rem}
body{margin:0;background:var(--bg);color:var(--ink);
     font:1.0625rem/1.7 var(--sans)}
a{color:var(--accent)}
a:focus-visible,summary:focus-visible,.table-scroll:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.skip{position:absolute;left:-9999px;top:0}
.skip:focus{left:0;padding:.75rem 1rem;background:var(--accent);color:var(--accent-ink);z-index:10}
.wrap{max-width:46rem;margin:0 auto;padding:0 1.25rem}
header.site{background:var(--head);border-bottom:1px solid var(--line)}
header.site .bar{max-width:62rem;margin:0 auto;padding:.85rem 1.25rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.brand{font-family:var(--serif);font-weight:400;font-size:1.45rem;color:var(--ink);text-decoration:none;display:inline-flex;align-items:center;gap:.5rem}
.brand::before{content:"";width:1.4rem;height:1.4rem;border-radius:.45rem .45rem .45rem 0;background:var(--accent)}
header.site nav a{color:var(--ink);text-decoration:none;font-weight:500}
header.site nav a:hover,.brand:hover{color:var(--accent)}
.crumbs ol{list-style:none;margin:1.5rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.25rem;font-size:.9rem;color:var(--muted)}
.crumbs li+li::before{content:"/";margin:0 .4rem 0 .15rem;color:var(--line)}
.article-head{margin:1.75rem 0 1.5rem}
.kicker{margin:0 0 .6rem;font-size:.9rem;font-weight:600;color:var(--accent)}
h1{font-family:var(--serif);font-weight:400;font-size:clamp(1.9rem,5.2vw,2.75rem);line-height:1.15;margin:0 0 .75rem;text-wrap:balance}
.meta{margin:0;color:var(--muted);font-size:.95rem}
.toc{margin:0 0 2rem;background:var(--panel);border:1px solid var(--line);border-radius:1rem;padding:.85rem 1.2rem}
.toc summary{cursor:pointer;font-weight:650}
.toc ol{margin:.75rem 0 .25rem;padding-left:1.25rem;list-style:none}
.toc li{margin:.25rem 0}
.prose p{margin:0 0 1.05rem}
.prose h2,.refs h2,.notes h2,.related h2{font-family:var(--serif);font-weight:400;font-size:clamp(1.45rem,3.8vw,1.85rem);line-height:1.25;margin:2.75rem 0 1rem;text-wrap:balance}
.prose h3{font-size:1.15rem;line-height:1.3;margin:2rem 0 .75rem}
.prose blockquote{border-radius:0 1rem 1rem 0;margin:1.25rem 0;padding:.9rem 1.2rem;border-left:4px solid var(--accent);background:var(--panel);}
.prose blockquote p{margin:0}
.plain-list{margin:0 0 1.25rem;padding-left:1.5rem}
.plain-list li{margin:.35rem 0}
.dialogue{margin:1.25rem 0 1.5rem;padding:1.1rem 1.25rem;background:var(--card);border:1px solid var(--line);border-radius:1.2rem}
.dialogue .turn{margin:.5rem 0}
.dialogue .who{font-weight:700}
.dialogue .claude .who{color:var(--accent)}
sup.cite{line-height:0;font-size:.75em}
sup.cite a{text-decoration:none}
.vcap{display:none}
figure.visual{margin:2rem 0}
.table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:1rem;background:var(--card)}
table{border-collapse:collapse;width:100%;font-size:.95rem;line-height:1.5}
caption{text-align:left;font-weight:700;padding:.85rem 1rem;background:var(--panel);border-bottom:1px solid var(--line)}
th,td{padding:.65rem .85rem;text-align:left;vertical-align:top;border-top:1px solid var(--line)}
thead th{background:var(--th);border-top:0}
tbody th{font-weight:650}
figure.visual figcaption{margin:.6rem 0 0;font-size:.88rem;color:var(--muted)}
@media (max-width:40rem){
  table,tbody,tr,th,td{display:block}
  thead{position:absolute;left:-9999px}
  caption{display:block}
  tbody tr{border-top:1px solid var(--line);padding:.5rem 0}
  tbody th,tbody td{border:0;padding:.3rem 1rem}
  tbody th{font-size:1.02rem}
  tbody td::before{content:attr(data-label);display:block;font-size:.78rem;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
}
.refs ol{padding-left:1.5rem;font-size:.95rem}
.refs li{margin:0 0 .75rem;overflow-wrap:anywhere}
.refs .back{text-decoration:none;margin-left:.25rem}
.notes{font-size:.95rem;color:var(--muted)}
.notes h2{font-size:1.15rem;margin:2rem 0 .5rem;color:var(--ink)}
.related{margin:2.5rem 0 0;padding:1.3rem 1.5rem;background:var(--panel);border:1px solid var(--line);border-radius:1.2rem}
.related h2{margin:0 0 .5rem}
.related ul{margin:0;padding-left:1.25rem}
.article-list{list-style:none;padding:0;margin:1.5rem 0 3rem}
.article-list li{padding:1.1rem 0;border-top:1px solid var(--line)}
.article-list a{font-family:var(--serif);font-size:1.35rem;font-weight:400;text-decoration:none}
.article-list a:hover{text-decoration:underline}
.article-list p{margin:.35rem 0 0;color:var(--muted)}
footer.site{margin-top:4rem;padding:1.5rem 0 2.5rem;border-top:1px solid var(--line);color:var(--muted);font-size:.95rem}
footer.site p{margin:0}
.capsub{display:block;font-weight:400;font-size:.9rem;color:var(--muted);margin-top:.2rem}
h2.cat{font-family:var(--serif);font-weight:400;font-size:1.75rem;margin:2.5rem 0 0}
