/* Kodebeat, the rules every page in site/ shares. Each page keeps its own
   <style> block for what only it does; anything two pages need lives here.
   concepts/ does not load this file: each concept has its own identity. */

/* ---- fonts ---------------------------------------------------------------
   Self-hosted, Latin and Latin-extended subsets only: the families and
   weights the Google Fonts link used to fetch, with no third-party request
   before first paint. */
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/bricolage-grotesque-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/bricolage-grotesque-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/bricolage-grotesque-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/ibm-plex-mono-latin-ext-400.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/ibm-plex-mono-latin-400.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ibm-plex-mono-latin-ext-500.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ibm-plex-mono-latin-500.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/public-sans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/public-sans-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/public-sans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/public-sans-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/public-sans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/public-sans-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* ---- tokens --------------------------------------------------------------
   The brand values are the light ones and never move. Dark mode is the same
   hues re-weighted for a dark ground: moss stays the one accent, amber stays
   reserved for numbers. Text colours are named for their job (--link,
   --on-accent) so a rule never has to know which scheme it is in. */
:root{
  --ink:#152019; --paper:#F5F8F3; --panel:#FFFFFF;
  --moss:#3E7C4F; --moss-deep:#2C5B3A; --amber:#C8880F; --amber-ink:#8A5E08;
  --mist:#D9E2D6; --muted:#5C6B60; --max:1180px;
  --link:var(--moss-deep); --on-accent:#FFFFFF; --pulse:var(--moss);
  --btn:#152019; --btn-ink:#FFFFFF; --btn-hover:#2C5B3A; --accent-hover:#2C5B3A;
  --tint:color-mix(in srgb,var(--moss) 7%,var(--paper));
  --shadow:rgba(21,32,25,.18);
  --ease:cubic-bezier(.16,1,.3,1);
  color-scheme:light dark;
}
/* The reader's choice (the header toggle, kept in localStorage and applied in
   <head> before first paint) wins over the system setting either way. */
@media(prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --ink:#E4ECE5; --paper:#0E1611; --panel:#152019;
    --moss:#3E7C4F; --moss-deep:#8FC79C; --amber:#D69A2A; --amber-ink:#E2B150;
    --mist:#28392E; --muted:#A3B5A7;
    --link:#8FC79C; --pulse:#5FA873;
    --btn:#E4ECE5; --btn-ink:#0E1611; --btn-hover:#8FC79C; --accent-hover:#336B42;
    --shadow:rgba(0,0,0,.5);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --ink:#E4ECE5; --paper:#0E1611; --panel:#152019;
  --moss:#3E7C4F; --moss-deep:#8FC79C; --amber:#D69A2A; --amber-ink:#E2B150;
  --mist:#28392E; --muted:#A3B5A7;
  --link:#8FC79C; --pulse:#5FA873;
  --btn:#E4ECE5; --btn-ink:#0E1611; --btn-hover:#8FC79C; --accent-hover:#336B42;
  --shadow:rgba(0,0,0,.5);
  color-scheme:dark;
}
:root[data-theme="light"]{color-scheme:light}

/* ---- base ---------------------------------------------------------------- */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Public Sans',system-ui,sans-serif;background:var(--paper);color:var(--ink);line-height:1.65;font-size:16.5px}
::selection{background:var(--moss);color:var(--on-accent)}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}
@media(max-width:520px){.wrap{padding:0 16px}}
a{color:var(--link)}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--amber);outline-offset:3px;border-radius:2px}
h1,h2,h3{font-family:'Bricolage Grotesque',sans-serif;text-wrap:balance}
h1{font-weight:700;font-size:clamp(2.1rem,3.6vw,2.65rem);line-height:1.1;letter-spacing:-.025em}
h2{font-weight:600;font-size:clamp(1.5rem,2.8vw,2rem);line-height:1.2;letter-spacing:-.015em;margin-bottom:.9rem}
h3{font-weight:600;letter-spacing:-.01em;line-height:1.3}
section{padding:4.5rem 0}
.intro{max-width:68ch;color:var(--muted);margin-bottom:2.2rem}
.mono{font-family:'IBM Plex Mono',monospace}

