/* ============================================================
   Ink Persuasion — Blog
   Matches the Ink (dark editorial) theme of the main site.
   Display: Newsreader · Body: Geist
   ============================================================ */

:root {
  --bg:        oklch(0.10 0.025 270);
  --bg-alt:    oklch(0.14 0.025 270);
  --bg-card:   oklch(0.165 0.022 270);
  --fg:        oklch(0.95 0.01 80);
  --fg-muted:  oklch(0.66 0.012 80);
  --fg-faint:  oklch(0.50 0.01 80);
  --accent:    oklch(0.72 0.22 28);
  --accent-hi: oklch(0.78 0.20 28);
  --border:    oklch(0.24 0.02 270);
  --border-soft: oklch(0.20 0.02 270);

  --display: 'Newsreader', Georgia, serif;
  --body: 'Geist', system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --read: 720px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 5vw;
  background: oklch(0.10 0.025 270 / 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { width: 30px; height: 30px; object-fit: contain; }
.nav__word {
  font-family: var(--display);
  font-weight: 600; font-size: 19px; letter-spacing: -0.01em;
  color: var(--fg);
}
.nav__word b { font-weight: 600; color: var(--accent); }
.nav__links { display: flex; gap: 30px; font-size: 14px; color: var(--fg-muted); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--fg); }
.nav__cta {
  font-family: var(--body); font-size: 14px; font-weight: 600;
  padding: 9px 22px; border-radius: 100px;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  transition: opacity .2s, transform .15s;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; white-space: nowrap;
}
.nav__cta:hover { opacity: .88; transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ── Generic section frame ───────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 5vw; }
.eyebrow {
  font-family: var(--body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}

/* ── Blog index hero ─────────────────────────────── */
.idx-hero { padding: 96px 0 56px; border-bottom: 1px solid var(--border-soft); }
.idx-hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 5vw; }
.idx-hero h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(48px, 8vw, 96px); line-height: 1.0; letter-spacing: -0.01em;
  margin: 22px 0 0;
}
.idx-hero h1 em { font-style: italic; color: var(--accent); }
.idx-hero p {
  color: var(--fg-muted); font-size: clamp(17px, 2vw, 20px);
  max-width: 560px; margin-top: 22px; line-height: 1.55;
}

/* ── Article list ────────────────────────────────── */
.posts { padding: 56px 0 120px; }
.posts__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 5vw; }
.post-card {
  display: grid; grid-template-columns: 180px 1fr auto; gap: 40px;
  align-items: start;
  padding: 40px 0; border-bottom: 1px solid var(--border-soft);
  transition: opacity .2s;
}
.post-card:first-child { border-top: 1px solid var(--border-soft); }
.post-card:hover { opacity: 1; }
.post-card:hover .post-card__title { color: var(--accent); }
.post-card__meta { font-size: 13px; color: var(--fg-faint); line-height: 1.7; }
.post-card__cat { color: var(--accent); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }
.post-card__title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.01em;
  transition: color .2s; max-width: 620px;
}
.post-card__excerpt { color: var(--fg-muted); font-size: 16px; margin-top: 14px; max-width: 620px; line-height: 1.55; }
.post-card__arrow {
  font-family: var(--display); font-size: 30px; color: var(--fg-faint);
  transition: color .2s, transform .2s;
}
.post-card:hover .post-card__arrow { color: var(--accent); transform: translateX(4px); }

@media (max-width: 820px) {
  .post-card { grid-template-columns: 1fr; gap: 14px; }
  .post-card__arrow { display: none; }
}

/* ── Article page ────────────────────────────────── */
.article { padding: 72px 0 40px; }
.article__head { max-width: var(--read); margin: 0 auto; padding: 0 24px; }
.breadcrumb { font-size: 13px; color: var(--fg-faint); margin-bottom: 28px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--accent); }
.article__cat {
  font-family: var(--body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.article h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(34px, 5.2vw, 60px); line-height: 1.08; letter-spacing: -0.015em;
  margin: 20px 0 0;
  text-wrap: balance;
}
.article__dek {
  font-family: var(--display); font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; color: var(--fg-muted);
  margin-top: 26px;
}
.article__byline {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--border-soft);
  font-size: 14px; color: var(--fg-muted);
}
.article__byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--fg-faint); }
.article__byline b { color: var(--fg); font-weight: 600; }

