/* ResearchNode public site: quiet dark reading style.
   Reference stylesheet for the design handoff (11 Nov 2026).
   No external requests: fonts are local files, monospace is a system stack. */

@font-face{font-family:Inter;src:url('assets/Inter-Regular.otf') format('opentype');font-weight:400 500;font-display:swap}
@font-face{font-family:Inter;src:url('assets/Inter-SemiBold.otf') format('opentype');font-weight:600 900;font-display:swap}

/* ---------- Tokens ---------- */
:root{
  --bg:#080B15;
  --title:#F5F7FA;        /* headings, primary links */
  --text:#D5D9E2;         /* body copy */
  --muted:#A3A9B8;        /* secondary text, labels, mono lines */
  --line:rgba(255,255,255,.11);
  --line-strong:rgba(255,255,255,.28);
  --bar-off:rgba(255,255,255,.22);
  --bar-on:#D5D9E2;
  --orange:#F0834F;       /* logo and link hover only */
  --amber:#FFC857;        /* evidence notes only */
  --topic-security:#35D9A6;
  --topic-models:#5EA2FF;
  --topic-agents:#A990FF;
  --topic-research:#93DB4E;
  --glow-a:rgba(94,162,255,.22);
  --glow-b:rgba(240,131,79,.11);
  --ring-a:rgba(255,255,255,.09);
  --ring-b:rgba(255,255,255,.07);
  --arc-a:rgba(240,131,79,.6);
  --arc-b:rgba(255,255,255,.28);
  --sans:Inter,"Segoe UI",system-ui,sans-serif;
  --mono:ui-monospace,"Cascadia Mono","Segoe UI Mono",Consolas,Menlo,monospace;
  --measure:700px;        /* reading column */
  --rail:300px;           /* side column */
  color-scheme:dark;
}
/* Light mode: proposed values, shown to the owner only as a small sample. */
:root[data-theme="light"]{
  --bg:#F6F6F2;
  --title:#172C2B;
  --text:#243330;
  --muted:#5C6B65;
  --line:#DCE2D9;
  --line-strong:#9FB0A4;
  --bar-off:#C9D2C8;
  --bar-on:#172C2B;
  --orange:#B4532C;
  --amber:#8A5A00;
  --topic-security:#0B6B52;
  --topic-models:#2B5FB8;
  --topic-agents:#6247C4;
  --topic-research:#3F7A12;
  --glow-a:rgba(47,99,86,.12);
  --glow-b:rgba(220,108,68,.09);
  --ring-a:rgba(23,44,43,.09);
  --ring-b:rgba(23,44,43,.07);
  --arc-a:rgba(220,108,68,.6);
  --arc-b:rgba(23,44,43,.28);
  color-scheme:light;
}

/* ---------- Base ---------- */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;position:relative;overflow-x:hidden;background:var(--bg);color:var(--title);font-family:var(--sans);font-size:16px;line-height:1.5;font-synthesis:none}
h1,h2,h3,p,ul,dl,dd{margin:0}
ul{padding:0;list-style:none}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none;transition:color .2s ease}
a:hover{color:var(--orange)}
button{font:inherit;color:inherit;cursor:pointer}
a:focus-visible,button:focus-visible{outline:2px solid var(--orange);outline-offset:4px;border-radius:4px}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:absolute;left:16px;top:-80px;z-index:10;padding:12px 16px;background:var(--bg);border:1px solid var(--line-strong);border-radius:10px}
.skip:focus{top:16px}

.wrap{max-width:1200px;margin:0 auto;padding-inline:40px}

/* ---------- Background animation ---------- */
.bg{position:absolute;inset:0 0 auto 0;height:1400px;overflow:hidden;pointer-events:none;z-index:0}
.bg span,.bg i{position:absolute;display:block;border-radius:50%}
.bg__glow--a{top:-380px;right:-240px;width:1300px;height:1000px;background:radial-gradient(closest-side,var(--glow-a),transparent);animation:rn-drift-a 44s ease-in-out infinite alternate}
.bg__glow--b{top:200px;left:-420px;width:1100px;height:860px;background:radial-gradient(closest-side,var(--glow-b),transparent);animation:rn-drift-b 60s ease-in-out infinite alternate}
.bg__rings{top:-420px;right:-460px;width:920px;height:920px}
.bg__rings i{inset:0;border:1px solid var(--ring-a)}
.bg__rings i:nth-child(2){inset:150px;border-color:var(--ring-b)}
.bg__rings i:nth-child(3){border:2px solid transparent;border-top-color:var(--arc-a);animation:rn-turn 90s linear infinite}
.bg__rings i:nth-child(4){inset:150px;border:1.5px solid transparent;border-left-color:var(--arc-b);animation:rn-turn 140s linear infinite reverse}
@keyframes rn-drift-a{to{transform:translate3d(-200px,110px,0)}}
@keyframes rn-drift-b{to{transform:translate3d(170px,-90px,0)}}
@keyframes rn-turn{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.bg span,.bg i{animation:none!important}a{transition:none}}

