/* 0-bro lab notes. Long-form reading layer on top of site.css.
 * Reuses the base tokens, fonts, .fx, .topbar, .btn and footer from
 * site.css; this file adds only the note index and the article prose. */

:root {
  --readw: 720px;
  --ink: #c4c4cd;          /* prose body: brighter than --grey for long reads */
}

/* pull content clear of the fixed topbar */
.blog main { padding-top: 132px; }
@media (max-width: 640px) { .blog main { padding-top: 108px; } }

/* skip-to-content: off-screen until keyboard-focused */
.skip {
  position: fixed; top: -64px; left: 12px; z-index: 100;
  background: var(--signal); color: #0a0a0c; font-family: var(--mono);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 2px; transition: top 0.18s;
}
.skip:focus { top: 12px; outline: none; }

/* the topbar carries a real nav on inner pages; keep the base look */
.topbar .navlinks a.here { color: var(--bone); }
.topbar .navlinks a.here::after { width: 100%; }

/* --- shared page masthead (index + post kicker) --- */
.masthead { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.masthead .eyebrow { margin-bottom: 22px; }
.masthead h1 {
  font-family: var(--disp); font-optical-sizing: auto; font-weight: 400;
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 0 22px; max-width: 20ch;
}
.masthead h1 em { font-style: italic; color: var(--signal); }
.masthead .standfirst {
  font-size: clamp(17px, 1.9vw, 20px); color: var(--grey); max-width: 62ch;
  margin: 0; line-height: 1.6;
}

/* --- note index list --- */
.notelist { max-width: var(--maxw); margin: 64px auto 0; padding: 0 28px; }
.note {
  display: grid; grid-template-columns: 168px 1fr; gap: 34px; align-items: start;
  padding: 40px 6px; border-top: 1px solid var(--line);
  transition: background 0.3s, padding-left 0.3s;
}
.notelist .note:last-child { border-bottom: 1px solid var(--line); }
.note:hover { background: rgba(255,255,255,0.012); padding-left: 14px; }
.note .rail {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--grey); line-height: 1.9;
}
.note .rail .tag { color: var(--signal); display: block; margin-bottom: 4px; }
.note .rail .gate { color: var(--grey); display: block; }
.note .body h2 {
  font-family: var(--disp); font-weight: 400; font-size: clamp(24px, 3vw, 32px);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 12px;
}
.note .body h2 a { transition: color 0.2s; }
.note:hover .body h2 a { color: var(--signal); }
.note .body p { color: var(--grey); margin: 0 0 16px; font-size: 16px; max-width: 60ch; }
.note .more {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--signal); display: inline-flex; gap: 9px;
  align-items: center;
}
.note .more .arr { transition: transform 0.25s; }
.note:hover .more .arr { transform: translateX(5px); }
@media (max-width: 640px) {
  .note { grid-template-columns: 1fr; gap: 14px; }
  .note .rail { display: flex; gap: 16px; }
  .note .rail .tag, .note .rail .gate { display: inline; margin: 0; }
}

/* --- article --- */
.article { max-width: var(--readw); margin: 0 auto; padding: 0 28px; }
.article .kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--signal); margin: 0 0 20px;
  display: inline-flex; align-items: center; gap: 12px;
}
.article .kicker::before { content: ""; width: 30px; height: 1px; background: linear-gradient(90deg, var(--signal), transparent); }
.article h1 {
  font-family: var(--disp); font-optical-sizing: auto; font-weight: 400;
  font-size: clamp(32px, 5vw, 54px); line-height: 1.06; letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.article h1 em { font-style: italic; color: var(--signal); }
.article .post-meta {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--grey);
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  padding-bottom: 30px; border-bottom: 1px solid var(--line); margin-bottom: 0;
}
.article .post-meta .sep { color: var(--faint); }
.article .lede {
  font-family: var(--disp); font-weight: 300; font-style: italic;
  font-size: clamp(20px, 2.6vw, 27px); line-height: 1.4; color: var(--bone);
  letter-spacing: -0.01em; margin: 40px 0 8px;
}

/* hero plate under the header */
.article .hero-plate {
  position: relative; margin: 40px 0 8px; border: 1px solid var(--line);
  border-radius: 3px; overflow: hidden; background: var(--bg-1); aspect-ratio: 24 / 10;
}
.article .hero-plate img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.15) contrast(1.05); opacity: 0.9;
}
.article .hero-plate::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 100px rgba(0,0,0,0.65); pointer-events: none; }
.article .hero-plate .cap {
  position: absolute; left: 14px; bottom: 12px; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone); background: rgba(8,8,10,0.82); padding: 5px 9px;
  border: 1px solid var(--line); backdrop-filter: blur(4px);
}
.article .hero-plate .cap b { color: var(--signal); font-weight: 400; }

