/* ───────── pages.css — tests / books / courses / blog ───────── */

/* shared page hero */
.page-hero{
  position:relative;
  margin:28px auto 0;
  padding:60px 56px 28px;
  width:min(1280px,100%);
  border-radius:var(--r-xl);
  overflow:hidden;
  isolation:isolate;
  background: var(--hero-grad);
}
.page-hero::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  opacity:var(--grain-opacity);mix-blend-mode:multiply;z-index:-1;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.3  0 0 0 0 0.2  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.page-hero-inner{
  position:relative;display:grid;
  grid-template-columns: 1.1fr .9fr;gap:48px;align-items:end;
}
.ph-eyebrow{
  font-size:13px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--ink);font-weight:600;margin:0 0 20px;
}
.ph-eyebrow .coral{color:var(--coral)}
.ph-title{
  font-family:'Instrument Serif',serif;font-weight:400;
  font-size:clamp(48px,5.8vw,84px);line-height:1.02;letter-spacing:-.02em;
  margin:0 0 18px;color:var(--ink);
}
.ph-sub{
  max-width:540px;color:var(--ink-2);font-size:16px;line-height:1.7;margin:0;
}
.ph-side{
  display:flex;flex-direction:column;gap:10px;align-items:flex-end;
}
.ph-stat{
  display:flex;flex-direction:column;align-items:flex-end;gap:2px;
}
.ph-stat .n{font-family:'Instrument Serif',serif;font-size:54px;line-height:1;color:var(--ink)}
.ph-stat .n .dot{color:var(--coral)}
.ph-stat .l{color:var(--muted);font-size:12.5px;letter-spacing:.05em}

@media (max-width:900px){
  .page-hero-inner{grid-template-columns:1fr;gap:28px;align-items:start}
  .ph-side{align-items:flex-start;flex-direction:row;gap:28px}
  .ph-stat{align-items:flex-start}
}
@media (max-width:780px){
  .page-hero{margin:14px auto 0;padding:32px 22px 22px;border-radius:32px}
}

/* shared toolbar (chips) */
.page-toolbar{
  width:min(1280px,100%);margin:36px auto 22px;
  padding:0 12px;
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;
}
.chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 16px;border-radius:999px;
  background:var(--paper);border:1px solid var(--line);color:var(--ink-2);
  font-size:13.5px;font-weight:500;
  transition:background .25s, border-color .25s, color .25s, transform .25s;
}
.chip:hover{border-color:rgba(255,107,87,.4)}
.chip.active{
  background:var(--coral);border-color:var(--coral);color:#fff;
}
.chip-mini{
  display:inline-block;padding:3px 9px;border-radius:999px;
  background:var(--coral-tint);color:var(--coral);
  font-size:11px;font-weight:600;letter-spacing:.04em;
  margin-left:8px;
}
.empty{
  grid-column:1/-1;padding:40px;text-align:center;
  color:var(--muted);font-style:italic;
  border:1px dashed var(--line);border-radius:24px;
}

/* shared section wrapper */
.page-section{width:min(1280px,100%);margin:0 auto;padding:0 12px}
.page-section + .page-section{margin-top:64px}

/* first section after hero — tighter */
.page-hero + .page-section,
.page-hero + .page-toolbar + .page-section{margin-top:18px}

/* row-head inside page-section: collapse the inherited big margin */
.page-section > .row-head{margin:0 auto 22px;padding:0 4px}

/* page-toolbar after hero should sit closer too */
.page-hero + .page-toolbar{margin-top:14px;margin-bottom:6px}

/* ============================================================
   TESTS
   ============================================================ */
