/* Blog pages: index, articles and the discussion widget.
   Same language as the homepage (direction-a.jsx): black canvas, mono for
   structure, editorial serif for reading, violet accent. */

:root {
  --bg: #000;
  --fg: #e8e6e3;
  --fg-strong: #fff;
  --muted: rgba(255, 255, 255, 0.6);
  --faint: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #b89cff;
  --accent-dim: #7a6aa8;
  --accent-bg: rgba(70, 50, 120, 0.3);
  --danger: #ffb4b4;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --serif: 'Fraunces', 'Instrument Serif', Georgia, serif;
  --sans: 'Archivo', 'Inter', system-ui, sans-serif;
  --gutter: 32px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* The footer stays at the bottom of short pages */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-dim); color: #fff; }

.nl-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Header / footer ───────────────────────────────────────── */

.nl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.nl-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nl-brand img { width: 40px; height: 40px; object-fit: cover; display: block; background: #000; }
.nl-wordmark {
  display: flex; align-items: baseline; gap: 2px;
  font-family: var(--serif); font-size: 22px; letter-spacing: -0.2px; text-transform: none;
}
.nl-wordmark em { color: var(--fg-strong); }
.nl-wordmark-div { color: var(--accent-dim); margin: 0 2px; }
.nl-wordmark-sec { color: var(--accent); font-family: var(--mono); font-size: 13px; letter-spacing: 1px; align-self: center; }
.nl-nav { display: flex; gap: 24px; }
.nl-nav a { color: var(--muted); text-decoration: none; transition: color 160ms ease; }
.nl-nav a:hover, .nl-nav a[aria-current='page'] { color: var(--fg-strong); }
.nl-lang { display: inline-flex; gap: 10px; padding-left: 20px; border-left: 1px solid var(--line-strong); }
.nl-lang [aria-current] { color: var(--fg-strong); }

.nl-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.nl-footer a { text-decoration: none; }
.nl-footer a:hover { color: var(--fg-strong); }

/* ── Shared ────────────────────────────────────────────────── */

.nl-main { flex: 1 0 auto; width: 100%; max-width: 1440px; margin: 0 auto; }
.nl-column { max-width: calc(720px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.nl-section-head {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--muted);
}
.nl-section-tag { color: var(--accent); white-space: nowrap; }
.nl-section-rule { flex: 1; height: 1px; background: var(--line-strong); }
.nl-section-meta { white-space: nowrap; }

/* ── Blog index ────────────────────────────────────────────── */

.nl-index { padding: 72px var(--gutter) 96px; }
.nl-index-title {
  font-family: var(--serif); font-weight: 400; font-size: 72px; line-height: 1.02; letter-spacing: -1.6px;
  color: var(--fg-strong); margin: 48px 0 16px;
}
.nl-index-dek { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 0 56px; }
.nl-index-list { list-style: none; margin: 0; padding: 0; }
.nl-index-item a {
  display: grid; grid-template-columns: 160px 1fr; gap: 32px;
  padding: 28px 0; border-top: 1px solid var(--line);
  text-decoration: none;
}
.nl-index-item:last-child a { border-bottom: 1px solid var(--line); }
.nl-index-date { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--faint); padding-top: 10px; }
.nl-badge {
  display: inline-block; margin-left: 8px; padding: 1px 6px; vertical-align: 1px;
  border: 1px solid var(--line-strong); font-size: 10px; letter-spacing: 1px; color: var(--muted);
}
.nl-index-name {
  display: block; font-family: var(--serif); font-size: 36px; line-height: 1.1; letter-spacing: -0.5px;
  color: var(--fg-strong); transition: color 160ms ease;
}
.nl-index-item a:hover .nl-index-name { color: var(--accent); }
.nl-index-desc { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 640px; }
.nl-empty { font-family: var(--mono); font-size: 12px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--faint); padding: 28px 0; border-top: 1px solid var(--line); }

/* ── Article ───────────────────────────────────────────────── */

.nl-article { padding-top: 72px; padding-bottom: 72px; }
.nl-article-title {
  font-family: var(--serif); font-weight: 400; font-size: 60px; line-height: 1.04; letter-spacing: -1.4px;
  color: var(--fg-strong); margin: 40px 0 20px; text-wrap: balance;
}
.nl-article-dek { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0 0 32px; text-wrap: pretty; }
.nl-article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--faint);
  padding-bottom: 40px; border-bottom: 1px solid var(--line); margin-bottom: 48px;
}
.nl-lang-link { color: var(--accent); text-decoration: none; }
.nl-article-note { margin: -16px 0 32px; font-size: 15px; line-height: 1.5; font-style: italic; color: var(--muted); }
.nl-article-note .nl-lang-link { font-style: normal; white-space: nowrap; }
.nl-lang-link:hover { color: var(--fg-strong); }
.nl-article-cover { margin: 0 0 48px; }
.nl-article-cover img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }

