/* =============================================================
   Neel's World — Editorial AI Blog
   Clean · Typography-first · YouTube companion
   ============================================================= */

/* Self-hosted Inter — no Google Fonts, no GDPR risk */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/inter-800.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #1A5FA8;
  --blue-dark:   #0f3d72;
  --blue-pale:   #EBF2FB;
  --purple:      #5B4FA8;
  --ink:         #111111;
  --ink-mid:     #444444;
  --ink-light:   #777777;
  --rule:        #E5E5E0;
  --bg:          #F7F7F5;
  --bg-white:    #FFFFFF;
  --max-w:       1080px;
  --max-prose:   680px;
  --font:        'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono:        'JetBrains Mono', 'Fira Code', 'Menlo', monospace;
  /* placeholder colours for posts without images */
  --ph-ai:       #1A2F4A;
  --ph-tutorial: #1A3A2A;
  --ph-news:     #2A1A3A;
  --ph-guide:    #3A2A10;
}

/* ── Dark theme ───────────────────────────────────────────── */
[data-theme="dark"] {
  --ink:         #EDEDEB;
  --ink-mid:     #AAAAAA;
  --ink-light:   #777777;
  --rule:        #2A2A2A;
  --bg:          #141414;
  --bg-white:    #1C1C1C;
  --blue-pale:   #1A2A3A;
  --ph-ai:       #0D1F30;
  --ph-tutorial: #0D2018;
  --ph-news:     #1E0D2A;
  --ph-guide:    #2A1E08;
}
[data-theme="dark"] .site-footer { background: #0A0A0A; }
[data-theme="dark"] .yt-side,
[data-theme="dark"] .about-card[style*="background:var(--ink)"] { background: #0A0A0A !important; border-color: #222 !important; }
[data-theme="dark"] .footer-brand .logo-img { filter: brightness(0) invert(1) opacity(.6); }
[data-theme="dark"] .hero { background: var(--bg-white); }
[data-theme="dark"] .post-body pre { background: #0A0A0A; }
[data-theme="dark"] .post-body code { background: #252525; color: var(--ink); }
/* Newsletter dark panels — keep them dark in dark mode */
[data-theme="dark"] .nl-card,
[data-theme="dark"] .nl-strip,
[data-theme="dark"] .post-nl-cta,
[data-theme="dark"] .side-nl { background: #0A0A0A !important; }
[data-theme="dark"] .nl-strip-text h2,
[data-theme="dark"] .nl-card h2,
[data-theme="dark"] .post-nl-cta h3 { color: #fff; }
[data-theme="dark"] .nl-card-eyebrow { color: rgba(255,255,255,.4); }
[data-theme="dark"] .nl-card p,
[data-theme="dark"] .nl-social-proof { color: rgba(255,255,255,.5); }
[data-theme="dark"] .nl-strip-text p { color: rgba(255,255,255,.6); }
[data-theme="dark"] .nl-incentive li { color: rgba(255,255,255,.7); }
[data-theme="dark"] .nl-incentive li::before { color: var(--blue); }
[data-theme="dark"] .nl-features-grid > div { background: #1C1C1C; border-color: #2a2a2a; }
[data-theme="dark"] .nl-features-grid h3 { color: #EDEDEB; }
[data-theme="dark"] .nl-features-grid p { color: #AAAAAA; }

/* ── Theme toggle button ──────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
  color: var(--ink-mid);
}
.theme-toggle:hover { border-color: var(--ink-mid); color: var(--ink); }
.theme-toggle svg  { width: 16px; height: 16px; fill: currentColor; }
/* show correct icon per mode */
.icon-moon { display: block; }
.icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: block; }

/* ── Post image placeholders (no featured image) ──────────── */
.ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
}
.ph-ai       { background: var(--ph-ai); }
.ph-tutorial { background: var(--ph-tutorial); }
.ph-news     { background: var(--ph-news); }
.ph-guide    { background: var(--ph-guide); }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Layout helpers ───────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  height: 44px;
  width: auto;
}
.logo-label {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-label .name {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.logo-label .sub {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
}
.nav-links a {
  display: block;
  padding: .4rem .75rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-mid);
  border-radius: 5px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover   { color: var(--ink); background: var(--bg); }
.nav-links a.active  { color: var(--blue); font-weight: 600; }

/* YouTube CTA in nav */
.nav-yt {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem .85rem;
  background: var(--ink);
  color: #fff !important;
  border-radius: 5px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .15s !important;
}
.nav-yt:hover { background: var(--blue) !important; }
.nav-yt svg   { width: 14px; height: 14px; flex-shrink: 0; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  padding: .35rem .55rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--bg-white);
  border-bottom: 1px solid var(--rule);
  padding: 3.5rem 1.5rem 3rem;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.hero-desc {
  font-size: 1rem;
  color: var(--ink-mid);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.25rem;
  border-radius: 5px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--ink-mid); }

/* YouTube card in hero */
.hero-yt-card {
  background: var(--ink);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
}
.hero-yt-card iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.hero-yt-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  background: linear-gradient(160deg, #111 0%, #1a1a2e 100%);
  color: rgba(255,255,255,.5);
  font-size: .82rem;
  text-align: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}
.hero-yt-placeholder:hover { background: linear-gradient(160deg, #1A5FA8 0%, #0f3d72 100%); color: #fff; }
.yt-play-btn {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.hero-yt-placeholder:hover .yt-play-btn { background: rgba(255,255,255,.25); }
.yt-play-btn svg { width: 20px; height: 20px; fill: #fff; }
.hero-yt-label { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.7); }

/* ── Section header ───────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: .9rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 2rem;
}
.section-head h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-head a {
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  transition: color .15s;
}
.section-head a:hover { color: var(--ink); }

/* ── Main layout ──────────────────────────────────────────── */
.content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3.5rem;
  align-items: start;
}
.main-col {}
.side-col { display: flex; flex-direction: column; gap: 2.5rem; }

/* ── Lead post ────────────────────────────────────────────── */
.lead-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.lead-post-img {
  aspect-ratio: 16/10;
  background: var(--blue-pale);
  overflow: hidden;
  border-radius: 6px;
}
.lead-post-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.lead-post:hover .lead-post-img img { transform: scale(1.03); }
.lead-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .6rem;
  display: block;
}
.lead-post h2 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: .7rem;
}
.lead-post h2 a:hover { color: var(--blue); }
.lead-post p {
  font-size: .9rem;
  color: var(--ink-mid);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.post-byline {
  font-size: .75rem;
  color: var(--ink-light);
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.post-byline span { color: var(--rule); }

/* ── Post list ────────────────────────────────────────────── */
.post-list { display: flex; flex-direction: column; gap: 0; }
.post-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.post-row:first-child { border-top: 1px solid var(--rule); }
.post-thumb {
  aspect-ratio: 4/3;
  background: var(--blue-pale);
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-row:hover .post-thumb img { transform: scale(1.05); }
.post-row-body {}
.post-row-tag {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .3rem;
  display: block;
}
.post-row h3 {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: .35rem;
  letter-spacing: -.01em;
}
.post-row h3 a:hover { color: var(--blue); }
.post-row p {
  font-size: .82rem;
  color: var(--ink-mid);
  line-height: 1.5;
  margin-bottom: .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-row .post-byline { font-size: .7rem; }

/* ── Sidebar ──────────────────────────────────────────────── */
.side-block {}
.side-block h3 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.1rem;
}

/* About side */
.about-side {
  padding: 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.about-side .logo-img { height: 48px; margin-bottom: .9rem; }
.about-side p {
  font-size: .82rem;
  color: var(--ink-mid);
  line-height: 1.6;
  margin-bottom: .9rem;
}
.side-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.side-link {
  font-size: .75rem;
  font-weight: 600;
  color: var(--blue);
  border: 1px solid var(--blue-pale);
  background: var(--blue-pale);
  padding: .25rem .65rem;
  border-radius: 3px;
  transition: background .15s, color .15s;
}
.side-link:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* YouTube side */
.yt-side {
  background: var(--ink);
  border-radius: 6px;
  padding: 1.25rem;
  color: #fff;
}
.yt-side h3 {
  color: rgba(255,255,255,.5);
  border-color: rgba(255,255,255,.15);
  margin-bottom: 1rem;
}
.yt-side p {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.yt-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #FF0000;
  color: #fff;
  padding: .55rem 1rem;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 700;
  transition: opacity .15s;
  width: fit-content;
}
.yt-btn:hover { opacity: .9; }
.yt-btn svg { width: 16px; height: 16px; fill: #fff; }

/* Recent posts side */
.side-post-list { display: flex; flex-direction: column; gap: 0; }
.side-post {
  display: flex;
  gap: .75rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}
.side-post:last-child { border-bottom: none; }
.side-post-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--rule);
  line-height: 1;
  flex-shrink: 0;
  padding-top: .1rem;
  min-width: 1.5rem;
}
.side-post h4 {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: .2rem;
}
.side-post h4 a:hover { color: var(--blue); }
.side-post .date { font-size: .7rem; color: var(--ink-light); }

/* Topics side */
.topic-list { display: flex; flex-direction: column; gap: 0; }
.topic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .85rem;
  color: var(--ink-mid);
  transition: color .15s;
  text-decoration: none;
}
.topic-item:last-child { border-bottom: none; }
.topic-item:hover { color: var(--blue); }
.topic-count {
  font-size: .7rem;
  font-weight: 600;
  color: var(--ink-light);
}

/* ── YouTube feature strip ────────────────────────────────── */
.yt-strip {
  background: var(--bg-white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 3rem 1.5rem;
}
.yt-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.yt-strip-text h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: .6rem;
  line-height: 1.2;
}
.yt-strip-text p {
  font-size: .92rem;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 400px;
}
.yt-strip-embed {
  aspect-ratio: 16/9;
  background: var(--ink);
  border-radius: 8px;
  overflow: hidden;
}
.yt-strip-embed iframe { width: 100%; height: 100%; border: none; }
.yt-strip-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  background: var(--ink);
  color: rgba(255,255,255,.4);
  font-size: .8rem;
  text-align: center;
  padding: 1.5rem;
  text-decoration: none;
  transition: background .2s;
}
.yt-strip-placeholder:hover { background: #1a1a2e; color: rgba(255,255,255,.7); }

/* ── Archive page ─────────────────────────────────────────── */
.archive-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.archive-intro {
  max-width: 560px;
  margin-bottom: 3rem;
}
.archive-intro h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); margin-bottom: .5rem; }
.archive-intro p  { font-size: .95rem; color: var(--ink-mid); line-height: 1.65; }
.archive-year-block { margin-bottom: 2.5rem; }
.archive-year {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-light);
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1rem;
}
.archive-entries { display: flex; flex-direction: column; }
.archive-entry {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.archive-date {
  font-size: .75rem;
  color: var(--ink-light);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.archive-entry h3 {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}
.archive-entry h3 a:hover { color: var(--blue); }
.archive-tag {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-left: .5rem;
}

/* ── Single post ──────────────────────────────────────────── */
.post-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: var(--max-prose) 1fr;
  gap: 4rem;
  align-items: start;
}
.post-header { margin-bottom: 2rem; }
.post-header .lead-tag { margin-bottom: .6rem; }
.post-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: .75rem;
}
.post-header .post-byline { margin-bottom: 1.5rem; }
.post-cover {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--blue-pale);
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 2rem;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { max-width: var(--max-prose); }
.post-body h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 2rem 0 .6rem; }
.post-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 1.5rem 0 .5rem; }
.post-body p  { font-size: .97rem; color: var(--ink-mid); line-height: 1.8; margin-bottom: 1rem; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.post-body li { font-size: .97rem; color: var(--ink-mid); line-height: 1.7; margin-bottom: .3rem; }
.post-body ul li { list-style: disc; }
.post-body ol li { list-style: decimal; }
.post-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.post-body blockquote {
  border-left: 3px solid var(--blue);
  padding: .75rem 1.25rem;
  margin: 1.25rem 0;
  background: var(--blue-pale);
  border-radius: 0 4px 4px 0;
  font-size: .95rem;
  font-style: italic;
  color: var(--ink-mid);
}
.post-body code {
  background: #F0F0ED;
  padding: .15em .4em;
  border-radius: 3px;
  font-size: .87em;
  font-family: var(--mono);
  color: var(--ink);
}
.post-body pre {
  background: var(--ink);
  color: #E8E8E8;
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1rem;
  font-size: .84rem;
  font-family: var(--mono);
  line-height: 1.6;
}
.post-body pre code { background: none; color: inherit; padding: 0; font-size: inherit; }

/* ── Page header ──────────────────────────────────────────── */
.page-head {
  background: var(--bg-white);
  border-bottom: 1px solid var(--rule);
  padding: 2.5rem 1.5rem;
}
.page-head-inner { max-width: var(--max-w); margin: 0 auto; }
.page-head h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); margin-bottom: .3rem; }
.page-head p  { font-size: .92rem; color: var(--ink-mid); }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  font-size: .75rem;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
  display: flex;
  gap: .4rem;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue); }

/* ── About page ───────────────────────────────────────────── */
.about-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}
.about-main h2 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); margin-bottom: .3rem; }
.about-main .role { font-size: .88rem; font-weight: 600; color: var(--blue); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.5rem; }
.about-main p { font-size: .97rem; color: var(--ink-mid); line-height: 1.8; margin-bottom: 1rem; }
.about-main h3 { font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin: 2rem 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule); }
.timeline { display: flex; flex-direction: column; gap: .75rem; }
.tl-row { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: baseline; }
.tl-year { font-size: .78rem; font-weight: 700; color: var(--blue); }
.tl-text { font-size: .88rem; color: var(--ink-mid); line-height: 1.5; }
.about-side-col {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-card {
  background: var(--bg-white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.5rem;
}
.about-card h3 { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 1rem; }
.about-card .logo-img { height: 44px; margin-bottom: 1rem; }

/* ── Contact page ─────────────────────────────────────────── */
.contact-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.contact-wrap h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .78rem; font-weight: 600; color: var(--ink); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .6rem .8rem;
  border: 1px solid var(--rule);
  border-radius: 5px;
  font-size: .9rem;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-white);
  outline: none;
  transition: border-color .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--blue); }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-submit {
  margin-top: .5rem;
  padding: .7rem 2rem;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background .15s;
}
.form-submit:hover { background: var(--blue); }
.form-note { font-size: .78rem; color: var(--ink-light); margin-top: .75rem; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.5);
}
.footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-img { height: 50px; margin-bottom: 1rem; filter: brightness(0) invert(1) opacity(.7); }
.footer-brand p { font-size: .83rem; line-height: 1.65; max-width: 280px; margin-bottom: 1rem; }
.footer-social { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-social a {
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.12);
  padding: .28rem .65rem;
  border-radius: 3px;
  transition: color .15s, border-color .15s;
}
.footer-social a:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.footer-col h4 {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: .9rem;
}
.footer-col li { margin-bottom: .35rem; }
.footer-col a { font-size: .83rem; color: rgba(255,255,255,.5); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .75rem;
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: color .15s; }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .3rem;
  padding: 2.5rem 0 0;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-mid);
  background: var(--bg-white);
  transition: all .15s;
}
.pagination a:hover, .pagination .current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner  { grid-template-columns: 1fr; }
  .hero-yt-card { max-width: 480px; }
  .content-wrap { grid-template-columns: 1fr; }
  .side-col { display: grid; grid-template-columns: 1fr 1fr; }
  .lead-post { grid-template-columns: 1fr; }
  .yt-strip-inner { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .post-wrap { grid-template-columns: 1fr; }
  /* fix: grid children default to min-width:auto which prevents shrinking */
  .post-wrap > article,
  .post-wrap > aside { min-width: 0; }
  .about-wrap { grid-template-columns: 1fr; }
  .about-side-col { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  /* hamburger nav activates at 860px so tablet never gets a cramped nav */
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    left: 0; right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--rule);
    padding: .5rem .75rem 1rem;
    flex-direction: column;
    gap: .1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .55rem .75rem; border-radius: 4px; }
}
/* ── Newsletter / email capture ───────────────────────────── */
.nl-strip {
  background: var(--ink);
  padding: 3.5rem 1.5rem;
}
.nl-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.nl-strip-text .nl-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .6rem;
}
.nl-strip-text h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.nl-strip-text p {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin-bottom: 0;
}
.nl-incentive {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1rem;
  margin-bottom: 0;
}
.nl-incentive li {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  gap: .5rem;
  list-style: none;
}
.nl-incentive li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
}
.nl-form-box {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 1.75rem;
}
.nl-form-box h3 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.25rem;
}
.nl-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.nl-form input[type="text"],
.nl-form input[type="email"] {
  width: 100%;
  padding: .7rem .9rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 5px;
  color: #fff;
  font-family: var(--sans);
  font-size: .88rem;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.nl-form input::placeholder { color: rgba(255,255,255,.3); }
.nl-form input:focus { border-color: var(--blue); }
.nl-submit {
  display: block;
  width: 100%;
  padding: .75rem 1rem;
  background: var(--blue);
  color: #fff !important;
  border: none;
  border-radius: 5px;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  transition: opacity .15s;
  box-sizing: border-box;
}
.nl-submit:hover { opacity: .88; }
.nl-form .nl-submit {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.nl-form .nl-submit:hover { opacity: .88; }
.nl-note {
  font-size: .72rem;
  color: rgba(255,255,255,.25);
  text-align: center;
  margin-top: .25rem;
}
.nl-success {
  display: none;
  text-align: center;
  padding: 1.5rem 0;
  color: #fff;
}
.nl-success p { font-size: .95rem; color: rgba(255,255,255,.7); margin-top: .4rem; }

/* Sidebar newsletter widget */
.side-nl {
  background: var(--ink);
  border-color: var(--ink) !important;
}
.side-nl h3 { color: rgba(255,255,255,.45) !important; }
.side-nl p { color: rgba(255,255,255,.55); font-size: .82rem; line-height: 1.6; margin-bottom: .9rem; }
.side-nl-form { display: flex; flex-direction: column; gap: .6rem; }
.side-nl-form input[type="email"] {
  width: 100%;
  padding: .6rem .8rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 5px;
  color: #fff;
  font-family: var(--sans);
  font-size: .82rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s;
}
.side-nl-form input::placeholder { color: rgba(255,255,255,.3); }
.side-nl-form input:focus { border-color: var(--blue); }
.side-nl-form button {
  width: 100%;
  padding: .6rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.side-nl-form button:hover { opacity: .88; }
.side-nl .nl-note { margin-top: .3rem; }

/* Post-bottom CTA */
.post-nl-cta {
  background: var(--ink);
  border-radius: 8px;
  padding: 2rem 2.25rem;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.post-nl-cta .nl-eyebrow {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .4rem;
}
.post-nl-cta h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
  line-height: 1.3;
}
.post-nl-cta p { font-size: .83rem; color: rgba(255,255,255,.5); line-height: 1.6; }
.post-nl-form { display: flex; flex-direction: column; gap: .6rem; }
.post-nl-form input[type="email"] {
  width: 100%;
  padding: .65rem .85rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 5px;
  color: #fff;
  font-family: var(--sans);
  font-size: .85rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s;
}
.post-nl-form input::placeholder { color: rgba(255,255,255,.3); }
.post-nl-form input:focus { border-color: var(--blue); }
.post-nl-form button {
  width: 100%;
  padding: .65rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.post-nl-form button:hover { opacity: .88; }

/* Newsletter landing page */
.nl-page-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.nl-hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--rule);
}
.nl-hero-text .nl-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.nl-hero-text h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1rem;
}
.nl-hero-text p { font-size: .97rem; color: var(--ink-mid); line-height: 1.75; margin-bottom: 1rem; }
.nl-perks { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin: 1.25rem 0; }
.nl-perks li {
  font-size: .88rem;
  color: var(--ink-mid);
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  line-height: 1.5;
}
.nl-perks li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
  margin-top: .05rem;
}
.nl-card {
  background: var(--ink);
  border-radius: 10px;
  padding: 2rem;
  position: sticky;
  top: 80px;
}
.nl-card-eyebrow {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1rem;
}
.nl-card h2 { font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: -.02em; margin-bottom: .5rem; }
.nl-card p { font-size: .82rem; color: rgba(255,255,255,.5); line-height: 1.6; margin-bottom: 1.25rem; }
.nl-page-form { display: flex; flex-direction: column; gap: .7rem; }
.nl-page-form input {
  width: 100%;
  padding: .75rem .95rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 5px;
  color: #fff;
  font-family: var(--sans);
  font-size: .88rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s;
}
.nl-page-form input::placeholder { color: rgba(255,255,255,.3); }
.nl-page-form input:focus { border-color: var(--blue); }
.nl-page-form button {
  width: 100%;
  padding: .8rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.nl-page-form button:hover { opacity: .88; }
.nl-social-proof {
  font-size: .72rem;
  color: rgba(255,255,255,.25);
  text-align: center;
  margin-top: .4rem;
}

@media (max-width: 760px) {
  .nl-strip-inner { grid-template-columns: 1fr; gap: 2rem; }
  .post-nl-cta { grid-template-columns: 1fr; }
  .nl-hero { grid-template-columns: 1fr; }
  .nl-card { position: static; }
}

@media (max-width: 580px) {
  .post-row { grid-template-columns: 90px 1fr; }
  .side-col { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .about-side-col { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .archive-entry { grid-template-columns: 50px 1fr; }
  .hero-desc { max-width: 100%; }
  .nl-features-grid { grid-template-columns: 1fr !important; }
  .post-wrap > article pre,
  .post-wrap > article code { max-width: 100%; }
}
