@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-400.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/inter-500.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/inter-700.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/inter-800.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:900;font-display:swap;src:url('/fonts/inter-900.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/fraunces-400.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/fraunces-500.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/fraunces-700.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:400;font-display:swap;src:url('/fonts/fraunces-400-italic.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:500;font-display:swap;src:url('/fonts/fraunces-500-italic.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:700;font-display:swap;src:url('/fonts/fraunces-700-italic.woff2') format('woff2');}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/jbmono-400.woff2') format('woff2');}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/jbmono-500.woff2') format('woff2');}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/jbmono-700.woff2') format('woff2');}
:root {
  --ink:    #0b0b0b;
  --paper:  #f4f1ea;
  --paper-2:#ebe6d8;
  --mute:   #6b6660;
  --hot:    #ff3321;
  --accent: #ffd400;
  --cobalt: #1939ff;
  --jade:   #0ea35e;
  --plum:   #7c3aed;
  --ocean:  #00b8d4;
  --sand:   #e9a23b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--ink);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body { padding: 0; }
.mag {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  overflow: hidden;
}
/* No min-height here: short stories shouldn't pad out to a full screen.
   The cover keeps its poster presence via its own min-height (COVER_CSS). */
.spread {
  padding: 80px 64px;
  position: relative;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: 'JetBrains Mono', monospace; }
.serif { font-family: 'Fraunces', serif; }

/* ── Shared masthead bar (every page type) ─────── */
.site-bar {
  background: var(--ink);
  color: var(--paper);
  padding: 12px 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  letter-spacing: .03em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.site-bar-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: -.03em;
  font-size: 22px;
  text-transform: uppercase;
}
.site-bar-brand .slash { color: var(--hot); }
.site-bar-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  text-transform: uppercase;
}
.site-bar-nav a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .site-bar { padding: 12px 20px; gap: 8px; flex-direction: column; align-items: flex-start; }
  .site-bar-nav { gap: 8px 14px; }
}
@media print { .site-bar { display: none !important; } }

/* ── Reduced motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Kicker / tag ─────────────────────────────── */
.kicker {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 20px;
  padding: 7px 12px;
  border: 2px solid currentColor;
  line-height: 1;
}

/* ── Headlines ────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .94;
}
h2 em, h1 em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.02em;
}

/* ── Body ─────────────────────────────────────── */
.body {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  line-height: 1.55;
  font-weight: 400;
}
.lede {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
}

/* ── Ghost numeral used by most layouts ───────── */
.num-ghost {
  position: absolute;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(280px, 42vw, 520px);
  line-height: 1;
  letter-spacing: -.05em;
  color: currentColor;
  opacity: .06;
  pointer-events: none;
  bottom: -60px;
  right: -40px;
  z-index: 0;
}
.num-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .05em;
  padding: 6px 10px;
  background: var(--ink);
  color: var(--paper);
  line-height: 1;
}

/* ── Sources block ────────────────────────────── */
.src {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 2px solid currentColor;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.src b {
  display: block;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 20px;
  opacity: .7;
}
.src a {
  display: inline-block;
  margin-right: 22px;
  margin-bottom: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: inherit;
}
.src a:hover { background: currentColor; color: var(--paper); }
.layout-manifesto .src a:hover, .layout-terminal .src a:hover,
.layout-midnight .src a:hover, .layout-finale .src a:hover { color: var(--ink); }

/* ── Colophon ─────────────────────────────────── */
.colophon {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 64px;
}
.colophon h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 7vw, 96px);
  line-height: .9;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.colophon h3 em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; color: var(--accent); }
.colophon p {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  line-height: 1.55;
  max-width: 900px;
  margin-bottom: 20px;
}
.colophon ul {
  list-style: none;
  margin-top: 30px;
  columns: 2;
  column-gap: 50px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
}
.colophon li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(244,241,234,.2);
  break-inside: avoid;
}
.colophon a { color: var(--accent); }
.colophon a:hover { color: var(--hot); }
.colophon-nav {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 2px solid rgba(244,241,234,.25);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  letter-spacing: .04em;
}
.colophon-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid var(--accent);
  color: var(--accent);
  transition: background .12s ease, color .12s ease, transform .12s ease;
}
.colophon-nav a:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}
.colophon-back { font-weight: 700; }
.colophon-top { margin-left: auto; }

@media (max-width: 640px) {
  .colophon-nav { gap: 12px; margin-top: 36px; padding-top: 20px; }
  .colophon-nav a { padding: 9px 12px; font-size: 20px; }
  .colophon-top { margin-left: 0; }
}

