/* ══════════════════════════════════════════════
   Research Log · taste-skill v2
   Genre: editorial research archive
   Fonts: Cormorant Garamond (display) + Geist (body) + Geist Mono (outlier)
   Theme: 3-mode (warm / cool / dark) with OKLCH tokens
   Dials: VARIANCE=5 · MOTION=3 · DENSITY=3
   Nav: N6 · Footer: Ft1
   ══════════════════════════════════════════════ */

/* ══════════════════════════════════════════════
   FONTS — Cormorant Garamond (scholarly editorial, taste-skill approved) + Geist + Geist Mono
   ══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Geist:wght@350;400;500;600&family=Geist+Mono:wght@400;500&display=swap');

/* ══════════════════════════════════════════════
   TOKENS — OKLCH palette
   Warm: neutral stone-warm (NOT AI-default beige+brass)
   Cool: newsprint blue-grey
   Dark: night editorial
   ══════════════════════════════════════════════ */
:root,
[data-theme="warm"] {
  /* Paper stack — stone-warm, restrained chroma */
  --color-paper:    oklch(96% 0.006 88);
  --color-paper-2:  oklch(92% 0.008 88);
  --color-surface:  oklch(99% 0.002 88);
  --color-rule:     oklch(84% 0.008 88);
  --color-muted:    oklch(44% 0.008 80);
  --color-subtle:   oklch(58% 0.005 80);
  --color-ink:      oklch(20% 0.008 75);

  /* Accent — amber, toned down from AI-default saturation */
  --color-accent:        oklch(56% 0.15 55);
  --color-focus:         oklch(56% 0.16 55);
  --color-accent-bg:     oklch(90% 0.04 72);
  --color-accent-ink:    oklch(36% 0.12 48);

  /* Extended tokens */
  --color-ink-hover:      oklch(26% 0.008 75);
  --color-ink-strong:     oklch(22% 0.008 75);
  --color-heading-sub:    oklch(28% 0.006 75);
  --color-finding-bg:     oklch(95% 0.03 105);
  --color-warning-bg:     oklch(94% 0.05 62);
  --color-warning-border: oklch(62% 0.15 42);
  --color-warning-text:   oklch(38% 0.13 38);
  --color-highlight:      oklch(91% 0.06 125 / 0.5);
  --color-highlight-warn: oklch(89% 0.06 50 / 0.4);
  --color-evidence-bg:    oklch(97% 0.01 92);
  --color-code-bg:        oklch(97% 0.004 88);

  /* Utility aliases */
  --bg:          var(--color-paper);
  --text:        var(--color-ink);
  --line:        var(--color-rule);
  --subtle:      var(--color-subtle);
  --accent-bg:   var(--color-accent-bg);
  --accent-text: var(--color-accent-ink);
  --card-bg:     var(--color-surface);
  --border:      var(--color-rule);
  --highlight:   var(--color-finding-bg);

  /* Type scale */
  --text-xs:    0.67rem;
  --text-sm:    0.82rem;
  --text-base:  1rem;
  --text-md:    1.22rem;
  --text-lg:    1.5rem;
  --text-xl:    1.85rem;
  --text-2xl:   2.3rem;
  --text-3xl:   2.9rem;
  --text-display: clamp(2.2rem, 4vw + 1rem, 4.2rem);

  /* Spacing — 4pt grid */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 5rem;
  --space-3xl: 7rem;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --font-body:    'Geist', system-ui, -apple-system, sans-serif;
  --font-outlier: 'Geist Mono', ui-monospace, 'SF Mono', monospace;

  /* Layout */
  --content-width: 65ch;
  --page-width: 980px;

  /* Corners — consistent, no trend-chasing */
  --radius-sm: 4px;
  --radius-md: 8px;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);

  color-scheme: light;
}