/* ---- header and nav ------------------------------------------------------ */
header{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--paper) 90%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--mist)}
.nav{display:flex;align-items:center;gap:1.1rem;height:62px}
.nav .logo{margin-right:auto}
.logo{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:1.3rem;letter-spacing:-.02em;text-decoration:none;color:var(--ink);display:flex;align-items:center;gap:.55rem}
.logo .pulse{stroke:var(--pulse)}
.nav-links{display:flex;gap:1.5rem;align-items:center}
.nav-links a{text-decoration:none;color:var(--ink);font-weight:500;font-size:.94rem;white-space:nowrap}
.nav-links a:hover,.nav-links a[aria-current]{color:var(--link)}
.nav-links a[aria-current]{text-decoration:underline;text-underline-offset:6px}
/* The theme toggle: one button, the icon for the theme it switches to. Both
   glyphs are Phosphor's (regular weight, MIT); the page shows one of them. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border:1px solid var(--mist);border-radius:4px;background:none;color:var(--ink);cursor:pointer;transition:border-color .2s,color .2s}
.theme-toggle:hover{border-color:var(--moss);color:var(--link)}
.theme-toggle svg{width:1.1rem;height:1.1rem}
.theme-toggle .to-light{display:none}
:root[data-theme="dark"] .theme-toggle .to-light{display:block}
:root[data-theme="dark"] .theme-toggle .to-dark{display:none}
@media(prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .theme-toggle .to-light{display:block}
  :root:not([data-theme="light"]) .theme-toggle .to-dark{display:none}
}
/* Below 760px the inline nav is replaced by a native <details> disclosure, so
   every destination stays reachable with no JavaScript and no framework. */
.nav-menu{display:none;position:relative}
.nav-menu>summary{list-style:none;cursor:pointer;padding:.5rem .75rem;border:1px solid var(--mist);border-radius:4px;font-size:.9rem;font-weight:600;color:var(--ink)}
.nav-menu>summary::-webkit-details-marker{display:none}
.nav-menu[open]>summary{border-color:var(--moss);color:var(--link)}
.nav-menu .sheet{position:absolute;right:0;top:calc(100% + .55rem);background:var(--panel);border:1px solid var(--mist);border-radius:8px;box-shadow:0 12px 40px var(--shadow);padding:.5rem;display:flex;flex-direction:column;gap:.15rem;min-width:210px;z-index:60}
.nav-menu .sheet a{text-decoration:none;color:var(--ink);font-weight:500;font-size:.95rem;padding:.55rem .65rem;border-radius:4px}
.nav-menu .sheet a:hover{background:color-mix(in srgb,var(--moss) 12%,transparent);color:var(--link)}
@media(max-width:760px){.nav-links{display:none}.nav-menu{display:block}}

/* ---- buttons --------------------------------------------------------------
   Radii: 4px on anything you press, 8px on panels, nothing else. One primary
   per view, in moss; everything else is the neutral .btn. */
.btn{display:inline-block;background:var(--btn);color:var(--btn-ink) !important;text-decoration:none;padding:.7rem 1.3rem;border:none;border-radius:4px;font:inherit;font-weight:600;font-size:.94rem;white-space:nowrap;cursor:pointer;transition:background .2s,transform .2s var(--ease)}
.btn:hover{background:var(--btn-hover)}
.btn:active{transform:translateY(1px) scale(.985)}
.btn.primary{background:var(--moss);color:var(--on-accent) !important}
.btn.primary:hover{background:var(--accent-hover)}
.alt{font-weight:600;font-size:.97rem}

/* ---- hero -----------------------------------------------------------------
   A split when the page has readings to show: the claim left, the readings
   right. Without readings the claim takes the full width, left-aligned. */
