/* Blog styles. Light page, black type, one orange accent; mono uppercase captions for the tag and dates. */
/* Aeonik Pro Bold: the Ethosphere display face (ethosphere.ai), used for the site title and brand label. */
@font-face{font-family:"Aeonik Pro";src:url("fonts/aeonik-pro-bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
:root{
  --bg:#fff;--ink:#000;--ink-70:rgba(0,0,0,.7);--ink-50:rgba(0,0,0,.5);--ink-40:rgba(0,0,0,.4);
  --line:rgba(0,0,0,.08);--line-4:rgba(0,0,0,.04);--fill:rgba(0,0,0,.04);--card:#fff;
  --orange:#fc4c02;--blue:#197ecf;--blue-16:rgba(155,205,245,.16);--blue-40:rgba(155,205,245,.4);
  --grad-a:#e5f3ff;--grad-b:#f6fafd;
  --brand:#0d1e3f;--display:"Aeonik Pro","Geist",system-ui,sans-serif;
  --sans:"Geist",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;--mono:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --r4:.25em;--r8:.5em;--pad:2em;--sidebar:14em;--gap:3em;--article:41.5em;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#14171b;--ink:#e8eaed;--ink-70:rgba(232,234,237,.72);--ink-50:rgba(232,234,237,.5);--ink-40:rgba(232,234,237,.4);
  --line:#2b3138;--line-4:rgba(232,234,237,.06);--fill:rgba(232,234,237,.06);--card:#1b1f24;
  --blue-16:rgba(155,205,245,.12);--grad-a:#1b1f24;--grad-b:#14171b;--orange:#ff7a3d;--blue:#54b2fd;--brand:#e8eaed}}
:root[data-theme="dark"]{
  --bg:#14171b;--ink:#e8eaed;--ink-70:rgba(232,234,237,.72);--ink-50:rgba(232,234,237,.5);--ink-40:rgba(232,234,237,.4);
  --line:#2b3138;--line-4:rgba(232,234,237,.06);--fill:rgba(232,234,237,.06);--card:#1b1f24;
  --blue-16:rgba(155,205,245,.12);--grad-a:#1b1f24;--grad-b:#14171b;--orange:#ff7a3d;--blue:#54b2fd;--brand:#e8eaed}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.5;position:relative;min-height:100vh;display:flex;flex-direction:column}
a{color:inherit}
img,svg{max-width:100%}
.gradient{position:absolute;inset:0 0 auto 0;height:100vh;background:linear-gradient(var(--grad-a),var(--grad-b) 18%,var(--bg));z-index:-1;pointer-events:none}
.container{width:100%;max-width:100em;margin:0 auto;padding:0 var(--pad)}

/* type scale (Together: h1 3em/1.1 500 -.02em; mono uppercase captions) */
.h1{font-size:3em;font-weight:500;line-height:1.1;letter-spacing:-.02em;margin:0;text-wrap:balance}
.caption-m{font-family:var(--mono);text-transform:uppercase;font-size:.8125em;font-weight:500;line-height:1.4;letter-spacing:.005em}
.caption-s{font-family:var(--mono);text-transform:uppercase;font-size:.6875em;font-weight:500;line-height:1.4;letter-spacing:.005em}
.tag{display:inline-flex;align-items:center;justify-content:center;gap:.5em;min-height:1.25em;padding:.2em .6em;border:1px solid var(--line);border-radius:var(--r4);background:var(--fill);
  font-family:var(--mono);text-transform:uppercase;font-size:.75em;font-weight:500;line-height:1.4;letter-spacing:.02em;white-space:nowrap}

/* nav + footer */
.nav{position:sticky;top:0;z-index:10;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);background:color-mix(in srgb,var(--bg) 72%,transparent);border-bottom:1px solid var(--line-4)}
.nav-in{display:flex;align-items:center;justify-content:space-between;height:4em}
.brand{display:inline-flex;align-items:center;gap:.75em;text-decoration:none;color:var(--brand)}
.brand svg{height:1.6em;width:auto;display:block}
.brand-sub{font-family:var(--display);font-weight:700;font-size:1.125em;letter-spacing:-.01em;padding-left:.75em;border-left:1px solid var(--line);line-height:1.2}
.display{font-family:var(--display);font-weight:700;letter-spacing:-.025em}
.nav-links a{text-decoration:none;font-size:.875em;font-weight:500;opacity:.7;padding:.4em .8em;border-radius:var(--r4)}
.nav-links a.on,.nav-links a:hover{opacity:1;background:var(--fill)}
.foot{margin-top:auto;border-top:1px solid var(--line);padding:1.625em 0;color:var(--ink-50)}
.foot-in>*{font-size:.8125em}  /* on the children, so the em-based container width/padding match the nav */
.foot-in{display:flex;justify-content:space-between;gap:1em}
.foot a{text-decoration:none;color:var(--ink-70)}

/* ---- post ------------------------------------------------------------------------------------- */
.detail{display:flex;flex-direction:column;gap:4.5em;padding:6em 0 4em}
.detail-head{max-width:62.75em}
.back{display:inline-flex;align-items:center;gap:.5em;text-decoration:none;font-family:var(--mono);text-transform:uppercase;font-size:.6875em;letter-spacing:.05em;font-weight:500;margin-bottom:4.4em;opacity:.8}
.back:hover{opacity:.5}
.meta{display:flex;align-items:center;gap:1em;margin-bottom:1em}
.meta .caption-s{color:var(--ink-70)}
.subtitle{font-size:1.375em;line-height:1.35;letter-spacing:-.01em;color:var(--ink-70);margin:1em 0 0;max-width:40em;text-wrap:pretty}
.detail-content{display:flex;gap:var(--gap);align-items:flex-start}
.sidebar{width:var(--sidebar);flex:none;display:flex;flex-direction:column;gap:2.25em;position:sticky;top:6em;max-height:calc(100vh - 7em);overflow:auto;scrollbar-width:thin}
.side-label{opacity:.5;margin:0 0 .5em}
.authors,.toc{list-style:none;margin:0;padding:0}
.authors li{font-size:.78em;font-weight:500;line-height:1.35;opacity:.7;padding:.15em 0}
.toc li{margin:0}
.toc a{display:block;font-size:.75em;font-weight:500;line-height:1.3;text-decoration:none;opacity:.7;padding:.25em 0 .25em .85em;border-left:2px solid transparent;margin-left:-.85em;transition:opacity .2s}
.toc a:hover{opacity:1}
.highlights a{font-weight:600;opacity:.85}.highlights a::before{content:"→ ";opacity:.6}
.toc a.on{opacity:1;color:var(--orange);border-left-color:var(--orange)}
.main{flex:1;min-width:0;container-type:inline-size;display:flex;flex-direction:column;gap:3em}
.summary{max-width:min(100cqw,1480px);background:var(--blue-16);border-radius:var(--r8);padding:1.5em;font-size:1.25em;line-height:1.55}
.summary{scroll-margin-top:5.5em}
.summary-label{font-family:var(--mono);text-transform:uppercase;font-size:.75em;font-weight:500;letter-spacing:.04em;color:var(--blue);margin:0 0 .9em}
.summary p{margin:0}.summary p+p{margin-top:1em}
.article{max-width:min(100cqw,1480px);font-size:1.25em;line-height:1.6}   /* trial: text at the figure width (was var(--article)) */
.article>*:first-child{margin-top:0}
.article p{margin:0 0 1em}
.article h2{font-size:2em;font-weight:500;line-height:1.25;letter-spacing:-.02em;margin:1.25em 0 .5em;scroll-margin-top:5.5em;text-wrap:balance}
.article h3{font-size:1.375em;font-weight:500;line-height:1.3;letter-spacing:-.015em;margin:1.4em 0 .6em;scroll-margin-top:5.5em}
.article h4{font-size:1.125em;font-weight:500;margin:1.4em 0 .5em}
.article a{color:var(--blue);font-weight:600;text-decoration:underline;text-underline-offset:.15em;text-decoration-color:currentColor;text-decoration-thickness:1.5px}
.article a:hover{opacity:1;text-decoration-thickness:2px}
.article ul,.article ol{margin:1em 0;padding-left:1.5em;display:flex;flex-direction:column;gap:.5em}
.article li>p{margin:0}
.article hr{border:0;border-top:1px solid var(--line);margin:2.5em 0}
.article blockquote{margin:1.5em 0;padding:0 1.5em;border-left:2px solid var(--line);color:var(--ink-70)}
.article blockquote p:last-child{margin-bottom:0}
.article code{font-family:var(--mono);font-size:.875em;background:var(--fill);border-radius:3px;padding:.1em .35em}
.article pre{background:var(--fill);border:1px solid var(--line-4);border-radius:var(--r4);padding:1em 1.25em;overflow:auto;font-size:.875em;line-height:1.5}
.article pre code{background:none;padding:0;font-size:1em}
.article strong{font-weight:600}
.article img{border-radius:var(--r4)}

/* figures */
figure.static{width:min(100cqw,1480px);box-sizing:border-box;margin:1.75em 0 .5em;padding:1em;border:1px solid var(--line);border-radius:var(--r4);background:var(--card);text-align:center}
figure.static svg,figure.static img{display:block;margin:0 auto;height:auto}
.figanchor{display:block;height:0;scroll-margin-top:5.5em}
p.figcap{font-size:.875em;line-height:1.35;letter-spacing:-.01em;opacity:.7;text-align:left;margin:.75em 0 1.75em}
iframe.widget{display:block;width:min(100cqw,1480px);min-height:320px;border:1px solid var(--line);border-radius:var(--r4);background:var(--card);margin:1.75em 0 .5em}
iframe.widget.wide{width:min(100cqw,1480px)}   /* Figure 3's four transfer cards sit side by side across the whole main column */
iframe.widget.tall{height:min(860px,92vh)}   /* the conversation browser sizes itself to its frame */
.widgetnote{font-size:.8125em;line-height:1.4;color:var(--ink-50);margin:.4em 0 2em}
.widgetnote a{color:var(--blue);font-weight:600;text-decoration-color:currentColor}

/* tables */
.article table{border-collapse:collapse;font-size:.8125em;line-height:1.35;display:block;width:fit-content;max-width:100cqw;overflow-x:auto;margin:1.5em 0;font-variant-numeric:tabular-nums}
.article th,.article td{border-bottom:1px solid var(--line);padding:.5em .6em;text-align:left;white-space:nowrap;vertical-align:top}
.article th{font-family:var(--mono);font-size:.75em;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-50);font-weight:500;white-space:normal;vertical-align:bottom}
.article table.prose{display:table;width:min(100cqw,1480px)}.article table.prose td{white-space:normal}
td.hi,th.hi{background:var(--blue-16)}
tr.hi td{background:var(--blue-16);font-weight:600}
.tabtable{width:min(100cqw,1480px);margin:1.5em 0 2em}
.unitstabs{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:var(--r4);overflow:hidden;font-size:.75em;margin:0 0 .75em;background:var(--fill)}
.unitstabs span{padding:.35em .9em;color:var(--ink-50);border-right:1px solid var(--line);font-family:var(--mono);text-transform:uppercase;letter-spacing:.03em}
.unitstabs button{font:inherit;border:0;background:transparent;color:var(--ink);padding:.45em 1em;cursor:pointer}
.unitstabs button.on{background:var(--ink);color:var(--bg)}
.tabtable table{margin-top:.5em}
.tabtable p{font-size:.875em;color:var(--ink-70);margin:.5em 0}

/* ---- listing ---------------------------------------------------------------------------------- */
.listing{padding:6em 0 4em;display:flex;flex-direction:column;gap:3em}
.listing-head{max-width:40em;display:flex;flex-direction:column;gap:1em}
.listing-head .caption-s{color:var(--ink-50);margin:0}
.lede{font-size:1.125em;line-height:1.45;color:var(--ink-70);margin:0;text-wrap:pretty}
.filters{display:flex;flex-wrap:wrap;gap:.5em}
.chip{font:inherit;font-family:var(--mono);text-transform:uppercase;font-size:.75em;font-weight:500;letter-spacing:.02em;padding:.45em .9em;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);cursor:pointer;opacity:.7}
.chip:hover{opacity:1;background:var(--fill)}
.chip.on{opacity:1;background:var(--ink);color:var(--bg);border-color:var(--ink)}
.rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border-bottom:1px solid var(--line)}
.row{display:grid;grid-template-columns:11.875em 1fr 9.375em;gap:1em 2em;align-items:start;border-top:1px solid var(--line);padding:2em 0}
.row[hidden]{display:none}
.row-body{display:flex;flex-direction:column;gap:.75em;max-width:36em}
.row-title{font-size:1.5em;font-weight:500;line-height:1.2;letter-spacing:-.015em;text-decoration:none;text-wrap:balance}
.row-title:hover{opacity:.7}
.row-summary{margin:0;color:var(--ink-70);line-height:1.45;text-wrap:pretty}
.row-meta{margin:.25em 0 0;color:var(--ink-50)}
.dot{margin:0 .6em}
.row-thumb{display:block;aspect-ratio:150/100;border-radius:var(--r4);overflow:hidden;background:var(--fill);border:1px solid var(--line-4);justify-self:end;width:100%}
.row-thumb img{width:100%;height:100%;object-fit:cover;object-position:top left;display:block}
.thumb-blank{display:block;width:100%;height:100%;background:linear-gradient(135deg,var(--grad-a),var(--blue-40))}