/* ── Cool (newsprint) ── */
[data-theme="cool"] {
  --color-paper:    oklch(96.5% 0.005 248);
  --color-paper-2:  oklch(92% 0.007 248);
  --color-surface:  oklch(99% 0.002 248);
  --color-rule:     oklch(83% 0.005 248);
  --color-muted:    oklch(44% 0.005 252);
  --color-subtle:   oklch(59% 0.004 252);
  --color-ink:      oklch(20% 0.005 252);
  --color-accent:   oklch(48% 0.11 245);
  --color-focus:    oklch(48% 0.12 245);
  --color-accent-bg: oklch(89% 0.03 245);
  --color-accent-ink: oklch(30% 0.09 245);
  --color-ink-hover:      oklch(26% 0.005 252);
  --color-ink-strong:     oklch(22% 0.005 252);
  --color-heading-sub:    oklch(28% 0.004 252);
  --color-finding-bg:     oklch(95% 0.025 245);
  --color-warning-bg:     oklch(94% 0.05 30);
  --color-warning-border: oklch(62% 0.14 30);
  --color-warning-text:   oklch(38% 0.13 30);
  --color-evidence-bg:    oklch(97% 0.01 248);
  --color-code-bg:        oklch(97% 0.004 248);
  color-scheme: light;
}

/* ── Dark (night editorial) ── */
[data-theme="dark"] {
  --color-paper:    oklch(16% 0.005 88);
  --color-paper-2:  oklch(21% 0.007 88);
  --color-surface:  oklch(13% 0.003 88);
  --color-rule:     oklch(29% 0.006 88);
  --color-muted:    oklch(59% 0.006 88);
  --color-subtle:   oklch(47% 0.004 88);
  --color-ink:      oklch(88% 0.004 88);
  --color-accent:   oklch(68% 0.14 60);
  --color-focus:    oklch(68% 0.15 60);
  --color-accent-bg: oklch(26% 0.04 68);
  --color-accent-ink: oklch(80% 0.10 55);
  --color-ink-hover:      oklch(95% 0.003 88);
  --color-ink-strong:     oklch(98% 0.003 88);
  --color-heading-sub:    oklch(78% 0.004 88);
  --color-finding-bg:     oklch(23% 0.03 105);
  --color-warning-bg:     oklch(23% 0.05 42);
  --color-warning-border: oklch(53% 0.13 42);
  --color-warning-text:   oklch(78% 0.11 42);
  --color-highlight:      oklch(35% 0.06 125 / 0.4);
  --color-highlight-warn: oklch(35% 0.06 50 / 0.3);
  --color-evidence-bg:    oklch(19% 0.008 92);
  --color-code-bg:        oklch(19% 0.004 88);
  color-scheme: dark;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 350;
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* ══════════════════════════════════════════════
   N6 MASTHEAD — centered, double-rule below
   ══════════════════════════════════════════════ */
.site-header {
  padding: var(--space-xl) var(--space-md) var(--space-sm);
  text-align: center;
  border-bottom: 1px solid var(--color-rule);
  position: relative;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: var(--space-md);
  right: var(--space-md);
  height: 1px;
  background: var(--color-rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  text-decoration: none;
  color: var(--color-ink);
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
}

.brand span:last-child {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.issue-row {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-2xs);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xs);
}

.nav {
  display: flex;
  gap: var(--space-md);
  font-size: var(--text-sm);
}

.nav a {
  text-decoration: none;
  color: var(--color-muted);
  font-weight: 400;
  transition: color 0.2s var(--ease-out-expo);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease-out-expo), border-color 0.2s var(--ease-out-expo);
}

.nav a:hover {
  color: var(--color-ink);
  border-bottom-color: var(--color-accent);
}

.nav a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.nav a.active {
  color: var(--color-ink);
  font-weight: 500;
  border-bottom-color: var(--color-accent);
}

/* ── Theme picker — 3 dots ── */
.theme-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: var(--space-sm);
  padding: 4px 6px;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.2s var(--ease-out-expo), border-color 0.2s var(--ease-out-expo);
}

.theme-picker:hover {
  background: var(--color-paper-2);
  border-color: var(--color-rule);
}

.theme-picker:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--color-rule);
  transition: transform 0.25s var(--ease-out-expo), border-color 0.25s var(--ease-out-expo);
}

[data-theme="warm"] .theme-dot.warm,
[data-theme="cool"] .theme-dot.cool,
[data-theme="dark"] .theme-dot.dark {
  transform: scale(1.5);
  border-color: var(--color-accent);
  background: var(--color-accent) !important;
}