.hero{padding-top:4rem;padding-bottom:2.8rem}
.hero.split{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:3.5rem;align-items:center}
.crumbs{font-family:'IBM Plex Mono',monospace;font-size:.75rem;color:var(--muted);margin-bottom:.9rem}
.crumbs a{color:var(--muted)}
.lede{margin-top:1.3rem;font-size:1.12rem;color:var(--muted);max-width:56ch}
.lede b{color:var(--ink);font-weight:600}
.hero-ctas{margin-top:2rem;display:flex;gap:1.4rem;align-items:center;flex-wrap:wrap}
.fact-row{display:flex;gap:.6rem 2.2rem;flex-wrap:wrap;font-family:'IBM Plex Mono',monospace;font-size:.82rem;color:var(--muted);margin-top:2rem}
.fact-row b{color:var(--amber-ink);font-weight:500}
.readings{border-left:1px solid var(--mist);padding-left:2.2rem}
.meter{padding:.95rem 0}
.meter+.meter{border-top:1px solid var(--mist)}
.meter .m{font-family:'IBM Plex Mono',monospace;font-size:1.3rem;line-height:1.3;color:var(--amber-ink)}
.meter .l{font-size:.9rem;color:var(--muted);margin-top:.15rem}
.midnote{color:var(--muted);font-size:.84rem;margin-top:.8rem}
/* Readings as tiles (the homepages): the number is the figure, and each gets
   the one small visual its meaning asks for. Amber is the reading, mist the
   part of the scale it did not reach; the visuals are aria-hidden because the
   value beside them says the same thing. */
.readings.tiles{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--mist);border:1px solid var(--mist);border-radius:8px;overflow:hidden;padding:0}
.tile{background:var(--panel);padding:1.1rem 1.1rem 1.2rem;display:flex;flex-direction:column;gap:.55rem}
.tile .k{font-family:'IBM Plex Mono',monospace;font-size:.74rem;color:var(--muted)}
.tile .v{font-family:'IBM Plex Mono',monospace;font-size:1.9rem;line-height:1;color:var(--amber-ink)}
.tile .v small{font-size:.8rem;color:var(--muted);margin-left:.25rem}
.tile .l{font-size:.82rem;line-height:1.45;color:var(--muted);margin-top:auto}
.heat{display:flex;align-items:flex-end;gap:3px;height:28px}
.heat i{flex:1;border-radius:2px 2px 0 0;background:var(--mist)}
.heat i:nth-child(1){height:20%}.heat i:nth-child(2){height:28%}.heat i:nth-child(3){height:36%}.heat i:nth-child(4){height:44%}.heat i:nth-child(5){height:52%}
.heat i:nth-child(6){height:60%}.heat i:nth-child(7){height:68%}.heat i:nth-child(8){height:76%}.heat i:nth-child(9){height:88%}.heat i:nth-child(10){height:100%}
.heat i.on{background:var(--amber-ink)}
.waffle{display:grid;grid-template-columns:repeat(10,6px);gap:2px}
.waffle i{width:6px;height:6px;border-radius:1px;background:var(--mist)}
.waffle i.on{background:var(--amber-ink)}
.scopes{display:flex;flex-wrap:wrap;gap:.3rem}
.scopes span{font-family:'IBM Plex Mono',monospace;font-size:.68rem;color:var(--muted);border:1px solid var(--mist);border-radius:4px;padding:.12rem .4rem}
.unknown{height:28px;border:1.5px dashed color-mix(in srgb,var(--amber-ink) 60%,var(--mist));border-radius:4px;display:flex;align-items:center;justify-content:center;font-family:'IBM Plex Mono',monospace;font-size:.7rem;color:var(--muted)}
.readings.tiles+.midnote,.readings.tiles .midnote{grid-column:1/-1;background:var(--panel);margin:0;padding:.7rem 1.1rem}
@media(max-width:900px){.readings.tiles{border-top:1px solid var(--mist);padding-top:0}}
@media(max-width:900px){
  .hero,.hero.split{grid-template-columns:1fr;gap:2.4rem;padding-top:3rem}
  .readings{border-left:none;padding-left:0;border-top:1px solid var(--mist);padding-top:.4rem}
}