/* ---- responsive --------------------------------------------------------------------------------- */
@media (max-width:991px){
  :root{--pad:1.5em;--gap:3em}
  .detail-content{flex-direction:column;align-items:stretch}
  .main{width:100%}   /* stacked: the main column must take the full width (it is a size container, so it cannot size from its content) */
  /* stacked layout: the contents become a compact bar that stays under the site header while scrolling */
  .sidebar{position:sticky;top:4em;z-index:9;width:100%;max-height:none;flex-direction:row;align-items:center;gap:0 1.5em;padding:.5em 0;margin:0 0 .5em;background:var(--bg);border-bottom:1px solid var(--line-4);overflow:visible}
  .sidebar .side-block:not([data-toc]):not([data-highlights]){display:none}   /* authors stay in the header area only on wide screens */
  .sidebar{flex-wrap:wrap;row-gap:.25em}
  .sidebar [data-toc],.sidebar [data-highlights]{flex:1 1 100%;min-width:0;display:flex;align-items:center;gap:1em}
  .sidebar [data-highlights] .side-label{margin:0;flex:none;white-space:nowrap}
  .sidebar [data-toc] .side-label{margin:0;flex:none;white-space:nowrap}
  .toc{columns:auto;display:flex;gap:.25em;overflow-x:auto;white-space:nowrap;scrollbar-width:none;flex:1;min-width:0;padding-bottom:2px}
  .toc::-webkit-scrollbar{display:none}
  .toc li{flex:none}
  .toc a{padding:.3em .6em;margin:0;border-left:0;border-bottom:2px solid transparent;border-radius:var(--r4) var(--r4) 0 0}
  .toc a.on{border-bottom-color:var(--orange)}
  iframe.widget.wide{width:100%}
}
@media (max-width:767px){
  :root{--pad:1em}
  body{font-size:15px}
  .h1{font-size:2.375em;line-height:1.15}
  .detail,.listing{padding-top:3em;gap:2.5em}
  .back{margin-bottom:2.5em}
  .sidebar{top:4em}
  .row{grid-template-columns:1fr;gap:.75em}
  .row-thumb{order:-1;width:100%;max-width:20em;justify-self:start}
  .row-title{font-size:1.3em}
  .foot-in{flex-direction:column}
}
@media (max-width:479px){.h1{letter-spacing:-.03em}}

