/* ════════════════════════════════════════════════════════════════════
   PrettyDo blog · Focus Theatre grammar (T-417, D-T56)
   Serves /blog (listing) and /blog/<slug> (articles). The CSS is the
   design sheet's ruler: blog-article.html + the landing's blog cards.
   T-419 — the home page is a static catalogue (D-T58): must-read block
   first, then Neueste; the sheet's light twin below (:root block) is
   the app's own (theme.css, T-403), teal #0A7266 the one accent.
   Reduced-motion twin: .reveal opens immediately, no transition.
   ════════════════════════════════════════════════════════════════════ */
:root{
  --canvas:#0A0C0B; --card:#131716; --raised:#1B211E; --line:#242B28;
  --ink:#F2F5F3; --muted:#8D9A94;
  --lime:#C9F45A; --mint:#5BE0B0; --amber:#FFB347; --coral:#FF6B57;
  --sans:'DejaVu Sans',system-ui,sans-serif;
  --serif:'DejaVu Serif',Georgia,serif;
  --mono:'DejaVu Sans Mono',monospace;
  --ease:cubic-bezier(.2,.7,.2,1);
}
/* the light twin — the app's own light values (theme.css, T-403):
   canvas/mist #F5F8FA, card #FFFFFF, ink #0B1B2B, muted #5B7286,
   hairline #DCE4EC; the one accent goes teal #0A7266 (5.81:1 under
   white) — D-T54's identity: teal on light, lime #C9F45A on dark. */
html[data-theme="light"]{
  --canvas:#F5F8FA; --card:#FFFFFF; --raised:#FFFFFF; --line:#DCE4EC;
  --ink:#0B1B2B; --muted:#5B7286;
  --lime:#0A7266;
  color-scheme:light;
}
html[data-theme="dark"]{ color-scheme:dark; }
@font-face{
  font-family:'PrettyDo Arabic';
  src:url('/static/fonts/arabic-400.woff2') format('woff2');
  font-display:swap;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--canvas);color:var(--ink);
     font:16px/1.6 var(--sans);-webkit-font-smoothing:antialiased}
a{color:var(--ink);text-decoration:none}
a:hover{color:var(--lime)}
:focus-visible{outline:2px solid var(--lime);outline-offset:2px}

header{border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;gap:16px;height:64px;max-width:1080px;
     margin:0 auto;padding:0 24px}
/* The frozen PrettyDo wordmark (D-T54 / T-415 final) — dark twin on these dark-only
   pages: cream glyphs, lime dot; the site's own stack, no font file, no image. */