/* ───────────────────────────────────────────────────────────────────── */
/* Responsive overrides — !important is required because layout selectors */
/* like .layout-hero .body (0,2,0) outrank these overrides (.body, 0,1,0) */
/* on specificity, regardless of order in the stylesheet.                 */
/* ───────────────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .mag { box-shadow: none !important; }
  .spread { padding: 56px 36px !important; min-height: auto !important; }
  .colophon { padding: 56px 36px !important; }
  .colophon ul { columns: 1 !important; }

  /* ghost numerals scale down */
  .num-ghost { font-size: clamp(220px, 40vw, 360px) !important; bottom: -40px !important; right: -20px !important; }

  /* unify all headlines */
  .cover h1,
  .layout-hero h2,
  .layout-midnight h2,
  .layout-rose h2,
  .layout-terminal h2,
  .layout-dropcap h2,
  .layout-bigstat h2,
  .layout-stamp h2,
  .layout-manifesto h2,
  .layout-editorial h2,
  .layout-finale h2 {
    font-size: clamp(44px, 8.5vw, 80px) !important;
    line-height: .96 !important;
  }

  /* collapse multi-column body text */
  .layout-hero .body,
  .layout-rose .body,
  .layout-dropcap .body,
  .layout-manifesto .body { column-count: 1 !important; }

  /* drop-cap: smaller initial */
  .layout-dropcap .body::first-letter {
    font-size: 92px !important;
    padding: 4px 12px 0 0 !important;
  }

  /* manifesto pullquote */
  .layout-manifesto .pullquote { font-size: 30px !important; padding: 24px 0 !important; margin: 36px 0 0 !important; }

  /* rose-alert: move URGENTE stamp */
  .layout-rose::before {
    top: 24px !important;
    right: 24px !important;
    padding: 10px 16px !important;
    font-size: 20px !important;
    letter-spacing: .15em !important;
  }

  /* lede italic blocks */
  .lede { font-size: 22px !important; }

  /* terminal body */
  .layout-terminal .body { font-size: 20px !important; line-height: 1.55 !important; }

  /* bigstat/midnight stat boxes */
  .layout-bigstat .stat .big,
  .layout-midnight .stat .big { font-size: clamp(64px, 16vw, 110px) !important; }
  .layout-finale .stats { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  .layout-finale .stats .n { font-size: clamp(48px, 12vw, 80px) !important; }
  .layout-bigstat .grid,
  .layout-midnight .grid,
  .layout-editorial .grid,
  .layout-stamp .grid,
  .layout-hero .grid { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* stamp info box */
  .layout-stamp .info .head { font-size: 28px !important; }
}

/* ── Table of contents (after the cover) ──────── */
.toc {
  background: var(--paper);
  color: var(--ink);
  padding: 36px 64px 40px;
  border-bottom: 4px solid var(--ink);
}
.toc-title {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 20px;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--paper);
  margin-bottom: 20px;
}
.toc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
.toc-item {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.2);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.01em;
  transition: color .12s ease, transform .12s ease;
}
.toc-item:hover { color: var(--hot); transform: translateX(3px); }
.toc-item .toc-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 20px;
  color: var(--hot);
}
.toc-item .toc-head em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; }
@media (max-width: 900px) {
  .toc { padding: 28px 22px 30px; }
  .toc-list { grid-template-columns: 1fr; }
  .toc-item { font-size: 20px; }
}

/* ── Share button + anchor link ───────────────── */
.share-bar {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px dashed currentColor;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.share-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 10px 18px;
  /* Not background: currentColor — on the same element that resolves to
     the button's own color (paper-on-paper, invisible). The per-layout
     lists below pick the right contrast pair. */
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  transition: background .12s ease, color .12s ease, transform .12s ease;
}
.share-btn .share-label { color: inherit; }
.share-btn:hover { transform: translateY(-1px); }
.share-btn.share-copied { background: var(--jade); border-color: var(--jade); color: var(--paper); }
.layout-hero .share-btn, .layout-rose .share-btn, .layout-dropcap .share-btn,
.layout-bigstat .share-btn, .layout-stamp .share-btn, .layout-editorial .share-btn {
  /* dark-ink button on light layouts */
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.layout-midnight .share-btn, .layout-manifesto .share-btn, .layout-terminal .share-btn,
.layout-finale .share-btn {
  /* light button on dark layouts */
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.share-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  letter-spacing: .08em;
  opacity: .7;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}
.share-link:hover { opacity: 1; }

/* ── Throwback (En esta fecha) ────────────────── */
.throwback {
  background: var(--paper-2);
  color: var(--ink);
  padding: 64px 64px 56px;
  border-top: 4px solid var(--ink);
}
.throwback h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 60px);
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin-bottom: 30px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.throwback h3 em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--hot);
  font-size: .6em;
  text-transform: none;
  letter-spacing: -.015em;
}
.throwback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.throwback-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  background: var(--paper);
  border: 2px solid var(--ink);
  min-height: 180px;
  transition: background .12s ease, color .12s ease, transform .12s ease;
}
.throwback-card:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.throwback-card:hover .throwback-label { color: var(--accent); }
.throwback-label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hot);
}
.throwback-card h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.throwback-card h4 em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; color: var(--hot); }
.throwback-card:hover h4 em { color: var(--accent); }
.throwback-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  letter-spacing: .04em;
  opacity: .75;
}

