/* ============================================================
   TAMARIN DESIGN TOKENS
   Single source of truth for the editorial redesign.
   Loaded on every in-scope page before the Tailwind CDN config.
   ============================================================ */

:root {
  /* Surfaces — warm neutrals replace pure white */
  --surface-bone:        #F4EEE2;
  --surface-cream:       #EBE2D0;
  --surface-paper:       #FBF7EE;
  --surface-deep:        #1F2620;
  --surface-deeper:      #161B16;

  /* Brand — terracotta replaces sun-yellow.
     Calibrated to clear WCAG AA on bone surfaces (5.01:1 vs prior 4.50:1). */
  --brand-terracotta:    #AC4520;
  --brand-terracotta-dk: #8E3717;
  --brand-clay:          #DCB48A;

  /* Accents */
  --accent-olive:        #3F4A38;
  --accent-olive-dk:     #2A3128;
  --accent-sage:         #B8C0A6;
  --accent-bronze:       #8C6840;

  /* Ink */
  --ink-primary:         #14130F;
  --ink-secondary:       #45403A;
  --ink-muted:           #5F584E;
  --ink-inverse:         #F4EEE2;
  --ink-inverse-muted:   #B8B4A6;

  /* Lines */
  --rule:                #DDD3BF;
  --rule-strong:         #BCAD90;

  /* Type families — fallback families with size-adjust descriptors
     keep layout metrics stable while web fonts swap in (zero CLS). */
  --font-display: 'Fraunces', 'Fraunces Fallback', 'Times New Roman', Georgia, serif;
  --font-body:    'Geist', 'Geist Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --container-max:   1320px;
  --container-pad:   clamp(20px, 4vw, 64px);
  --section-pad-y:   clamp(60px, 8vw, 120px);
}

/* ============================================================
   FONT METRIC FALLBACKS — prevents CLS when web fonts swap in.
   Each fallback @font-face defines a NAMED family that maps to
   a local system font, with size-adjust + ascent/descent overrides
   tuned so the local font occupies the same layout box as the
   web font. The font-family chain in --font-display / --font-body
   places the fallback right after the web font name; the swap-in
   when Fraunces/Geist load is a paint-only change, not a reflow.
   ============================================================ */

/* Self-hosted brand-critical fonts (commit 20.1.4).
   All fonts ship from same-origin /assets/fonts/, preloaded on every
   page. Zero runtime dependency on Google Fonts CDN.
   - Geist variable woff2 (~28 KB, latin subset, wght 100–900) covers
     body weights 400/500/600 and the wordmark weight 800 in one file.
   - Fraunces roman + italic variable woff2 (opsz pinned at 36, wght
     300–700, SOFT 0–100; ~60 KB + ~75 KB) cover all display copy.
     opsz pinning is the size:fidelity trade-off that keeps the cold-
     cache first-paint budget at ~163 KB total. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url('/assets/fonts/geist.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: optional;
  src: url('/assets/fonts/fraunces-roman.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: optional;
  src: url('/assets/fonts/fraunces-italic.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Times New Roman'), local('Georgia');
  size-adjust: 107.76%;
  ascent-override: 97.8%;
  descent-override: 25.5%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Geist Fallback';
  src: local('Arial'), local('Helvetica Neue');
  size-adjust: 102.20%;
  ascent-override: 100.5%;
  descent-override: 29.5%;
  line-gap-override: 0%;
}

/* ============================================================
   GLOBAL RESETS THAT SUPPORT THE REDESIGN
   Light-touch only; existing Tailwind utilities still apply.
   ============================================================ */

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  color: var(--ink-secondary);
  background: var(--surface-bone);
  font-feature-settings: "ss01", "cv11", "cv05";
  position: relative;
}

/* Paper-grain overlay; activated on every page via body::before */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 0.32 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: multiply;
}

/* Anything within these landmarks lifts above the grain */
header, nav, main, section, footer, article, aside { position: relative; z-index: 2; }

/* ============================================================
   TYPOGRAPHY HELPERS
   Apply directly when needed, or via Tailwind class mapping.
   ============================================================ */

.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }

.display-xl, .display-lg, .display-md, .heading-lg, .pull-quote {
  font-family: var(--font-display);
  color: var(--ink-primary);
  font-variation-settings: "SOFT" 30, "WONK" 0;
}

.display-xl {
  font-size: clamp(48px, 7.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  font-weight: 360;
}
.display-lg {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.024em;
  font-weight: 380;
}
.display-md {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  font-weight: 400;
}
.heading-lg {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.22;
  letter-spacing: -0.012em;
  font-weight: 440;
}

.italic-display {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 380;
}

.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 50ch;
  font-weight: 400;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-terracotta);
  font-weight: 500;
}

