/* blog.css — shared stylesheet for the blog index and posts.
 *
 * index.html and account.html each carry their own inline copy of the design
 * system, which was the right call while there were two pages and no build
 * step. Six pages is where that stops being reasonable, so everything under
 * /blog uses this file instead. index.html and account.html are deliberately
 * left alone: they're working, tested and deployed, and rewiring them to an
 * external stylesheet buys nothing today and risks a regression on the two
 * pages that matter most.
 *
 * Tokens are identical to index.html — same variables, same aurora, same glass
 * panels — so the blog reads as the same product rather than a bolted-on CMS.
 */

:root{
  --ink:#0f1512;
  --ink-soft:#5b665f;
  --bg:#f6f4ee;
  --surface:#ffffff;
  --surface-alt:#eef0e9;
  --line:#e1e0d5;
  --teal:#0f5c52;
  --teal-bright:#17b892;
  --coral:#ff5a36;
  --gold:#ffb703;
  --woolies:#1e7b34;
  --coles:#e0142c;
  --radius:14px;
  --shadow-soft:0 20px 60px -30px rgba(15,21,18,.35);
  --shadow-card:0 10px 30px -18px rgba(15,21,18,.25);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:#faf9f4; color:var(--ink);
  font-family:'Inter','Segoe UI',system-ui,-apple-system,sans-serif;
  -webkit-font-smoothing:antialiased; overflow-x:hidden; position:relative;
}
a{color:inherit;}
.wrap{max-width:1140px; margin:0 auto; padding:0 24px;}
.wrap-narrow{max-width:720px; margin:0 auto; padding:0 24px;}

