/* =========================================================
   IdeaFloat — Blog / The Journal
   1:1 implementation of design redesign/blog.css.
   Prelude scopes base.css resets + rd-* primitives the design
   relies on (rd-shell, rd-reveal, rd-cursor) under .bl-page.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=IBM+Plex+Mono:wght@400;500;700&display=swap');

.bl-page { background: #fbfaf6; color: #151515; -webkit-font-smoothing: antialiased; cursor: none; }
.bl-page * { box-sizing: border-box; }
.bl-page a { color: inherit; text-decoration: none; }
.bl-page ::selection { background: #3d61df; color: #fff; }

/* neutralise base.css overrides (section flex-centering, span 16px, list bullets) */
.bl-page section { display: block; flex-direction: initial; justify-content: initial; align-items: initial; overflow: visible; width: auto; }
.bl-page h1 span, .bl-page h2 span, .bl-page h3 span, .bl-page h4 span,
.bl-page h1 em, .bl-page h2 em, .bl-page h3 em, .bl-page h4 em,
.bl-page .sub p em {
  font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit;
}
.bl-page ul { list-style: none; padding: 0; margin: 0; }
.bl-page ul > li:before { content: none; display: none; }
.bl-page li { padding-left: 0; }

/* rd-shell (matches homepage) */
.bl-page .rd-shell { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 56px; position: relative; }
.bl-page .rd-shell::before, .bl-page .rd-shell::after { content: none; }

/* rd-cursor */
.rd-cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 200; width: 14px; height: 14px; border-radius: 50%; background: #151515; mix-blend-mode: difference; transform: translate(-50%,-50%); transition: width .25s, height .25s, background .25s; }
.rd-cursor.hover { width: 56px; height: 56px; background: #3d61df; mix-blend-mode: normal; }
.rd-cursor-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: Satoshi, sans-serif; font-weight: 900; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: 0; }
.rd-cursor.hover .rd-cursor-label { opacity: 1; }

/* rd-reveal */
.bl-page .rd-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
.bl-page .rd-reveal.in { opacity: 1; transform: translateY(0); }

/* pulse keyframe (used by masthead rule) */
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.85)} }

