/* ============================================================
   runward · news — pages statiques prérendues (SEO), DA archive minérale.
   Self-contained : reprend les tokens IDENTITY.md sans traîner le CSS SPA.
   Palette : basalte / chaux / brume sauge ; or réservé au seul accent.
   ============================================================ */
@font-face{
  font-family:'Departure Mono';
  src:url('/assets/fonts/DepartureMono-Regular.woff2') format('woff2'),
      url('/assets/fonts/DepartureMono-Regular.otf') format('opentype');
  font-display:swap;
}
/* Inter self-hosted (variable, latin) — no third-party Google Fonts call (GDPR) */
@font-face{
  font-family:'Inter';
  src:url('/assets/fonts/Inter-Variable.woff2') format('woff2');
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}
:root{
  --basalte:#191715;
  --basalte-2:#221e1a;
  --chaux:#E9E4DB;
  --sauge:#C9D2C6;
  --or:#C9A45C;
  --hairline:rgba(233,228,219,.14);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{background:var(--basalte);scroll-behavior:smooth}
body{
  background:var(--basalte);color:var(--chaux);
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased;
  overflow-x:clip;
}
::selection{background:var(--or);color:var(--basalte)}
a{color:inherit}
:focus-visible{outline:2px solid var(--or);outline-offset:3px}
.mono{
  font-family:'Departure Mono',ui-monospace,'SF Mono',Menlo,monospace;
  font-size:.66rem;line-height:1.5;letter-spacing:.09em;text-transform:uppercase;
  color:rgba(201,210,198,.75);
}
.acc{color:var(--or)}

/* --- header — porté du .site-head de la SPA pour la continuité --- */
.site-head{
  position:fixed;top:0;left:0;right:0;z-index:30;
  display:flex;justify-content:space-between;align-items:baseline;gap:1.4rem;
  padding:1.15rem 4vw;
  background:linear-gradient(var(--basalte),rgba(25,23,21,.72) 62%,transparent);
  backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);
}
.site-head .brand{display:inline-flex;align-items:center;gap:.55rem;font-weight:600;font-size:.95rem;letter-spacing:-.02em;color:var(--chaux);text-decoration:none}
.site-head .brand-mark{width:1.6rem;height:1.6rem;flex:0 0 auto;display:block}
.site-nav{display:flex;gap:1.4rem;flex-wrap:wrap;align-items:baseline}
.site-nav a{
  font-family:'Departure Mono',ui-monospace,monospace;
  font-size:.625rem;letter-spacing:.08em;text-transform:uppercase;
  color:rgba(233,228,219,.8);text-decoration:none;
  padding-bottom:.2rem;border-bottom:1px solid transparent;transition:color .2s ease,border-color .2s ease;
}
.site-nav a:hover{color:var(--chaux)}
.site-nav a[aria-current="page"]{color:var(--chaux);border-bottom-color:var(--chaux)}
.head-right{display:flex;align-items:center;gap:1.1rem}
.head-tag{color:rgba(201,210,198,.75)}
.lang-toggle{display:inline-flex;align-items:center;gap:.28rem}
.lang-toggle button{background:none;border:0;cursor:pointer;font-family:'Departure Mono',ui-monospace,monospace;font-size:.625rem;letter-spacing:.08em;text-transform:uppercase;color:rgba(233,228,219,.42);padding:0;transition:color .2s}
.lang-toggle button:hover{color:rgba(233,228,219,.8)}
.lang-toggle button.active{color:var(--chaux)}
.lang-toggle span{color:rgba(233,228,219,.28)}
.gh-square{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;
  border:1px solid rgba(233,228,219,.28);color:var(--chaux);opacity:.85;text-decoration:none;
  transition:opacity .2s ease,border-color .2s ease,background .2s ease}
.gh-square:hover{opacity:1;border-color:rgba(233,228,219,.6);background:rgba(233,228,219,.06)}
.gh-square svg{width:15px;height:15px;display:block}
@media (max-width:860px){.head-tag{display:none}}
/* header responsive aligné sur la SPA (main.css) : la nav passe pleine largeur sous le brand */
@media (max-width:820px){.site-head{flex-wrap:wrap;row-gap:.5rem}.site-nav{gap:.9rem;order:3;width:100%}}

/* --- wrap --- */
.wrap{width:90vw;max-width:820px;margin:0 auto}
.wrap-wide{max-width:980px}

/* --- index --- */
.news-hero{padding:16vh 0 8vh}
.news-hero h1{font-size:clamp(2.6rem,7vw,5rem);font-weight:600;letter-spacing:-.03em;line-height:.98}
.news-hero p{margin-top:1.4rem;max-width:46ch;color:rgba(233,228,219,.72);font-size:1.05rem}
.news-list{list-style:none;padding-bottom:16vh}
.news-list li{border-top:1px solid var(--hairline)}
.news-list a{display:block;padding:2.6rem 0;text-decoration:none;transition:padding-left .35s cubic-bezier(.16,1,.3,1)}
.news-list a:hover{padding-left:.8rem}
.news-list .meta{display:flex;gap:1rem;flex-wrap:wrap;margin-bottom:.9rem}
.news-list h2{font-size:clamp(1.5rem,3.2vw,2.1rem);font-weight:600;letter-spacing:-.02em;line-height:1.1}
.news-list p{margin-top:.7rem;color:rgba(233,228,219,.66);max-width:60ch}
.tag{font-family:'Departure Mono',ui-monospace,monospace;font-size:.6rem;letter-spacing:.1em;text-transform:uppercase;color:var(--basalte);background:var(--sauge);padding:.2rem .5rem;border-radius:0}