/* ---------- Aurora ---------- */
#aurora{position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none;}
#aurora .blob{position:absolute; border-radius:50%; filter:blur(90px); opacity:.4; will-change:transform;}
#aurora .b1{width:520px;height:520px;background:var(--teal-bright);top:-140px;left:-100px;animation:driftA 26s ease-in-out infinite alternate;}
#aurora .b2{width:460px;height:460px;background:var(--coral);top:8%;right:-140px;animation:driftB 32s ease-in-out infinite alternate;}
#aurora .b3{width:420px;height:420px;background:var(--gold);bottom:-10%;left:12%;opacity:.28;animation:driftC 30s ease-in-out infinite alternate;}
#aurora .b4{width:560px;height:560px;background:var(--teal);bottom:-220px;right:6%;opacity:.32;animation:driftA 38s ease-in-out infinite alternate-reverse;}
@keyframes driftA{0%{transform:translate(0,0) scale(1);}50%{transform:translate(60px,40px) scale(1.12);}100%{transform:translate(-30px,70px) scale(.96);}}
@keyframes driftB{0%{transform:translate(0,0) scale(1);}50%{transform:translate(-70px,50px) scale(.9);}100%{transform:translate(40px,-40px) scale(1.15);}}
@keyframes driftC{0%{transform:translate(0,0) scale(1) rotate(0);}100%{transform:translate(50px,-60px) scale(1.1) rotate(20deg);}}
@media (prefers-reduced-motion:reduce){ #aurora .blob{animation:none;} }
#wash{position:fixed; inset:0; z-index:1; pointer-events:none; background:var(--bg); opacity:.72;}
.grain{
  position:fixed; inset:0; z-index:2; pointer-events:none; opacity:.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Everything that holds content must sit above #wash (z-index 1) and .grain
   (z-index 2), which are fixed full-viewport overlays.
   `article.post` and `section.more-posts` were missing from this list, and
   because they're top-level siblings of <body> rather than children of <main>
   they fell underneath both — so on a post page the standfirst (inside
   header.post-head) rendered normally while the entire body copy and every
   image below it sat under a 72%-opacity wash and looked greyed out. Any new
   top-level landmark added to a post page needs to be listed here too. */
nav.top, main, footer, header.post-head, article.post, section.more-posts{position:relative; z-index:3;}

/* ---------- Nav ---------- */
nav.top{
  position:sticky; top:0; z-index:50; display:flex; align-items:center; justify-content:space-between;
  padding:18px 24px; background:rgba(246,244,238,.72);
  backdrop-filter:blur(14px) saturate(1.4); -webkit-backdrop-filter:blur(14px) saturate(1.4);
  border-bottom:1px solid var(--line); gap:12px;
}
nav.top .logo{font-weight:800; font-size:19px; letter-spacing:-.02em; display:flex; align-items:center; gap:8px; text-decoration:none;}
nav.top .logo .dot{width:9px;height:9px;border-radius:50%;background:var(--coral);display:inline-block;}
nav.top ul{list-style:none; display:flex; gap:28px; margin:0; padding:0; font-size:14px; font-weight:600; color:var(--ink-soft);}
nav.top ul a{text-decoration:none; transition:color .15s;}
nav.top ul a:hover{color:var(--teal);}
nav.top .cta{
  background:var(--teal); color:#fff; border:1.5px solid var(--teal); padding:9px 18px; border-radius:999px;
  font-weight:700; font-size:13px; text-decoration:none; display:inline-block; white-space:nowrap;
  transition:background .15s, border-color .15s;
}
nav.top .cta:hover{background:#0b4a42; border-color:#0b4a42;}
@media (max-width:820px){ nav.top{padding:14px 16px;} nav.top ul{display:none;} }

/* ---------- Blog index ---------- */
.blog-hero{padding:64px 0 34px;}
.eyebrow{
  display:inline-block; font-size:11.5px; font-weight:800; letter-spacing:.09em; text-transform:uppercase;
  color:var(--teal); background:rgba(23,184,146,.14); padding:6px 13px; border-radius:999px; margin-bottom:18px;
}
.blog-hero h1{margin:0 0 14px; font-size:46px; line-height:1.08; letter-spacing:-.035em; max-width:16ch;}
.blog-hero p.lead{margin:0; font-size:17px; line-height:1.65; color:var(--ink-soft); max-width:56ch;}

.post-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:22px; padding:14px 0 70px;}
@media (max-width:820px){ .post-grid{grid-template-columns:1fr;} }
.post-card{
  background:rgba(255,255,255,.78); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow-card); overflow:hidden; text-decoration:none; display:flex; flex-direction:column;
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  transition:transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.post-card:hover{transform:translateY(-4px); box-shadow:var(--shadow-soft);}
.post-card .art{display:block; width:100%; height:auto; background:var(--surface-alt);}
.post-card .body{padding:20px 22px 24px;}
.post-card .kicker{font-size:11px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--coral); margin-bottom:8px;}
.post-card h2{margin:0 0 8px; font-size:20px; line-height:1.3; letter-spacing:-.02em;}
.post-card p{margin:0; font-size:14px; line-height:1.6; color:var(--ink-soft);}
.post-card .read{margin-top:14px; font-size:13px; font-weight:700; color:var(--teal);}

/* ---------- Post ---------- */
header.post-head{padding:56px 0 8px;}
header.post-head h1{margin:0 0 16px; font-size:40px; line-height:1.12; letter-spacing:-.032em;}
header.post-head .standfirst{font-size:18px; line-height:1.62; color:var(--ink-soft); margin:0 0 20px;}
.byline{font-size:12.5px; color:var(--ink-soft); display:flex; gap:10px; flex-wrap:wrap; align-items:center; padding-bottom:26px; border-bottom:1px solid var(--line);}
.byline .sep{opacity:.5;}

article.post{padding:26px 0 60px;}
article.post h2{font-size:25px; line-height:1.25; letter-spacing:-.022em; margin:40px 0 12px;}
article.post h3{font-size:18px; line-height:1.35; margin:30px 0 8px;}
article.post p{font-size:16.5px; line-height:1.72; color:#26302b; margin:0 0 18px;}
article.post a{color:var(--teal); text-decoration:underline; text-underline-offset:2px;}
article.post strong{color:var(--ink);}
article.post ul{padding-left:20px; margin:0 0 20px;}
article.post li{font-size:16.5px; line-height:1.7; color:#26302b; margin-bottom:9px;}

/* The one-line payoff each post is built around. */
.aha{
  background:linear-gradient(135deg, rgba(23,184,146,.15), rgba(255,183,3,.12));
  border:1px solid rgba(23,184,146,.4); border-radius:var(--radius);
  padding:24px 26px; margin:32px 0;
}
.aha .label{font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; color:var(--teal); margin-bottom:9px;}
.aha p{margin:0; font-size:19px; line-height:1.55; font-weight:600; color:var(--ink);}

.callout{
  background:var(--surface); border:1px solid var(--line); border-left:4px solid var(--gold);
  border-radius:0 var(--radius) var(--radius) 0; padding:18px 22px; margin:28px 0;
}
.callout p{margin:0; font-size:14.5px; line-height:1.65; color:var(--ink-soft);}
.callout strong{color:var(--ink);}

figure.viz{margin:34px 0; padding:0;}
figure.viz svg{display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface);}
figure.viz figcaption{margin-top:11px; font-size:12.5px; line-height:1.6; color:var(--ink-soft); text-align:center;}

.sources{margin-top:44px; padding-top:24px; border-top:1px solid var(--line);}
.sources h2{font-size:15px; margin:0 0 12px; letter-spacing:0;}
.sources ul{padding-left:18px; margin:0;}
.sources li{font-size:13px; line-height:1.65; color:var(--ink-soft); margin-bottom:7px;}
.sources a{color:var(--teal);}

.post-cta{
  background:rgba(255,255,255,.8); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px; margin:42px 0 0; box-shadow:var(--shadow-card); text-align:center;
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
}
.post-cta h2{margin:0 0 8px; font-size:21px; letter-spacing:-.02em;}
.post-cta p{margin:0 auto 18px; font-size:14.5px; color:var(--ink-soft); max-width:44ch; line-height:1.6;}
.post-cta .btn{
  display:inline-block; background:var(--teal); color:#fff; padding:13px 28px; border-radius:999px;
  font-weight:700; font-size:14.5px; text-decoration:none;
}
.post-cta .btn:hover{background:var(--ink);}

.more-posts{padding:0 0 70px;}
.more-posts h2{font-size:19px; margin:0 0 16px;}
.more-list{display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
@media (max-width:820px){ .more-list{grid-template-columns:1fr;} }
.more-list a{
  display:block; text-decoration:none; background:rgba(255,255,255,.75); border:1px solid var(--line);
  border-radius:12px; padding:16px 18px; font-size:14.5px; font-weight:700; line-height:1.4;
  transition:border-color .15s, transform .2s;
}
.more-list a:hover{border-color:var(--teal); transform:translateY(-2px);}

footer{padding:38px 24px; border-top:1px solid var(--line); background:rgba(246,244,238,.6);}
footer .wrap{font-size:12.5px; color:var(--ink-soft); line-height:1.8;}
footer a{text-decoration:none;}
footer a:hover{color:var(--teal);}

@media (max-width:600px){
  .blog-hero h1{font-size:33px;}
  header.post-head h1{font-size:29px;}
  header.post-head .standfirst{font-size:16.5px;}
  article.post h2{font-size:21px;}
  article.post p, article.post li{font-size:16px;}
  .aha p{font-size:17px;}
  .wrap, .wrap-narrow{padding:0 18px;}
}
