@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap");

/* ══════════════════════════════════════
   EDITORIAL INK — Base theme (modern)
   ══════════════════════════════════════ */

:root {
  color-scheme: light;

  /* Typography */
  --font-display: "Sora", sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  /* Palette */
  --ink: #0a0a0b;
  --ink-soft: #2a2a2e;
  --ink-muted: #6e6e78;
  --paper: #faf9f7;
  --paper-warm: #f4f1ec;
  --surface: #ffffff;
  --rule: rgba(10, 10, 11, 0.10);
  --rule-strong: rgba(10, 10, 11, 0.20);

  /* Accent — warm coral */
  --accent: #e54d2e;
  --accent-hover: #c9371a;
  --accent-glow: rgba(229, 77, 46, 0.12);
  --accent-wash: rgba(229, 77, 46, 0.06);

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(10, 10, 11, 0.04);
  --shadow-md: 0 4px 20px rgba(10, 10, 11, 0.06);
  --shadow-lg: 0 12px 48px rgba(10, 10, 11, 0.08);
  --shadow-image: 0 8px 32px rgba(10, 10, 11, 0.12);

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
}

/* ── Reset ── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-optical-sizing: auto;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background: var(--paper);
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--accent-hover); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ══════════════════════════════════════
   INDEX PAGE
   ══════════════════════════════════════ */

.blog-index {
  width: min(1080px, calc(100vw - 3rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0 5rem;
}

/* ── Masthead ── */

.blog-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-bottom: 2rem;
  border-bottom: 3px solid var(--ink);
  position: relative;
}

.blog-header::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--accent);
}

.blog-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--ink);
  text-transform: uppercase;
}

/* ── Featured story ── */

.featured-post {
  margin-bottom: clamp(3rem, 5vw, 4rem);
  position: relative;
}

.featured-post-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1.15fr 1fr;
  align-items: start;
}

.featured-post-text h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.featured-post-text h2 a { color: var(--ink); }
.featured-post-text h2 a:hover { color: var(--accent); }

.featured-post-text .post-subtitle {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.featured-post-text .post-summary {
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.featured-post-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
}

.featured-post-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: multiply;
}

.featured-post-image img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-image);
}

.featured-post-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: border-color 150ms, color 150ms;
}

.featured-post-cta:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ── Post grid ── */

.post-list-section {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.post-list-section h2 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.post-list {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 250ms cubic-bezier(0.2, 0, 0, 1), box-shadow 250ms ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card-image {
  display: block;
  position: relative;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.2, 0, 0, 1);
}

.post-card:hover .post-card-image img {
  transform: scale(1.04);
}

.post-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: grid;
  gap: 0.45rem;
}

.post-card-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.post-card-body h3 a { color: var(--ink); }
.post-card-body h3 a:hover { color: var(--accent); }

.post-card-body .post-subtitle {
  margin: 0;
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.post-card-body .post-summary {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ══════════════════════════════════════
   SHARED COMPONENTS
   ══════════════════════════════════════ */

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.theme-badge {
  display: inline-flex;
  padding: 0.22rem 0.6rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reading-time {
  display: inline-flex;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 700;
}

.tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tags li {
  display: inline-flex;
  padding: 0.18rem 0.55rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--rule-strong);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ══════════════════════════════════════
   POST PAGE
   ══════════════════════════════════════ */

.post-page {
  width: min(1080px, calc(100vw - 3rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0 5rem;
}

.post {
  display: grid;
  gap: 2.5rem;
}

/* ── Post header ── */

.post-header {
  max-width: 44rem;
}

.post-header h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
}

.post-header .post-subtitle {
  margin: 0 0 1.25rem;
  font-style: italic;
  color: var(--ink-muted);
  font-size: 1.15rem;
  line-height: 1.5;
}

.post-header .post-summary {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--paper-warm);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

/* ── Hero image ── */

.post-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  margin: 0;
}

.post-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: multiply;
}

.post-hero img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  box-shadow: var(--shadow-image);
}

/* ══════════════════════════════════════
   POST BODY — The reading experience
   ══════════════════════════════════════ */

.post-body {
  max-width: 38rem;
  width: 100%;
}

.post-body > * + * { margin-top: 1.5rem; }

.post-body p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.82;
  hanging-punctuation: first;
}