.ft-card{
  display:grid;grid-template-columns: 1.2fr 1fr;gap:40px;
  width:min(1280px,100%);margin:0 auto;
  padding:48px 48px;border-radius:var(--r-lg);
  background:var(--paper);border:1px solid var(--line);
  box-shadow:var(--shadow-md);
  position:relative;overflow:hidden;
}
.ft-tag{
  font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--coral);font-weight:600;
  padding:6px 12px;background:var(--coral-tint);border-radius:999px;
  display:inline-block;
}
.ft-title{
  font-family:'Instrument Serif',serif;font-weight:400;
  font-size:clamp(36px,4.2vw,52px);line-height:1.05;letter-spacing:-.01em;
  margin:18px 0 14px;
}
.ft-blurb{color:var(--ink-2);font-size:16px;line-height:1.7;margin:0 0 22px;max-width:480px}
.ft-meta{
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;
  font-size:14px;color:var(--ink-2);margin-bottom:24px;
}
.ft-meta strong{color:var(--ink);font-weight:600}
.ft-meta .dot{color:var(--coral)}
.ft-right{position:relative;height:340px}
.ft-glyph{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  font-family:'Instrument Serif',serif;font-size:120px;color:var(--coral);
  z-index:2;
}
.ft-orbit{position:absolute;inset:0}
.ft-orbit span{
  position:absolute;left:50%;top:50%;
  font-family:'Instrument Serif',serif;font-size:28px;color:var(--coral-soft);
  opacity:.65;
  transform: rotate(calc(var(--i) * 51.4deg)) translateY(-150px) rotate(calc(var(--i) * -51.4deg));
  animation: ftSpin 30s linear infinite;
  transform-origin: 0 150px;
}
@keyframes ftSpin{to{transform: rotate(calc(var(--i) * 51.4deg + 360deg)) translateY(-150px) rotate(calc(var(--i) * -51.4deg + -360deg))}}

@media (max-width:900px){
  .ft-card{grid-template-columns:1fr;padding:36px 28px;gap:24px}
  .ft-right{height:200px}
  .ft-orbit span{transform: rotate(calc(var(--i) * 51.4deg)) translateY(-90px) rotate(calc(var(--i) * -51.4deg));transform-origin:0 90px}
  .ft-glyph{font-size:80px}
}