.nl-prose { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--fg); overflow-wrap: break-word; }
.nl-prose > :first-child { margin-top: 0; }
.nl-prose p, .nl-prose ul, .nl-prose ol, .nl-prose blockquote, .nl-prose pre, .nl-prose figure, .nl-prose .table-wrap { margin: 0 0 1.4em; }
.nl-prose h2 {
  font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.15; letter-spacing: -0.5px;
  color: var(--fg-strong); margin: 2em 0 0.6em;
}
.nl-prose h3 {
  font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); margin: 2.2em 0 0.8em;
}
.nl-prose h4, .nl-prose h5, .nl-prose h6 { font-family: var(--sans); font-size: 17px; color: var(--fg-strong); margin: 1.8em 0 0.6em; }
.nl-prose a { color: var(--fg-strong); text-decoration: underline; text-decoration-color: var(--accent-dim); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.nl-prose a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.nl-prose strong { color: var(--fg-strong); font-weight: 700; }
.nl-prose ul, .nl-prose ol { padding-left: 1.4em; }
.nl-prose li { margin: 0.35em 0; padding-left: 0.2em; }
.nl-prose li::marker { color: var(--accent-dim); }
.nl-prose li > p { margin: 0.4em 0; }
.nl-prose blockquote {
  margin-left: 0; padding: 0.2em 0 0.2em 1.2em; border-left: 2px solid var(--accent-dim);
  font-style: italic; color: var(--muted);
}
.nl-prose blockquote > :last-child { margin-bottom: 0; }
.nl-prose hr { border: 0; height: 1px; background: var(--line-strong); margin: 3em 0; }
.nl-prose code {
  font-family: var(--mono); font-size: 0.82em;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); padding: 0.08em 0.35em;
}
.nl-prose pre {
  font-family: var(--mono); font-size: 14px; line-height: 1.6;
  background: #0a0a0d; border: 1px solid var(--line); padding: 18px 20px; overflow-x: auto;
}
.nl-prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.nl-prose img { max-width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.nl-prose figure img { margin: 0 auto; }
.nl-prose figcaption {
  margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--faint);
}
.nl-prose .table-wrap { overflow-x: auto; }
.nl-prose table { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 13px; line-height: 1.5; }
.nl-prose th, .nl-prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.nl-prose th { color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.6px; font-size: 11px; }
.nl-prose input[type='checkbox'] { accent-color: var(--accent); margin-right: 0.4em; }
.nl-prose li.task-list-item { list-style: none; margin-left: -1.3em; }

/* Text styling */
.nl-prose mark { background: rgba(184, 156, 255, 0.28); color: var(--fg-strong); padding: 0 0.15em; }
.nl-prose u { text-decoration-color: var(--accent-dim); text-underline-offset: 3px; }
.nl-prose sup, .nl-prose sub { font-size: 0.7em; line-height: 0; }

/* Dividers: --- is a rule, * * * an ornament */
.nl-prose hr.divider-ornament { height: auto; background: none; margin: 2.6em 0; text-align: center; overflow: visible; }
.nl-prose hr.divider-ornament::before { content: '✦ ✦ ✦'; color: var(--accent-dim); font-size: 13px; letter-spacing: 0.9em; padding-left: 0.9em; }