.prettydo{font-family:system-ui,"Noto Naskh Arabic","Segoe UI",Tahoma,sans-serif;
          letter-spacing:-0.01em;line-height:1;white-space:nowrap;
          color:#F2EDE4;font-size:22px}
.prettydo .prettydo-light{font-weight:400}
.prettydo .prettydo-bold{font-weight:700}
.prettydo .prettydo-dot{font-weight:700;color:#C9F45A}
html[data-theme="light"] .prettydo{color:#1A1C1E}
html[data-theme="light"] .prettydo .prettydo-dot{color:#0A7266}
.bar nav{margin-left:auto;display:flex;align-items:center;gap:20px;font-size:15px}
.bar nav a{white-space:nowrap}
.bar .capsule{background:var(--lime);color:#10130A;border-radius:999px;
              padding:9px 18px;font-size:15px;font-weight:700}
.bar .capsule:hover{color:#10130A;filter:brightness(1.05)}
html[data-theme="light"] .bar .capsule{color:#FFFFFF}
html[data-theme="light"] .bar .capsule:hover{color:#FFFFFF}

main{max-width:820px;margin:0 auto;padding:88px 24px 64px}
main.listing{max-width:1080px}
.eyebrow{font:600 12px/1 var(--mono);letter-spacing:.18em;text-transform:uppercase;
         color:var(--muted)}
.eyebrow b{color:var(--ink);font-weight:600}
.display{font-family:var(--serif);font-weight:400;line-height:1.12;
         font-size:clamp(34px,5.2vw,64px);margin:16px 0 0;letter-spacing:-.01em}
.meta{font:12px/1.5 var(--mono);letter-spacing:.1em;color:var(--muted);margin-top:24px}
h1{font-family:var(--serif);font-weight:400;font-size:clamp(32px,4.6vw,48px);
   line-height:1.15;letter-spacing:-.01em;margin:16px 0 0;max-width:20ch}
.dek{font-size:18px;color:var(--muted);max-width:56ch;margin:24px 0 0}
.prose{max-width:68ch;margin-top:40px;padding-top:40px;border-top:1px solid var(--line);
       font-family:var(--serif);font-size:18px;line-height:1.75}
.prose p{margin:0 0 28px}
.prose .aside{font-family:var(--sans);font-size:16px;color:var(--muted);
              border-left:2px solid var(--line);padding-left:20px;margin:32px 0}
.prose .aside b{color:var(--ink);font-weight:600}
.prose .ar{font-family:'PrettyDo Arabic',var(--sans);font-size:19px}
.prose code{font-family:var(--mono);font-size:.9em;background:var(--raised);
            border:1px solid var(--line);border-radius:6px;padding:2px 6px}
.break{border:0;border-top:1px solid var(--line);margin:40px auto;max-width:68ch}
h2.sub{font-family:var(--serif);font-weight:400;font-size:26px;line-height:1.3;
       margin:48px 0 20px}
.foot-note{max-width:68ch;font:12px/1.6 var(--mono);letter-spacing:.08em;
           color:var(--muted);margin-top:48px}
.fiction{font:12px/1.5 var(--mono);letter-spacing:.08em;color:var(--muted)}
.fiction--block{display:block;margin-top:24px}
.next{max-width:68ch;display:grid;gap:12px;margin-top:40px;padding-top:32px;
      border-top:1px solid var(--line)}
.next a{font-size:16px}
.next a .m{font:12px/1.5 var(--mono);letter-spacing:.1em;color:var(--muted);
           display:block}

/* ── the catalogue (T-419, D-T58) — the desk sheet's block grammar, byte for byte ────── */
.blk{margin-top:44px}
.blk__head{display:flex;justify-content:space-between;align-items:baseline;
           gap:16px;margin:0 0 12px}
/* M0 — the desk's today state draws the leading Neueste block at 40px (its inline
   margin-top:40px, moved to CSS: the app CSP blocks style attributes). */
.blk--solo{margin-top:40px}
.blog-grid{display:grid;gap:16px;margin-top:16px}
@media (min-width:768px){.blog-grid{grid-template-columns:repeat(3,1fr)}}
.post{display:flex;flex-direction:column;gap:10px;background:var(--card);
      border:1px solid var(--line);border-radius:16px;padding:24px;min-height:44px}
.post .meta{font:12px/1.5 var(--mono);letter-spacing:.1em;color:var(--muted);margin:0}
.post h3{font-family:var(--serif);font-weight:400;font-size:20px;line-height:1.35;
         margin:0}
.post p{font-size:15px;color:var(--muted);margin:0}
.post .read{margin-top:auto;padding-top:12px;font-size:14px;color:var(--muted)}
.post .read b{color:var(--lime);font-weight:400}
.post:hover{border-color:#31392F}
html[data-theme="light"] .post:hover{border-color:#B9C7D4}
.post:hover .read{color:var(--ink)}

/* the must-read marker — the one lime chip, the same capsule grammar.
   Colour is never the only signal: the block order + the word say it too. */
.tag{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;
     background:var(--lime);color:#10130A;border-radius:999px;
     padding:4px 10px;font:700 12px/1 var(--sans);letter-spacing:.04em}
html[data-theme="light"] .tag{color:#FFFFFF}

/* M1 — one must-read: the featured card, full width, the first thing seen */
.feat{padding:28px 24px 24px}
.feat h3{font-size:28px;line-height:1.25}
.feat p{font-size:16px;max-width:56ch}
.feat .read{padding-top:18px;font-size:15px}
@media (min-width:768px){.feat{padding:32px 32px 28px}.feat h3{font-size:30px}}

/* a card flagged inside the block row (M2/M4+): the chip, standard card */
.post--must{border-color:#31392F}
html[data-theme="light"] .post--must{border-color:#B9C7D4}

/* the empty state — a sentence, the next step, nothing invented */
.empty{margin-top:40px;padding:40px 24px;border:1px dashed var(--line);
       border-radius:16px;text-align:center}
.empty .big{font-family:var(--serif);font-size:24px;line-height:1.4;margin:0}
.empty .sub{color:var(--muted);font-size:16px;margin:10px 0 0}

footer{border-top:1px solid var(--line);padding:40px 24px 56px}
.foot{max-width:1080px;margin:0 auto;display:flex;gap:24px;flex-wrap:wrap;
      align-items:baseline}
.foot .links{margin-left:auto;display:flex;gap:20px;font-size:15px}
.foot .fiction{display:block;font:12px/1.5 var(--mono);letter-spacing:.08em;
               color:var(--muted);margin-top:20px}
.foot .prettydo{font-size:18px}
.ring-note{font:12px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}

/* section reveal — reduced-motion twin: visible immediately */
.reveal{opacity:0;transform:translateY(12px);
        transition:opacity .4s var(--ease),transform .4s var(--ease)}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){.reveal{opacity:1;transform:none;transition:none}}