.theme-dot.warm  { background: oklch(96% 0.006 88); }
.theme-dot.cool  { background: oklch(96.5% 0.005 248); }
.theme-dot.dark  { background: oklch(16% 0.005 88); }

/* ══════════════════════════════════════════════
   MAIN CONTENT WRAPPER
   ══════════════════════════════════════════════ */
main {
  padding: var(--space-2xl) var(--space-md);
  max-width: var(--page-width);
  margin: 0 auto;
}

/* ══════════════════════════════════════════════
   HERO — left-aligned, decorative accent rule, generous spacing
   ══════════════════════════════════════════════ */
.hero {
  text-align: left;
  padding: var(--space-2xl) 0 var(--space-3xl);
  animation: fadeUp 0.7s var(--ease-out-expo);
  position: relative;
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-md);
  opacity: 0.85;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  margin-bottom: var(--space-md);
  max-width: 26ch;
  overflow-wrap: anywhere;
  min-width: 0;
}

.hero-copy {
  font-size: var(--text-md);
  color: var(--color-muted);
  max-width: 55ch;
  margin-top: var(--space-sm);
  line-height: 1.6;
}

.hero-copy code {
  font-family: var(--font-outlier);
  font-size: 0.9em;
  color: var(--color-accent);
  background: var(--color-accent-bg);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* ── Skills collection callout ── */
.collection-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  margin-bottom: var(--space-2xl);
}

.collection-strip-copy {
  max-width: 62ch;
}

.collection-strip h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.collection-strip-copy > p:last-child {
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.collection-strip .button {
  flex-shrink: 0;
}

/* Remove accent rule on mobile where it crowds content */
@media (max-width: 640px) {
  .hero { border-left: none; padding-left: 0; opacity: 1; }
  .hero h1, .hero-copy, .hero-actions { padding-left: 0; }
  .collection-strip { align-items: flex-start; flex-direction: column; gap: var(--space-md); }
}

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s var(--ease-out-expo),
              color 0.2s var(--ease-out-expo),
              border-color 0.2s var(--ease-out-expo),
              transform 0.15s var(--ease-out-expo);
  cursor: pointer;
  line-height: 1.4;
}

.button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.button:active {
  transform: scale(0.97);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.button.primary {
  background: var(--color-ink);
  color: var(--color-paper);
  border: 1px solid var(--color-ink);
}

.button.primary:hover {
  background: var(--color-ink-hover);
  border-color: var(--color-ink-hover);
}

.button.secondary {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-rule);
}

.button.secondary:hover {
  border-color: var(--color-ink);
  background: var(--color-paper-2);
}

/* ══════════════════════════════════════════════
   SECTION HEADINGS — punctuated with accent rule
   (eyebrows limited to 1 per 3 sections per taste-skill 4.7)
   ══════════════════════════════════════════════ */
.section-heading {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-rule);
}

.eyebrow {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-2xs);
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  position: relative;
  display: inline-block;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 2em;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  opacity: 0.6;
}

/* ══════════════════════════════════════════════
   DATE GROUP HEADER — rendered by app.js
   ══════════════════════════════════════════════ */
.date-group {
  margin-bottom: var(--space-lg);
}

.date-header {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: -0.005em;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-2xs);
  border-bottom: 1px solid var(--color-rule);
  display: flex;
  align-items: baseline;
  gap: var(--space-2xs);
}

.date-header time {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
}

.date-count {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════
   TOOLBAR — search + filters
   ══════════════════════════════════════════════ */
.toolbar {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.search-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.search-box span {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.search-box input,
.search-box select {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: var(--space-2xs) var(--space-sm);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  color: var(--color-ink);
  min-width: 200px;
  transition: border-color 0.2s var(--ease-out-expo), box-shadow 0.2s var(--ease-out-expo);
}

.search-box input:focus,
.search-box select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-focus);
}

/* ══════════════════════════════════════════════
   FEED LIST — card-styled entries with hover lift
   ══════════════════════════════════════════════ */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feed-item {
  padding: var(--space-md) var(--space-md);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: transform 0.2s var(--ease-out-expo),
              box-shadow 0.25s var(--ease-out-expo),
              border-color 0.2s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

/* Subtle left accent bar on card hover */
.feed-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--color-accent);
  transition: width 0.2s var(--ease-out-expo);
  border-radius: 0 2px 2px 0;
}

