/* Shared styles for every article page. Extracted so a change to the
   reading experience happens once rather than in each post. */

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:#f6f2ec;color:#1e232b;font-family:'Montserrat',sans-serif;font-size:16px;line-height:1.7}
a{color:#b32463;text-decoration:none}

.progress{position:fixed;top:0;left:0;height:3px;width:0;background:#D8327C;z-index:60;transition:width .08s linear}

.topbar{background:rgba(20,23,29,.97);padding:16px 5vw;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;position:relative;z-index:10}
.topbar img{height:46px;width:auto;display:block}
.back{color:#FAFAFA;font-size:14px;font-weight:600;border:1px solid rgba(255,255,255,.28);padding:10px 18px;border-radius:999px}
.back:hover{color:#FAFAFA;border-color:#FAFAFA}

.head{background:#fbf8f4;border-bottom:1px solid #ece4d9;padding:44px 5vw 0}
.head-in{max-width:820px;margin:0 auto}
.crumb{font-size:13.5px;color:#8a8079;margin:0 0 22px}
.crumb a{color:#8a8079}
.crumb a:hover{color:#b32463}
.tag{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:5px 11px;border-radius:999px;background:#fdf1f6;color:#a3245c}
h1{font-family:'League Spartan',sans-serif;font-weight:800;font-size:clamp(30px,4.4vw,46px);line-height:1.06;letter-spacing:-.02em;margin:16px 0 16px}
.standfirst{font-size:19px;line-height:1.6;color:#5c5550;margin:0 0 24px}
.byline{display:flex;align-items:center;gap:12px;padding:0 0 30px;font-size:14px;color:#706254}
.avatar{width:42px;height:42px;border-radius:50%;background:#1e232b;color:#f4c9dd;display:flex;align-items:center;justify-content:center;font-family:'League Spartan',sans-serif;font-weight:800;font-size:15px;flex-shrink:0}
.byline b{color:#1e232b}
.dot{width:3px;height:3px;border-radius:50%;background:#c9c0b6;display:inline-block}

/* Hero panel pulls up over the band below, tying header to body. */
.hero{max-width:1020px;margin:0 auto;padding:0 5vw;transform:translateY(34px)}
.hero .art{position:relative;height:552.5px;border-radius:22px;overflow:hidden;box-shadow:0 30px 70px -30px rgba(30,35,43,.5)}
.hero .num{position:absolute;left:-8px;bottom:-58px;font-family:'League Spartan',sans-serif;font-weight:800;font-size:280px;line-height:.78;color:#fff;opacity:.1;user-select:none}

/* Artwork tones, matching the cards on the blog index. */
.t-pink{background:radial-gradient(120% 130% at 20% 15%,#D8327C 0%,#b32463 38%,#6d1e42 72%,#2a1220 100%)}
.t-green{background:radial-gradient(120% 130% at 25% 20%,#3f5d54,#20342f)}
.t-sand{background:radial-gradient(120% 130% at 25% 20%,#8a6f4b,#3d3020)}
.t-slate{background:radial-gradient(120% 130% at 25% 20%,#4a5670,#232a38)}
.t-plum{background:radial-gradient(120% 130% at 25% 20%,#a3245c,#4a1029)}
.t-olive{background:radial-gradient(120% 130% at 25% 20%,#5c6b3f,#2b331d)}
.t-rose{background:radial-gradient(120% 130% at 25% 20%,#7a4a52,#331c20)}

/* Body. 820px wrap gives roughly a 75 character measure at 17.5px. */
.wrap{max-width:820px;margin:0 auto;padding:74px 5vw 80px}
.prose{font-size:17.5px;line-height:1.78;color:#33302c}
.prose > p{margin:0 0 22px}
.prose h2{font-family:'League Spartan',sans-serif;font-weight:800;font-size:27px;line-height:1.18;letter-spacing:-.01em;color:#1e232b;margin:44px 0 14px}
.prose h3{font-family:'League Spartan',sans-serif;font-weight:700;font-size:20px;color:#1e232b;margin:32px 0 10px}
.prose ul,.prose ol{margin:0 0 22px;padding-left:24px}
.prose li{margin-bottom:10px}
.prose strong{color:#1e232b}
.lead{font-size:19px;color:#33302c}

.quote{margin:34px 0;padding:26px 30px;border-left:4px solid #D8327C;background:#fff;border-radius:0 16px 16px 0}
.quote p{font-family:'League Spartan',sans-serif;font-weight:700;font-size:22px;line-height:1.35;color:#1e232b;margin:0}

.keys{background:#fff;border:1px solid #ece4d9;border-radius:18px;padding:26px 28px;margin:34px 0}
.keys h4{font-size:11.5px;font-weight:700;letter-spacing:.1em;color:#b32463;margin:0 0 14px;text-transform:uppercase}
.keys ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:11px}
.keys li{display:flex;gap:11px;font-size:15.5px;line-height:1.55;margin:0}
.keys .tick{color:#D8327C;font-weight:800;flex-shrink:0}

/* For caveats, legal notes and anything the reader should not skim past. */
.warn{background:#fdf6e7;border:1px solid #ecd9a8;border-radius:16px;padding:20px 24px;margin:34px 0;font-size:15.5px;line-height:1.6;color:#6b5420}
.warn strong{color:#4d3c14}

.sources{background:#fff;border:1px solid #ece4d9;border-radius:18px;padding:24px 28px;margin:40px 0 0;font-size:14.5px}
.sources h4{font-size:11.5px;font-weight:700;letter-spacing:.1em;color:#b32463;margin:0 0 12px;text-transform:uppercase}
.sources ol{margin:0;padding-left:20px}
.sources li{margin-bottom:9px;line-height:1.55;color:#5c5550}

.author{display:flex;gap:18px;align-items:flex-start;background:#fff;border:1px solid #ece4d9;border-radius:18px;padding:26px 28px;margin:34px 0 0}
.author .avatar{width:54px;height:54px;font-size:18px}
.author h4{font-family:'League Spartan',sans-serif;font-weight:700;font-size:17px;margin:0 0 6px}
.author p{font-size:14.5px;color:#5c5550;margin:0;line-height:1.6}

/* Related posts, where an article carries them. */
.related{background:#fbf8f4;border-top:1px solid #ece4d9;padding:60px 5vw 70px}
.rel-in{max-width:1180px;margin:0 auto}
.rel-in h2{font-family:'League Spartan',sans-serif;font-weight:800;font-size:26px;margin:0 0 26px}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.card{background:#fff;border:1px solid #ece4d9;border-radius:18px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .25s ease,transform .25s ease}
.card:hover{box-shadow:0 22px 48px -24px rgba(30,35,43,.32);transform:translateY(-3px)}
.card .art{height:132px;position:relative;overflow:hidden;flex-shrink:0}
.card .art .num{position:absolute;right:14px;bottom:-32px;font-family:'League Spartan',sans-serif;font-weight:800;font-size:110px;line-height:.78;color:#fff;opacity:.13}
.card .body{padding:20px 20px 22px;display:flex;flex-direction:column;flex:1}
.card h3{font-family:'League Spartan',sans-serif;font-weight:700;font-size:18px;line-height:1.2;margin:11px 0 8px;color:#1e232b}
.card p{font-size:14px;color:#5c5550;margin:0 0 16px;flex:1}
.meta{font-size:13px;color:#8a8079;display:flex;gap:8px;align-items:center}
.more{font-size:14px;font-weight:700;color:#b32463;margin-top:14px;display:inline-block}

.ctawrap{padding:0 5vw 70px}
.cta{background:#1e232b;color:#FAFAFA;border-radius:20px;padding:34px 32px;margin:0 auto;max-width:1180px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.cta h2{font-family:'League Spartan',sans-serif;font-weight:800;font-size:24px;margin:0 0 6px;color:#fff}
.cta p{margin:0;color:rgba(255,255,255,.82);font-size:15px;max-width:520px}
.btn{display:inline-block;background:#D8327C;color:#fff;font-weight:700;font-size:15px;padding:14px 28px;border-radius:999px;white-space:nowrap}
.btn:hover{background:#b32463;color:#fff}

footer{background:#14171d;color:#999;padding:34px 5vw;font-size:13px}
.foot-in{max-width:1180px;margin:0 auto;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}
footer a{color:#cbb9a6}

@media (max-width:980px){ .hero .art{height:422.5px} }
@media (max-width:640px){
  body{font-size:15.5px}
  .head{padding:34px 5vw 0}
  .wrap{padding:62px 5vw 60px}
  .prose{font-size:16.5px}
  .prose h2{font-size:23px;margin-top:36px}
  .quote{padding:20px 22px}
  .quote p{font-size:19px}
  .hero .art{height:308.75px}
  .hero .num{font-size:180px;bottom:-38px}
  .author{flex-direction:column;gap:14px}
  .cta{flex-direction:column;align-items:flex-start}
}

/* Overall scale. Matches the step the home page takes: the fixed pixel sizes
   here were judged on a scaled 4K display and land about a tenth too large on
   a plain 1920x1080 at 100%. Media queries measure the viewport rather than
   the zoom, so every breakpoint above still fires where it did. The fixed
   progress bar needs no counter-zoom: its percentage width resolves against
   the zoomed initial containing block, so 100% still reaches the right edge. */
@media (min-width:861px){ body{zoom:.92} }

/* Match the homepage hero: centred 1400px content within 5vw side gutters. */
@media (min-width:861px){
  .head{padding-left:5vw;padding-right:5vw}
  .head-in{max-width:1400px}
  .hero{width:calc(100% - 10vw);max-width:1400px;padding-left:0;padding-right:0}
  .wrap{width:calc(100% - 10vw);max-width:1400px;padding-left:0;padding-right:0}
  .rel-in,.cta,.foot-in{max-width:1400px}
}
