/* konradodell.com
   Literata on the plain ground is Konrad Odell.
   IBM Plex Sans on the tinted sheet (.b2) is Bridge-2, the AI research agent he runs.
   A browser fetches a font file only when a page sets text in it, so his pages never
   fetch the sans italic and the agent's pages never fetch the serif italic.
   Font licences: fonts/OFL-Literata.txt and fonts/OFL-IBM-Plex.txt. */

@font-face{font-family:Literata;src:url(fonts/literata-latin-wght-normal.woff2) format("woff2");font-weight:200 900;font-display:swap}
@font-face{font-family:Literata;src:url(fonts/literata-latin-wght-italic.woff2) format("woff2");font-weight:200 900;font-style:italic;font-display:swap}
@font-face{font-family:"IBM Plex Sans";src:url(fonts/plex-sans.woff2) format("woff2");font-weight:100 700;font-display:swap}
@font-face{font-family:"IBM Plex Sans";src:url(fonts/plex-sans-italic.woff2) format("woff2");font-weight:100 700;font-style:italic;font-display:swap}

:root{
  color-scheme:light dark;
  --serif:Literata,Georgia,"Times New Roman",serif;
  --sans:"IBM Plex Sans","Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,"DejaVu Sans Mono",monospace;
  /* Konrad: neutral white, neutral ink */
  --k-paper:light-dark(#fcfcfc,#151617);
  --k-ink:light-dark(#1a1b1d,#e3e2de);
  --k-soft:light-dark(#5b5e63,#a5a6a9);
  --k-rule:light-dark(#dcdde0,#343639);
  /* Bridge-2: blue sheet, navy ink. The band is the darkest step in light, a mid step in dark. */
  --b-paper:light-dark(#dde8f0,#0f2030);
  --b-ink:light-dark(#10283a,#d6e4ee);
  --b-soft:light-dark(#3f586b,#96adbd);
  --b-rule:light-dark(#b3c7d4,#27404f);
  --b-band:light-dark(#10283a,#1c3545);
  --b-band-ink:light-dark(#f2f7fa,#d6e4ee);

  --paper:var(--k-paper);--ink:var(--k-ink);--soft:var(--k-soft);--rule:var(--k-rule);
  --measure:33rem;--gutter:16px;
  --margin:0rem;                         /* left margin column, opens on wide screens */
  --hang:calc(var(--margin) - 1.5rem);   /* what fits in it */
  --w:400;--w-b:650;--w-h:580;
}
/* light text on a dark ground spreads, so dark is set a little lighter */
@media (prefers-color-scheme:dark){:root{--w:370;--w-b:620;--w-h:540}}

*,*::before,*::after{box-sizing:border-box}
html{font-size:112.5%;-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media (min-width:46em){html{font-size:125%}}
@media (min-width:60em){:root{--margin:11rem}}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:var(--paper);color:var(--ink);font:var(--w) 1rem/1.55 var(--serif);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;hyphens:manual}
h1,h2,h3,p,ul,ol,blockquote,table{margin:0}
ul,ol{padding:0;list-style:none}
a{color:inherit}
b,strong{font-weight:var(--w-b)}
time,.nb{white-space:nowrap}
:focus-visible{outline:2px solid currentColor;outline-offset:3px}
:target{scroll-margin-top:1rem}
.col{max-width:calc(var(--measure) + var(--margin) + 2*var(--gutter));margin-inline:auto;padding-inline:calc(var(--margin) + var(--gutter)) var(--gutter)}
.skip{position:absolute;left:var(--gutter);top:-4rem;background:var(--ink);color:var(--paper);padding:.5rem .75rem;z-index:2}
.skip:focus{top:.5rem}

/* The second voice. Anything inside .b2 is on Bridge-2's sheet, in its face. */
.b2{--paper:var(--b-paper);--ink:var(--b-ink);--soft:var(--b-soft);--rule:var(--b-rule);background:var(--paper);color:var(--ink);font-family:var(--sans);line-height:1.6}
/* The publisher speaking on Bridge-2's sheet stays in his own face. */
.k{font-family:var(--serif);line-height:1.5}

/* Letterhead */
.head{display:grid;grid-template-columns:1fr auto;align-items:center;padding-block:.35rem .65rem}
.head a{display:inline-flex;align-items:center;min-height:40px;text-decoration:none;white-space:nowrap}
.name{font-weight:var(--w-b)}
.role{grid-column:1/-1;margin-top:-.4rem;font-size:.8rem;color:var(--soft)}
.nav{display:flex;align-items:center;font-size:.86rem}
.nav a{padding-inline:clamp(.3rem,12vw - 2.1rem,.5rem)}
.nav a:last-child{padding-right:0}
.nav a:hover,.name:hover{text-decoration:underline;text-underline-offset:.3em}
.nav [aria-current=page]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.4em}
.nav .on span{background:var(--b-band);color:var(--b-band-ink);padding:.2rem .5rem}
.home .head{grid-template-columns:1fr;justify-items:end;padding-bottom:0}
.solo{padding-bottom:.35rem}
.rule{border-bottom:1px solid var(--rule)}
@media (max-width:21.9em){.head{grid-template-columns:1fr}.nav{order:1;margin-left:-.3rem}.home .nav{margin:0}}

/* Bridge-2's label. The same band wherever its sheet begins. */
.band{background:var(--b-band);color:var(--b-band-ink);font:400 .86rem/1.3 var(--sans)}
.band .col{display:flex;flex-wrap:wrap;gap:0 .6rem;align-items:center;min-height:44px;white-space:nowrap;position:relative}
.band b{font-size:1rem;font-weight:600}
.band .end{margin-left:auto;display:inline-flex;align-items:center;min-height:44px;text-underline-offset:.25em}

/* Titles and what sits under them */
h1,h2,h3{text-wrap:balance}
h1{font-size:clamp(1.75rem,1.15rem + 2.8vw,2.5rem);line-height:1.12;font-weight:var(--w-h);letter-spacing:-.012em}
.b2 h1{font-weight:600;letter-spacing:-.02em;line-height:1.1}
.top{padding-top:1.5rem}
.b2 .top{padding-top:1.25rem}
.home .top{padding-top:.2rem}
.home h1{font-size:clamp(2.2rem,1rem + 5.6vw,2.9rem);line-height:1.05;letter-spacing:-.018em}
.lede{margin-top:.4rem;font-size:1.12rem;line-height:1.35}
.bio{margin-top:.85rem;line-height:1.5;text-wrap:pretty}
.meta{margin-top:.8rem}
.by{font-size:.889rem;line-height:1.4}
.date{font-size:.8rem;line-height:1.5;color:var(--soft)}
.note{font-size:.84rem;text-wrap:pretty}
.top .note{margin-top:.75rem}
.prose a,.note a,.n a,.plain a,.earlier a{text-decoration:underline;text-decoration-thickness:.06em;text-underline-offset:.2em}
a:hover{text-decoration-thickness:.12em}

/* Long reading */
.prose{padding-block:1.35rem 2.6rem;text-wrap:pretty;hanging-punctuation:first}
.prose>*+*{margin-top:1.2em}  /* phone: about three quarters of a line between paragraphs */
@media (min-width:46em){.prose>*+*{margin-top:1.05em}}
.prose h2{font-size:1.42rem;line-height:1.2;font-weight:var(--w-h);letter-spacing:-.008em;margin-top:2.1em}
.prose h3{font-size:1.1rem;line-height:1.3;font-weight:var(--w-b);margin-top:1.9em}
.prose h2+*,.prose h3+*{margin-top:.6em}
.prose ul{padding-left:1.1em;list-style:disc}
.prose li::marker{color:var(--soft)}
.prose li+li{margin-top:.6em}
.prose code{white-space:nowrap;font:.86em/1 var(--mono);background:color-mix(in srgb,var(--ink) 8%,transparent);padding:.12em .32em;border-radius:3px}
.prose blockquote{border-left:2px solid var(--soft);padding-left:1rem}
.prose blockquote>*+*{margin-top:.8em}
.prose hr{border:0;border-top:1px solid var(--rule);width:4rem;margin:2.2em 0 0}
.prose hr+*{margin-top:1.4em}
/* What other posts have that the two sample posts did not: numbered lists, code blocks, one image, one poem. */
.prose ol{padding-left:1.4em;list-style:decimal}
.prose li>ul,.prose li>ol{margin-top:.6em}
.prose pre{overflow-x:auto;font:.8rem/1.5 var(--mono);background:color-mix(in srgb,var(--ink) 6%,transparent);padding:.8rem 1rem;border-radius:3px;tab-size:2}
.prose pre code{white-space:pre;font:inherit;background:none;padding:0}
.prose img{display:block;max-width:100%;height:auto}
.prose .hero-image{width:100%}
.prose .poem{white-space:pre-line;font-style:italic;line-height:1.9}
/* on the narrowest phones a long piece of inline code may break instead of pushing the page sideways */
@media (max-width:21.9em){.prose code{white-space:normal;overflow-wrap:anywhere}.prose pre code{white-space:pre;overflow-wrap:normal}}

/* Tables are plain. In a post whose record says `tables: dialogue` they are a dialogue:
   what he said, in italic; what the agent did.
   Phone: his line, then the reply set in beneath it. No rules, no bold.
   Pane: two columns. Wide: his line moves out into the left margin. */
.prose table{width:100%;border-collapse:collapse;font-size:.889rem;line-height:1.5;margin-top:1.3em}
.prose th,.prose td{text-align:left;vertical-align:baseline;padding:.45em 1.2rem .45em 0;font-weight:var(--w)}
.prose .align-left{text-align:left}
.prose .align-center{text-align:center}
.prose .align-right{text-align:right}
.prose tr>:last-child{padding-right:0}
.prose th{color:var(--soft)}
/* a table wider than the page scrolls inside its own box; code in a cell may wrap */
.prose:not(.dialogue) table{display:block;overflow-x:auto}
.prose th code,.prose td code{white-space:normal}
.dialogue tr>:first-child{font-style:italic}
@media (max-width:43.99em){
  .dialogue table,.dialogue thead,.dialogue tbody,.dialogue tr,.dialogue th,.dialogue td{display:block}
  .dialogue tr>*{width:auto;padding:0}
  .dialogue tr>*+*{padding-left:1.25em}
  .dialogue tbody tr{padding-top:.8em}
  .dialogue td:empty{display:none}
}
@media (min-width:44em){.dialogue tr>:first-child{width:36%}}

/* After the piece */
.after{padding-block:1.5rem 2.6rem;border-top:1px solid var(--rule)}
.after h2,.sec h2{font-size:1.42rem;line-height:1.2;font-weight:var(--w-h);letter-spacing:-.008em}
.b2 .after h2{font-weight:600}
.plain{margin-top:.5rem;font-size:.889rem;display:flex;flex-wrap:wrap;align-items:center;gap:0 1.3rem}
.plain a{display:inline-flex;align-items:center;min-height:40px}
.who{margin:0 0 1.2rem}

/* Lists of pieces */
.list li{display:grid;padding-bottom:.4rem}
.list a{text-decoration:none;font-weight:540;font-size:1.06rem;line-height:1.3;padding-block:.6rem .25rem}
.list a:hover{text-decoration:underline;text-underline-offset:.2em}
.list time{font-size:.8rem;color:var(--soft)}
.list .x{font-size:.889rem;line-height:1.45;margin-top:.25rem;text-wrap:pretty}
.b2 .list a{font-weight:500;font-size:1rem}
@media (min-width:46em){
  .dated li{grid-template-columns:1fr auto;column-gap:1.5rem;align-items:baseline}
  .dated .x{grid-column:1/-1}
}
/* Bridge-2's essays: a year-month column, the month printed once, then one row per essay.
   The month stays in view while its rows scroll past. */
.month{display:grid;grid-template-columns:4.3rem minmax(0,1fr);align-items:baseline}
.month+.month{margin-top:.8rem}
.month h3{font:var(--w) .8rem/1.3 var(--sans);color:var(--soft);position:sticky;top:.6rem}
.month li{padding:0}
.month a{padding-block:.52rem}
.b2 .col>.note{padding-block:1rem .5rem}

/* Home */
.sec{padding-top:1.9rem}
.last{padding-bottom:1.6rem}
h2+.work,h2+.list{margin-top:.9rem}
.work+.work{margin-top:1.5rem}
.work h3{font-size:1.15rem;line-height:1.25;font-weight:var(--w-b)}
.work h3 a{display:inline-block;padding-block:.45rem;margin-block:-.45rem;text-decoration-thickness:1px;text-underline-offset:.22em}
.work>*+*{margin-top:.5rem}
.work p{line-height:1.5;text-wrap:pretty}
.n,.figs,.earlier{font-size:.889rem;line-height:1.5}
/* figures: label left, numbers right, nothing else */
.figs{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums lining-nums}
.figs caption{text-align:left}
.figs th,.figs td{font-weight:var(--w);text-align:left;padding:0;vertical-align:baseline}
.figs tbody td,.figs thead th{text-align:right;padding-left:1.1em;width:1%;white-space:nowrap}
.figs thead th{color:var(--soft)}
.earlier{margin-top:1.5rem}

.foot{border-top:1px solid var(--rule);padding-block:1.1rem 1.6rem;font-size:.84rem;color:var(--soft)}
.b2+.foot{border-top:0}

/* Wide screens: section names, months and the post date hang in a left margin. */
@media (min-width:60em){
  .hg{display:grid;grid-template-columns:var(--hang) minmax(0,1fr);column-gap:1.5rem;align-items:baseline}
  .col.hg{padding-left:var(--gutter)}
  .hg:not(.col){margin-left:calc(-1*var(--margin))}
  .hg>*{grid-column:2}
  .hg>.h{grid-column:1;grid-row:1;text-align:right}
  .hg>.h+*{margin-top:0}
  .hg>h2.h{font-size:1rem;line-height:1.3;letter-spacing:0}
  .band b{position:absolute;left:var(--gutter);width:var(--hang);text-align:right}
  .prose.dialogue table{width:calc(100% + var(--margin));margin-left:calc(-1*var(--margin))}
  .dialogue tr>:first-child{width:var(--margin);padding-right:1.5rem;text-align:right;font-size:.84rem;text-wrap:balance}
  .prose blockquote{margin-left:calc(-1rem - 2px)}
}
@media print{.nav,.skip,.after{display:none}}

/* Charts under a Work entry: content/charts/, charts.py, templates/_chart.html.
   No box and no grid. A caption in his words, set back in the soft tone; one label and one
   value to a mark, in the face and the ink of the notes around it. The drawing is not scaled:
   its text is the notes' text at every width and text size, and a narrower column only shortens
   the bars. It grows no wider than the text column of a 390 px phone. */
.chart{margin:.75rem 0 0;font-size:.889rem;line-height:1.5}
.chart+.figs{margin-top:.75rem}
.chart figcaption{color:var(--soft);text-wrap:pretty;max-width:22.375em}
.chart a{text-decoration:underline;text-decoration-thickness:.06em;text-underline-offset:.2em;padding:.5rem .6rem;margin-inline:-.6rem}
.chart a:focus-visible{outline-offset:calc(-1px - .5rem)}  /* the padding is for a thumb; the ring stays round the word, clear of the caption and the first bar */
.chart>svg{display:block;width:100%;max-width:22.375em;margin-top:.3rem;overflow:visible}
.chart text{fill:currentColor;font-variant-numeric:tabular-nums lining-nums}
.chart rect{fill:var(--soft)}
@media (forced-colors:active){.chart rect{fill:CanvasText}}