/* circled annotation reused from homepage */
.bl-page .rd-circled { display: inline-block; position: relative; color: #3d61df; }

/* =========================================================
   IdeaFloat — Blog / The Journal (redesign)
   Same broadsheet-meets-notebook posture as the homepage.
   Reuses rd-top / rd-foot / rd-cursor / rd-shell / rd-reveal
   from redesign.css. Everything here is blog-specific (bl-*).
   ========================================================= */

/* ---------- Masthead ---------- */
.bl-mast { padding: 88px 0 0; position: relative; }

.bl-mast-rule {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: #6b7280;
  padding-bottom: 16px;
  border-bottom: 1px solid #151515;
}
.bl-mast-rule .pulse { width: 8px; height: 8px; border-radius: 50%; background: #21dd90; animation: pulse 2.4s ease-in-out infinite; display: inline-block; margin-right: 10px; }
.bl-mast-rule .l { display: inline-flex; align-items: center; }

.bl-nameplate {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px;
  align-items: end;
  padding: 48px 0 40px;
  border-bottom: 1px solid rgba(21,21,21,0.12);
}
.bl-nameplate h1 {
  font-family: Satoshi; font-weight: 900;
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: .92; letter-spacing: -.05em; margin: 0; color: #151515;
}
.bl-nameplate h1 .rd-circled { display: inline-block; position: relative; color: #3d61df; }
.bl-nameplate h1 .rd-circled::before {
  content: "";
  position: absolute; left: -8%; top: -8%; right: -8%; bottom: -8%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 80' preserveAspectRatio='none'><path d='M20,42 Q15,18 60,12 Q120,5 180,14 Q210,18 205,40 Q200,68 140,72 Q60,78 25,68 Q12,58 22,42' fill='none' stroke='%233d61df' stroke-width='3' stroke-linecap='round' stroke-dasharray='600' stroke-dashoffset='600'><animate attributeName='stroke-dashoffset' from='600' to='0' dur='1.6s' begin='0.6s' fill='freeze'/></path></svg>") no-repeat center / 100% 100%;
  pointer-events: none;
}
.bl-nameplate .sub {
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
  padding-bottom: 8px;
}
.bl-nameplate .sub p {
  font-family: Satoshi; font-weight: 500; font-size: 19px; line-height: 1.5;
  color: #4b5563; margin: 0; max-width: 380px; letter-spacing: -.01em;
}
.bl-nameplate .sub p em { font-style: normal; color: #3d61df; font-weight: 700; }
.bl-mast-meta {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .04em; color: #6b7280;
  display: flex; gap: 16px; flex-wrap: wrap;
}
.bl-mast-meta span { display: inline-flex; align-items: center; gap: 6px; }
.bl-mast-meta span::before { content: "—"; color: #9ca3af; }

/* ---------- Lead / front-page story ---------- */
.bl-lead { padding: 64px 0 24px; position: relative; }
.bl-lead-tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: #6b7280; margin-bottom: 28px; display: flex; align-items: center; gap: 14px;
}
.bl-lead-tag .rule { flex: 0 0 48px; height: 1px; background: #151515; }
.bl-lead-grid {
  display: grid; grid-template-columns: 1fr 1.12fr; gap: 56px; align-items: center;
}
.bl-lead-figure {
  position: relative; aspect-ratio: 16 / 11; border-radius: 4px; overflow: hidden;
  background: #151515; max-height: 440px; align-self: center;
  box-shadow: 0 30px 64px rgba(0,0,0,0.16), 0 6px 18px rgba(0,0,0,0.07);
}
.bl-lead-figure img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.95);
  transition: transform 6s ease;
}
.bl-lead:hover .bl-lead-figure img { transform: scale(1.04); }
.bl-lead-cat {
  position: absolute; left: 18px; top: 18px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: #151515; background: var(--phase, #f3b900); padding: 7px 12px; border-radius: 2px;
  display: inline-flex; align-items: center; gap: 8px;
}
.bl-lead-body { display: flex; flex-direction: column; justify-content: center; gap: 0; }
.bl-lead-kicker {
  font-family: Satoshi; font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--phase, #3d61df); margin-bottom: 18px;
}
.bl-lead-body h2 {
  font-family: Satoshi; font-weight: 900; font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.02; letter-spacing: -.035em; margin: 0; color: #151515;
  max-width: 16ch;
}
.bl-lead-body .excerpt {
  font-family: Satoshi; font-weight: 500; font-size: 19px; line-height: 1.55;
  color: #4b5563; margin: 26px 0 0; max-width: 46ch;
}
.bl-lead-foot {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(21,21,21,0.14);
}
.bl-byline { display: flex; align-items: center; gap: 12px; }
.bl-byline .av {
  width: 36px; height: 36px; border-radius: 50%;
  background: #151515 url("/wp-content/themes/plb/img/brand/pattern.webp") center/180%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: Satoshi; font-weight: 900; font-size: 13px; color: #fbfaf6;
  flex: 0 0 auto;
}
.bl-byline .who { display: flex; flex-direction: column; gap: 1px; }
.bl-byline .who strong { font-family: Satoshi; font-weight: 700; font-size: 14px; color: #151515; }
.bl-byline .who span { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .04em; color: #9ca3af; }
.bl-read {
  margin-left: auto;
  font-family: Satoshi; font-weight: 900; font-size: 15px; color: #151515;
  display: inline-flex; align-items: center; gap: 12px;
  border-bottom: 1px solid #151515; padding-bottom: 3px;
  transition: gap .25s ease, color .25s ease, border-color .25s ease;
}
.bl-lead:hover .bl-read { gap: 18px; color: #3d61df; border-color: #3d61df; }

/* ---------- Issue index grid ---------- */
.bl-more { padding: 72px 0 24px; }
.bl-more-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: 8px; padding-bottom: 18px; border-bottom: 1px solid #151515;
}
.bl-more-head .label {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #6b7280;
}
.bl-more-head h3 {
  font-family: Satoshi; font-weight: 900; font-size: clamp(26px, 3vw, 40px);
  line-height: 1.04; letter-spacing: -.03em; margin: 0; color: #151515;
}
.bl-more-head h3 em { color: #3d61df; font-style: italic; font-weight: 500; }
.bl-more-head .count { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #9ca3af; letter-spacing: .04em; }

.bl-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid rgba(21,21,21,0.12);
  border-top: 1px solid rgba(21,21,21,0.12);
}
.bl-card {
  display: flex; flex-direction: column;
  padding: 26px 28px 30px;
  border-right: 1px solid rgba(21,21,21,0.12);
  border-bottom: 1px solid rgba(21,21,21,0.12);
  background: transparent;
  transition: background .35s ease;
  position: relative;
  cursor: none;
}
.bl-card:hover { background: #fff; }
.bl-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.bl-card-idx { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .12em; color: #9ca3af; }
.bl-card-cat {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #4b5563;
}
.bl-card-cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--phase, #3d61df); }
.bl-card-figure {
  position: relative; aspect-ratio: 16 / 10; border-radius: 3px; overflow: hidden;
  background: #e9e7df; margin-bottom: 20px;
}
.bl-card-figure img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.bl-card:hover .bl-card-figure img { transform: scale(1.05); }
.bl-card h4 {
  font-family: Satoshi; font-weight: 900; font-size: 21px; line-height: 1.14;
  letter-spacing: -.02em; margin: 0 0 12px; color: #151515;
  transition: color .25s ease;
}
.bl-card:hover h4 { color: #3d61df; }
.bl-card p {
  font-family: Satoshi; font-weight: 500; font-size: 14.5px; line-height: 1.55;
  color: #6b7280; margin: 0 0 22px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bl-card-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .04em; color: #9ca3af;
}
.bl-card-foot .go {
  font-family: Satoshi; font-weight: 700; font-size: 18px; color: #151515;
  transition: transform .25s ease, color .25s ease;
}
.bl-card:hover .bl-card-foot .go { transform: translateX(6px); color: #3d61df; }

/* archive tile — fills the empty grid cell */
.bl-archive {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 32px 30px 34px;
  border-right: 1px solid rgba(21,21,21,0.12);
  border-bottom: 1px solid rgba(21,21,21,0.12);
  background: #151515; color: #fbfaf6;
  cursor: none; position: relative; overflow: hidden;
}
.bl-archive::before {
  content: ""; position: absolute; inset: 0;
  background: url("/wp-content/themes/plb/img/brand/pattern.webp") repeat; opacity: .14; mix-blend-mode: soft-light; pointer-events: none;
}
.bl-archive .k { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,0.5); position: relative; }
.bl-archive h4 { font-family: Satoshi; font-weight: 900; font-size: 28px; line-height: 1.05; letter-spacing: -.02em; margin: 14px 0 0; color: #fbfaf6; position: relative; }
.bl-archive .big { font-family: Satoshi; font-weight: 900; font-size: clamp(56px, 7vw, 84px); line-height: .9; letter-spacing: -.04em; color: #21dd90; position: relative; }
.bl-archive .big small { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 10px; }
.bl-archive .go {
  position: relative;
  font-family: Satoshi; font-weight: 700; font-size: 15px; color: #fbfaf6;
  display: inline-flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 3px; align-self: flex-start;
  transition: gap .25s ease;
}
.bl-archive:hover .go { gap: 18px; }

/* ---------- Pagination ---------- */
.bl-page {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 36px 0 10px;
}
.bl-page-nums { display: flex; align-items: center; gap: 6px; }
.bl-page-nums a, .bl-page-nums span {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: .04em;
  color: #6b7280; min-width: 34px; height: 34px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 4px; cursor: none;
  transition: all .2s ease;
}
.bl-page-nums a:hover { color: #3d61df; border-color: rgba(61,97,223,0.4); }
.bl-page-nums .on { background: #151515; color: #fbfaf6; }
.bl-page-nums .gap { border: 0; color: #c0bdb5; }
.bl-page-next {
  font-family: Satoshi; font-weight: 900; font-size: 14px; color: #151515;
  display: inline-flex; align-items: center; gap: 10px;
  border-bottom: 1px solid #151515; padding-bottom: 3px; cursor: none;
  transition: gap .25s ease, color .25s ease, border-color .25s ease;
}
.bl-page-next:hover { gap: 16px; color: #3d61df; border-color: #3d61df; }

/* ---------- Desks (categories) ---------- */
.bl-desks { padding: 96px 0 0; }
.bl-desks-head { margin-bottom: 40px; }
.bl-desks-head .label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #6b7280; }
.bl-desks-head h3 { font-family: Satoshi; font-weight: 900; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.03; letter-spacing: -.03em; margin: 12px 0 0; color: #151515; }
.bl-desks-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #151515;
}
.bl-desk {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid rgba(21,21,21,0.12);
  cursor: none; transition: padding .3s ease;
}
.bl-desk:nth-child(odd) { border-right: 1px solid rgba(21,21,21,0.12); padding-right: 40px; }
.bl-desk:nth-child(even) { padding-left: 40px; }
.bl-desk:hover { padding-left: 14px; }
.bl-desk:nth-child(even):hover { padding-left: 50px; }
.bl-desk .name {
  display: flex; align-items: baseline; gap: 16px;
  font-family: Satoshi; font-weight: 900; font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -.02em; color: #151515; transition: color .25s ease;
}
.bl-desk:hover .name { color: var(--phase, #3d61df); }
.bl-desk .name i { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-style: normal; letter-spacing: .12em; color: #9ca3af; transform: translateY(-4px); }
.bl-desk .arrow { font-family: Satoshi; font-weight: 500; font-size: 22px; color: var(--phase, #3d61df); opacity: 0; transform: translateX(-8px); transition: all .25s ease; }
.bl-desk:hover .arrow { opacity: 1; transform: translateX(0); }

/* ---------- Newsletter strip ---------- */
.bl-news {
  margin-top: 110px;
  padding: 96px 0; background: #3d61df; color: #fbfaf6;
  position: relative; overflow: hidden;
}
.bl-news::before {
  content: ""; position: absolute; inset: 0;
  background: url("/wp-content/themes/plb/img/brand/pattern.webp") repeat; opacity: .3; mix-blend-mode: soft-light; pointer-events: none;
}
.bl-news-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; position: relative; }
.bl-news .label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.bl-news h3 { font-family: Satoshi; font-weight: 900; font-size: clamp(34px, 4.6vw, 64px); line-height: 1; letter-spacing: -.04em; margin: 16px 0 0; color: #fbfaf6; max-width: 14ch; }
.bl-news p { font-family: Satoshi; font-weight: 500; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.82); margin: 22px 0 0; max-width: 42ch; }
.bl-news-form { display: flex; flex-direction: column; gap: 14px; }
.bl-news-row {
  display: flex; align-items: stretch; gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}
.bl-news-row input {
  flex: 1; background: transparent; border: 0; outline: none;
  font-family: Satoshi; font-weight: 500; font-size: 19px; color: #fbfaf6;
  padding: 16px 4px;
}
.bl-news-row input::placeholder { color: rgba(255,255,255,0.55); }
.bl-news-row button {
  background: transparent; border: 0; cursor: none;
  font-family: Satoshi; font-weight: 900; font-size: 17px; color: #fbfaf6;
  display: inline-flex; align-items: center; gap: 10px; padding: 0 4px 0 20px;
  transition: gap .25s ease;
}
.bl-news-row button:hover { gap: 16px; }
.bl-news-fine { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .04em; color: rgba(255,255,255,0.6); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .bl-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-nameplate, .bl-lead-grid, .bl-news-grid { grid-template-columns: 1fr; gap: 36px; }
  .bl-desks-list { grid-template-columns: 1fr; }
  .bl-desk:nth-child(odd) { border-right: 0; padding-right: 4px; }
  .bl-desk:nth-child(even) { padding-left: 4px; }
  .bl-desk:nth-child(even):hover { padding-left: 14px; }
}
@media (max-width: 640px) {
  .bl-grid { grid-template-columns: 1fr; }
}