@media (max-width: 640px) {
  .spread { padding: 44px 22px !important; }
  .colophon { padding: 40px 22px !important; }
  .colophon h3 { font-size: 40px !important; }

  .num-ghost { font-size: clamp(180px, 46vw, 260px) !important; }
  .num-tag { font-size: 20px !important; }

  .cover h1,
  .layout-hero h2,
  .layout-midnight h2,
  .layout-rose h2,
  .layout-terminal h2,
  .layout-dropcap h2,
  .layout-bigstat h2,
  .layout-stamp h2,
  .layout-manifesto h2,
  .layout-editorial h2,
  .layout-finale h2 {
    font-size: clamp(34px, 9vw, 54px) !important;
  }

  .kicker { font-size: 20px !important; letter-spacing: .15em !important; padding: 6px 10px !important; }
  .body { font-size: 20px !important; line-height: 1.55 !important; }
  .lede { font-size: 22px !important; }

  .layout-finale .stats { grid-template-columns: 1fr !important; }
  .layout-finale .stats .n { font-size: 52px !important; }

  /* sources: stack vertically */
  .src a { display: block !important; margin: 6px 0 !important; }
  .src b { font-size: 20px !important; }

  .share-bar { margin-top: 28px !important; padding-top: 16px !important; gap: 12px !important; }
  .share-btn { font-size: 20px !important; padding: 10px 14px !important; }
  .throwback { padding: 40px 22px !important; }
  .throwback h3 { font-size: clamp(28px, 8vw, 40px) !important; margin-bottom: 22px !important; gap: 12px !important; }
  .throwback-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .throwback-card { padding: 22px !important; min-height: 0 !important; }
}

/* ── Continuity chip (follows_up) ─────────────── */
.follow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .02em;
  padding: 4px 10px;
  border: 2px dashed currentColor;
  transition: background .12s ease, color .12s ease;
}
.layout-hero .follow-chip:hover, .layout-rose .follow-chip:hover,
.layout-dropcap .follow-chip:hover, .layout-stamp .follow-chip:hover,
.layout-editorial .follow-chip:hover, .layout-bigstat .follow-chip:hover {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.layout-midnight .follow-chip:hover, .layout-manifesto .follow-chip:hover,
.layout-terminal .follow-chip:hover, .layout-finale .follow-chip:hover {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}

/* ── Tag chips (ride inside each story's share bar) ── */
.share-tags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}
.related-chip {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 20px;
  padding: 4px 10px;
  border: 2px solid currentColor;
  letter-spacing: .02em;
  transition: background .12s ease, color .12s ease;
}
/* dark layouts: hover reverses into paper background, ink text */
.layout-midnight .related-chip:hover, .layout-manifesto .related-chip:hover,
.layout-terminal .related-chip:hover, .layout-finale .related-chip:hover {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
/* light layouts: hover reverses into ink background, paper text */
.layout-hero .related-chip:hover, .layout-rose .related-chip:hover,
.layout-dropcap .related-chip:hover, .layout-stamp .related-chip:hover,
.layout-editorial .related-chip:hover, .layout-bigstat .related-chip:hover {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

@media (max-width: 640px) {
  .share-tags { margin-left: 0; }
}

/* ── Reading progress bar ─────────────────────── */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 9999;
  background: transparent;
  pointer-events: none;
}
.read-progress-fill {
  height: 100%;
  width: 0;
  background: var(--hot);
  transition: width .08s linear;
}

/* ── Story rail (right edge) ──────────────────── */
.story-rail {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 20px;
}
.story-rail-item {
  display: block;
  padding: 4px 8px;
  color: var(--mute);
  opacity: .75;
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .12s ease, opacity .12s ease, transform .12s ease;
}
.story-rail-item:hover { opacity: 1; color: var(--ink); transform: translateX(-2px); }
.story-rail-item.active {
  opacity: 1;
  color: var(--hot);
  font-weight: 800;
}
.story-rail-item.active::before {
  content: "▸";
  margin-right: 4px;
  color: var(--hot);
}

/* ── TTS pill ─────────────────────────────────── */
.tts-pill {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  gap: 0;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  overflow: hidden;
}
.tts-pill .tts-btn {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 12px 18px;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.tts-pill .tts-btn:hover { background: var(--hot); color: var(--paper); }
.tts-pill .tts-stop {
  border-left: 1px solid rgba(244,241,234,.2);
  padding: 12px 14px;
}
.tts-pill .tts-icon-pause { display: none; }
.tts-pill.tts-playing:not(.tts-paused) .tts-icon-play { display: none; }
.tts-pill.tts-playing:not(.tts-paused) .tts-icon-pause { display: inline; }
.tts-pill.tts-playing .tts-label::after { content: " · reproduciendo"; opacity: .7; font-weight: 500; }
.tts-pill.tts-paused .tts-label::after { content: " · pausado"; opacity: .7; font-weight: 500; }
.tts-pill:not(.tts-playing) .tts-stop { display: none; }

/* highlight the section being read */
.cover.tts-active, .spread.tts-active {
  box-shadow: inset 6px 0 0 var(--hot);
}
.cover.tts-active::after, .spread.tts-active::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--hot);
  opacity: .6;
  animation: ttsPulse 1.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
}
@keyframes ttsPulse { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }

