/* Single Inference Labs theme. Values verified from the reference on 16 Nov 2026. */
:root{
  color-scheme:light;
  --paper:#efeeea;--ink:#0d110f;--muted:rgba(13,17,15,.7);--subtle:rgba(13,17,15,.7);
  --reading-ink:var(--ink);
  --line:rgba(0,0,0,.1);--surface:#ffffff;--surface-hover:#d7d6d3;
  --accent:#04f7a4;--accent-ink:#0d110f;--on-accent:#0d110f;--orange:var(--accent-ink);
  --deep:#000000;--on-deep:#ffffff;--muted-deep:rgba(255,255,255,.6);--line-deep:rgba(255,255,255,.1);--deep-accent:#04f7a4;
  --visual-a:#efeeea;--visual-b:#d7d6d3;--visual-c:#ffffff;
  --ink-rgb:13,17,15;--graph-rgb:13,17,15;--accent-rgb:4,247,164;
  --diagram-ink:var(--muted);
  --diagram-line:color-mix(in srgb,var(--ink) 42%,var(--paper));
  --diagram-grid:color-mix(in srgb,var(--ink) 17%,var(--paper));
  --diagram-fill:color-mix(in srgb,var(--accent) 9%,var(--paper));
  --diagram-fill-2:color-mix(in srgb,var(--accent) 25%,var(--paper));
  --diagram-strong:var(--accent-ink);
  --shadow-soft:rgba(var(--ink-rgb),.06);
}
body{transition:background-color .22s,color .22s}
::selection{background:#d4d4d4;color:#0d110f}
.skip-link{color:var(--paper)}
.reader-body p,.reader-body li{color:var(--reading-ink);font-size:15px;line-height:1.85}
.reader-body .reader-deck{color:var(--reading-ink)}
.reader-body .disclosure{color:var(--muted);font-size:10px}
.reader-body a{text-decoration:underline;text-underline-offset:3px;border-bottom:0}
.brand-dot{color:var(--accent-ink)}
.button-primary{background:var(--accent);color:var(--on-accent);border:1px solid transparent;font-weight:500}
.button-primary:hover{background:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
.nav-cta{border-color:var(--ink);transition:background .2s,color .2s}
.nav-cta:hover{background:var(--ink);color:var(--paper)}
.hero h1 .serif-word{color:var(--accent-ink)}
.tiny-square{background:var(--accent-ink)}
.hero-figure{padding:17px 18px 15px;border:1px solid var(--line);background:var(--surface);position:relative}
.hero-figure:before,.hero-figure:after{content:'';position:absolute;width:9px;height:9px;pointer-events:none}
.hero-figure:before{right:-1px;top:-1px;border-top:1px solid var(--accent-ink);border-right:1px solid var(--accent-ink)}
.hero-figure:after{left:-1px;bottom:-1px;border-bottom:1px solid var(--accent-ink);border-left:1px solid var(--accent-ink)}
.landscape-holder{height:346px;background-image:linear-gradient(rgba(var(--graph-rgb),.07) 1px,transparent 1px),linear-gradient(90deg,rgba(var(--graph-rgb),.07) 1px,transparent 1px);background-size:22px 22px;background-position:center}
.figure-top{padding-bottom:12px}
.graph-tag{color:var(--muted)}
.graph-tag span{background:var(--accent-ink)}
.figure-bottom{gap:14px}
.motion-button{background:var(--paper)}
.pillars .pillar-index svg{stroke:var(--accent-ink)}
.pillars a,.dark-text-link:hover{color:var(--accent-ink)}
.dark-text-link:hover{color:var(--deep-accent)}
.question-intro h2 .serif-word,.question-equation{color:var(--deep-accent)}
.question-intro .orange{color:var(--deep-accent)}
.question-list summary:hover{color:var(--deep-accent)}
.community h2 .serif-word{color:var(--accent-ink)}
.library-filter.is-active{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.library-filter.is-active>span{color:var(--paper);opacity:.8}
.entry-category:before{background:var(--accent-ink)}
.note-visual{--diagram-ink:var(--reading-ink);outline:1px solid color-mix(in srgb,var(--line) 60%,transparent);outline-offset:-1px}
.note-visual .visual-arrow{color:var(--reading-ink)}
.note-visual:hover{outline-color:var(--accent-ink)}
.note-card h3 button:hover,.note-read:hover{color:var(--accent-ink)}
.site-footer{padding-bottom:38px}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Retain the existing Inference Labs treatment and responsive geometry. */
html[data-theme="inference"] .hero{column-gap:20px}
html[data-theme="inference"] .hero-content{padding:32px;background:var(--deep);color:var(--on-deep)}
html[data-theme="inference"] .hero-content .eyebrow{color:var(--muted-deep);font-size:9px;letter-spacing:.6px}
html[data-theme="inference"] .hero-content .tiny-square{background:var(--accent)}
html[data-theme="inference"] .hero h1{font-size:clamp(54px,6.3vw,92px);margin-block:33px 28px}
html[data-theme="inference"] .hero h1 .serif-word{color:var(--on-deep)}
html[data-theme="inference"] .hero-description{color:var(--muted-deep)}
html[data-theme="inference"] .hero-actions{gap:12px}
html[data-theme="inference"] .hero-actions .text-link{border:1px solid var(--line-deep);padding:0 17px;min-height:49px;color:var(--on-deep)}
html[data-theme="inference"] .hero-actions .text-link:hover{color:var(--accent);border-color:var(--accent)}
html[data-theme="inference"] .hero-content a:focus-visible{outline-color:var(--accent)}
html[data-theme="inference"] .hero-figure{background:var(--paper);margin-top:0;align-self:stretch;display:flex;flex-direction:column}
html[data-theme="inference"] .landscape-holder{flex:1;min-height:340px;background-size:18px 18px}
html[data-theme="inference"] .hero-figure:before,html[data-theme="inference"] .hero-figure:after{display:none}
html[data-theme="inference"] .nav-cta{background:var(--ink);color:var(--paper)}
html[data-theme="inference"] .nav-cta:hover{background:var(--accent);color:var(--on-accent)}
@media(min-width:1600px){.landscape-holder{height:390px}}
@media(max-width:1150px){.landscape-holder{height:310px}.hero-figure{padding-inline:14px}.figure-top .micro{font-size:8px}}
@media(max-width:900px){.landscape-holder{height:285px}.hero-figure{padding-inline:12px}.figure-top .micro{font-size:7px;letter-spacing:.3px}.figure-bottom{gap:8px;font-size:8px}.graph-tag{font-size:6px;letter-spacing:.3px}}
@media(max-width:650px){.hero-figure{padding:14px}.landscape-holder{height:285px}.figure-top .micro{font-size:7px;letter-spacing:.5px}.figure-bottom{font-size:8px}.site-footer{padding-bottom:48px}}
@media(max-width:1150px){html[data-theme="inference"] .hero-content{padding:26px}html[data-theme="inference"] .hero-actions .button{padding-inline:16px;gap:15px}html[data-theme="inference"] .hero-actions .text-link{padding-inline:14px;gap:13px}}
@media(max-width:900px){html[data-theme="inference"] .hero{display:block}html[data-theme="inference"] .hero-content{padding:34px}html[data-theme="inference"] .hero h1{font-size:clamp(62px,10vw,90px)}html[data-theme="inference"] .hero-description{max-width:420px}html[data-theme="inference"] .hero-figure{margin-top:20px}html[data-theme="inference"] .landscape-holder{flex:auto;min-height:0;height:340px}}
@media(max-width:650px){html[data-theme="inference"] .hero-content{padding:25px 22px}html[data-theme="inference"] .hero-content .eyebrow{font-size:7px;letter-spacing:.45px;gap:7px}html[data-theme="inference"] .hero h1{font-size:clamp(48px,13vw,78px);margin-block:28px 24px}html[data-theme="inference"] .hero-actions .text-link{font-size:11px;min-height:47px}html[data-theme="inference"] .landscape-holder{height:285px}}
@media(max-width:650px){.reader-body p,.reader-body li{font-size:14px}.reader-body .disclosure{font-size:10px}}

/* Reference mint is used for filled controls; light-surface text uses its ink. */
html[data-theme="inference"] .content-filters button[aria-pressed="true"]{background:var(--accent);color:var(--ink);border-color:var(--accent)}
html[data-theme="inference"] .content-filters button[aria-pressed="true"] span{color:var(--ink)}
::selection{background:#d4d4d4;color:#0d110f}

/* Inference Labs' screen texture: exact live computed values, 16 Nov 2026.
   A fixed decorative layer preserves the layout and lets all input pass through. */
body::after,dialog:modal::after{
  content:" ";
  display:block;
  position:fixed;
  top:-200px;
  right:0;
  bottom:-200px;
  left:0;
  z-index:999999999;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(208,208,208,0) 50%,rgba(206,206,206,.25) 50%),
    linear-gradient(90deg,rgba(255,0,0,.06),rgba(0,255,0,.02),rgba(0,0,255,.06));
  background-size:100% 2px,3px 100%;
  background-position:0 0,0 0;
  background-repeat:repeat;
  opacity:1;
}
/* A modal lives in the browser's top layer. Move the one viewport texture
   into that layer while open, avoiding a doubled grid on the page behind it. */
body:has(dialog:modal)::after{display:none}
@media print,(forced-colors:active){body::after,dialog:modal::after{display:none}}
