/* Articles (Dev, 15 Nov 2026: the "Covers" design). One file for both places it shows:
   1. the Articles slide on the home page (#articles): two picture covers, one per article;
   2. the article pages (articles/<name>/index.html, <html class="apage">).
   Its own file, like meme-lab/lab.css. The pages and the slide's HTML are MADE by tools/article.mjs from
   articles/articles.json - change the words there, not in the HTML. Uses the site's own colours, Jost and buttons. */
:root{
  --ink:#d6d9d3;    /* long body text: a soft off-white, easier than pure white over a whole article */
  --rule:#2b2d31; --soft:#a9adb3;
  --mono:"IBM Plex Mono",ui-monospace,monospace;   /* the site's own (hero), for the article number */
}

/* small type shared by a cover and an article's header */
.akicker{font-size:12px;font-weight:600;letter-spacing:.3em;text-transform:uppercase;color:var(--lime)}
.akicker .num{font-family:var(--mono);font-weight:400;letter-spacing:.14em;margin-right:12px}
.ameta{font-size:12px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--soft)}

/* ================= 1. the home page slide ================= */
#articles{background:var(--ground);scroll-snap-align:start;scroll-snap-stop:always}   /* a stop in the slide deck (js/app.js lists it too) */
#articles .wrap{width:100%}
@media(min-width:901px){#articles{height:100vh;height:100svh;min-height:640px;display:flex;align-items:center;padding:80px 0 40px}}   /* one full screen, like the Media slide */
.arttitle{margin-bottom:clamp(16px,2.2vw,30px);font-weight:700;font-size:clamp(30px,4.4vw,64px);line-height:1.02;letter-spacing:.01em;text-transform:uppercase}
.arttitle b{font-weight:700;color:var(--mint)}
.covers{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.cover{position:relative;display:flex;flex-direction:column;justify-content:flex-end;height:clamp(380px,62vh,640px);
  border:1px solid var(--card-border);border-radius:12px;overflow:hidden;background:#000;isolation:isolate;text-decoration:none;
  transition:border-color 200ms ease}
.cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform 900ms var(--ease-out)}
.cover::before{content:"";position:absolute;inset:0;z-index:-1;   /* the dark fade the words sit on */
  background:linear-gradient(180deg,rgba(7,8,10,.4) 0%,rgba(7,8,10,0) 26%,rgba(7,8,10,.7) 58%,rgba(7,8,10,.96) 86%,rgba(7,8,10,.98) 100%)}
.cnum{position:absolute;top:20px;left:22px;font:400 13px/1 var(--mono);letter-spacing:.14em;color:var(--lime);padding:8px 10px;
  border:1px solid rgba(171,220,105,.5);border-radius:6px;background:rgba(7,8,10,.6)}
.ctext{padding:0 clamp(20px,2.4vw,36px) clamp(22px,2.4vw,34px)}
.cover h3{margin:10px 0 8px;font-weight:700;font-size:clamp(26px,2.9vw,44px);line-height:1.08;text-transform:uppercase;text-wrap:balance}   /* runs the cover's full width: real titles are long */
.cdeck{font-style:italic;font-weight:700;color:var(--mint);font-size:clamp(16px,1.35vw,20px);line-height:1.35}
.cover .ameta{margin-top:14px}
.cdeck,.cover .ameta{margin-right:60px}   /* room for the round arrow */
.cgo{position:absolute;right:24px;bottom:28px;width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.4);color:var(--white);
  display:grid;place-items:center;transition:background-color 200ms ease,border-color 200ms ease,color 200ms ease}
@media(hover:hover) and (pointer:fine){
  .cover:hover{border-color:var(--mint)}
  .cover:hover>img{transform:scale(1.04)}
  .cover:hover .cgo{background:var(--lime);border-color:var(--lime);color:var(--lime-text)}
}
@media(prefers-reduced-motion:reduce){.cover>img{transition:none}}
@media(max-width:900px){   /* phones: a plain section, its title resting 8px under the bar like the Media title */
  #articles{padding:68px 0 40px;scroll-snap-stop:normal}
}
@media(max-width:760px){
  .covers{grid-template-columns:1fr;gap:16px}
  .cover{height:auto;aspect-ratio:4/5}   /* a cover clips words taller than its picture: check every new title at 375px wide */
}