.tests-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:16px;
}
.test-card{
  position:relative;
  display:flex;flex-direction:column;gap:10px;
  padding:26px 26px 24px;
  background:var(--paper);border:1px solid var(--line);
  border-radius:24px;
  transition:transform .35s, border-color .35s, box-shadow .35s;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.test-card:hover{transform:translateY(-3px);border-color:rgba(255,107,87,.5);box-shadow:var(--shadow-md)}
.test-head{display:flex;justify-content:space-between;align-items:center}
.test-glyph{
  width:38px;height:38px;border-radius:12px;
  background:var(--coral-tint);color:var(--coral);
  display:grid;place-items:center;font-size:18px;
  font-family:'Instrument Serif',serif;
}
.test-cat{
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);font-weight:600;
}
.test-card h3{
  font-family:'Instrument Serif',serif;font-weight:400;
  font-size:26px;line-height:1.1;margin:0;letter-spacing:-.005em;
}
.test-card p{margin:0;color:var(--ink-2);font-size:14px;line-height:1.6;flex:1}
.test-foot{
  font-size:13px;color:var(--ink-2);display:flex;gap:6px;flex-wrap:wrap;
  padding-top:12px;border-top:1px dashed var(--line);
}
.test-foot strong{color:var(--ink)}
.test-foot .dot{color:var(--coral)}
.test-arr{
  position:absolute;top:24px;right:24px;
  width:32px;height:32px;border-radius:999px;
  background:transparent;border:1px solid var(--line);
  display:grid;place-items:center;color:var(--coral);
  transition:background .25s,transform .25s,border-color .25s;
  opacity:0;
}
.test-card:hover .test-arr{opacity:1;transform:translate(2px,-2px);background:var(--coral);color:#fff;border-color:var(--coral)}

@media (max-width:980px){.tests-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){
  .tests-grid{grid-template-columns:1fr}
  .test-card{padding:22px 22px 20px}
  .test-card h3{font-size:22px}
}

/* ============================================================
   BOOKS
   ============================================================ */
.bf-card{
  display:grid;grid-template-columns: .9fr 1.1fr;gap:48px;
  padding:42px;background:var(--paper);border:1px solid var(--line);
  border-radius:var(--r-lg);box-shadow:var(--shadow-md);
  align-items:center;position:relative;overflow:hidden;
}
.bf-card::before{
  content:"";position:absolute;width:520px;height:520px;
  right:-200px;top:-220px;border-radius:999px;
  background:radial-gradient(circle,rgba(255,180,160,.4),transparent 70%);
  filter:blur(20px);
}
.bf-cover{position:relative;border-radius:20px;overflow:hidden;aspect-ratio:3/4;box-shadow:var(--shadow-lg)}
.bf-cover img{width:100%;height:100%;object-fit:cover}
.bf-badge{
  position:absolute;top:16px;left:16px;
  padding:6px 12px;border-radius:999px;
  background:rgba(255,255,255,.92);color:var(--ink);
  font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;font-weight:600;
}
.bf-body{position:relative;z-index:1;display:flex;flex-direction:column;gap:14px}
.bf-title{
  font-family:'Instrument Serif',serif;font-weight:400;
  font-size:clamp(38px,4.5vw,56px);line-height:1;margin:0;letter-spacing:-.01em;
}
.bf-sub{
  font-family:'Instrument Serif',serif;font-size:22px;color:var(--coral);margin:0;line-height:1.3;
}
.bf-blurb{margin:4px 0 12px;color:var(--ink-2);font-size:15.5px;line-height:1.7;max-width:520px}
.bf-meta{
  list-style:none;padding:0;margin:0;display:flex;gap:24px;flex-wrap:wrap;
  padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);
}
.bf-meta li{display:flex;flex-direction:column;gap:2px}
.bf-meta li span:first-child{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:600}
.bf-meta li span:last-child{font-family:'Instrument Serif',serif;font-size:18px;color:var(--ink)}
.bf-buy{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:8px}
.bf-buy-k{font-size:13px;color:var(--muted);font-weight:500}
.bf-stores{display:flex;flex-wrap:wrap;gap:8px}
.store-link{
  display:inline-flex;align-items:center;gap:6px;
  padding:10px 16px;border-radius:999px;
  background:var(--ink);color:var(--bg)!important;
  font-size:13px;font-weight:500;
  transition:background .25s, transform .25s;
}
.store-link:hover{background:var(--coral);transform:translateY(-2px)}
html.dark .store-link{background:var(--coral);color:#fff!important}
html.dark .store-link:hover{background:var(--coral-deep)}

@media (max-width:900px){
  .bf-card{grid-template-columns:1fr;padding:30px 24px;gap:28px}
  .bf-cover{max-width:280px;margin:0 auto}
}

.mb-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.mb-card{
  background:var(--paper);border:1px solid var(--line);
  border-radius:24px;overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .4s, box-shadow .4s;
  box-shadow:var(--shadow-sm);
}
.mb-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.mb-cover{display:block;aspect-ratio:3/4;overflow:hidden}
.mb-cover img{width:100%;height:100%;object-fit:cover;transition:transform .8s}
.mb-card:hover .mb-cover img{transform:scale(1.04)}
.mb-body{padding:18px 18px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.mb-kind{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--coral);font-weight:600}
.mb-body h3{
  font-family:'Instrument Serif',serif;font-weight:400;font-size:22px;line-height:1.15;
  margin:0;letter-spacing:-.005em;
}
.mb-body p{margin:0;color:var(--ink-2);font-size:13.5px;line-height:1.55}
.mb-foot{
  display:flex;justify-content:space-between;align-items:center;
  margin-top:auto;padding-top:12px;border-top:1px dashed var(--line);gap:8px;
}
.mb-stores{display:flex;gap:6px;flex-wrap:wrap}
.mb-stores span{
  font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);
}
.mb-buy{
  display:inline-flex;align-items:center;gap:5px;
  color:var(--coral);font-weight:500;font-size:13px;
  white-space:nowrap;
}
@media (max-width:1000px){.mb-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.mb-grid{grid-template-columns:1fr 1fr;gap:12px}}