/* --- article --- */
article.post{padding:14vh 0 16vh}
.post-meta{display:flex;gap:1rem;flex-wrap:wrap;margin-bottom:1.6rem}
.post h1{font-size:clamp(2.2rem,5.5vw,3.8rem);font-weight:600;letter-spacing:-.03em;line-height:1.02;max-width:18ch}
.post .lede{margin-top:1.6rem;font-size:1.2rem;line-height:1.6;color:rgba(233,228,219,.8);max-width:56ch}
.post-body{margin-top:3.2rem}
.post-body h2{font-size:1.5rem;font-weight:600;letter-spacing:-.02em;margin:2.8rem 0 1rem}
.post-body p{margin:0 0 1.2rem;color:rgba(233,228,219,.86)}
.post-body ul{margin:0 0 1.4rem;padding-left:1.1rem}
.post-body li{margin:.5rem 0;color:rgba(233,228,219,.82)}
.post-body code{font-family:'Departure Mono',ui-monospace,monospace;font-size:.85em;background:var(--basalte-2);padding:.12rem .38rem;color:var(--sauge)}
.post-body strong{color:var(--chaux);font-weight:600}
.post-body a{color:var(--or);text-decoration:underline;text-underline-offset:3px}
.divider{border:0;border-top:1px solid var(--hairline);margin:3rem 0}
.back{display:inline-block;margin-top:3.5rem;font-family:'Departure Mono',ui-monospace,monospace;font-size:.66rem;letter-spacing:.09em;text-transform:uppercase;color:var(--sauge);text-decoration:none}
.back:hover{color:var(--chaux)}

/* --- footer (colophon, identique au reste du site) --- */
.colophon{
  position:relative;z-index:6;background:var(--basalte);
  display:flex;gap:2rem;flex-wrap:wrap;justify-content:space-between;
  padding:2rem 4vw 2.4rem;border-top:1px solid var(--hairline);
}
.colophon a{color:var(--chaux);text-decoration:none;border-bottom:1px solid var(--hairline)}
.colophon a:hover{border-bottom-color:var(--chaux)}
.npm-link{}
.colophon .gh-square{border:0;width:auto;height:auto;gap:.5rem;opacity:.85}
.colophon .gh-square--foot{display:inline-flex;align-items:center;color:inherit;border-bottom:0}
.colophon .gh-square--foot svg{width:14px;height:14px;border:1px solid rgba(233,228,219,.28);padding:2px;box-sizing:content-box}
.colophon .gh-square--foot span{border-bottom:1px solid var(--hairline)}
.colophon .gh-square--foot:hover span{border-bottom-color:var(--chaux)}

/* --- bouton musique de fond (identique au reste du site) --- */
.bgm{position:fixed;left:1.1rem;bottom:3.4rem;z-index:60;display:flex;align-items:center;gap:.55rem;cursor:pointer;background:rgba(19,17,16,.72);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid var(--hairline);color:rgba(233,228,219,.8);padding:.5rem .7rem;transition:border-color .2s,color .2s}
.bgm:hover{border-color:rgba(233,228,219,.6);color:var(--chaux)}
.bgm-lab{font-size:.56rem;letter-spacing:.16em}
.bgm-eq{display:flex;align-items:flex-end;gap:2px;height:12px}
.bgm-eq i{width:2px;height:3px;background:currentColor;opacity:.85}
.bgm.is-playing .bgm-eq i{animation:eqbar .9s ease-in-out infinite}
.bgm.is-playing .bgm-eq i:nth-child(2){animation-delay:.15s}
.bgm.is-playing .bgm-eq i:nth-child(3){animation-delay:.3s}
.bgm.is-playing .bgm-eq i:nth-child(4){animation-delay:.45s}
@keyframes eqbar{0%,100%{height:3px}50%{height:12px}}
@media(max-width:820px){.bgm{left:.7rem;bottom:2.6rem}}

/* --- footer minimal historique (déprécié, gardé sans usage) --- */
.nf{border-top:1px solid var(--hairline);padding:2.2rem 6vw;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}

/* --- entrée + reveals au scroll (parité SPA : voile de transition, fondu, montée) --- */
#fade{position:fixed;inset:0;background:var(--basalte);opacity:0;pointer-events:none;z-index:40;transition:opacity .3s ease}
#fade.show{opacity:1;pointer-events:auto}
html.js-anim main,html.js-anim .site-head{opacity:0}
html.js-anim.is-ready main,html.js-anim.is-ready .site-head{opacity:1;transition:opacity .7s ease}
[data-reveal]{transition:opacity .8s cubic-bezier(.16,1,.3,1),transform .8s cubic-bezier(.16,1,.3,1)}
html.js-anim [data-reveal]{opacity:0;transform:translateY(26px)}
html.js-anim [data-reveal].is-in{opacity:1;transform:none}

@media (max-width:640px){.site-head{padding:1.05rem 5vw}.site-nav{gap:1rem}}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;scroll-behavior:auto!important}
  html.js-anim main,html.js-anim .site-head,html.js-anim [data-reveal]{opacity:1!important;transform:none!important}
  #fade{display:none}
}

/* --- pages légales : lang switch en liens, liens légaux du footer --- */
.lang-toggle a{font-family:'Departure Mono',ui-monospace,monospace;font-size:.625rem;letter-spacing:.08em;text-transform:uppercase;color:rgba(233,228,219,.42);text-decoration:none;transition:color .2s}
.lang-toggle a.active,.lang-toggle a:hover{color:var(--chaux)}
.colophon .legal-link{color:rgba(233,228,219,.5);text-decoration:none;transition:color .2s}
.colophon .legal-link:hover{color:var(--chaux)}
.legal-updated{font-size:.72rem;color:rgba(233,228,219,.45);margin-top:2.5rem}