.feed-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px -8px oklch(10% 0.01 88 / 0.08);
  border-color: var(--color-accent);
}

.feed-item:hover::before {
  width: 3px;
}

.feed-item:last-child {
  /* No special last-child override needed with gap */
}

.feed-item-top {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xs);
}

.feed-date {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-muted);
  flex-shrink: 0;
  min-width: 7.5em;
}

.feed-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.005em;
  line-height: 1.3;
  transition: color 0.2s var(--ease-out-expo);
}

.feed-title:hover {
  color: var(--color-accent);
}

.feed-excerpt {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 55ch;
}

/* Clean list previews in feed cards — no bullets, compact lines */
.feed-excerpt .summary-block p { margin: 0 0 0.3em; }
.feed-excerpt .summary-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.feed-excerpt .summary-list li {
  padding: 0.15em 0;
  border-bottom: none;
}
.feed-excerpt .summary-list li::before { content: none; }

.feed-tags {
  display: flex;
  gap: var(--space-2xs);
  flex-wrap: wrap;
  margin-top: var(--space-xs);
}

.tag {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-accent-ink);
  background: var(--color-accent-bg);
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s var(--ease-out-expo);
}

.tag:hover {
  background: var(--color-accent);
  color: var(--color-paper);
}

.feed-source {
  font-size: var(--text-xs);
  color: var(--color-subtle);
}

/* ══════════════════════════════════════════════
   ARCHIVE
   ══════════════════════════════════════════════ */
.archive-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.archive-group {
  border-left: 1px solid var(--color-rule);
  padding-left: var(--space-md);
}

.archive-year {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: var(--space-xs);
  position: relative;
  display: inline-block;
}

.archive-year::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-rule);
}

.archive-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-2xs) 0;
  font-size: var(--text-sm);
  align-items: baseline;
}

.archive-date {
  font-family: var(--font-outlier);
  color: var(--color-subtle);
  min-width: 4em;
  flex-shrink: 0;
}

.archive-link {
  color: var(--color-ink);
  text-decoration: none;
  transition: color 0.2s var(--ease-out-expo);
}

.archive-link:hover { color: var(--color-accent); }

.empty-state {
  color: var(--color-muted);
  padding: var(--space-lg);
  text-align: center;
}

/* ══════════════════════════════════════════════
   ARTICLE / LONG DOCUMENT
   ══════════════════════════════════════════════ */
.back-link {
  display: inline-block;
  max-width: var(--page-width);
  margin: var(--space-md) auto 0;
  padding: 0 var(--space-md);
  width: 100%;
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s var(--ease-out-expo);
}

.back-link:hover {
  color: var(--color-accent);
}

.article-container {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-2xl) var(--space-md);
}

.article-masthead {
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-rule);
}

.article-date {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
}

.article-masthead h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin-bottom: var(--space-sm);
  overflow-wrap: anywhere;
  min-width: 0;
}

.article-meta {
  font-size: var(--text-sm);
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  align-items: center;
}

.article-container h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin: var(--space-xl) 0 var(--space-sm);
  padding-bottom: var(--space-2xs);
  border-bottom: 1px solid var(--color-rule);
  overflow-wrap: anywhere;
  min-width: 0;
}

.article-container h3 {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--color-heading-sub);
  margin: var(--space-lg) 0 var(--space-xs);
}

.article-container p {
  margin: var(--space-sm) 0;
}

.article-container ul,
.article-container ol {
  padding-left: var(--space-md);
  margin: var(--space-sm) 0;
}

.article-container li {
  margin-bottom: var(--space-2xs);
}

.article-container strong {
  font-weight: 500;
  color: var(--color-ink-strong);
}

.article-container code {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  background: var(--color-code-bg);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
}

.article-container blockquote {
  border-left: 3px solid var(--color-accent);
  margin: var(--space-md) 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  color: var(--color-muted);
  line-height: 1.65;
}

.article-container blockquote strong {
  color: var(--color-ink);
}