.site-header,main,.site-footer{position:relative;z-index:1}

/* ---------- Header ---------- */
.site-header{border-bottom:1px solid var(--line)}
.site-header .wrap{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px 32px}
.brand{display:flex;align-items:center;gap:12px;min-height:44px;font-size:20px;font-weight:700;letter-spacing:-.02em;color:var(--title)}
.brand:hover{color:var(--title)}
.nav{display:flex;align-items:center;gap:32px;font-size:15px;font-weight:500}
.nav a{padding:11px 0;color:var(--muted)}
.nav a:hover{color:var(--orange)}
.nav a[aria-current="page"]{color:var(--title)}
.header-tools{display:flex;align-items:center;gap:4px}
.icon-btn{width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:12px;color:var(--muted)}
.icon-btn:hover{color:var(--title)}
.icon-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.menu-btn{display:none;color:var(--title)}

/* ---------- Page scaffolding ---------- */
.page{padding-block:72px 96px;display:flex;flex-direction:column;gap:72px}
.page--reading{padding-top:32px}
.cols{display:flex;flex-wrap:wrap;align-items:flex-start;gap:48px 120px}
.col-main{flex:999 1 560px;min-width:0;max-width:var(--measure)}
.col-rail{flex:1 1 240px;min-width:0;max-width:var(--rail);font-size:15px}
.stack{display:flex;flex-direction:column}
.stack--20{gap:20px}.stack--14{gap:14px}.stack--12{gap:12px}.stack--40{gap:40px}.stack--24{gap:24px}

/* ---------- Type ---------- */
.h1{font-size:40px;line-height:1.15;font-weight:650;letter-spacing:-.022em;text-wrap:balance}
.h1--article{font-size:38px;line-height:1.16;letter-spacing:-.02em}
.h1--episode{font-size:34px;line-height:1.18;letter-spacing:-.02em}
.h2{font-size:24px;line-height:1.3;font-weight:650;letter-spacing:-.015em}
.h2--sub{font-size:22px;letter-spacing:-.01em}
.h2--course{font-size:26px;line-height:1.25}
.h3{font-size:20px;line-height:1.3;font-weight:650;letter-spacing:-.01em}
.lede{font-size:19px;line-height:1.6;color:var(--muted)}
.label{font-size:13px;font-weight:600;color:var(--muted)}
.meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;font-size:13px;color:var(--muted)}
.mono{font-family:var(--mono);font-size:13px;color:var(--muted)}
.note{color:var(--amber)}                 /* evidence note: the only use of amber */
.small{font-size:15px;line-height:1.65;color:var(--muted)}
.prose{display:flex;flex-direction:column;gap:14px;font-size:18px;line-height:1.7;color:var(--text)}
.prose ul{padding-left:22px;list-style:disc;display:flex;flex-direction:column;gap:10px}
.back{display:inline-flex;align-items:center;align-self:flex-start;min-height:44px;font-size:14px;color:var(--muted)}

/* ---------- Topic and depth ---------- */
.topic{display:inline-flex;align-items:center;gap:8px}
.topic::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--muted)}
.topic[data-topic="security"]::before{background:var(--topic-security)}
.topic[data-topic="models"]::before{background:var(--topic-models)}
.topic[data-topic="agents"]::before{background:var(--topic-agents)}
.topic[data-topic="research"]::before{background:var(--topic-research)}
.depth{display:inline-flex;align-items:center;gap:8px}
.depth__bars{display:inline-flex;gap:3px}
.depth__bars i{width:12px;height:3px;border-radius:2px;background:var(--bar-off)}
.depth[data-level="1"] i:nth-child(-n+1),.depth[data-level="2"] i:nth-child(-n+2),.depth[data-level="3"] i{background:var(--bar-on)}