.post-body > p:first-child::first-line {
  font-weight: 600;
  color: var(--ink);
}

/* Headings */
.post-body h1, .post-body h2, .post-body h3,
.post-body h4, .post-body h5, .post-body h6 {
  margin: 0;
  margin-top: 2.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.post-body h2 {
  font-size: 1.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--rule);
}

.post-body h3 { font-size: 1.25rem; }
.post-body h4 { font-size: 1.1rem; }

/* Links */
.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-glow);
  transition: text-decoration-color 150ms;
}
.post-body a:hover { text-decoration-color: var(--accent); }

/* Lists */
.post-body ul, .post-body ol {
  margin: 0;
  padding-left: 1.4rem;
}

.post-body li {
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
  line-height: 1.72;
}

.post-body li::marker { color: var(--accent); }

/* Inline code */
.post-body code {
  padding: 0.12rem 0.4rem;
  border-radius: var(--r-sm);
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: var(--ink);
}

/* Code blocks */
.post-body pre {
  margin: 0;
  padding: 1.4rem 1.6rem;
  border-radius: var(--r-lg);
  background: var(--ink);
  overflow-x: auto;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.post-body pre code {
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  color: #d4d4d8;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
}

/* Tables */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-family: var(--font-display);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  overflow: hidden;
}

.post-body thead { background: var(--ink); color: white; }
.post-body th {
  padding: 0.65rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-body td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}

.post-body tbody tr:last-child td { border-bottom: none; }
.post-body tbody tr:nth-child(even) { background: var(--paper-warm); }

/* Blockquotes */
.post-body blockquote {
  margin: 0;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.post-body blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--ink-soft);
}

.post-body blockquote p + p { margin-top: 0.75rem; }

/* Task lists */
.post-body ul.contains-task-list { list-style: none; padding-left: 0; }
.post-body .task-list-item { display: flex; align-items: baseline; gap: 0.5rem; }

.post-body input[type="checkbox"] {
  appearance: none;
  width: 1em;
  height: 1em;
  border: 2px solid var(--rule-strong);
  border-radius: 3px;
  flex-shrink: 0;
  position: relative;
  top: 0.12em;
}

.post-body input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.post-body input[type="checkbox"]:checked::after {
  content: "\2713";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.65em;
  font-weight: bold;
}