/* ---- 404 --------------------------------------------------------------------------------------- */
.notfound{padding:9em 0 8em;max-width:40em}
.notfound .caption-s{color:var(--orange);margin:0 0 1em}
.notfound .lede{margin:1.25em 0 2em}
.button{display:inline-flex;align-items:center;gap:.5em;padding:.75em 1.25em;border-radius:var(--r8);background:var(--brand);color:var(--bg);text-decoration:none;font-weight:500;font-size:.9375em}
.button:hover{opacity:.85}
@media (max-width:40em){.brand-sub{font-size:1em}.notfound{padding:5em 0 4em}}

/* full-screen view of a figure or widget: the figure fills the screen; turn the phone to landscape or pinch to zoom */
.figwrap{position:relative}
.figwrap>.zoombtn{position:absolute;top:.5em;right:.5em;z-index:3;font:inherit;font-size:.75em;line-height:1;padding:.45em .6em;border:1px solid var(--line);border-radius:var(--r4);background:var(--card);color:var(--ink);opacity:.75;cursor:pointer}
.figwrap>.zoombtn:hover{opacity:1}
.figwrap.zoomed{position:fixed;inset:0;z-index:60;margin:0;padding:3.25em .75em .75em;background:var(--bg);overflow:auto;display:flex;flex-direction:column}
.figwrap.zoomed>.zoombtn{position:fixed;top:.6em;right:.6em;font-size:.9em;opacity:1}
.figwrap.zoomed>figure.static,.figwrap.zoomed>iframe.widget{width:100%;max-width:none;margin:0;flex:1;min-height:0}
.figwrap.zoomed>figure.static{display:flex;align-items:center;justify-content:center;border:0;background:transparent}
.figwrap.zoomed>figure.static svg,.figwrap.zoomed>figure.static img{width:100%;height:auto;max-height:none}
.figwrap.zoomed>iframe.widget{height:100%!important;border:0}
body.zoomlock{overflow:hidden}
@media (min-width:992px){.figwrap>.zoombtn{display:none}}   /* desktop columns are wide enough; the button is for phones and tablets */