/* ── Bookmark button (inside share bar) ───────── */
.bookmark-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 10px 16px;
  background: transparent;
  color: currentColor;
  border: 2px solid currentColor;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  transition: background .12s ease, color .12s ease, transform .12s ease;
}
.bookmark-btn:hover { transform: translateY(-1px); }
.bookmark-btn .bookmark-icon { font-size: 22px; line-height: 1; display: inline-block; }
.bookmark-btn .bookmark-icon-on { display: none; color: var(--hot); }
.bookmark-btn.is-saved .bookmark-icon-off { display: none; }
.bookmark-btn.is-saved .bookmark-icon-on { display: inline-block; }
.bookmark-btn.is-saved { background: currentColor; color: var(--paper); }
.bookmark-btn.is-saved .bookmark-icon-on { color: var(--accent); }
.bookmark-btn.is-saved .bookmark-label::before { content: "Guardada"; }
.bookmark-btn.is-saved .bookmark-label { font-size: 0; }
.bookmark-btn.is-saved .bookmark-label::before { font-size: 20px; }

@media (max-width: 900px) {
  .story-rail { display: none; }
}
@media (max-width: 640px) {
  .tts-pill { right: 12px; bottom: 12px; font-size: 20px; }
  .tts-pill .tts-btn { padding: 10px 14px; }
  .bookmark-btn { padding: 10px 12px; font-size: 20px; }
}

/* ── Print ────────────────────────────────────── */
@media print {
  :root {
    --ink: #111;
    --paper: #fff;
    --paper-2: #f6f4ec;
  }
  html, body { background: #fff !important; color: #111 !important; }
  .mag { max-width: none !important; box-shadow: none !important; margin: 0 !important; }
  .spread { page-break-after: always; break-after: page; min-height: 0 !important; padding: 28px 22px !important; }
  .spread:last-of-type { page-break-after: auto; break-after: auto; }
  .num-ghost, .ghost { display: none !important; }
  .share-bar, .topbar, .bar { display: none !important; }
  .read-progress, .story-rail, .tts-pill, .bookmark-btn { display: none !important; }
  .throwback { break-before: page; page-break-before: always; padding: 28px 22px !important; }
  .colophon { background: #fff !important; color: #111 !important; padding: 28px 22px !important; }
  .colophon a { color: #111 !important; }
  a { color: inherit !important; text-decoration: none !important; }
  /* surface source URLs next to their link labels on paper */
  .src a[href]::after, .colophon a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
    font-weight: 400;
  }
  h1, h2, h3 { page-break-after: avoid; break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  img { max-width: 100% !important; height: auto !important; }
}

/* min-height lives here (not on .spread) so the cover keeps its poster
   presence while short stories are free to be short. */
.cover { padding: 48px 56px 64px; min-height: 90vh; display: flex; flex-direction: column; gap: 40px; }
.cover .top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 20px;
  border-bottom: 3px solid currentColor;
  padding-bottom: 16px;
}
.cover .nameplate {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.cover .nameplate a { color: inherit; }
.cover .nameplate .slash { color: var(--cat-accent); }
.cover .issue {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .08em;
  text-align: right;
}
.cover .tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--cat-accent);
  color: var(--cat-bg);
  padding: 8px 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1;
  transition: background .12s ease, color .12s ease;
}
.cover .tag:hover { text-decoration: underline; text-underline-offset: 4px; }
.cover h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(72px, 10.5vw, 180px);
  line-height: .9;
  letter-spacing: -.04em;
  max-width: 1200px;
}
.cover h1 em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--cat-accent);
  letter-spacing: -.02em;
}
.cover .sub {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 34px);
  max-width: 1100px;
  line-height: 1.25;
  margin-top: 8px;
}
.cover .highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 3px solid currentColor;
  margin-top: 24px;
}
.cover .hl {
  padding: 28px 22px 22px;
  border-right: 2px solid currentColor;
  position: relative;
}
.cover .hl:last-child { border-right: none; }
.cover .hl .idx {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .1em;
  opacity: .6;
  margin-bottom: 16px;
}
.cover .hl .v {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--cat-accent);
  margin-bottom: 12px;
}
.cover .hl .l {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  line-height: 1.4;
}
.cover .bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  color: currentColor;
  opacity: .75;
  border-top: 3px solid currentColor;
  padding-top: 16px;
}
.cover .bottom a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
@media (max-width: 900px) {
  .cover { padding: 36px 22px 48px !important; gap: 28px; }
  .cover .highlights { grid-template-columns: 1fr; }
  .cover .hl { border-right: none !important; border-bottom: 2px solid currentColor; }
  .cover .hl:last-child { border-bottom: none; }
  .cover .hl .v { font-size: clamp(32px, 9vw, 48px) !important; }
  .cover .top { grid-template-columns: 1fr; }
  .cover .issue { text-align: left; }
  .cover .bottom { flex-direction: column; gap: 6px; }
}