/* Footnotes */
.post-body .footnotes {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.post-body .footnotes ol { padding-left: 1.25rem; }
.post-body .footnotes li { margin-bottom: 0.5rem; }
.post-body sup a { color: var(--accent); text-decoration: none; font-weight: 700; }

/* Inline formatting */
.post-body del { color: var(--ink-muted); text-decoration: line-through; }
.post-body mark { padding: 0.1rem 0.25rem; border-radius: 2px; background: #fde68a; }
.post-body hr { margin: 3rem 0; border: none; border-top: 1px solid var(--rule); }

/* ── Key Takeaways ── */

.takeaways-card {
  padding: 1.5rem 1.75rem;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}

.takeaways-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.takeaways-card .section-label {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.takeaways-card h2 {
  margin: 0 0 0.75rem !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  font-size: 1.15rem !important;
}

.takeaways-card ul { margin: 0; padding-left: 1.25rem; }
.takeaways-card li { margin-bottom: 0.4rem; color: var(--ink-soft); }

/* ── Post images ── */

.post-inline-image {
  max-width: 44rem;
  margin: 2rem 0;
}

.post-inline-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-image);
}

/* ── Post reactions ── */

.post-reactions {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.post-reactions h2 {
  margin: 0;
  font-size: 1.1rem;
}

.post-reactions-subtitle {
  margin: 0.5rem 0 0;
  color: var(--ink-muted);
}

.post-reaction-list {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.post-reaction-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.post-reaction-button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.post-reaction-button.is-active {
  border-color: var(--accent);
  background: var(--accent-wash);
}

.post-reaction-emoji {
  font-size: 1rem;
  line-height: 1;
}

.post-reaction-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.post-reaction-count {
  min-width: 1.4rem;
  text-align: center;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ══════════════════════════════════════
   THEMES — CSS variable overrides
   ══════════════════════════════════════ */

/* Tech: cool cyan, geometric and high-contrast */
[data-theme="tech"] {
  --font-display: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --accent: #0891b2;
  --accent-hover: #155e75;
  --accent-glow: rgba(14, 116, 144, 0.2);
  --accent-wash: rgba(8, 145, 178, 0.1);
  --paper: #f3f8fb;
  --paper-warm: #e8f2f8;
  --surface: #ffffff;
  --ink: #0b1723;
  --ink-soft: #1f3446;
  --rule: #c8dceb;
}

[data-theme="tech"] .blog-header h1 {
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

[data-theme="tech"] .blog-header p {
  max-width: 68ch;
  color: #35526b;
}

[data-theme="tech"] .theme-badge {
  border-radius: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-theme="tech"] .featured-post-card,
[data-theme="tech"] .post-card {
  border-radius: 1rem;
  border-width: 1.5px;
  box-shadow: 0 14px 30px -24px rgba(8, 38, 65, 0.5);
}

[data-theme="tech"] .featured-post-content,
[data-theme="tech"] .post-card-content {
  gap: 0.8rem;
}

[data-theme="tech"] .featured-post-card {
  background-image:
    linear-gradient(120deg, rgba(8, 145, 178, 0.1), rgba(8, 145, 178, 0)),
    linear-gradient(180deg, #ffffff, #f5fbff);
}

[data-theme="tech"] .post-title {
  line-height: 1.15;
}

[data-theme="tech"] .post-title a::after,
[data-theme="tech"] .post-title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--accent), transparent);
}

[data-theme="tech"] .post-hero img,
[data-theme="tech"] .featured-post-image img,
[data-theme="tech"] .post-card-image img {
  border-radius: 0.65rem;
}

[data-theme="tech"] .post-body code,
[data-theme="tech"] .post-body pre {
  border-radius: 0.35rem;
}

[data-theme="tech"] .post-body h2,
[data-theme="tech"] .post-body h3 {
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

[data-theme="tech"] .post-body h2::before,
[data-theme="tech"] .post-body h3::before {
  content: "// ";
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

[data-theme="tech"] .post-body a {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

[data-theme="tech"] .post-body blockquote {
  border-left-width: 0.3rem;
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.08), rgba(8, 145, 178, 0));
  border-radius: 0.4rem;
}

/* Editorial: warm and literary, serif-forward */
[data-theme="editorial"] {
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --accent: #9a3412;
  --accent-hover: #7c2d12;
  --accent-glow: rgba(154, 52, 18, 0.14);
  --accent-wash: rgba(154, 52, 18, 0.08);
  --paper: #fdf8f1;
  --paper-warm: #f7efe2;
  --surface: #fffdf9;
  --ink: #2f2621;
  --ink-soft: #4a3d35;
  --rule: #dfd2c2;
}

[data-theme="editorial"] .blog-header {
  text-align: center;
}

[data-theme="editorial"] .blog-header::after {
  width: 9rem;
  border-radius: 999px;
}

[data-theme="editorial"] .blog-header h1 {
  font-size: clamp(3.3rem, 8vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

[data-theme="editorial"] .blog-header p {
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.12rem;
  line-height: 1.9;
}

[data-theme="editorial"] .theme-badge {
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0.02em;
}

[data-theme="editorial"] .featured-post-card,
[data-theme="editorial"] .post-card {
  border-radius: 0.2rem;
  box-shadow: none;
}

[data-theme="editorial"] .featured-post-content,
[data-theme="editorial"] .post-card-content {
  gap: 1.1rem;
}

[data-theme="editorial"] .featured-post-card {
  background-image: linear-gradient(180deg, #fffdf8, #f9f0e2);
}

[data-theme="editorial"] .post-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
}

[data-theme="editorial"] .post-title a {
  text-decoration: none;
}

[data-theme="editorial"] .post-body {
  max-width: 66ch;
  font-size: 1.13rem;
  line-height: 1.92;
  text-align: justify;
  text-wrap: pretty;
}

[data-theme="editorial"] .post-body p {
  margin: 1.2em 0;
}

[data-theme="editorial"] .post-body p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.2em;
  line-height: 0.85;
  padding-right: 0.1em;
  margin-top: 0.04em;
  color: var(--accent);
}

[data-theme="editorial"] .post-body blockquote {
  font-style: italic;
  border-left-width: 0.22rem;
  background: rgba(154, 52, 18, 0.03);
}

[data-theme="editorial"] .post-body h2,
[data-theme="editorial"] .post-body h3 {
  margin-top: 2.1em;
  letter-spacing: 0.01em;
  text-transform: none;
}

[data-theme="editorial"] .post-body h2 {
  font-size: clamp(1.75rem, 3vw, 2.2rem);
}

[data-theme="editorial"] .post-body h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

[data-theme="editorial"] .post-body a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.08em;
}

[data-theme="editorial"] .post-hero img,
[data-theme="editorial"] .featured-post-image img,
[data-theme="editorial"] .post-card-image img {
  filter: saturate(0.88) contrast(0.95);
  border-radius: 0.2rem;
}

[data-theme="editorial"] .post-body code {
  font-size: 0.9em;
  background: rgba(143, 90, 53, 0.1);
}

[data-theme="editorial"] .post-meta,
[data-theme="editorial"] .post-list-meta {
  letter-spacing: 0.01em;
}

/* Bold: vivid rose, high energy */
[data-theme="bold"] {
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --accent-glow: rgba(220, 38, 38, 0.12);
  --accent-wash: rgba(220, 38, 38, 0.05);
}

/* Minimal: stripped back, ink-only */
[data-theme="minimal"] {
  --accent: var(--ink);
  --accent-hover: var(--ink-soft);
  --accent-glow: rgba(10, 10, 11, 0.06);
  --accent-wash: rgba(10, 10, 11, 0.03);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 768px) {
  .featured-post-grid { grid-template-columns: 1fr; }
  .featured-post-image { order: -1; }
  .featured-post-image img { max-height: 260px; }
  .post-hero img { max-height: 320px; }
  .post-list { grid-template-columns: 1fr; }
  .blog-header h1 { font-size: clamp(2.8rem, 10vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

[data-topic="tech"] {
  --blog-accent: #0f766e;
  --blog-bg: #f3fbfb;
}

[data-topic="food"] {
  --blog-accent: #c2410c;
  --blog-bg: #fff7ed;
}

[data-topic="culture"] {
  --blog-accent: #7c3aed;
  --blog-bg: #f6f1ff;
}

[data-topic="sports"] {
  --blog-accent: #b91c1c;
  --blog-bg: #fff5f5;
}

.blog-index-page,
.blog-post-page {
  background: var(--blog-bg, var(--paper));
}

.post-shell--narrow .post-header,
.post-shell--narrow .post-body,
.post-shell--narrow .post-reactions,
.post-shell--narrow .post-inline-image {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.post-shell--medium .post-header,
.post-shell--medium .post-body,
.post-shell--medium .post-reactions,
.post-shell--medium .post-inline-image {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}

.post-shell--wide .post-header,
.post-shell--wide .post-body,
.post-shell--wide .post-reactions,
.post-shell--wide .post-inline-image {
  max-width: 62rem;
  margin-left: auto;
  margin-right: auto;
}

.post-shell--immersive-feature .post-header {
  max-width: 60rem;
}

.post-shell--essay-quote .post-kicker {
  letter-spacing: 0.18em;
}

.post-hero--split-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.post-hero--image-led img,
.post-hero--full-bleed img,
.post-hero--split-hero img {
  width: 100%;
}

.featured-post--modular-split .featured-post-grid {
  grid-template-columns: 1fr 1.15fr;
}

@media (max-width: 768px) {
  .post-hero--split-hero {
    grid-template-columns: 1fr;
  }
}