/* ============================================================
   BLOG INDEX — two-column grid with sticky TOC + chapter pacing.
   At <1024px the TOC hides and content takes full width.
   At >=1024px the rail occupies its own grid cell so it can
   never overlap article content.
   ============================================================ */

.blog-layout {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 0;
}
@media (min-width: 1024px) {
  .blog-layout {
    grid-template-columns: 200px 1fr;
    column-gap: 64px;
  }
}

.blog-toc {
  display: none;
}
@media (min-width: 1024px) {
  .blog-toc {
    display: block;
    position: sticky;
    top: 120px;
    height: fit-content;
    align-self: start;
  }
}

.blog-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-toc-item {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  display: block;
  padding: 6px 0;
  transition: color 150ms ease;
}
.blog-toc-item:hover { color: var(--ink-primary); }
.blog-toc-item.is-active { color: var(--brand-terracotta); }

.blog-categories > * + * {
  margin-top: clamp(80px, 9vw, 128px);
}

/* Anchor scroll lands BELOW the sticky nav */
html { scroll-padding-top: 100px; scroll-behavior: smooth; }

/* ============================================================
   ARTICLE — canonical layout, typography, and supporting blocks.
   Two-column grid (200px sticky TOC + 1fr content) at >=1024px;
   single column with TOC hidden below. Article body uses Geist for
   the content and Fraunces for the H1/H2 hierarchy. Drop cap on
   any paragraph tagged .has-drop-cap mirrors the homepage Ciência
   pattern (Fraunces italic, terracotta).
   ============================================================ */

.article-layout {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 0;
}
@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: 200px 1fr;
    column-gap: 64px;
  }
}

.article-toc {
  display: none;
}
@media (min-width: 1024px) {
  .article-toc {
    display: block;
    position: sticky;
    top: 120px;
    height: fit-content;
    align-self: start;
  }
}

.article-toc-list { list-style: none; margin: 0; padding: 0; }
.article-toc-item {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  display: block;
  padding: 6px 0;
  transition: color 150ms ease;
}
.article-toc-item:hover { color: var(--ink-primary); }
.article-toc-item.is-active { color: var(--brand-terracotta); }

.article-content {
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(64px, 8vw, 128px);
  min-width: 0;
}

.article-eyebrow { display: inline-block; margin-bottom: 16px; }

.article-prose {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-secondary);
  max-width: 65ch;
}
.article-prose h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.024em;
  font-weight: 380;
  color: var(--ink-primary);
  margin: 0 0 28px;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.article-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.014em;
  font-weight: 420;
  color: var(--ink-primary);
  margin: 64px 0 20px;
  scroll-margin-top: 100px;
}
.article-prose h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  font-weight: 440;
  color: var(--ink-primary);
  margin: 40px 0 16px;
}
.article-prose p { margin: 0 0 22px; }
.article-resumo {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--ink-primary);
  font-weight: 500;
  margin: 0 0 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  max-width: 65ch;
}
.has-drop-cap::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 84px;
  float: left;
  line-height: 0.85;
  margin: 8px 14px 0 -2px;
  color: var(--brand-terracotta);
  font-weight: 380;
}
.article-prose a {
  color: var(--brand-terracotta);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}
.article-prose a:hover { color: var(--brand-terracotta-dk); }
.article-prose strong { color: var(--ink-primary); font-weight: 500; }
.article-prose em { font-style: italic; }
.article-prose ul {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
}
.article-prose ul li {
  margin-bottom: 14px;
  padding-left: 22px;
  position: relative;
}
.article-prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 1px;
  background: var(--rule-strong);
}

.article-divider {
  border: 0;
  border-top: 1px solid var(--rule-strong);
  margin: clamp(56px, 7vw, 96px) 0;
  max-width: 65ch;
}

.article-related { max-width: 65ch; }
.article-related-heading {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.014em;
  font-weight: 420;
  color: var(--ink-primary);
  margin: 12px 0 24px;
}
.article-related-list { list-style: none; margin: 0; padding: 0; }
.article-related-list li { border-bottom: 1px solid var(--rule); }
.article-related-list li:first-child { border-top: 1px solid var(--rule); }
/* Single-card cases: a lone item rendering at full row width reads as a
   layout bug. Constrain to ~62% of the column at desktop; let it expand
   at narrow widths where 62% would be too narrow. */