/* ---------- Links and buttons ---------- */
.link{color:var(--title);text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:4px}
.link--tap{display:inline-flex;align-items:center;min-height:44px}
.btn{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid var(--line-strong);border-radius:10px;background:transparent;font-size:14px;font-weight:500;color:var(--title)}
.btn-row{display:flex;flex-wrap:wrap;gap:10px}
.more{display:inline-flex;align-items:center;min-height:44px;font-size:14px;color:var(--muted)}

/* ---------- Lists separated by thin lines ---------- */
.rows{display:flex;flex-direction:column;border-bottom:1px solid var(--line)}
.rows>*{border-top:1px solid var(--line)}
.row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;color:var(--text)}
.row--tall{min-height:52px;gap:20px;justify-content:flex-start}
.row--tall .row__title{flex:1 1 auto;min-width:0}
.row--nav{color:var(--title)}
.kv-row{display:flex;justify-content:space-between;gap:16px;padding:11px 0;font-size:14px}
.kv-row>:first-child{color:var(--muted)}

/* ---------- Story row (news list) ---------- */
.story{display:flex;flex-direction:column;gap:8px;padding:24px 0;color:var(--title)}
.story:hover{color:var(--title)}
.story:hover .story__title{color:var(--orange)}
.story__title{font-size:22px;line-height:1.3;font-weight:650;letter-spacing:-.01em;transition:color .2s ease}
.story__sum{font-size:16px;line-height:1.6;color:var(--muted)}
.story__src{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:13px}

/* ---------- Section head and filter tabs ---------- */
.section-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 32px}
.section-head .h2{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px}
.section-head .h2 small{font-size:15px;font-weight:400;letter-spacing:0;color:var(--muted)}
.tabs{display:flex;flex-wrap:wrap;gap:0 24px}
.tabs button{min-height:44px;padding:0;border:0;background:transparent;font-size:14px;color:var(--muted)}
.tabs button:hover{color:var(--title)}
.tabs button[aria-pressed="true"]{color:var(--title);font-weight:500;text-decoration:underline;text-underline-offset:6px}

/* ---------- Media ---------- */
.thumb{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px;border:1px solid var(--line)}
.thumb--sm{flex:0 0 auto;width:104px;border-radius:6px;border:0}
.cover{flex:0 0 auto;width:64px;height:64px;border-radius:8px}
.player{position:relative;border-radius:10px;overflow:hidden;border:1px solid var(--line)}
.player img{width:100%;aspect-ratio:16/9;object-fit:cover}
.player__play{position:absolute;left:20px;bottom:20px;width:56px;height:56px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:#F5F7FA;color:#080B15}
.player__play svg{width:22px;height:22px;fill:currentColor}
.media-row{display:flex;align-items:center;gap:14px;padding:14px 0;color:var(--title);line-height:1.4}
.media-row span{display:flex;flex-direction:column;gap:2px;min-width:0}
.media-row small{font-size:13px;color:var(--muted)}

/* ---------- Grids ---------- */
.grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:32px}
.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(440px,100%),1fr));gap:40px 80px}
.grid-4{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:32px 48px}
.card-link{display:flex;flex-direction:column;gap:10px;color:var(--title)}
.card-link strong{font-size:18px;line-height:1.35;font-weight:600}
.card-link small{padding-top:4px;font-size:13px;color:var(--muted)}
.fact strong{display:block;padding-bottom:6px;font-size:16px;font-weight:600;color:var(--title)}

/* ---------- Article ---------- */
.plain{display:flex;flex-direction:column;gap:10px;padding:24px 0;border-block:1px solid var(--line)}
.plain p{font-size:18px;line-height:1.7;color:var(--title)}
.kv{display:grid;grid-template-columns:minmax(88px,auto) minmax(0,1fr);column-gap:32px;font-size:17px;line-height:1.6;color:var(--text);border-bottom:1px solid var(--line)}
.kv dt,.kv dd{padding:12px 0;border-top:1px solid var(--line)}
.kv dt{color:var(--muted)}
.source{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 24px;min-height:52px;padding:6px 0;font-family:var(--mono);font-size:14px;color:var(--text)}
.source span:first-child{overflow-wrap:anywhere;text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:4px}
.source span:last-child{color:var(--muted)}
.also{padding-top:24px;border-top:1px solid var(--line);font-size:16px;line-height:1.7;color:var(--muted)}
.rail-top{padding-top:64px}