/* Recommendations */
.rec-band{
  background:#fef0e9;
  border-radius:var(--r-lg);
  padding:54px 48px;
  margin:0 auto;
  width:min(1280px,100%);
  position:relative;overflow:hidden;
}
html.dark .rec-band{background:linear-gradient(180deg,#2a1a14,#1f1410)}
.rec-band::before{
  content:"";position:absolute;left:-180px;bottom:-220px;
  width:560px;height:560px;border-radius:999px;
  background:radial-gradient(circle,rgba(255,180,160,.45),transparent 70%);
  filter:blur(20px);
}
.rec-head{
  display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:18px;
  margin-bottom:32px;position:relative;
}
.rec-head h2{
  font-family:'Instrument Serif',serif;font-weight:400;
  font-size:clamp(34px,4vw,48px);line-height:1.05;margin:0;letter-spacing:-.01em;
}
.rec-head p{margin:0;color:var(--ink-2);max-width:480px;font-size:15px;line-height:1.65}
.rec-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;position:relative}
.rec-card{
  background:var(--paper);border-radius:22px;overflow:hidden;
  display:flex;flex-direction:column;
  border:1px solid var(--line);
  transition:transform .4s, box-shadow .4s;
}
.rec-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.rec-cover{height:240px;overflow:hidden;background:var(--bg);display:flex;align-items:center;justify-content:center;padding:12px}
.rec-cover img{width:auto;max-width:100%;height:100%;max-height:100%;object-fit:contain;transition:transform .8s;border-radius:3px;box-shadow:0 4px 16px rgba(0,0,0,.12)}
.rec-card:hover .rec-cover img{transform:scale(1.03)}
.rec-body{padding:20px 20px 18px;display:flex;flex-direction:column;gap:6px;flex:1}
.rec-cat{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--coral);font-weight:600}
.rec-card h3{
  font-family:'Instrument Serif',serif;font-weight:400;font-size:22px;line-height:1.15;
  margin:4px 0 0;letter-spacing:-.005em;
}
.rec-author{color:var(--ink-2);font-size:13px;margin:0;font-style:italic}
.rec-why{color:var(--ink-2);font-size:13.5px;line-height:1.55;margin:4px 0 0;flex:1}
.rec-buy{
  display:inline-flex;align-items:center;gap:5px;
  color:var(--coral);font-weight:500;font-size:13px;margin-top:10px;
  padding-top:10px;border-top:1px dashed var(--line);
}

@media (max-width:1000px){.rec-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){
  .rec-band{padding:36px 22px}
  .rec-grid{grid-template-columns:1fr}
}

/* ============================================================
   COURSES
   ============================================================ */
.cf-card{
  display:grid;grid-template-columns: 1fr 1.05fr;gap:0;
  border-radius:var(--r-lg);overflow:hidden;
  background:var(--paper);border:1px solid var(--line);
  box-shadow:var(--shadow-md);
}
.cf-media{position:relative;min-height:480px}
.cf-media img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.cf-badge{
  position:absolute;top:20px;left:20px;
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 14px;border-radius:999px;
  background:rgba(255,255,255,.92);
  font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--coral);font-weight:600;
}
.cf-body{padding:44px 44px;display:flex;flex-direction:column;gap:14px}
.cf-title{
  font-family:'Instrument Serif',serif;font-weight:400;
  font-size:clamp(38px,4.4vw,54px);line-height:1;margin:6px 0 0;letter-spacing:-.01em;
}
.cf-sub{
  font-family:'Instrument Serif',serif;font-size:22px;color:var(--coral);margin:0;line-height:1.35;
}
.cf-meta{
  list-style:none;padding:0;margin:8px 0 0;
  display:grid;grid-template-columns:1fr 1fr;gap:14px 24px;
  padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);
}
.cf-meta .k{display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:600;margin-bottom:3px}
.cf-meta .v{font-family:'Instrument Serif',serif;font-size:20px;color:var(--ink)}
.cf-syllabus{
  margin-top:6px;border:1px solid var(--line);border-radius:18px;
  padding:14px 18px;
}
.cf-syllabus summary{
  cursor:pointer;list-style:none;
  font-size:14px;font-weight:500;color:var(--ink);
  display:flex;justify-content:space-between;align-items:center;
  padding:4px 0;
}
.cf-syllabus summary::-webkit-details-marker{display:none}
.cf-syllabus[open] summary .arr{transform:rotate(90deg)}
.cf-syllabus .arr{color:var(--coral);transition:transform .25s}
.cf-syllabus ol{
  list-style:none;padding:14px 0 4px;margin:0;
  display:flex;flex-direction:column;gap:8px;
  border-top:1px dashed var(--line);margin-top:8px;
}
.cf-syllabus ol li{color:var(--ink-2);font-size:14px;line-height:1.5;padding-left:14px;position:relative}
.cf-syllabus ol li::before{content:"";position:absolute;left:0;top:9px;width:6px;height:1px;background:var(--coral)}
.cf-cta-row{
  display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:6px;
}
.cf-price .now{font-family:'Instrument Serif',serif;font-size:32px;color:var(--ink)}
.cf-price .was{
  font-family:'Instrument Serif',serif;font-size:18px;color:var(--muted);
  text-decoration:line-through;margin-left:8px;
}
.cf-cta{padding:14px 14px 14px 22px}

@media (max-width:900px){
  .cf-card{grid-template-columns:1fr}
  .cf-media{min-height:260px}
  .cf-body{padding:30px 24px}
}

