/* pi-blog1.css — Phase 1 (2026-11-07): the standalone server-rendered
 * /blog index. Visual language = the owner-approved Phase-1 sample
 * (Direction D tokens: #E60023 red, #0C0C0F hero, #FAF6F0 cream,
 * Plus Jakarta Sans — the same faces pi-dhome1.css loads). */
@font-face{font-family:'Plus Jakarta Sans';src:url('/assets/fonts/plus-jakarta-sans-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Plus Jakarta Sans';src:url('/assets/fonts/plus-jakarta-sans-500.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Plus Jakarta Sans';src:url('/assets/fonts/plus-jakarta-sans-600.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Plus Jakarta Sans';src:url('/assets/fonts/plus-jakarta-sans-700.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Plus Jakarta Sans';src:url('/assets/fonts/plus-jakarta-sans-800.woff2') format('woff2');font-weight:800;font-style:normal;font-display:swap}
*{box-sizing:border-box;margin:0;padding:0}
:root{--red:#E60023;--ink:#141419;--cream:#FAF6F0;--mut:#6E6A61;--line:#EFE7D6}
html{-webkit-text-size-adjust:100%}
body{font-family:'Plus Jakarta Sans',system-ui,sans-serif;background:var(--cream);color:var(--ink)}
img{display:block}
a{text-decoration:none;color:inherit}
/* slim dark hero band */
.hero{background:#0C0C0F;color:#fff;position:relative;overflow:hidden}
.hero .glow{position:absolute;left:-170px;top:-190px;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(178,10,36,.34),rgba(178,10,36,0) 66%);pointer-events:none}
.in{position:relative;z-index:2;max-width:1360px;margin:0 auto;padding:0 40px}
.nav{display:flex;align-items:center;min-height:74px;padding:10px 0}
.brand{display:flex;align-items:center;gap:11px;flex:none}
.brand img{width:38px;height:38px;border-radius:10px}
.brand b{font-size:22px;letter-spacing:-.01em;color:#fff}
.links{display:flex;gap:4px;margin-left:44px;flex-wrap:wrap}
.links a{color:#EDEDF0;font-size:15px;font-weight:600;padding:9px 15px;border-radius:999px}
.links a.on{background:var(--red);color:#fff}
.right{margin-left:auto;display:flex;gap:12px;align-items:center;flex:none}
.signin{color:#fff;font-size:14.5px;font-weight:600;border:1px solid rgba(255,255,255,.42);padding:9px 20px;border-radius:999px;white-space:nowrap}
.cta{background:var(--red);color:#fff;font-size:14.5px;font-weight:700;padding:11px 22px;border-radius:999px;box-shadow:0 10px 22px rgba(230,0,35,.32);white-space:nowrap}
.hero-body{padding:38px 0 46px;max-width:760px}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#FF7A90}
.hero h1{font-size:46px;line-height:1.1;letter-spacing:-.02em;margin-top:12px;font-weight:800}
.hero h1 .red{color:var(--red)}
.sub{margin-top:14px;font-size:17px;line-height:1.55;color:rgba(255,255,255,.68);max-width:600px}
.search{margin-top:26px;display:flex;gap:10px;max-width:620px}
.search input{flex:1;min-width:0;height:52px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.07);color:#fff;padding:0 22px;font:inherit;font-size:15px}
.search input::placeholder{color:rgba(255,255,255,.5)}
.search button{background:var(--red);color:#fff;border:0;border-radius:999px;padding:0 28px;font:inherit;font-size:15px;font-weight:700;cursor:pointer;flex:none}
/* chips + grid on cream */
.wrap{max-width:1360px;margin:0 auto;padding:30px 40px 54px}
.chips{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.chip{border:1px solid var(--line);background:#fff;color:#3A372F;font:inherit;font-size:13.5px;font-weight:600;border-radius:999px;padding:9px 16px;cursor:pointer}
.chip.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.count{margin-left:auto;font-size:13.5px;color:var(--mut);font-weight:600}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:26px}
.card{background:#fff;border:1px solid #F1EADA;border-radius:22px;overflow:hidden;box-shadow:0 14px 34px rgba(74,52,28,.08),0 2px 6px rgba(74,52,28,.04);display:flex;flex-direction:column}
.card[hidden]{display:none}
.card .ph{height:190px;overflow:hidden;flex:none}
.card .ph img{width:100%;height:100%;object-fit:cover}
.card .bd{padding:20px 22px 22px;display:flex;flex-direction:column;flex:1}
.tag{display:inline-block;align-self:flex-start;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#B8001B;background:#FDECEF;border-radius:999px;padding:5px 11px}
.card h2{font-size:19px;line-height:1.32;letter-spacing:-.01em;margin-top:12px;font-weight:700}
.card p{font-size:14px;line-height:1.55;color:var(--mut);margin-top:8px}
.meta{display:flex;gap:8px;align-items:center;margin-top:16px;font-size:12.5px;color:#6B6656;font-weight:600}
.go{color:var(--red);font-size:14px;font-weight:700;margin-top:auto;padding-top:12px;display:inline-block}
.empty{margin-top:26px;background:#fff;border:1px solid #F1EADA;border-radius:22px;padding:34px 26px;text-align:center;color:var(--mut);font-size:15px}
.empty[hidden]{display:none}
.more{margin:34px auto 0;display:block;background:#fff;border:1px solid var(--line);color:var(--ink);font:inherit;font-size:15px;font-weight:700;border-radius:999px;padding:14px 34px;cursor:pointer}
.more[hidden]{display:none}
/* footer band */
.foot{background:#0C0C0F;color:rgba(255,255,255,.72);margin-top:10px}
.foot .in{padding-top:34px;padding-bottom:34px;display:flex;flex-wrap:wrap;gap:18px 34px;align-items:center}
.foot .brand b{color:#fff}
.foot nav{display:flex;flex-wrap:wrap;gap:6px 20px;margin-left:auto}
.foot nav a{color:rgba(255,255,255,.78);font-size:14px;font-weight:600}
.foot .fine{width:100%;font-size:12.5px;color:rgba(255,255,255,.42)}
@media (max-width:1024px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .in{padding:0 20px}
  .wrap{padding:24px 20px 44px}
  .links{display:none}
  .hero h1{font-size:34px}
  .hero-body{padding:28px 0 36px}
  .sub{font-size:15.5px}
  .grid{grid-template-columns:minmax(0,1fr)}
  .signin{padding:8px 15px}
  .cta{padding:10px 16px}
  .count{margin-left:0;width:100%}
}
@media (max-width:560px){
  /* Brand lockup + both auth buttons cannot share one row under
     ~560px: the wordmark yields (the logo stays), button padding
     tightens, and nothing reaches the hero's clipped edge. */
  .brand b{display:none}
  .right{gap:8px}
  .signin{padding:8px 13px;font-size:13.5px}
  .cta{padding:10px 15px;font-size:13.5px}
}

/* ============================================================
   PALETTE 60-30-10 (2026-11-18, owner-approved direction)
   Appended to the pi-blog2 base in pi-blog3.css. COLOR ONLY.
   Blog was already closest to the rule (cream body, dark hero);
   the fixes remove the red glow cast on the dark hero, the pink
   tag pills and the pink eyebrow, and warm the token neutrals:
   --cream #FAF6EF (60% main), --ink #221D1A (30% secondary),
   --red #E60023 stays for CTAs / links / active states only.
   ============================================================ */
:root { --ink:#221D1A; --cream:#FAF6EF; --mut:#6E6459; }
.hero .glow { background:radial-gradient(circle, rgba(217,164,65,.26), rgba(217,164,65,0) 66%); }
.eyebrow { color:#E3C99A; }
.tag { background:#F4EEE1; }

/* ============================================================
   PLAYBOOK PASS (2026-11-19) — designmotionhq rules on top of
   the 60-30-10 palette block above. Appended to pi-blog4.css.
   - Contrast is a ratio: the footer fine print was white 42%
     on near-black = 4.07:1 at 12.5px (fails 4.5:1) -> 62%.
   - Cards: separation carried by surface + warm shadow + the
     20px spacing group; the border drops to the warm line
     token instead of reading as a cage frame.
   - Motion: card hover lift 200ms ease-out with the shadow
     growing together (never a scale in a grid); entrance
     250ms ease-out staggered 50ms per card; small controls
     answer in 80ms ease-out. Reduced motion disables all.
   ============================================================ */
.foot .fine { color: rgba(255,255,255,.62); }
.search input::placeholder { color: rgba(255,255,255,.62); }
.card { background:#FFFDF8; border-color:#E7DFCE; box-shadow:0 16px 36px rgba(74,52,28,.10), 0 2px 6px rgba(74,52,28,.05); transition:transform 200ms ease-out, box-shadow 200ms ease-out; animation:piBlogIn 250ms ease-out backwards; }
.card:hover, .card:focus-within { transform:translateY(-8px); box-shadow:0 28px 48px rgba(74,52,28,.16), 0 4px 10px rgba(74,52,28,.06); }
.grid .card:nth-child(2) { animation-delay:50ms; }
.grid .card:nth-child(3) { animation-delay:100ms; }
.grid .card:nth-child(4) { animation-delay:150ms; }
.grid .card:nth-child(5) { animation-delay:200ms; }
.grid .card:nth-child(6) { animation-delay:250ms; }
.grid .card:nth-child(7) { animation-delay:300ms; }
.grid .card:nth-child(8) { animation-delay:350ms; }
.grid .card:nth-child(n+9) { animation-delay:400ms; }
@keyframes piBlogIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
.card .bd { padding:20px 24px 24px; }
.chip, .more, .search button, .cta, .signin { transition:background-color 80ms ease-out, color 80ms ease-out, border-color 80ms ease-out; }
.chip:hover { background:#F4EEE1; }
@media (prefers-reduced-motion: reduce) {
  .card { animation:none; transition:none; }
  .card:hover, .card:focus-within { transform:none; }
  .chip, .more, .search button, .cta, .signin { transition:none; }
}