/* Callouts: > [!NOTE], [!TIP], [!IMPORTANT], [!WARNING], [!CAUTION] */
.nl-prose .callout {
  margin: 0 0 1.4em; padding: 14px 18px;
  border: 1px solid var(--line); border-left: 2px solid var(--callout, var(--accent));
  background: rgba(255, 255, 255, 0.025); font-size: 0.92em;
}
.nl-prose .callout > :last-child { margin-bottom: 0; }
.nl-prose .callout-title {
  margin: 0 0 0.4em; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--callout, var(--accent));
}
.nl-prose .callout-note { --callout: #b89cff; }
.nl-prose .callout-tip { --callout: #7fdcae; }
.nl-prose .callout-important { --callout: #d9c8ff; }
.nl-prose .callout-warning { --callout: #f2c46d; }
.nl-prose .callout-caution { --callout: #ff9b9b; }

/* Footnotes */
.nl-prose .fn-ref { margin-left: 1px; }
.nl-prose .fn-ref a { font-family: var(--mono); color: var(--accent); text-decoration: none; padding: 0 2px; }
.nl-prose .footnotes {
  margin-top: 3em; padding-top: 1.2em; border-top: 1px solid var(--line-strong);
  font-size: 16px; line-height: 1.6; color: var(--muted);
}
.nl-prose .footnotes ol { padding-left: 1.6em; margin: 0; }
.nl-prose .footnotes li { margin: 0.6em 0; }
.nl-prose .footnotes li::marker { font-family: var(--mono); font-size: 0.8em; color: var(--accent-dim); }
.nl-prose .footnotes p { margin: 0.4em 0; }
.nl-prose .footnotes li:target { background: rgba(184, 156, 255, 0.08); }
.nl-prose .fn-backref { color: var(--accent); text-decoration: none; margin-left: 4px; }
.nl-prose [id^='fn'] { scroll-margin-top: 24px; }

/* Link previews (a URL alone on its line) */
.nl-prose .nl-embed { margin: 0 0 1.6em; }
.nl-prose .nl-embed-card {
  display: flex; align-items: stretch; min-height: 104px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.02);
  color: inherit; text-decoration: none; transition: border-color 160ms ease, background 160ms ease;
}
.nl-prose .nl-embed-card:hover { border-color: var(--accent-dim); background: rgba(255, 255, 255, 0.04); color: inherit; }
.nl-embed-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; }
.nl-embed-site { font-family: var(--mono); font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--faint); }
.nl-embed-title, .nl-embed-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-family: var(--sans); }
.nl-embed-title { font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--fg-strong); }
.nl-embed-desc { font-size: 14px; line-height: 1.5; color: var(--muted); }
.nl-prose .nl-embed-thumb {
  flex: 0 0 auto; width: 34%; max-width: 220px; height: auto; align-self: stretch; object-fit: cover;
  border: 0; border-left: 1px solid var(--line);
}

/* Video previews: the player loads only on click */
.nl-prose .nl-embed-player, .nl-prose .nl-embed-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  background: #0a0a0d; border: 1px solid var(--line-strong);
}
.nl-prose .nl-embed-player img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.nl-embed-play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(0, 0, 0, 0.65); border: 1px solid rgba(255, 255, 255, 0.55);
  transition: background 160ms ease, border-color 160ms ease;
}
.nl-embed-play::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff;
}
.nl-prose .nl-embed-player:hover .nl-embed-play { background: var(--accent-dim); border-color: var(--accent); }
.nl-prose .nl-embed figcaption a { color: inherit; text-decoration: none; }

/* X posts: author and text, then the video or photo */
.nl-prose .nl-embed-post { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.02); }
.nl-prose .nl-embed-post .nl-embed-title { text-decoration: none; }
.nl-prose .nl-embed-post .nl-embed-title:hover { color: var(--accent); }
.nl-embed-handle { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--faint); }
.nl-prose .nl-embed-text {
  margin: 4px 0 0; padding: 0; border: 0; font-style: normal; white-space: pre-line;
  font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--fg);
}
.nl-prose .nl-embed-post .nl-embed-player, .nl-prose .nl-embed-post .nl-embed-frame { border: 0; border-top: 1px solid var(--line); }
.nl-prose .nl-embed-post .nl-embed-player img { object-fit: contain; }
.nl-prose .nl-embed-media { display: block; border-top: 1px solid var(--line); }
.nl-prose .nl-embed-media img { display: block; width: 100%; height: auto; border: 0; }
.nl-prose .nl-embed figcaption a:hover { color: var(--fg-strong); }

/* ── Discussion ────────────────────────────────────────────── */

.nl-discussion { padding-bottom: 96px; scroll-margin-top: 24px; }
.nl-discussion .nl-section-head { margin-bottom: 28px; }
.nl-discussion-loading { font-family: var(--mono); font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--faint); }

.nl-reactions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.nl-reaction {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; min-height: 40px;
  background: rgba(255, 255, 255, 0.02); color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 0;
  font-family: var(--mono); font-size: 13px; cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.nl-reaction:hover { border-color: rgba(255, 255, 255, 0.4); color: var(--fg-strong); }
.nl-reaction.is-active { border-color: rgba(184, 156, 255, 0.6); background: var(--accent-bg); color: var(--fg-strong); }
.nl-reaction-emoji { font-size: 17px; line-height: 1; }

.nl-comments { list-style: none; margin: 0 0 32px; padding: 0; }
.nl-comment { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.nl-comment:last-child { border-bottom: 1px solid var(--line); }
.nl-avatar {
  width: 36px; height: 36px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.5px;
  background: hsl(var(--h, 260) 28% 15%); color: hsl(var(--h, 260) 70% 82%);
  border: 1px solid var(--line-strong);
}
.nl-comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.nl-comment-name { color: var(--fg-strong); font-weight: 500; font-size: 15px; }
.nl-comment-meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--faint); }
.nl-comment-body { margin: 0; font-size: 16px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--fg); }
.nl-comment-delete { margin-left: auto; }
.nl-no-comments { color: var(--faint); font-size: 15px; margin: 0 0 32px; }