.article-related-list > li:only-child { max-width: 62%; }
@media (max-width: 768px) { .article-related-list > li:only-child { max-width: 100%; } }
.article-related-list a {
  display: block;
  padding: 22px 0;
  text-decoration: none;
}
.article-related-list h4 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -0.012em;
  font-weight: 440;
  margin: 0 0 6px;
  color: var(--ink-primary);
  transition: color 150ms ease;
}
.article-related-list a:hover h4 { color: var(--brand-terracotta); }
.article-related-list p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0 0 8px;
}

.article-disclaimer {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  max-width: 65ch;
}

.article-cta {
  max-width: 65ch;
  margin: clamp(56px, 7vw, 88px) 0 0;
  padding: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 48px);
  background: var(--surface-cream);
  text-align: left;
}
.article-cta-heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.014em;
  font-weight: 420;
  color: var(--ink-primary);
  margin: 0 0 14px;
}
.article-cta-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0 0 28px;
  max-width: 50ch;
}

/* ============================================================
   FOOTER MASTHEAD — large wordmark in the deep-surface footer.
   Centralized here so all pages share the same size; per-page
   inline text-[clamp(...)] utilities have been removed.
   Other Tailwind utilities on the element (block, font-extrabold,
   tracking, leading, color) stay on the element.
   ============================================================ */

.footer-masthead {
  font-size: clamp(44px, 7vw, 96px);
}

/* ============================================================
   WORDMARK — terracotta tittle on the dotless ı (U+0131). The
   glyph itself renders no natural tittle, so the only dot above
   the stem is the one we draw via ::before. Same pattern works
   at every wordmark scale.
   ============================================================ */

.wordmark-i {
  position: relative;
  margin-left: -0.02em;
  margin-right: -0.04em;
}
.wordmark-i::before {
  content: "";
  position: absolute;
  width: 0.16em;
  height: 0.16em;
  border-radius: 50%;
  background: var(--brand-terracotta);
  left: 50%;
  /* 75 % gap reduction from prior 0.22em (locked commit 20.1.5.4). The dot
     now sits 0.0205em above the stem top vs the prior 0.0820em. Must stay
     in lockstep with scripts/brand-export/extract_glyphs.py TITTLE_TOP. */
  top: 0.2815em;
  transform: translateX(calc(-50% + 0.02em));
  pointer-events: none;
}

/* ============================================================
   BUTTONS — paired with Tailwind utilities for layout
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 16px 28px;
  border-radius: 3px;
  border: none;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand-terracotta);
  color: var(--surface-paper);
}
.btn-primary:hover { background: var(--brand-terracotta-dk); }

.btn-secondary {
  background: transparent;
  color: var(--ink-primary);
  border: 1.5px solid var(--ink-primary);
}
.btn-secondary:hover { background: var(--ink-primary); color: var(--surface-paper); }

.btn-light {
  background: transparent;
  color: var(--ink-inverse);
  border: 1.5px solid var(--ink-inverse);
}
.btn-light:hover { background: var(--ink-inverse); color: var(--ink-primary); }

.btn-ghost {
  padding: 8px 0;
  color: var(--ink-primary);
  border-radius: 0;
  position: relative;
  background: transparent;
}
.btn-ghost::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink-primary);
  transition: background 180ms;
}
.btn-ghost:hover { color: var(--brand-terracotta); }
.btn-ghost:hover::after { background: var(--brand-terracotta); }

.btn-arrow::after { content: "→"; font-size: 17px; transition: transform 200ms ease; }
.btn:hover.btn-arrow::after { transform: translateX(3px); }

/* ============================================================
   PHOTO PLACEHOLDERS — warm gradient, used until real
   editorial photography is shot. Same pattern as wireframe v2.
   ============================================================ */

.photo {
  position: relative;
  background:
    radial-gradient(120% 80% at 30% 25%, rgba(255, 244, 220, 0.45), transparent 60%),
    linear-gradient(135deg, var(--brand-clay) 0%, #C99A6E 55%, #9A7148 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  isolation: isolate;
  width: 100%;
}
/* Consumers set vertical sizing — either aspect-ratio inline (steps,
   article cards) or explicit h-full Tailwind utility (hero, full-bleed). */
.photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  mix-blend-mode: overlay;
  z-index: -1;
}
.photo-label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(28, 26, 23, 0.78);
  background: rgba(244, 238, 226, 0.9);
  padding: 6px 10px;
  font-weight: 500;
  max-width: 80%;
}
.photo-portrait  { aspect-ratio: 4 / 5; }
.photo-landscape { aspect-ratio: 4 / 3; }
.photo-square    { aspect-ratio: 1; }
.photo-tall      { aspect-ratio: 3 / 4.6; }

/* Real editorial photography wrapper. Use when a slot has a deployed
   <picture> instead of the gradient placeholder above. The wrapper
   reserves the box (CLS=0) and the inner img fills it with object-cover. */