.courses-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.cc-card{
  background:var(--paper);border:1px solid var(--line);
  border-radius:24px;overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .4s, box-shadow .4s;
  box-shadow:var(--shadow-sm);
}
.cc-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.cc-media{position:relative;display:block;height:200px;overflow:hidden}
.cc-media img{width:100%;height:100%;object-fit:cover;transition:transform .8s}
.cc-card:hover .cc-media img{transform:scale(1.04)}
.cc-deal{
  position:absolute;top:14px;left:14px;
  padding:5px 11px;border-radius:999px;
  background:var(--coral);color:#fff;
  font-size:11.5px;letter-spacing:.06em;font-weight:600;
}
.cc-body{padding:22px 22px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.cc-tag{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--coral);font-weight:600}
.cc-body h3{
  font-family:'Instrument Serif',serif;font-weight:400;font-size:26px;
  line-height:1.1;margin:0;letter-spacing:-.005em;
}
.cc-body p{margin:0;color:var(--ink-2);font-size:14px;line-height:1.6;flex:1}
.cc-rating{
  display:flex;gap:10px;align-items:center;font-size:13px;
}
.cc-rating .stars{color:var(--coral);font-weight:600}
.cc-rating .muted{color:var(--muted)}
.cc-foot{
  display:flex;justify-content:space-between;align-items:center;gap:8px;
  padding-top:14px;margin-top:4px;border-top:1px dashed var(--line);
}
.cc-price .now{font-family:'Instrument Serif',serif;font-size:22px;color:var(--ink);white-space:nowrap}
.cc-price .was{font-family:'Instrument Serif',serif;font-size:14px;color:var(--muted);text-decoration:line-through;margin-left:6px}
.cc-cta{color:var(--coral);font-weight:500;font-size:13.5px;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
@media (max-width:980px){.courses-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.courses-grid{grid-template-columns:1fr}}

/* testimonials */
.tst-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
/* freemium price strip on tests */
.test-price{
  display:inline-flex;align-items:center;gap:6px;
  font-size:11.5px;letter-spacing:.04em;
  color:var(--ink-2);font-weight:500;
}
.test-price .free{
  color:#1b8a4e;font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:10.5px;
}
html.dark .test-price .free{color:#5fd494}
.test-price .report{color:var(--coral);font-weight:600}
.test-price .sep{color:var(--muted);opacity:.6}

.test-card .test-price{
  padding-top:8px;
}

/* freemium banner inside featured test */
.ft-freemium{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:10px 14px;border-radius:14px;
  background:var(--coral-tint);
  margin:-4px 0 22px;
  font-size:13px;color:var(--ink-2);
}
.ft-freemium .pill-free{
  background:#1b8a4e;color:#fff;font-weight:700;
  padding:3px 10px;border-radius:999px;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;
}
.ft-freemium .pill-report{
  background:var(--coral);color:#fff;font-weight:700;
  padding:3px 10px;border-radius:999px;font-size:10.5px;letter-spacing:.06em;
}

.tst{
  margin:0;padding:30px 26px 26px;
  background:linear-gradient(180deg,#fee0d2,#fcd2c0);
  border-radius:24px;
  position:relative;display:flex;flex-direction:column;gap:14px;
}
html.dark .tst{background:linear-gradient(180deg,#3a221c,#2a1812)}
.tst .quote-mark{
  font-family:'Instrument Serif',serif;color:var(--coral);font-size:48px;line-height:.4;
}
.tst blockquote{
  margin:0;font-family:'Instrument Serif',serif;font-size:20px;line-height:1.35;color:var(--ink);
}
.tst figcaption{display:flex;flex-direction:column;gap:2px;margin-top:auto}
.tst-name{font-weight:600;color:var(--ink);font-size:14px}
.tst-role{color:var(--muted);font-size:12.5px}
@media (max-width:900px){.tst-grid{grid-template-columns:1fr;gap:12px}}

/* ============================================================
   BLOG
   ============================================================ */
.blog-featured{
  display:grid;grid-template-columns: 1.1fr 1fr;gap:0;
  border-radius:var(--r-lg);overflow:hidden;
  background:var(--paper);border:1px solid var(--line);
  box-shadow:var(--shadow-md);transition:transform .4s, box-shadow .4s;
}
.blog-featured:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.blog-featured .bf-cover{position:relative;min-height:420px;aspect-ratio:auto;border-radius:0}
.blog-featured .bf-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.blog-featured .bf-body{padding:44px 44px;display:flex;flex-direction:column;justify-content:center;gap:14px}
.blog-featured .bf-title{
  font-family:'Instrument Serif',serif;font-weight:400;
  font-size:clamp(36px,3.8vw,48px);line-height:1.1;margin:0;letter-spacing:-.01em;
}
.blog-featured .bf-blurb{color:var(--ink-2);font-size:16px;line-height:1.7;margin:0;max-width:480px}
.blog-featured .bf-meta{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  font-size:13px;color:var(--muted);margin-top:8px;
}
.blog-featured .bf-meta .dot{color:var(--coral)}

@media (max-width:900px){
  .blog-featured{grid-template-columns:1fr}
  .blog-featured .bf-cover{min-height:240px}
  .blog-featured .bf-body{padding:28px 24px}
}

.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.bp-card{
  background:var(--paper);border:1px solid var(--line);
  border-radius:24px;overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .4s, box-shadow .4s;
}
.bp-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.bp-card .bp-cover{height:200px;overflow:hidden}
.bp-card .bp-cover img{width:100%;height:100%;object-fit:cover;transition:transform .8s}
.bp-card:hover .bp-cover img{transform:scale(1.04)}
.bp-body{padding:20px 22px 22px;display:flex;flex-direction:column;gap:10px;flex:1}
.bp-tags{display:flex;gap:6px;flex-wrap:wrap}
.bp-tags span{
  font-size:11px;letter-spacing:.06em;color:var(--coral);font-weight:600;
  padding:3px 9px;border-radius:999px;background:var(--coral-tint);
}
.bp-card h3{
  font-family:'Inter',sans-serif;font-weight:600;font-size:18px;line-height:1.3;
  margin:0;letter-spacing:-.005em;color:var(--ink);
}
.bp-card p{margin:0;color:var(--ink-2);font-size:14px;line-height:1.6;flex:1}
.bp-meta{
  font-size:12.5px;color:var(--muted);display:flex;gap:8px;align-items:center;
  padding-top:12px;border-top:1px dashed var(--line);
}
.bp-meta .dot{color:var(--coral)}
@media (max-width:980px){.blog-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.blog-grid{grid-template-columns:1fr}}

/* skeletons */
.skel{
  background:linear-gradient(90deg, rgba(0,0,0,.04), rgba(0,0,0,.08), rgba(0,0,0,.04));
  background-size:200% 100%;
  border-radius:6px;animation:skel 1.6s ease-in-out infinite;
}
html.dark .skel{background:linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04));background-size:200% 100%}
@keyframes skel{0%{background-position:200% 0}100%{background-position:-200% 0}}
.bp-skel .bp-cover.skel,.bf-skel .bf-cover.skel{height:200px;width:100%;border-radius:0}
.bf-skel{display:grid;grid-template-columns:1.1fr 1fr;border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--line)}
.bf-skel .bf-cover.skel{min-height:420px;height:auto}
.bf-skel .bf-body{padding:44px;display:flex;flex-direction:column;gap:14px}
.skel-line{height:18px;width:80%}
.skel-line.short{width:55%}
.skel-meta{height:14px;width:30%;margin-top:6px}
.skel-block{height:80px;margin-top:8px}

@media (max-width:900px){.bf-skel{grid-template-columns:1fr}.bf-skel .bf-cover.skel{min-height:240px}.bf-skel .bf-body{padding:24px}}

/* Notion attribution band (small, optional) */
.cms-note{
  text-align:center;margin:18px auto 0;
  font-size:12px;color:var(--muted);
  font-family:'Inter',sans-serif;
}
.cms-note .pulse{
  display:inline-block;width:6px;height:6px;border-radius:999px;background:var(--coral);
  vertical-align:middle;margin-right:6px;
  box-shadow:0 0 0 0 rgba(255,107,87,.5);animation:pulse 1.8s ease-out infinite;
}

/* tighter mobile pass for these pages */
@media (max-width:780px){
  .page-section + .page-section{margin-top:46px}
  .page-toolbar{margin-top:24px;padding:0 4px}
  .chip{padding:8px 14px;font-size:13px}
  .ft-card{padding:30px 22px;border-radius:32px}
  .ft-title{font-size:34px}
  .bf-card{padding:24px 22px;border-radius:32px}
  .bf-title{font-size:34px!important}
  .cf-body{padding:26px 22px}
  .cf-cta-row{flex-direction:column;align-items:stretch}
  .cf-cta{width:100%;justify-content:space-between}
  .rec-band{border-radius:32px}
  .rec-head h2{font-size:28px}
  .tst blockquote{font-size:18px}
  .blog-featured .bf-body{padding:24px 22px}
}

/* ============================================================
   BLOG POST PAGE
   ============================================================ */
.post-wrap{
  max-width:720px;margin:0 auto;padding:0 24px 100px;
}
.post-hero{
  padding:60px 0 40px;
  border-bottom:1px solid var(--line);
}
.post-meta-top{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:12px;margin-bottom:28px;
}
.post-tags{display:flex;gap:6px;flex-wrap:wrap}
.back-link{
  font-size:13.5px;color:var(--muted);font-weight:500;
  display:inline-flex;align-items:center;gap:6px;
  transition:color .2s;
}
.back-link:hover{color:var(--coral)}
.post-title{
  font-family:'Instrument Serif',serif;font-weight:400;
  font-size:clamp(38px,5.5vw,64px);line-height:1.05;
  letter-spacing:-.02em;margin:0 0 24px;color:var(--ink);
}
.post-byline{
  font-size:14px;color:var(--muted);
  display:flex;gap:10px;align-items:center;
}
.post-byline .dot{color:var(--coral)}
.post-cover{
  margin:0 -24px;max-height:500px;overflow:hidden;
}
.post-cover img{width:100%;height:100%;object-fit:cover;display:block}
.post-body{
  padding-top:52px;font-size:17px;line-height:1.82;color:var(--ink-2);
}
.post-body h1,.post-body h2,.post-body h3,.post-body h4{
  font-family:'Instrument Serif',serif;font-weight:400;color:var(--ink);
  margin:48px 0 18px;line-height:1.15;letter-spacing:-.015em;
}
.post-body h2{font-size:34px}
.post-body h3{font-size:26px}
.post-body h4{font-size:21px;font-style:italic}
.post-body p{margin:0 0 26px}
.post-body a{color:var(--coral);text-decoration:underline;text-underline-offset:3px}
.post-body a:hover{opacity:.8}
.post-body img{
  width:100%;border-radius:16px;margin:32px 0;display:block;
}
.post-body figure{margin:36px 0}
.post-body figcaption{
  font-size:13px;color:var(--muted);text-align:center;
  margin-top:10px;font-style:italic;
}
.post-body blockquote{
  margin:36px 0;padding:24px 28px;
  border-left:3px solid var(--coral);
  background:var(--coral-tint);border-radius:0 16px 16px 0;
  font-family:'Instrument Serif',serif;font-size:22px;
  line-height:1.45;color:var(--ink);font-style:italic;
}
.post-body pre{
  background:var(--paper);border:1px solid var(--line);
  border-radius:12px;padding:20px 24px;overflow-x:auto;
  font-family:'SF Mono','Fira Mono',monospace;
  font-size:14px;line-height:1.65;margin:28px 0;
}
.post-body code{
  font-family:'SF Mono','Fira Mono',monospace;font-size:.88em;
  background:var(--coral-tint);color:var(--coral);
  padding:2px 6px;border-radius:4px;
}
.post-body pre code{background:none;color:inherit;padding:0}
.post-body ul,.post-body ol{padding-left:28px;margin:0 0 26px}
.post-body li{margin-bottom:10px}
.post-body hr{
  border:none;border-top:1px solid var(--line);margin:48px 0;
}
.post-footer{
  display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:16px;
  padding:32px 0 0;margin-top:60px;
  border-top:1px solid var(--line);
}
.post-medium-link{
  display:inline-flex;align-items:center;gap:7px;
  padding:12px 22px;border-radius:999px;
  background:var(--ink);color:var(--bg)!important;
  font-size:14px;font-weight:500;
  transition:background .25s,transform .25s;
}
.post-medium-link:hover{background:var(--coral);transform:translateY(-2px)}
html.dark .post-medium-link{background:var(--coral)}
html.dark .post-medium-link:hover{background:var(--coral-deep)}
.post-loading{padding:80px 0}
.post-error,.post-not-found{
  padding:80px 0;text-align:center;
  color:var(--muted);display:flex;flex-direction:column;gap:16px;align-items:center;
}
.post-error p,.post-not-found h2{margin:0}

@media (max-width:780px){
  .post-wrap{padding:0 16px 72px}
  .post-hero{padding:40px 0 32px}
  .post-title{font-size:clamp(32px,8vw,48px)}
  .post-body{font-size:16px;padding-top:36px}
  .post-body blockquote{font-size:18px;padding:18px 20px}
  .post-cover{margin:0 -16px}
  .post-footer{flex-direction:column;align-items:stretch}
  .post-medium-link{justify-content:center}
}

/* ── recommendations search ── */
.rec-search-wrap{
  width:min(1280px,100%);margin:32px auto 0;padding:0 12px;
}
.rec-search-inner{
  display:flex;align-items:center;gap:10px;
  background:var(--paper);border:1px solid var(--line);border-radius:999px;
  padding:10px 18px;max-width:460px;
  transition:border-color .2s, box-shadow .2s;
}
.rec-search-inner:focus-within{
  border-color:var(--coral);box-shadow:0 0 0 3px rgba(255,107,87,.12);
}
.rec-search-inner svg{color:var(--muted);flex-shrink:0}
.rec-search-inner input{
  flex:1;border:none;outline:none;background:transparent;
  font-size:14px;color:var(--ink);font-family:inherit;
}
.rec-search-inner input::placeholder{color:var(--muted)}
.rec-search-clear{
  background:none;border:none;color:var(--muted);cursor:pointer;
  font-size:12px;padding:0;transition:color .2s, opacity .2s;
}
.rec-search-clear:hover{color:var(--coral)}

/* ── storefront grid ── */
.rec-storefront{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
  gap:24px;
}
.sf-card{
  background:var(--paper);border:1px solid var(--line);
  border-radius:20px;overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .3s, box-shadow .3s;
}
.sf-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.sf-img-wrap{
  position:relative;display:block;
  aspect-ratio:3/4;overflow:hidden;background:var(--sand);
}
.sf-img-wrap img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .6s;
}
.sf-card:hover .sf-img-wrap img{transform:scale(1.04)}
.sf-cat-badge{
  position:absolute;top:12px;left:12px;
  background:rgba(255,255,255,.92);backdrop-filter:blur(6px);
  border-radius:999px;padding:4px 10px;
  font-size:11px;font-weight:600;letter-spacing:.04em;color:var(--ink);
}
html.dark .sf-cat-badge{background:rgba(30,26,22,.88);color:var(--ink)}
.sf-body{
  padding:16px 18px 18px;display:flex;flex-direction:column;
  flex:1;gap:12px;justify-content:space-between;
}
.sf-top{display:flex;flex-direction:column;gap:4px}
.sf-name{font-size:15px;font-weight:600;color:var(--ink);margin:0;line-height:1.3}
.sf-author{font-size:12.5px;color:var(--muted);margin:0}
.sf-desc{font-size:13px;color:var(--ink-2);line-height:1.6;margin:6px 0 0}
.sf-foot{display:flex;flex-direction:column;gap:8px}
.sf-mentioned{
  display:inline-flex;align-items:center;gap:5px;
  font-size:11.5px;color:var(--muted);text-decoration:none;
  border:1px solid var(--line);border-radius:999px;
  padding:4px 10px;width:fit-content;
  transition:color .2s, border-color .2s;
}
.sf-mentioned:hover{color:#ff0000;border-color:#ff0000}
.sf-mentioned svg{flex-shrink:0}
.sf-mentioned-empty{display:block;height:26px}
.sf-buy{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--coral);color:#fff;border-radius:999px;
  padding:9px 16px;font-size:13px;font-weight:600;
  text-decoration:none;width:fit-content;
  transition:background .2s, transform .2s;
}
.sf-buy:hover{background:var(--coral-deep);transform:translateY(-1px)}
.rec-affiliate-note{
  display:flex;align-items:flex-start;gap:6px;
  font-size:12px;color:var(--muted);line-height:1.6;
  margin-top:32px;padding-top:20px;border-top:1px solid var(--line);
}
.rec-affiliate-note svg{flex-shrink:0;margin-top:2px}

@media(max-width:600px){
  .rec-storefront{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}
  .sf-img-wrap{aspect-ratio:2/3}
}

/* ── legal footer row (tests page + site footer) ── */
.foot-legal{
  display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;
  font-size:11.5px;color:var(--muted);margin-top:6px;
  width:100%;justify-content:center;
}
.foot-legal a{color:var(--muted);text-decoration:none;transition:color .2s}
.foot-legal a:hover{color:var(--coral)}
.foot-legal span[aria-hidden]{opacity:.4}
