/* Shared by every page except the home page, which carries its own styles. */
:root{--bg:#0b0a1f;--ink:#ece8f4;--soft:#a9a3bd;--line:#2a2748;--accent:#ff9a6a;color-scheme:dark}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;background:radial-gradient(90% 50% at 10% 0%,rgba(176,48,106,.22),transparent 70%),radial-gradient(70% 40% at 100% 0%,rgba(224,102,42,.14),transparent 70%),var(--bg);background-repeat:no-repeat;color:var(--ink);font:1.0625rem/1.65 Georgia,"Iowan Old Style","Times New Roman",serif}
header,main{max-width:40rem;margin:0 auto;padding:0 1.25rem}
header{padding-top:1.5rem;padding-bottom:1rem;display:flex;flex-wrap:wrap;gap:.25rem 1.5rem;justify-content:space-between;align-items:baseline;font:500 .875rem/1.9 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.02em}
main{padding-top:2rem;padding-bottom:5rem}
a{color:inherit;text-decoration-color:var(--accent);text-underline-offset:.2em}
header a{text-decoration:none;color:var(--soft);padding:.4rem 0;display:inline-block}
header a:hover,header a[aria-current]{color:var(--ink)}
header .home{color:var(--ink)}
.menu span{color:var(--line);margin:0 .35rem}
h1,h2,h3{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.2;font-weight:600;text-wrap:balance}
h1{font-size:clamp(1.75rem,6vw,2.5rem);margin:0 0 1.25rem;letter-spacing:-.01em}
h2{font-size:1.2rem;margin:2.5rem 0 .5rem}
h3{font-size:1rem;margin:1.5rem 0 .1rem}
p,ul{margin:0 0 1rem}
ul{padding-left:1.2rem}
.oneliner{font-size:1.2rem;color:var(--soft);font-style:italic}

.chips{display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 1.5rem}
.chip,.filter button{font:500 .75rem/1 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.03em;padding:.35rem .6rem;border-radius:99px;border:1px solid var(--line);color:var(--soft);background:none}
.chip::before,.filter button[class]::before{content:"";display:inline-block;width:.5rem;height:.5rem;border-radius:50%;background:var(--t,var(--soft));margin-right:.4rem}
.t-sustainability{--t:#7fd4a0}.t-agents{--t:#e07ab0}.t-systems{--t:#ff9a5a}

.filter{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.5rem}
.filter button{cursor:pointer;padding:.6rem .8rem;font-size:.8125rem}
.filter button[aria-pressed=true]{color:var(--bg);background:var(--ink);border-color:var(--ink)}
.stories{list-style:none;padding:0}
.stories li{border-top:1px solid var(--line);padding:1.1rem 0 .2rem}
.stories li>a{display:block;text-decoration:none;margin-bottom:.6rem}
.stories strong{display:block;font:600 1.15rem/1.3 system-ui,-apple-system,"Segoe UI",sans-serif}
.stories li>a:hover strong{text-decoration:underline;text-decoration-color:var(--accent)}
.stories p{color:var(--soft)}
.oneliners{list-style:none;padding:0}
.oneliners li{border-top:1px solid var(--line);padding:.9rem 0}
.oneliners a{white-space:nowrap;font:500 .8125rem/1 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--soft)}
.stories .chips{margin-bottom:.9rem}
.pager{display:flex;justify-content:space-between;gap:1rem;margin-top:3rem;padding-top:1rem;border-top:1px solid var(--line);font:500 .875rem/1.4 system-ui,-apple-system,"Segoe UI",sans-serif}

/* Figures: a headline number, and a flow diagram drawn to one scale with every value written out. */
.lede{font-size:1.2rem;color:var(--soft)}
.hero{margin:0 0 2rem;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.hero b{display:block;font-size:clamp(4rem,19vw,7rem);line-height:1;font-weight:600;letter-spacing:-.04em;color:var(--accent)}
.hero span{display:block;margin-top:.5rem;font-size:1.05rem;line-height:1.4;max-width:22rem}
.sankey{margin:1.75rem 0 2rem;padding:1.1rem 0 1.2rem;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.sankey figcaption{font-weight:600;margin-bottom:1rem;line-height:1.3}
.sankey svg{display:block;width:100%;max-width:31rem;height:auto;overflow:visible}
.sankey text{font-size:12.5px;fill:var(--ink)}
.sankey .n{font-weight:600;font-variant-numeric:tabular-nums}
.sankey .k{fill:var(--soft)}.sankey .s1{fill:#6a63a0}.sankey .s2{fill:#4f4a7c}.sankey .s3{fill:#3a365e}.sankey .s4{fill:#8a84b8}.sankey .a{fill:var(--accent)}
.sankey path{opacity:.55}.sankey path.a{opacity:.8}

/* CV: plain and scannable; prints black on white. */
.cv main{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:1rem;line-height:1.55}
.cv h2{font-size:.8125rem;text-transform:uppercase;letter-spacing:.1em;color:var(--soft);border-bottom:1px solid var(--line);padding-bottom:.4rem;margin-bottom:1rem}
.cv h3+p{color:var(--soft);font-size:.9rem;margin-bottom:.4rem}
@media print{
  :root{--bg:#fff;--ink:#000;--soft:#444;--line:#bbb}
  body{background:#fff;font-size:11pt}
  header{display:none}
  main{max-width:none;padding:0}
  a{text-decoration:none}
  h3{break-after:avoid}
}