/* ---- closing call and footer -------------------------------------------- */
.cta{background:var(--panel);border-top:1px solid var(--mist);padding:4.5rem 0}
.cta p{color:var(--muted);margin:.8rem 0 1.6rem;max-width:62ch}
.cta .alt{margin-left:1.2rem}
footer{border-top:1px solid var(--mist);padding:1.8rem 0;font-size:.84rem;color:var(--muted)}
.foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem}
.foot-links{display:flex;flex-wrap:wrap;gap:.3rem 1.1rem}
footer a{color:var(--muted)}

/* ---- the request dialog, on every page that has an "ask" ----------------- */
dialog{border:none;border-radius:8px;padding:0;margin:auto;max-width:520px;width:calc(100% - 2rem);background:var(--panel);color:var(--ink);box-shadow:0 12px 40px var(--shadow)}
dialog::backdrop{background:rgba(14,22,17,.55)}
.ask{padding:1.8rem 1.7rem}
.ask h3{font-size:1.25rem;margin-bottom:.3rem}
.ask p.sub{font-size:.92rem;color:var(--muted);margin-bottom:1.1rem}
.ask label{display:block;font-size:.85rem;font-weight:500;color:var(--ink);margin-bottom:.3rem}
.ask select,.ask input,.ask textarea{width:100%;padding:.6rem .7rem;border:1px solid color-mix(in srgb,var(--muted) 55%,var(--mist));border-radius:4px;font:inherit;font-size:.94rem;color:var(--ink);background:var(--paper);margin-bottom:.85rem}
.ask ::placeholder{color:var(--muted);opacity:1}
.ask textarea{min-height:5.5rem;resize:vertical}
.ask .row{display:flex;gap:.8rem}
.ask .row>div{flex:1}
@media(max-width:520px){.ask .row{flex-direction:column;gap:0}}
.ask .acts{display:flex;gap:.9rem;align-items:center;margin-top:.3rem}
.ask .cancel{background:none;border:none;font:inherit;font-size:.92rem;color:var(--muted);cursor:pointer;text-decoration:underline}
.ask .said{display:none;background:color-mix(in srgb,var(--moss) 12%,transparent);border:1px solid var(--moss);border-radius:4px;padding:.9rem 1rem;font-size:.93rem;margin-top:.9rem}
.ask .fine{font-size:.8rem;color:var(--muted);margin-top:.9rem}

/* ---- motion ---------------------------------------------------------------
   Three moves, each for a reason: the hero enters in reading order (the claim,
   then the readings behind it), buttons give under a press, and .reveal blocks
   settle in as they scroll into view so a timeline reads in sequence. All of it
   is off for anyone who asked for reduced motion. */
@keyframes rise{from{opacity:0;transform:translateY(12px)}}
@media(prefers-reduced-motion:no-preference){
  .hero-copy>*,.readings>*{animation:rise .7s var(--ease) both}
  .hero-copy>:nth-child(2){animation-delay:.08s}
  .hero-copy>:nth-child(3){animation-delay:.16s}
  .hero-copy>:nth-child(4){animation-delay:.24s}
  .readings>*{animation-delay:.28s}
  .readings>:nth-child(2){animation-delay:.36s}
  .readings>:nth-child(3){animation-delay:.44s}
  .readings>:nth-child(4){animation-delay:.52s}
  .readings>:nth-child(5){animation-delay:.6s}
  @supports(animation-timeline:view()){
    .reveal>*{animation:rise linear both;animation-timeline:view();animation-range:entry 0% entry 60%}
  }
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