.layout-bigstat { background: var(--accent); color: var(--ink); }
.layout-bigstat .ghost {
  position: absolute;
  bottom: -90px;
  right: -40px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(320px, 50vw, 600px);
  line-height: 1;
  letter-spacing: -.055em;
  color: var(--ink);
  opacity: .06;
  pointer-events: none;
}
.layout-bigstat .inner { position: relative; z-index: 1; }
.layout-bigstat .top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 36px;
}
.layout-bigstat .num-tag { background: var(--ink); color: var(--accent); }
.layout-bigstat h2 {
  font-size: clamp(60px, 7.2vw, 116px);
  margin-bottom: 40px;
  max-width: 1300px;
}
.layout-bigstat h2 em { color: var(--hot); }
.layout-bigstat h2 span {
  background: var(--ink);
  color: var(--accent);
  padding: 0 .2em;
}
.layout-bigstat .grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.layout-bigstat .body { font-size: 22px; line-height: 1.55; }
.layout-bigstat .stat {
  background: var(--ink);
  color: var(--accent);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.layout-bigstat .stat .big {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(80px, 8vw, 140px);
  line-height: .88;
  letter-spacing: -.03em;
}
.layout-bigstat .stat .lbl {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: 16px;
  color: var(--paper);
  line-height: 1.3;
}
.layout-bigstat .src { border-top-color: var(--ink); }


.layout-dropcap { background: var(--paper-2); color: var(--ink); }
.layout-dropcap .ghost {
  position: absolute;
  top: -40px;
  right: -20px;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(280px, 44vw, 520px);
  line-height: 1;
  color: var(--hot);
  opacity: .08;
  pointer-events: none;
}
.layout-dropcap .inner { position: relative; z-index: 1; }
.layout-dropcap .top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 36px;
}
.layout-dropcap .num-tag { background: var(--ink); color: var(--paper); }
.layout-dropcap h2 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(56px, 6.6vw, 104px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin-bottom: 40px;
  max-width: 1200px;
}
.layout-dropcap h2 em { color: var(--hot); font-weight: 700; }
.layout-dropcap .body {
  column-count: 2;
  column-gap: 56px;
  text-align: justify;
  font-size: 22px;
  line-height: 1.6;
}
.layout-dropcap .body::first-letter {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 140px;
  line-height: .82;
  float: left;
  padding: 10px 16px 0 0;
  color: var(--hot);
  letter-spacing: -.04em;
}
.layout-dropcap .sig {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 24px;
  margin-top: 36px;
  text-align: right;
  color: var(--mute);
}
@media (max-width: 900px) {
  .layout-dropcap .body { column-count: 1 !important; text-align: left; }
}


.layout-editorial { background: var(--paper); color: var(--ink); }
.layout-editorial .ghost {
  position: absolute;
  bottom: -90px;
  left: -40px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(300px, 46vw, 540px);
  line-height: 1;
  letter-spacing: -.055em;
  color: var(--jade);
  opacity: .08;
  pointer-events: none;
}
.layout-editorial .inner { position: relative; z-index: 1; }
.layout-editorial .top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--jade);
  margin-bottom: 36px;
}
.layout-editorial .num-tag { background: var(--jade); color: var(--paper); }
.layout-editorial .kicker { color: var(--jade); }
.layout-editorial h2 {
  font-size: clamp(56px, 6.8vw, 108px);
  margin-bottom: 36px;
  max-width: 1300px;
}
.layout-editorial h2 em { color: var(--jade); }
.layout-editorial .grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.layout-editorial .grid.solo { grid-template-columns: 1fr; }
.layout-editorial .sidebar {
  background: var(--jade);
  color: var(--paper);
  padding: 32px;
}
.layout-editorial .sidebar h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(244,241,234,.5);
}
.layout-editorial .sidebar p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--paper);
}
.layout-editorial .sidebar p + p { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(244,241,234,.25); }
.layout-editorial .src { border-top-color: var(--jade); }
.layout-editorial .src b { color: var(--jade); opacity: 1; }
.layout-editorial .src a:hover { background: var(--jade); color: var(--paper); }