/* --- prose --- */
.prose { margin-top: 40px; font-size: 18px; line-height: 1.78; color: var(--ink); }
.prose > * + * { margin-top: 26px; }
.prose p { margin: 0; }
.prose strong { color: var(--bone); font-weight: 600; }
.prose em { font-style: italic; }
.prose a { color: var(--signal); text-decoration: none; border-bottom: 1px solid var(--signal-glow); transition: border-color 0.2s; }
.prose a:hover { border-bottom-color: var(--signal); }
.prose h2 {
  font-family: var(--disp); font-weight: 400; font-size: clamp(25px, 3.4vw, 34px);
  line-height: 1.14; letter-spacing: -0.015em; color: var(--bone);
  margin-top: 60px; margin-bottom: 0; scroll-margin-top: 96px;
}
.prose h2 .n { color: var(--signal); font-family: var(--mono); font-size: 0.5em; letter-spacing: 0.1em; margin-right: 12px; vertical-align: 0.28em; }
.prose h3 {
  font-family: var(--sans); font-weight: 600; font-size: 19px; color: var(--bone);
  margin-top: 40px; margin-bottom: 0; letter-spacing: 0.005em;
}
.prose ul, .prose ol { margin: 26px 0 0; padding-left: 4px; list-style: none; }
.prose li { position: relative; padding-left: 28px; margin-top: 12px; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 0.72em; width: 7px; height: 1px;
  background: var(--signal);
}
.prose ol { counter-reset: pl; }
.prose ol li { counter-increment: pl; }
.prose ol li::before {
  content: counter(pl); position: absolute; left: 0; top: 0.05em;
  font-family: var(--mono); font-size: 12px; color: var(--signal); letter-spacing: 0.05em;
}
.prose blockquote {
  margin: 34px 0 0; padding: 6px 0 6px 26px; border-left: 2px solid var(--signal);
  font-family: var(--disp); font-style: italic; font-weight: 300;
  font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5; color: var(--bone);
}
.prose code {
  font-family: var(--mono); font-size: 0.86em; color: var(--signal-hot);
  background: rgba(230,174,92,0.08); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 3px;
}
.prose .src {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--grey); text-transform: uppercase;
}

/* the big measured-number callout, matching the proof aesthetic */
.pullstat {
  margin: 44px 0; padding: 32px 30px; border: 1px solid var(--line);
  border-left: 2px solid var(--signal); background: rgba(230,174,92,0.045);
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
}
.pullstat .fig {
  font-family: var(--disp); font-weight: 300; font-size: clamp(46px, 8vw, 68px);
  line-height: 0.9; color: var(--bone); letter-spacing: -0.02em; white-space: nowrap;
}
.pullstat .fig .u { font-size: 0.42em; color: var(--signal); font-family: var(--mono); margin-left: 2px; }
.pullstat .txt { color: var(--ink); font-size: 15.5px; line-height: 1.6; }
.pullstat .txt b { color: var(--bone); font-weight: 600; }
.pullstat .txt .src { display: block; margin-top: 8px; }
@media (max-width: 560px) { .pullstat { grid-template-columns: 1fr; gap: 14px; } }

/* --- article footer: subscribe nudge + back --- */
.post-foot { max-width: var(--readw); margin: 72px auto 0; padding: 0 28px; }
.post-foot .sep { height: 1px; background: var(--line); margin-bottom: 40px; }
.post-foot .nudge {
  border: 1px solid var(--line); background: var(--panel); padding: 34px 32px;
  text-align: center;
}
.post-foot .nudge .eyebrow { justify-content: center; }
.post-foot .nudge h3 {
  font-family: var(--disp); font-weight: 400; font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 10px; color: var(--bone);
}
.post-foot .nudge p { color: var(--grey); margin: 0 auto 22px; max-width: 46ch; font-size: 15.5px; }
.post-foot .backrow {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 40px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.post-foot .backrow a { color: var(--grey); display: inline-flex; gap: 9px; align-items: center; transition: color 0.2s; }
.post-foot .backrow a:hover { color: var(--signal); }

/* --- 404 --- */
.notfound {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 132px 28px 80px;
}
.notfound .inner { max-width: 560px; }
.notfound .kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--signal); margin: 0 0 24px;
  display: inline-flex; align-items: center; gap: 12px;
}
.notfound .kicker::before, .notfound .kicker::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--signal)); }
.notfound .kicker::after { background: linear-gradient(90deg, var(--signal), transparent); }
.notfound .code {
  font-family: var(--disp); font-weight: 300; font-size: clamp(88px, 18vw, 168px);
  line-height: 0.9; letter-spacing: -0.04em; color: var(--bone); margin: 0;
}
.notfound .code em { font-style: italic; color: var(--signal); }
.notfound p { color: var(--grey); font-size: 17px; margin: 20px auto 34px; max-width: 44ch; }
.notfound .cta-row { justify-content: center; }

/* index CTA at the base of the list */
.index-foot { max-width: var(--maxw); margin: 56px auto 0; padding: 0 28px; }
.index-foot .nudge {
  border: 1px solid var(--line); background: var(--panel); padding: 36px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.index-foot .nudge .t h3 { font-family: var(--disp); font-weight: 400; font-size: 24px; margin: 0 0 6px; color: var(--bone); }
.index-foot .nudge .t p { color: var(--grey); margin: 0; font-size: 15px; }