.article-container hr {
  border: none;
  border-top: 1px solid var(--color-rule);
  margin: var(--space-xl) 0;
}

/* ══════════════════════════════════════════════
   CONTENT COMPONENTS — cards, findings, evidence
   ══════════════════════════════════════════════ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  border-radius: var(--radius-md);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-accent-ink);
  margin-bottom: var(--space-xs);
}

.finding-box {
  background: var(--color-finding-bg);
  border-left: 3px solid var(--color-accent);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.finding-box .label {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-ink);
  margin-bottom: var(--space-3xs);
}

.warning-box {
  background: var(--color-warning-bg);
  border-left: 3px solid var(--color-warning-border);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.warning-box .label {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-warning-text);
  margin-bottom: var(--space-3xs);
}

.highlight {
  background: var(--color-highlight);
  padding: 0 1px;
}

.highlight-warn {
  background: var(--color-highlight-warn);
  padding: 0 1px;
}

.article-container table,
.report-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: var(--text-sm);
}

.article-container th,
.report-body th {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  font-weight: 500;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 2px solid var(--color-rule);
}

.article-container td,
.report-body td {
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 1px solid var(--color-rule);
  vertical-align: top;
}

.article-container tr:last-child td,
.report-body tr:last-child td {
  border-bottom: none;
}

.quote-box {
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  border-radius: var(--radius-md);
}

.quote-box .q {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-md);
  color: var(--color-ink);
  line-height: 1.5;
}

.quote-box .attrib {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-xs);
}

.evidence-stack {
  counter-reset: evidence;
}

.evidence-item {
  padding: var(--space-xs) var(--space-sm);
  margin: var(--space-2xs) 0;
  border-left: 2px solid var(--color-accent);
  background: var(--color-evidence-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.evidence-item::before {
  counter-increment: evidence;
  content: "[" counter(evidence) "] ";
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
}

.evidence-item .source {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-3xs);
}

.verdict {
  background: var(--color-paper);
  border: 2px solid var(--color-accent);
  padding: var(--space-md);
  margin: var(--space-lg) 0;
  text-align: center;
  border-radius: var(--radius-md);
}

.verdict .big {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-accent-ink);
}

.verdict .why {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-2xs);
}

.decision-row {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
  flex-wrap: wrap;
}

.decision-col {
  flex: 1;
  min-width: 240px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.decision-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.decision-col.left h4 { color: var(--color-accent-ink); }
.decision-col.right h4 { color: var(--color-warning-text); }

.decision-col ul {
  padding-left: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.decision-col li {
  margin-bottom: var(--space-3xs);
}

.section-divider {
  text-align: center;
  color: var(--color-rule);
  margin: var(--space-xl) 0;
  font-size: var(--text-md);
}

.footnote {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-2xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-rule);
}

.footnote a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ══════════════════════════════════════════════
   RESEARCH REPORT — creatine-style custom hero
   ══════════════════════════════════════════════ */
.report-hero {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
}

.report-hero .report-badge {
  display: inline-block;
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  padding: var(--space-3xs) var(--space-xs);
  background: var(--color-accent-bg);
  color: var(--color-accent-ink);
  margin-bottom: var(--space-md);
  border-radius: var(--radius-sm);
}

.report-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
  color: var(--color-ink);
  overflow-wrap: anywhere;
  min-width: 0;
}

.report-hero .report-meta {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.report-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-2xl);
}

.report-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: var(--space-xl) 0 var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-rule);
  overflow-wrap: anywhere;
  min-width: 0;
}

.report-body h3 {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--color-heading-sub);
  margin: var(--space-lg) 0 var(--space-xs);
}

.report-body p {
  margin: var(--space-sm) 0;
  line-height: 1.7;
}

.report-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.report-body strong {
  font-weight: 500;
  color: var(--color-ink-strong);
}

.report-body ul,
.report-body ol {
  padding-left: var(--space-md);
  margin: var(--space-sm) 0;
}

.report-body li {
  margin-bottom: var(--space-2xs);
}

.report-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-xs) var(--space-md);
  margin: var(--space-md) 0;
  color: var(--color-muted);
  line-height: 1.65;
}

.report-body hr {
  border: none;
  border-top: 1px solid var(--color-rule);
  margin: var(--space-xl) 0;
}