/* ================= 2. the article pages ================= */
html.apage{scroll-snap-type:none}   /* a page you read, not a slide deck */
.apage #nav{background:rgba(7,8,10,.84);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}   /* the bar always has a back here: text scrolls under it */
.apage main{padding-top:60px}   /* clears the fixed bar */

/* the header: the cover picture across the page, the title on it */
.ahero{position:relative;height:clamp(460px,76vh,740px);display:flex;align-items:flex-end;overflow:hidden;isolation:isolate}
.ahero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 30%;z-index:-2}
.ahero::before{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(7,8,10,.55) 0%,rgba(7,8,10,0) 24%,rgba(7,8,10,.5) 52%,rgba(7,8,10,.9) 80%,var(--ground) 100%)}
.ahero .wrap{width:100%;padding-bottom:clamp(28px,4vw,56px)}
.aback{position:absolute;top:28px;font-size:13px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;text-decoration:none;color:var(--mint)}
.atitle{margin:12px 0;font-weight:700;font-size:clamp(34px,5vw,80px);line-height:1.04;text-transform:uppercase;max-width:13em;text-wrap:balance}
.ahero .ameta{margin-top:18px}

/* the words: one column, 680px */
.aprose{max-width:680px;margin:0 auto;padding:clamp(32px,4.6vw,64px) 22px 0;font-size:19px;line-height:1.7;color:var(--ink)}
.aprose p{margin-bottom:1.3em}
.aprose h2{margin:2.1em 0 .6em;font-weight:700;font-size:1.5em;line-height:1.15;letter-spacing:.01em;text-transform:uppercase;color:var(--white)}
.aprose strong{font-weight:700;color:var(--white)}
.aprose ul{margin:0 0 1.3em 1.2em}
.aprose li{margin-top:.4em}
.aprose li::marker{color:var(--lime)}
.aprose p>a,.aprose li>a{color:var(--mint);text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(201,255,200,.45)}   /* a link inside a sentence */
.asrc{display:block;margin-top:.55em;font-size:14px;line-height:1.5;color:var(--soft)}   /* the links that close a paragraph: its sources */
.asrc a{color:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(255,255,255,.3)}
.apull{margin:1.8em 0;font-style:italic;font-weight:700;color:var(--mint);font-size:1.6em;line-height:1.3}   /* a "> " line in the article file */
.ashort{margin-bottom:36px;padding:22px 24px}   /* "The short version": the site's .card, three lines */
.ashort ul{margin:12px 0 0 1.1em;font-size:.95em;line-height:1.55}
.ashort li{margin-top:6px}

/* the end: share, then the next article - nothing else (Dev, 15 Nov) */
.aend{max-width:680px;margin:0 auto;padding:0 22px 72px}
.ashare{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:2.4em;padding:18px 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.ashare span{margin-right:auto;font-size:12px;font-weight:500;letter-spacing:.3em;text-transform:uppercase;color:var(--soft)}
.anext{display:grid;grid-template-columns:190px 1fr;gap:20px;align-items:center;margin-top:36px;padding:14px;border:1px solid var(--card-border);border-radius:12px;
  text-decoration:none;transition:border-color 200ms ease}
.anext img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px}
.anext b{display:block;margin-top:6px;font-size:20px;font-weight:600;line-height:1.3}
@media(hover:hover) and (pointer:fine){
  .aback:hover{color:var(--white)}
  .asrc a:hover{color:var(--mint)}
  .anext:hover{border-color:var(--mint)}
}
@media(max-width:760px){
  .aprose{font-size:17.5px}
  .apull{font-size:1.35em}
  .ashare span{flex-basis:100%}
  .aby{display:block;margin-bottom:6px}.adot{display:none}   /* phones: the byline on its own line, the date and read time under it (one line was 30px too long) */
}
@media(max-width:560px){.anext{grid-template-columns:1fr;gap:12px}}   /* phones: the picture on top, the title under it at full width */
