:root{
  --bg:#EDF0EF;--surface:#FAFBFA;--fg:#10222E;--muted:#4E5F68;--rule:#C9D2D4;
  --link:#0B3B6F;--accent:#17A2C4;--ok:#12604E;
  --font:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#0D1A21;--surface:#13242D;--fg:#E4ECEE;--muted:#9DB0B7;--rule:#27404B;
    --link:#7CC9DD;--accent:#17A2C4;--ok:#6FC4AC;
  }
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font);
  font-size:1.0625rem;line-height:1.65}
a{color:var(--link);text-underline-offset:.2em;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
a:focus-visible,.btn:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.skip{position:absolute;left:-999px;top:0;background:var(--surface);padding:.5rem 1rem}
.skip:focus{left:1rem;top:1rem;z-index:10}
.wrap{max-width:46rem;margin:0 auto;padding:0 1rem}
@media(min-width:48rem){.wrap{padding:0 1.5rem}}
.top{display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;align-items:baseline;
  justify-content:space-between;padding:1.25rem 0;border-bottom:1px solid var(--rule)}
.brand{font-weight:600;letter-spacing:.01em;text-decoration:none;color:var(--fg);font-size:1.125rem}
.nav{display:flex;flex-wrap:wrap;gap:.25rem 1.25rem}
.nav a{color:var(--muted);text-decoration:none;padding:.25rem 0;border-bottom:2px solid transparent}
.nav a:hover,.nav a[aria-current="page"]{color:var(--fg);border-bottom-color:var(--accent)}
main{padding:2.5rem 0 3rem}
h1{font-size:clamp(1.9rem,5.5vw,2.8rem);line-height:1.15;margin:0 0 1rem;font-weight:600;
  letter-spacing:-.01em}
h2{font-size:1.35rem;line-height:1.3;margin:2.75rem 0 .75rem;font-weight:600;
  padding-top:1.25rem;border-top:1px solid var(--rule)}
h3{font-size:1.1rem;margin:0 0 .25rem;font-weight:600}
p{margin:0 0 1rem}
.eyebrow{font-family:var(--mono);font-size:.8125rem;text-transform:uppercase;letter-spacing:.08em;
  color:var(--muted);margin:0 0 .75rem}
.lede{font-size:1.2rem;color:var(--fg);max-width:38rem}
.hero{position:relative;padding:1.5rem 0 .5rem}
.mark{position:absolute;right:0;top:-.5rem;font-size:clamp(5rem,22vw,10rem);line-height:1;
  color:var(--fg);opacity:.06;pointer-events:none;user-select:none}
.actions{display:flex;flex-wrap:wrap;gap:.75rem;margin:1.5rem 0 0}
.btn{display:inline-block;padding:.65rem 1.1rem;background:var(--link);color:var(--surface);
  text-decoration:none;font-weight:600;border:2px solid var(--link);border-radius:2px}
.btn:hover{filter:brightness(1.1)}
.btn.ghost{background:transparent;color:var(--link)}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .btn{color:#0D1A21}
  :root:not([data-theme="light"]) .btn.ghost{color:var(--link)}
}
ul.plain{list-style:none;padding:0;margin:0}
ul.plain li{padding:.75rem 0;border-bottom:1px solid var(--rule)}
ul.plain li:last-child{border-bottom:0}
.proj{display:grid;gap:.25rem;padding:1rem 0;border-bottom:1px solid var(--rule)}
.proj:last-of-type{border-bottom:0}
.proj .meta{font-family:var(--mono);font-size:.8125rem;color:var(--muted)}
.proj p{margin:.25rem 0 0}
.links{display:flex;flex-wrap:wrap;gap:.25rem 1rem;font-size:.95rem}
.note{font-size:.95rem;color:var(--muted)}
.stamp{display:inline-block;font-family:var(--mono);font-size:.75rem;letter-spacing:.05em;
  text-transform:uppercase;border:1px solid var(--ok);color:var(--ok);padding:.1rem .5rem;
  border-radius:2px;margin-left:.5rem;vertical-align:middle}
dl.facts{display:grid;grid-template-columns:max-content 1fr;gap:.35rem 1.25rem;margin:0 0 1rem}
dl.facts dt{color:var(--muted)}
dl.facts dd{margin:0}
.heroimg{display:block;width:100%;height:auto;border-radius:6px;margin:1.5rem 0 0}
.topics{display:grid;gap:1rem;margin:0;padding:0;list-style:none}
@media(min-width:40rem){.topics{grid-template-columns:repeat(3,1fr)}}
.topics li{border:1px solid var(--rule);background:var(--surface);border-radius:6px;padding:0 0 1rem;overflow:hidden}
.topics img{display:block;width:100%;height:auto;margin:0 0 .75rem}
.topics h3,.topics p{padding:0 1rem}
.topics p{margin:0;font-size:.95rem}
.proj img{width:100%;height:auto;border-radius:6px;margin:0 0 .5rem}
footer{border-top:1px solid var(--rule);padding:1.5rem 0 2.5rem;color:var(--muted);font-size:.9rem}
footer a{color:var(--muted)}
footer p{margin:0 0 .5rem}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