/* ══════════════════════════════════════════════
   CODE BLOCKS
   ══════════════════════════════════════════════ */
pre, code {
  font-family: var(--font-outlier);
}

pre {
  background: var(--color-code-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  overflow-x: auto;
  font-size: var(--text-sm);
  line-height: 1.5;
  margin: var(--space-md) 0;
}

code {
  font-size: 0.9em;
}

/* ══════════════════════════════════════════════
   Ft1 MAST-HEADED FOOTER
   ══════════════════════════════════════════════ */
.footer {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border-top: 1px solid var(--color-rule);
  margin-top: var(--space-3xl);
}

.footer .footer-wordmark {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

.footer .footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-2xs);
}

.footer .footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
}

.footer .footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease-out-expo);
}

.footer .footer-links a:hover {
  color: var(--color-ink);
}

.footer .footer-meta {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-subtle);
  margin-top: var(--space-sm);
}

/* ══════════════════════════════════════════════
   SCROLL-REVEAL (MOTION=3 — subtle, IntersectionObserver-driven)
   ══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children within a reveal group */
.reveal-group > .reveal {
  transition-delay: calc(var(--reveal-index, 0) * 60ms);
}

/* Fade-up keyframe for hero entry */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════════
   READABILITY PASS — more air for long-form research
   ══════════════════════════════════════════════ */

/* Let long summaries use the card width instead of wrapping into a narrow column. */
.feed-excerpt {
  max-width: 72ch;
  font-size: 0.9rem;
  line-height: 1.82;
}

.feed-item {
  padding: 1.75rem 2rem;
}

.feed-item-top {
  margin-bottom: var(--space-sm);
}

.feed-title {
  line-height: 1.42;
}

.feed-excerpt .summary-block {
  display: flow-root;
}

.feed-excerpt .summary-block p,
.feed-excerpt .summary-lead {
  margin: 0 0 0.8em;
}

.feed-excerpt .summary-lead {
  color: var(--color-heading-sub);
}

.feed-excerpt .summary-list li {
  padding: 0.32em 0;
  line-height: 1.82;
}

.feed-meta {
  margin-top: 1.25rem !important;
  align-items: flex-start !important;
  line-height: 1.5;
}

.feed-tags {
  row-gap: 0.4rem;
}

.date-group {
  margin-bottom: 2.75rem;
}

.date-header {
  margin-bottom: 1.25rem;
}

/* Article pages: a slightly wider measure with deliberate paragraph breathing room. */
.article-container {
  max-width: 70ch;
}

.article-container p,
.report-body p {
  line-height: 1.88;
  margin: 1.15rem 0;
}

.article-container ul,
.article-container ol,
.report-body ul,
.report-body ol {
  line-height: 1.85;
  margin: 1.15rem 0;
}

.article-container li,
.report-body li {
  margin-bottom: 0.65rem;
}

.article-container blockquote,
.report-body blockquote {
  line-height: 1.85;
  margin: 1.5rem 0;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 48rem) {
  :root {
    --text-display: clamp(1.8rem, 6vw + 0.5rem, 3rem);
  }

  main {
    padding: var(--space-lg) var(--space-sm);
  }

  .site-header {
    padding: var(--space-md) var(--space-sm) var(--space-sm);
  }

  .brand span:last-child {
    font-size: var(--text-lg);
  }

  .nav {
    gap: var(--space-sm);
    font-size: var(--text-xs);
  }

  .hero {
    padding: var(--space-md) 0 var(--space-lg);
  }

  .hero-copy {
    font-size: var(--text-base);
  }

  .hero-actions {
    flex-direction: column;
  }

  .feed-item-top {
    flex-direction: column;
    gap: var(--space-3xs);
  }

  .feed-excerpt {
    margin-left: 0;
  }

  .feed-item:hover {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .decision-row {
    flex-direction: column;
  }

  .archive-group {
    padding-left: var(--space-sm);
  }
}

@media (min-width: 64rem) {
  main {
    padding: var(--space-3xl) var(--space-md);
  }

  .article-container {
    padding: var(--space-3xl) var(--space-md);
  }
}

/* ══════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