.editorial-photo {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--surface-bone);
}
.editorial-photo--landscape { aspect-ratio: 4 / 3; }
.editorial-photo--portrait  { aspect-ratio: 4 / 5; }
.editorial-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-sage {
  background:
    radial-gradient(120% 80% at 70% 30%, rgba(255,255,255,0.3), transparent 60%),
    linear-gradient(135deg, var(--accent-sage) 0%, #9DA890 50%, #6F7A65 100%);
}
.photo-deep {
  background:
    radial-gradient(120% 80% at 30% 30%, rgba(255,255,255,0.18), transparent 60%),
    linear-gradient(135deg, #5A4632 0%, #3D3122 50%, #221C13 100%);
}
.photo-cream {
  background:
    radial-gradient(120% 80% at 50% 30%, rgba(255,255,255,0.55), transparent 60%),
    linear-gradient(135deg, #EAD9BE 0%, #D8BF95 100%);
}
.photo-olive {
  background:
    radial-gradient(120% 80% at 60% 30%, rgba(255,255,255,0.18), transparent 60%),
    linear-gradient(135deg, #4F5945 0%, #353D2E 50%, #20271C 100%);
}

/* ============================================================
   CONTAINER + LAYOUT HELPERS
   ============================================================ */

.tk-container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
.tk-section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}
.tk-section ~ .tk-section {
  padding-top: 0;
}
.tk-section:last-of-type {
  padding-bottom: 0;
}

/* ============================================================
   PROSE-TAMARIN — editorial overrides for Tailwind typography
   plugin. Used on long-form legal pages (politica, termos).
   Wrapper carries card chrome (surface-bone, 1px rule, 3px radius);
   typography overrides target h1/h2/h3/p/strong/em/a/hr/blockquote/
   ul/ol/li with Fraunces display + Geist body + brand tokens.
   Element-level selectors are scoped under article.prose-tamarin
   so they win specificity over the Tailwind prose plugin.
   ============================================================ */

.prose-tamarin {
  background: var(--surface-bone);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: none;
}

article.prose-tamarin h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 380;
  letter-spacing: -0.024em;
  color: var(--ink-primary);
  line-height: 1.05;
  margin: 0 0 0.6em;
}
article.prose-tamarin h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 420;
  letter-spacing: -0.014em;
  color: var(--ink-primary);
  line-height: 1.2;
  margin: 2.5em 0 0.75em;
}
article.prose-tamarin h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 440;
  letter-spacing: -0.012em;
  color: var(--ink-primary);
  line-height: 1.3;
  margin: 1.75em 0 0.5em;
}
article.prose-tamarin p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-secondary);
  margin: 0 0 1em;
}
article.prose-tamarin strong {
  font-weight: 600;
  color: var(--ink-primary);
}
article.prose-tamarin em,
article.prose-tamarin i {
  font-style: italic;
  color: inherit;
}
article.prose-tamarin a {
  color: var(--brand-terracotta);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 200ms ease;
}
article.prose-tamarin a:hover {
  color: var(--brand-terracotta-dk);
}
article.prose-tamarin hr {
  border: 0;
  border-top: 1px solid var(--rule);
  height: 1px;
  margin: 4em 0;
}
article.prose-tamarin blockquote {
  border-left: 2px solid var(--rule-strong);
  padding-left: 24px;
  margin: 1.75em 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-primary);
}
article.prose-tamarin blockquote p {
  font-family: inherit;
  font-style: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
}
article.prose-tamarin blockquote p::before,
article.prose-tamarin blockquote p::after,
article.prose-tamarin blockquote::before,
article.prose-tamarin blockquote::after {
  content: none;
}
article.prose-tamarin ul,
article.prose-tamarin ol {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-secondary);
  padding-left: 1.5em;
  margin: 1em 0;
}
article.prose-tamarin li {
  margin: 0.5em 0;
}
article.prose-tamarin li::marker {
  color: var(--ink-muted);
}
article.prose-tamarin ul ul,
article.prose-tamarin ol ol,
article.prose-tamarin ul ol,
article.prose-tamarin ol ul {
  margin: 0.5em 0;
}

/* ============================================================
   ANIMATION
   IntersectionObserver fade-up enters via .reveal-up.is-in;
   prefers-reduced-motion respected.
   ============================================================ */

.reveal-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.is-in { opacity: 1; transform: translateY(0); }

/* Blog category fade-up — initial state via CSS only (no FOUC),
   final state added by IntersectionObserver in blog.html. */
.blog-category {
  opacity: 0.6;
  transform: translateY(8px);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-category.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1; transform: none; transition: none; }
  .blog-category { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