.layout-finale { background: var(--hot); color: var(--paper); }
.layout-finale .ghost {
  position: absolute;
  bottom: -140px;
  right: -60px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(380px, 56vw, 760px);
  line-height: 1;
  letter-spacing: -.065em;
  color: var(--ink);
  opacity: .14;
  pointer-events: none;
}
.layout-finale .inner { position: relative; z-index: 1; }
.layout-finale .top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 36px;
}
.layout-finale .num-tag { background: var(--ink); color: var(--accent); }
.layout-finale .kicker { color: var(--ink); border-color: var(--ink); }
.layout-finale h2 {
  font-size: clamp(60px, 7.2vw, 120px);
  margin-bottom: 32px;
  max-width: 1300px;
}
.layout-finale h2 em { color: var(--accent); }
.layout-finale h2 u {
  text-decoration: underline solid var(--ink);
  text-decoration-thickness: 10px;
  text-underline-offset: 14px;
}
.layout-finale .lede {
  color: #ffe0de;
  margin-bottom: 36px;
  max-width: 1100px;
}
.layout-finale .body { max-width: 1200px; color: #ffeeed; }
.layout-finale .stats {
  margin-top: 56px;
  padding: 36px 0;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1300px;
}
.layout-finale .stat .n {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(64px, 6.6vw, 112px);
  line-height: .88;
  letter-spacing: -.035em;
  color: var(--ink);
}
.layout-finale .stat .l {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: 12px;
  color: var(--paper);
  line-height: 1.3;
}
.layout-finale .src { border-top-color: var(--ink); }
.layout-finale .src b { color: var(--ink); opacity: 1; }
.layout-finale .src a { color: var(--paper); border-color: var(--paper); }
.layout-finale .src a:hover { background: var(--ink); color: var(--accent); border-color: var(--ink); }


.layout-hero { background: var(--paper); color: var(--ink); }
.layout-hero .ghost {
  position: absolute;
  bottom: -80px;
  right: -40px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(300px, 46vw, 560px);
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--hot);
  opacity: .08;
  pointer-events: none;
}
.layout-hero .top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
.layout-hero .num-tag { background: var(--hot); color: var(--paper); }
.layout-hero .grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: end;
  position: relative;
  z-index: 1;
}
.layout-hero h2 {
  font-size: clamp(60px, 7vw, 112px);
}
.layout-hero h2 u {
  text-decoration: underline solid var(--hot);
  text-decoration-thickness: 8px;
  text-underline-offset: 14px;
}
.layout-hero .lede { margin-top: 12px; }
.layout-hero .body {
  margin-top: 40px;
  column-count: 2;
  column-gap: 48px;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .layout-hero .grid { grid-template-columns: 1fr; gap: 24px !important; }
  .layout-hero .body { column-count: 1 !important; }
}


.layout-manifesto { background: var(--ink); color: var(--paper); }
.layout-manifesto .ghost {
  position: absolute;
  top: -60px;
  right: -40px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(320px, 48vw, 580px);
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--hot);
  opacity: .14;
  pointer-events: none;
}
.layout-manifesto .inner { position: relative; z-index: 1; }
.layout-manifesto .top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--hot);
  margin-bottom: 36px;
}
.layout-manifesto .num-tag { background: var(--hot); color: var(--paper); }
.layout-manifesto .kicker { color: var(--hot); border-color: var(--hot); }
.layout-manifesto h2 {
  font-size: clamp(56px, 6.8vw, 108px);
  margin-bottom: 40px;
  max-width: 1200px;
}
.layout-manifesto h2 em { color: var(--hot); }
.layout-manifesto .body {
  column-count: 2;
  column-gap: 56px;
  color: #d6d0c2;
  max-width: 1200px;
}
.layout-manifesto .pullquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.2;
  margin: 56px 0 8px;
  padding: 32px 0;
  border-top: 4px solid var(--hot);
  border-bottom: 4px solid var(--hot);
  color: var(--hot);
  max-width: 1200px;
}
.layout-manifesto .pullquote::before { content: "“"; margin-right: 4px; }
.layout-manifesto .pullquote::after { content: "”"; margin-left: 4px; }
.layout-manifesto .src { border-top-color: var(--hot); }
.layout-manifesto .src b { color: var(--hot); opacity: 1; }
.layout-manifesto .src a { color: var(--paper); border-color: var(--paper); }
.layout-manifesto .src a:hover { background: var(--hot); color: var(--paper); border-color: var(--hot); }