.nl-linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong);
}
.nl-linkbtn:hover { color: var(--fg-strong); }
.nl-comment-delete.nl-linkbtn { font-family: var(--mono); font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase; }
.nl-comment-delete.nl-linkbtn:hover { color: var(--danger); }

.nl-panel { border: 1px solid var(--line-strong); padding: 24px; background: rgba(255, 255, 255, 0.015); }
.nl-panel-title { margin: 0 0 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--fg-strong); }
.nl-providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nl-provider {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 14px;
  background: #131314; color: #e3e3e3; border: 1px solid #5f6368; border-radius: 0;
  font-family: var(--sans); font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.nl-provider:hover { border-color: #e3e3e3; background: #1b1b1d; }
.nl-provider svg { width: 18px; height: 18px; flex: 0 0 auto; }
.nl-fine { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--faint); }

.nl-field-label { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.nl-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.nl-input, .nl-textarea {
  width: 100%; background: #050505; color: var(--fg-strong);
  border: 1px solid var(--line-strong); border-radius: 0; padding: 12px 14px;
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
}
.nl-row .nl-input { flex: 1 1 220px; width: auto; }
.nl-input:focus, .nl-textarea:focus { outline: none; border-color: var(--accent); }
.nl-textarea { min-height: 128px; resize: vertical; display: block; }
.nl-input-code { font-family: var(--mono); letter-spacing: 4px; font-size: 18px; }

.nl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px;
  background: var(--fg-strong); color: #000; border: 1px solid var(--fg-strong); border-radius: 0;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
}
.nl-btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.nl-btn:disabled { opacity: 0.35; cursor: default; }
.nl-btn-ghost { background: transparent; color: var(--fg-strong); border-color: var(--line-strong); }
.nl-btn-ghost:hover:not(:disabled) { background: transparent; border-color: var(--fg-strong); color: var(--fg-strong); }

.nl-composer-who {
  margin: 0 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--faint);
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
}
.nl-composer-who strong { color: var(--fg-strong); font-weight: 500; }
.nl-composer-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.nl-count { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.nl-count.is-over { color: var(--danger); }
.nl-name { margin-bottom: 20px; }
.nl-step-note { margin: 0 0 14px; font-size: 15px; color: var(--muted); }

.nl-notice {
  margin: 14px 0 0; padding: 10px 12px;
  font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--danger);
  border: 1px solid rgba(255, 120, 120, 0.3); background: rgba(255, 80, 80, 0.05);
}
.nl-notice-top { margin: 0 0 20px; }

/* ── Small screens ─────────────────────────────────────────── */

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .nl-header { padding: 14px var(--gutter); }
  .nl-wordmark { font-size: 20px; }
  .nl-nav { gap: 14px; }
  .nl-lang { gap: 8px; padding-left: 14px; }
  .nl-index { padding: 40px var(--gutter) 64px; }
  .nl-index-title { font-size: 44px; letter-spacing: -0.8px; margin-top: 32px; }
  .nl-index-dek { font-size: 16px; margin-bottom: 36px; }
  .nl-index-item a { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .nl-index-date { padding-top: 0; }
  .nl-index-name { font-size: 26px; }
  .nl-article { padding-top: 40px; padding-bottom: 48px; }
  .nl-article-title { font-size: 38px; letter-spacing: -0.8px; margin-top: 28px; }
  .nl-article-dek { font-size: 17px; }
  .nl-article-meta { padding-bottom: 28px; margin-bottom: 32px; }
  .nl-prose { font-size: 18px; }
  .nl-prose h2 { font-size: 27px; }
  .nl-prose pre { font-size: 13px; padding: 14px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-left: 0; border-right: 0; }
  .nl-prose .nl-embed-card { flex-direction: column-reverse; }
  .nl-prose .nl-embed-thumb { width: 100%; max-width: none; aspect-ratio: 1.91 / 1; border-left: 0; border-bottom: 1px solid var(--line); }
  .nl-providers { grid-template-columns: 1fr; }
  .nl-panel { padding: 18px; }
  .nl-reactions { gap: 6px; }
  .nl-reaction { padding: 8px 10px; gap: 6px; }
}

@media (max-width: 420px) {
  .nl-brand .nl-wordmark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