/* ---------- Episode ---------- */
.chapter{display:flex;flex-direction:column;gap:4px;padding:16px 0;color:var(--title)}
.chapter strong{display:flex;align-items:baseline;gap:12px;font-size:18px;line-height:1.4;font-weight:600}
.chapter strong::before{content:"";flex:0 0 auto;width:7px;height:7px;border-radius:50%;transform:translateY(-3px);background:var(--muted)}
.chapter[data-topic="security"] strong::before{background:var(--topic-security)}
.chapter[data-topic="models"] strong::before{background:var(--topic-models)}
.chapter[data-topic="agents"] strong::before{background:var(--topic-agents)}
.chapter[data-topic="research"] strong::before{background:var(--topic-research)}
.chapter>span{display:flex;flex-wrap:wrap;gap:2px 16px;padding-left:19px;font-size:13px}

/* ---------- Learn ---------- */
.levels{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:16px 48px;padding:20px 0;border-block:1px solid var(--line);font-size:15px;line-height:1.55;color:var(--muted)}
.levels .depth{display:flex;padding-bottom:4px;color:var(--title)}
.course{display:flex;flex-wrap:wrap;align-items:flex-start;gap:32px 96px}
.course__intro{flex:1 1 300px;min-width:0;max-width:380px;display:flex;flex-direction:column;gap:14px}
.course__intro p:not(.meta){font-size:16px;line-height:1.65;color:var(--muted)}
.course__intro p.note{font-size:14px;line-height:1.6;color:var(--amber)}
.course__intro .btn{align-self:flex-start;margin-top:6px}
.course__list{flex:999 1 460px;min-width:0}
.course__media{flex:999 1 460px;min-width:0;max-width:520px}

/* ---------- Small helpers ---------- */
.label--head{display:block;margin-bottom:12px}
.stack--8{gap:8px}
.page--learn{gap:56px}
.intro{max-width:var(--measure)}
.rail-pad{padding-top:24px}
.rail-block{display:flex;flex-direction:column;gap:12px}
.rail-block+.rail-block{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.rail-block .links{display:flex;gap:20px}
.inline-media{display:flex;align-items:center;gap:14px}
.inline-media small{display:block;font-size:14px;color:var(--muted)}
.ruled{padding-top:48px;border-top:1px solid var(--line)}
@media (max-width:860px){.rail-pad{padding-top:0}.page--learn{gap:40px}}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid var(--line)}
.site-footer .wrap{padding-block:20px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px;font-size:13px;color:var(--muted)}
.site-footer nav{display:flex;flex-wrap:wrap;gap:0 24px}
.site-footer a{display:inline-flex;align-items:center;min-height:44px}

/* ---------- Small screens ---------- */
@media (max-width:860px){
  .wrap{padding-inline:20px}
  .site-header .wrap{min-height:64px;flex-wrap:wrap;gap:0}
  .brand{font-size:18px;gap:10px}.brand svg{width:30px;height:30px}
  .menu-btn{display:flex}
  .nav{display:none;order:3;flex-basis:100%;flex-direction:column;align-items:stretch;gap:0;padding-bottom:12px;font-size:16px}
  .nav.is-open{display:flex}
  .nav a{padding:12px 0;border-top:1px solid var(--line)}
  .page{padding-block:40px 56px;gap:48px}
  .page--reading{padding-top:12px}
  .cols{gap:40px}
  .col-rail{max-width:none;flex-basis:100%}
  .rail-top{padding-top:0}
  .h1{font-size:30px;line-height:1.18}
  .h1--article{font-size:28px;line-height:1.2}
  .h1--episode{font-size:26px;line-height:1.2}
  .h2{font-size:22px}.h2--sub{font-size:20px}.h2--course{font-size:22px}
  .lede{font-size:17px}
  .prose,.plain p{font-size:17px;line-height:1.65}
  .story{padding:20px 0}
  .story__title{font-size:19px}
  .story__sum{font-size:15px}
  .kv{grid-template-columns:64px minmax(0,1fr);column-gap:16px;font-size:16px}
  .row--tall{min-height:60px;gap:14px;font-size:15px;line-height:1.35}
  .course{gap:20px}
  .course__intro{max-width:none}
  .bg{height:900px}
  .bg__glow--a{top:-260px;right:-300px;width:780px;height:680px}
  .bg__glow--b{display:none}
  .bg__rings{top:-250px;right:-270px;width:540px;height:540px}
  .bg__rings i:nth-child(2),.bg__rings i:nth-child(4){display:none}
}
@media print{.bg,.site-header,.site-footer,.btn-row,.tabs{display:none}body{background:#fff;color:#000}}