.layout-midnight { background: var(--cobalt); color: var(--paper); }
.layout-midnight .ghost {
  position: absolute;
  top: -40px;
  right: -20px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(280px, 42vw, 520px);
  line-height: 1;
  letter-spacing: -.055em;
  color: var(--accent);
  opacity: .08;
  pointer-events: none;
}
.layout-midnight .inner { position: relative; z-index: 1; }
.layout-midnight .top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(244,241,234,.4);
  margin-bottom: 36px;
}
.layout-midnight .num-tag { background: var(--accent); color: var(--ink); }
.layout-midnight .kicker { color: var(--accent); border-color: var(--accent); }
.layout-midnight h2 {
  font-size: clamp(56px, 6.8vw, 104px);
  margin-bottom: 24px;
}
.layout-midnight h2 u {
  text-decoration: underline solid var(--accent);
  text-decoration-thickness: 6px;
  text-underline-offset: 12px;
}
.layout-midnight h2 em { color: var(--accent); }
.layout-midnight .lede { margin-bottom: 32px; max-width: 1000px; color: #d6e0ff; }
.layout-midnight .grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.layout-midnight .body { color: #e6ecff; }
.layout-midnight .stat {
  border: 3px solid var(--accent);
  padding: 32px;
  background: rgba(0,0,0,.15);
}
.layout-midnight .stat .big {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(64px, 6.4vw, 112px);
  line-height: .92;
  letter-spacing: -.03em;
  color: var(--accent);
}
.layout-midnight .stat .lbl {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: 20px;
  margin-top: 14px;
  color: var(--paper);
}
.layout-midnight .src { border-top-color: rgba(244,241,234,.4); }
.layout-midnight .src b { color: var(--accent); opacity: 1; }
.layout-midnight .src a { color: var(--paper); border-color: var(--paper); }


.layout-rose { background: var(--hot); color: var(--paper); }
.layout-rose::before {
  content: "URGENTE";
  position: absolute;
  top: 40px;
  right: 48px;
  background: var(--accent);
  color: var(--ink);
  padding: 14px 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: .28em;
  font-size: 24px;
  line-height: 1;
  z-index: 2;
}
.layout-rose .ghost {
  position: absolute;
  bottom: -80px;
  left: -30px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(280px, 44vw, 520px);
  line-height: 1;
  letter-spacing: -.055em;
  color: var(--accent);
  opacity: .1;
  pointer-events: none;
}
.layout-rose .inner { position: relative; z-index: 1; }
.layout-rose .top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--paper);
  margin-bottom: 36px;
  max-width: calc(100% - 200px);
}
.layout-rose .num-tag { background: var(--ink); color: var(--paper); }
.layout-rose h2 {
  font-size: clamp(60px, 7.2vw, 120px);
  margin-bottom: 24px;
}
.layout-rose h2 em { color: var(--accent); }
.layout-rose h2 u {
  text-decoration: underline solid var(--accent);
  text-decoration-thickness: 8px;
  text-underline-offset: 14px;
}
.layout-rose .lede {
  margin-bottom: 36px;
  max-width: 1000px;
  color: #ffe8ea;
}
.layout-rose .body {
  column-count: 2;
  column-gap: 48px;
  max-width: 1200px;
  color: var(--paper);
}
.layout-rose .src { border-top-color: var(--paper); }
.layout-rose .src a { color: var(--paper); border-color: var(--paper); }
.layout-rose .src a:hover { background: var(--accent); color: var(--ink); }
@media (max-width: 900px) {
  .layout-rose .top { max-width: 100%; }
  .layout-rose .body { column-count: 1 !important; }
}