/* Article body */
.article__body { max-width: var(--read); margin: 8px auto 0; padding: 0 24px; }
.article__body > * { margin-top: 0; }
.article__body p {
  font-size: 19px; line-height: 1.72; color: oklch(0.86 0.012 80);
  margin-top: 26px;
}
.article__body p.lead {
  font-size: 22px; line-height: 1.6; color: var(--fg);
  margin-top: 40px;
}
.article__body h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; letter-spacing: -0.01em;
  color: var(--fg);
  margin-top: 64px;
}
.article__body h3 {
  font-family: var(--body); font-weight: 600;
  font-size: 20px; color: var(--fg); margin-top: 40px;
}
.article__body h2 + p, .article__body h3 + p { margin-top: 18px; }

.article__body strong { color: var(--fg); font-weight: 600; }
.article__body em { font-style: italic; }

.article__body a.inline {
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: oklch(0.72 0.22 28 / 0.4); transition: text-decoration-color .2s;
}
.article__body a.inline:hover { text-decoration-color: var(--accent); }

.article__body ul, .article__body ol {
  margin-top: 24px; padding-left: 0; list-style: none;
}
.article__body ol { counter-reset: li; }
.article__body li {
  position: relative; font-size: 19px; line-height: 1.65;
  color: oklch(0.86 0.012 80); padding-left: 34px; margin-top: 14px;
}
.article__body ul li::before {
  content: ""; position: absolute; left: 6px; top: 13px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
.article__body ol li { counter-increment: li; }
.article__body ol li::before {
  content: counter(li); position: absolute; left: 0; top: 1px;
  font-family: var(--display); font-size: 16px; font-weight: 600;
  color: var(--accent); width: 22px; text-align: left;
}

/* Pull quote */
.pullquote {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(24px, 3.4vw, 34px); line-height: 1.3; color: var(--fg);
  margin: 52px 0; padding-left: 30px;
  border-left: 3px solid var(--accent);
  text-wrap: balance;
}

/* Code block */
.codeblock {
  margin-top: 28px;
  background: oklch(0.075 0.02 270);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  overflow-x: auto;
}
.codeblock pre {
  font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 14.5px; line-height: 1.7; color: oklch(0.82 0.02 200);
  white-space: pre;
}
.codeblock .c-key { color: oklch(0.78 0.18 28); }
.codeblock .c-str { color: oklch(0.80 0.14 150); }
.codeblock .c-mut { color: var(--fg-faint); }
.codeblock .c-hi { color: var(--accent-hi); }

.codeblock__label {
  font-family: var(--body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint);
  margin-bottom: 14px;
}

/* Callout */
.callout {
  margin-top: 32px; padding: 26px 28px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px;
}
.callout p { margin-top: 0; font-size: 18px; }
.callout p + p { margin-top: 14px; }

/* Sources */
.sources {
  max-width: var(--read); margin: 80px auto 0; padding: 40px 24px 0;
  border-top: 1px solid var(--border-soft);
}
.sources h2 { font-family: var(--display); font-weight: 500; font-size: 26px; margin-bottom: 8px; }
.sources ol { counter-reset: src; list-style: none; }
.sources li {
  position: relative; counter-increment: src; padding-left: 30px;
  margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--fg-muted);
}
.sources li::before {
  content: counter(src); position: absolute; left: 0; top: 0;
  font-family: var(--display); font-weight: 600; color: var(--accent);
}
.sources a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }

/* ── Article CTA ─────────────────────────────────── */
.article-cta {
  margin-top: 96px; padding: 80px 5vw; text-align: center;
  background: var(--bg-alt); border-top: 1px solid var(--border-soft);
}
.article-cta img { width: 52px; height: 52px; object-fit: contain; }
.article-cta h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(32px, 5vw, 56px); line-height: 1.08; margin: 22px 0 0;
}
.article-cta h2 em { font-style: italic; color: var(--accent); }
.article-cta p { color: var(--fg-muted); font-size: 18px; max-width: 520px; margin: 18px auto 32px; line-height: 1.55; }
.article-cta a.btn {
  display: inline-block;
  font-family: var(--body); font-size: 16px; font-weight: 600;
  padding: 15px 38px; border-radius: 100px;
  background: var(--accent); color: #fff;
  transition: opacity .2s, transform .15s;
}
.article-cta a.btn:hover { opacity: .88; transform: translateY(-2px); }
.article-cta .fineprint { font-size: 13px; color: var(--fg-faint); margin-top: 16px; }

/* ── Footer ──────────────────────────────────────── */
.foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding: 40px 5vw; border-top: 1px solid var(--border-soft);
  font-size: 13px; color: var(--fg-muted);
}
.foot__brand { display: flex; align-items: center; gap: 10px; }
.foot__brand img { width: 22px; height: 22px; object-fit: contain; }
.foot a:hover { color: var(--accent); }