.layout-stamp { background: var(--paper); color: var(--ink); }
.layout-stamp .ghost {
  position: absolute;
  bottom: -80px;
  left: -30px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(280px, 42vw, 500px);
  line-height: 1;
  letter-spacing: -.055em;
  color: var(--cobalt);
  opacity: .06;
  pointer-events: none;
}
.layout-stamp .inner { position: relative; z-index: 1; }
.layout-stamp .top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 36px;
}
.layout-stamp .num-tag { background: var(--cobalt); color: var(--paper); }
.layout-stamp h2 {
  font-size: clamp(56px, 6.8vw, 108px);
  margin-bottom: 40px;
  max-width: 1200px;
}
.layout-stamp h2 u {
  text-decoration: underline solid var(--cobalt);
  text-decoration-thickness: 6px;
  text-underline-offset: 12px;
}
.layout-stamp .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.layout-stamp .body { font-size: 22px; line-height: 1.6; }
.layout-stamp .info {
  background: var(--ink);
  color: var(--paper);
  padding: 32px;
  position: relative;
}
.layout-stamp .info::before {
  content: "";
  position: absolute;
  top: -8px; left: -8px; right: -8px; bottom: -8px;
  border: 2px solid var(--ink);
  pointer-events: none;
}
.layout-stamp .info .label {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
}
.layout-stamp .info .head {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--paper);
  margin-bottom: 20px;
}
.layout-stamp .info .head em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; color: var(--accent); }
.layout-stamp .info ul { list-style: none; }
.layout-stamp .info li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dotted rgba(244,241,234,.4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  align-items: baseline;
}
.layout-stamp .info li .k { color: #c5bfae; font-weight: 500; }
.layout-stamp .info li .v { color: var(--accent); font-weight: 700; text-align: right; }


.layout-terminal {
  background: #050b09;
  color: #39ff14;
  font-family: 'JetBrains Mono', monospace;
}
.layout-terminal .ghost {
  position: absolute;
  bottom: -60px;
  right: -30px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(280px, 42vw, 480px);
  line-height: 1;
  color: #39ff14;
  opacity: .08;
  pointer-events: none;
}
.layout-terminal .inner { position: relative; z-index: 1; }
.layout-terminal .top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px dashed #39ff14;
  margin-bottom: 28px;
}
.layout-terminal .num-tag { background: #39ff14; color: #050b09; font-family: 'JetBrains Mono', monospace; }
.layout-terminal .kicker {
  border-color: #39ff14;
  color: #39ff14;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .15em;
}
.layout-terminal .cmd {
  font-size: 22px;
  margin-bottom: 24px;
  opacity: .85;
}
.layout-terminal .cmd::before { content: "$ "; color: #39ff14; }
.layout-terminal h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(56px, 6.8vw, 104px);
  line-height: .95;
  letter-spacing: -.035em;
  color: #e9fff5;
  margin-bottom: 32px;
}
.layout-terminal h2 em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  color: #39ff14;
}
.layout-terminal .lede {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 26px;
  line-height: 1.3;
  color: #e9fff5;
  margin-bottom: 36px;
  max-width: 1000px;
}
.layout-terminal .body {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  line-height: 1.65;
  max-width: 1200px;
  color: #e9fff5;
}
.layout-terminal .prompt-mark { color: #39ff14; }
.layout-terminal .cursor {
  display: inline-block;
  width: 16px;
  height: 24px;
  background: #39ff14;
  vertical-align: middle;
  margin-left: 4px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.layout-terminal .src { border-top: 2px dashed #39ff14; color: #39ff14; }
.layout-terminal .src b { color: #39ff14; opacity: 1; }
.layout-terminal .src a { color: #39ff14; border-color: #39ff14; }
.layout-terminal .src a:hover { background: #39ff14; color: #050b09; }


body.page-temas { background: var(--paper); color: var(--ink); }
.page-temas .wrap { max-width: 1200px; margin: 0 auto; padding: 56px 40px 100px; }
.page-temas .head {
  border-bottom: 8px solid var(--ink);
  padding-bottom: 28px;
  margin-bottom: 40px;
}
.page-temas .head .supra {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-size: 20px;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--accent);
  margin-bottom: 22px;
}
.page-temas .head h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(54px, 7vw, 96px);
  line-height: .9;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.page-temas .head h1 em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; color: var(--hot); }
.page-temas .head p {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  line-height: 1.5;
  color: var(--mute);
  max-width: 820px;
  margin-top: 20px;
}

/* ── Hub entries ──────────────────────────────── */
.page-temas .temas-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.page-temas .temas-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 2px solid var(--ink);
  position: relative;
  transition: background .12s ease, color .12s ease;
}
.page-temas .temas-entry::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 8px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .15s ease;
}
.page-temas .temas-entry:hover { background: var(--ink); color: var(--paper); padding-left: 18px; }
.page-temas .temas-entry:hover::before { transform: scaleX(1); }
.page-temas .temas-entry-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  letter-spacing: .04em;
  color: var(--mute);
  text-transform: lowercase;
}
.page-temas .temas-entry:hover .temas-entry-meta { color: #c5bfae; }
.page-temas .temas-entry-meta b { color: var(--hot); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.page-temas .temas-entry h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-transform: none;
  margin-top: 8px;
}
.page-temas .temas-entry h3 em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; color: var(--hot); }
.page-temas .temas-entry:hover h3 em { color: var(--accent); }
.page-temas .temas-entry-kicker {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 20px;
  margin-top: 14px;
  opacity: .85;
}

/* ── Index chips ──────────────────────────────── */
.page-temas .tag-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.page-temas .tag-chip {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 20px;
  border: 2px solid var(--ink);
  background: var(--paper);
  transition: background .12s ease, color .12s ease;
}
.page-temas .tag-chip:hover { background: var(--ink); color: var(--paper); }
.page-temas .tag-chip:hover .tag-chip-count { color: var(--accent); }
.page-temas .tag-chip-label {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.01em;
}
.page-temas .tag-chip-count {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 20px;
  color: var(--hot);
  letter-spacing: .04em;
}

.page-temas .empty { font-family: 'Fraunces', serif; font-style: italic; font-size: 22px; color: var(--mute); }

/* ── Index sections + A–Z directory ───────────── */
.page-temas .temas-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.page-temas .temas-sub:first-of-type { margin-top: 0; }
.page-temas .alpha-index { display: grid; gap: 28px; }
.page-temas .alpha-group { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; }
.page-temas .alpha-letter {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  color: var(--hot);
}
.page-temas .alpha-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.page-temas .alpha-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  transition: background .12s ease, color .12s ease;
}
.page-temas .alpha-chip b { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 20px; color: var(--hot); }
.page-temas .alpha-chip:hover { background: var(--ink); color: var(--paper); }
.page-temas .alpha-chip:hover b { color: var(--accent); }
@media (max-width: 720px) {
  .page-temas .alpha-group { grid-template-columns: 1fr; gap: 10px; }
  .page-temas .alpha-letter { font-size: 32px; }
}

@media (max-width: 720px) {
  .page-temas .wrap { padding: 32px 20px 60px; }
  .page-temas .head { margin-bottom: 24px; padding-bottom: 20px; border-bottom-width: 6px; }
  .page-temas .temas-entry { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .page-temas .temas-entry:hover { padding-left: 14px; }
  .page-temas .temas-entry h3 { font-size: clamp(22px, 6vw, 30px); }
}
