/* ==========================================================================
   Out of the Mark — hoja de estilos
   Papel, tinta y un solo acento: el rojo de las marcas de imprenta.
   ========================================================================== */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-full-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-full-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f2efe9;
  --paper-2: #e9e5dc;
  --paper-3: #ddd7cb;
  --ink: #121212;
  --ink-2: #3d3a35;
  --ink-3: #6b665d;
  --line: rgba(18, 18, 18, .16);
  --line-strong: rgba(18, 18, 18, .38);
  --accent: #e23a1e;
  --accent-ink: #c42e14;
  --accent-soft: rgba(226, 58, 30, .14);

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-text: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --g: clamp(16px, 4vw, 56px);
  --maxw: 1560px;
  --header-h: 72px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; background: var(--paper);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
/* grano de papel, muy sutil */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .47  0 0 0 0 .42  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; font-family: var(--f-mono); font-size: 13px; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 450; }

/* ---------------------------------------------------------------- marcas de corte */
.crop { position: absolute; inset: 0; pointer-events: none; --cl: 18px; --co: -9px; }
.crop i { position: absolute; width: var(--cl); height: var(--cl); }
.crop i::before, .crop i::after { content: ""; position: absolute; background: var(--ink); }
.crop i::before { width: 100%; height: 1px; }
.crop i::after { width: 1px; height: 100%; }
.c-tl { left: var(--co); top: var(--co); }
.c-tr { right: var(--co); top: var(--co); }
.c-bl { left: var(--co); bottom: var(--co); }
.c-br { right: var(--co); bottom: var(--co); }
.c-tl::before, .c-tl::after { left: 0; top: 0; } .c-tl::before { left: -10px; } .c-tl::after { top: -10px; }
.c-tr::before, .c-tr::after { right: 0; top: 0; } .c-tr::before { right: -10px; } .c-tr::after { top: -10px; }
.c-bl::before, .c-bl::after { left: 0; bottom: 0; } .c-bl::before { left: -10px; } .c-bl::after { bottom: -10px; }
.c-br::before, .c-br::after { right: 0; bottom: 0; } .c-br::before { right: -10px; } .c-br::after { bottom: -10px; }

/* ---------------------------------------------------------------- logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; position: relative; z-index: 2; }
.logo-word { font-family: var(--f-display); font-size: 22px; font-weight: 420; letter-spacing: -.02em; font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 0; white-space: nowrap; }
.logo-word i { font-style: italic; font-weight: 300; }
.logo-reg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.6; transform: translate(-3px, -7px); transition: transform .6s var(--ease-out); }
.logo:hover .logo-reg { transform: translate(0, 0) rotate(90deg); }

/* ---------------------------------------------------------------- cabecera */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--g);
  transition: background-color .4s, box-shadow .4s, transform .5s var(--ease-out);
}
.site-header.is-scrolled { background: rgba(242, 239, 233, .82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header { background: transparent; box-shadow: none; transform: none; color: var(--paper); }
.menu-open .logo-reg { stroke: var(--accent); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav-link { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; position: relative; padding: 6px 0; }
.nav-link span { display: inline-block; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav-link:hover::after, .nav-link.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-current::before { content: ""; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; background: var(--accent); transform: translateY(-50%); }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 0; }
.menu-btn-icon { width: 22px; height: 10px; position: relative; display: inline-block; }
.menu-btn-icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.menu-btn-icon i:first-child { top: 1px; } .menu-btn-icon i:last-child { top: 7px; right: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:first-child { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:last-child { top: 4px; right: 0; transform: rotate(-45deg); }
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------------------------------------------------------------- menú */
.menu { position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--paper); clip-path: inset(0 0 100% 0); }
.menu[hidden] { display: block; visibility: hidden; }
.menu.is-open { visibility: visible; }
.menu-inner { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 2vh) var(--g) 32px; max-width: var(--maxw); margin: 0 auto; }
.menu-kicker { color: var(--accent); margin: 0 0 3vh; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { overflow: hidden; border-top: 1px solid rgba(242, 239, 233, .14); }
.menu-list li:last-child { border-bottom: 1px solid rgba(242, 239, 233, .14); }
.menu-list a { display: flex; align-items: baseline; gap: clamp(14px, 3vw, 40px); padding: clamp(6px, 1.2vh, 14px) 0; text-decoration: none; }
.menu-num { color: rgba(242, 239, 233, .5); width: 3ch; }
.menu-txt { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 6.4vh, 76px); line-height: 1.05; letter-spacing: -.02em; font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 0; display: inline-block; transition: transform .6s var(--ease-out), font-style .3s; }
.menu-cat .menu-txt { font-style: italic; }
.menu-list a:hover .menu-txt, .menu-list a:focus-visible .menu-txt { transform: translateX(clamp(10px, 2vw, 32px)); color: var(--accent); }
.menu-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 4vh; color: rgba(242, 239, 233, .6); }
.menu-foot a { color: var(--paper); }

/* ---------------------------------------------------------------- cursor visor */
.cursor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; width: 40px; height: 40px; opacity: 0; transition: opacity .3s; will-change: transform, width, height; }
.has-cursor .cursor { opacity: 1; }
.cursor i { position: absolute; width: 10px; height: 10px; border: 0 solid var(--accent); transition: width .35s var(--ease-out), height .35s var(--ease-out); }
.cursor i:nth-child(1) { left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.cursor i:nth-child(2) { right: 0; top: 0; border-right-width: 1.5px; border-top-width: 1.5px; }
.cursor i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.cursor i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.cursor b { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--accent); border-radius: 50%; transition: transform .3s var(--ease-out); }
.cursor.is-framing b { transform: scale(0); }
.cursor.is-framing i { width: 14px; height: 14px; }
.cursor.on-dark i { border-color: var(--accent); }
.cursor.is-hidden { opacity: 0 !important; }

/* ---------------------------------------------------------------- botones y enlaces */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px; text-decoration: none; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--ink); transition: color .45s var(--ease-out); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .45s var(--ease-out); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform .5s var(--ease-out); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink::before { background: var(--accent); }
.btn-line { color: var(--ink); }
.btn-line::before { background: var(--ink); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn-line:hover, .btn-line:focus-visible { color: var(--paper); }
.btn:hover svg { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--ink); }
.link-arrow::after { content: "→"; font-family: var(--f-sans); transition: transform .45s var(--ease-out); }
.link-arrow:hover::after, a:hover .link-arrow::after { transform: translateX(6px); }
.badge-demo { display: inline-block; background: var(--accent); color: var(--paper); padding: 3px 7px 2px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }

/* ---------------------------------------------------------------- estructura de sección */
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 24px; margin-bottom: clamp(32px, 6vw, 72px); }
.sec-kicker { margin: 0; color: var(--ink-3); grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.sec-num { color: var(--accent-ink); }
.sec-num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; margin-left: 12px; vertical-align: middle; }
.sec-title { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(48px, 9vw, 150px); line-height: .9; letter-spacing: -.035em; font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; }
.sec-more { justify-self: end; margin-bottom: 12px; }

/* ---------------------------------------------------------------- portada */
.hero { position: relative; min-height: 100svh; padding: calc(var(--header-h) + clamp(28px, 7vh, 80px)) var(--g) clamp(28px, 5vh, 56px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hero-persp { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero-persp line { stroke: var(--ink); stroke-opacity: .075; stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-persp .vp-ring { fill: none; stroke: var(--accent); stroke-opacity: .5; stroke-width: 1; }
.hero-sheet { position: absolute; inset: calc(var(--header-h) + 6px) var(--g) 18px; pointer-events: none; }
.crop--hero { --cl: 26px; --co: 0px; }
.sheet-label { position: absolute; color: var(--ink-3); font-size: 10.5px; }
.sl-tl { left: 34px; top: 4px; } .sl-tr { right: 34px; top: 4px; } .sl-bl { left: 34px; bottom: 0; } .sl-br { right: 34px; bottom: 0; font-variant-numeric: tabular-nums; }

.hero-title { position: relative; z-index: 2; margin: 0; padding-top: 1vh; font-family: var(--f-display); font-weight: 300; font-size: clamp(76px, min(18.6vw, 31svh), 330px); line-height: .84; letter-spacing: -.045em; font-variation-settings: "opsz" 144, "SOFT" 20, "WONK" 0; }
.ht-line { display: block; white-space: nowrap; }
.ht-2 { padding-left: 13vw; }
.ht-w { display: inline-block; }
.hero-title i { font-style: italic; font-weight: 200; letter-spacing: -.03em; }
.ht-mark { position: relative; display: inline-block; }
.ht-box { position: absolute; left: -.07em; right: -.09em; top: .03em; bottom: -.03em; border: clamp(1.5px, .16vw, 3px) solid var(--accent); transform: translate3d(var(--bx, .1em), var(--by, .07em), 0); pointer-events: none; }
.ht-reg { position: absolute; left: 0; top: 0; width: clamp(18px, 2.4vw, 40px); height: auto; fill: none; stroke: var(--accent); stroke-width: 1.4; transform: translate(-50%, -50%); }
.ht-markword { position: relative; }

.hero-foot { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: start; margin-top: clamp(28px, 6vh, 64px); }
.hero-sub { grid-column: 1 / span 6; margin: 0; font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(26px, 3.3vw, 54px); line-height: 1.04; letter-spacing: -.02em; font-variation-settings: "opsz" 72, "SOFT" 50, "WONK" 1; }
.hero-intro { grid-column: 8 / span 5; }
.hero-intro p { margin: 0 0 22px; font-family: var(--f-text); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero-scroll { position: absolute; right: var(--g); bottom: 50%; transform: rotate(90deg) translateX(50%); transform-origin: right bottom; display: flex; align-items: center; gap: 12px; color: var(--ink-3); margin: 0; font-size: 10.5px; }
.hero-scroll i { width: 46px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: scrollcue 2.4s var(--ease-io) infinite; }
@keyframes scrollcue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* intro: estado inicial cuando hay JS y movimiento */
@media (prefers-reduced-motion: no-preference) {
  .js .page-inicio:not(.is-ready) .ht-w, .js .page-inicio:not(.is-ready) .ht-box, .js .page-inicio:not(.is-ready) .hero-foot, .js .page-inicio:not(.is-ready) .hero-sheet { opacity: 0; animation: failsafe 0s 2.6s forwards; }
}
@keyframes failsafe { to { opacity: 1; } }

/* ---------------------------------------------------------------- perspectiva */
.persp { position: relative; height: 330vh; }
.persp-pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(20px, 4vw, 64px); padding: calc(var(--header-h) + 12px) var(--g) 32px; max-width: var(--maxw); margin: 0 auto; }
.persp-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(34px, 4.4vw, 74px); line-height: .98; letter-spacing: -.03em; margin: 22px 0 clamp(24px, 5vh, 56px); font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; max-width: 12ch; }
.persp-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.persp-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink-3); transition: color .5s; }
.persp-steps li:last-child { border-bottom: 1px solid var(--line); }
.persp-steps li span { padding-top: 6px; transition: color .5s; }
.persp-steps p { margin: 0; font-family: var(--f-text); font-size: clamp(18px, 1.5vw, 23px); line-height: 1.35; }
.persp-steps em { font-family: var(--f-display); font-style: italic; }
.persp-steps li.is-active { color: var(--ink); }
.persp-steps li.is-active span { color: var(--accent-ink); }
.persp-stage { position: relative; height: min(76svh, 760px); background: var(--paper-2); }
.crop--stage { --cl: 22px; --co: 0px; }
.persp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.persp-caption { position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; justify-content: space-between; margin: 0; color: var(--ink-3); font-size: 10.5px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- últimos */
.latest, .frames, .author, .related, .newsletter { padding: clamp(80px, 13vw, 200px) var(--g) 0; max-width: var(--maxw); margin: 0 auto; }
.feature { margin-bottom: clamp(48px, 7vw, 100px); }
.feature-link { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: center; text-decoration: none; }
.feature-visual { position: relative; aspect-ratio: 5 / 4; background: var(--paper-2); overflow: visible; }
.feature-visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-visual .crop { --co: -8px; z-index: 2; }
.feature-type { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; }
.ft-label { position: absolute; left: 22px; top: 20px; color: var(--ink-3); }
.ft-big { position: absolute; left: -.04em; bottom: -.2em; font-family: var(--f-display); font-style: italic; font-weight: 200; font-size: clamp(90px, 15vw, 260px); line-height: 1; letter-spacing: -.05em; color: var(--paper-3); font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1; transition: transform 1.2s var(--ease-out); }
.feature-type .glyph { width: 42%; position: relative; z-index: 1; }
.feature-link:hover .ft-big { transform: translateX(4%); }
.feature-flag { margin: 0 0 18px; color: var(--accent-ink); }
.feature-title { margin: 14px 0 18px; font-family: var(--f-display); font-weight: 350; font-size: clamp(32px, 3.9vw, 64px); line-height: 1.02; letter-spacing: -.028em; font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; text-wrap: balance; }
.feature-sub { font-family: var(--f-text); font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; color: var(--ink-2); margin: 0 0 28px; max-width: 46ch; }
.feature-link:hover .feature-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; text-decoration-color: var(--accent); }

.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; color: var(--ink-3); font-size: 11px; }
.cm-cat { color: var(--accent-ink); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 40px); }
.card-link { display: block; text-decoration: none; }
.card-visual { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; margin-bottom: 18px; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.card-link:hover .card-visual img { transform: scale(1.045); }
.card-type { position: absolute; inset: 0; display: grid; place-items: center; }
.card-type .glyph { width: 34%; transition: transform .9s var(--ease-out); }
.card-link:hover .card-type .glyph { transform: rotate(-6deg) scale(1.06); }
.card-type-num { position: absolute; right: 14px; bottom: 12px; color: var(--ink-3); }
.card-title { margin: 12px 0 10px; font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.12; letter-spacing: -.018em; font-variation-settings: "opsz" 72, "SOFT" 30, "WONK" 0; text-wrap: balance; }
.card-link:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; text-decoration-color: var(--accent); }
.card-sum { margin: 0; color: var(--ink-2); font-family: var(--f-text); font-size: 17px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* glifos */
.glyph { stroke: var(--ink); stroke-width: 1.2; fill: none; overflow: visible; }
.glyph .g-accent { stroke: var(--accent); stroke-width: 1.6; }
.glyph .g-dots circle { fill: var(--ink); stroke: none; }
.glyph path { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* ---------------------------------------------------------------- estados vacíos */
.empty { position: relative; padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 80px); background: var(--paper-2); text-align: left; overflow: visible; }
.empty .crop { --co: -8px; }
.empty-reg { position: absolute; right: clamp(24px, 5vw, 72px); top: clamp(28px, 5vw, 64px); width: clamp(44px, 6vw, 84px); height: auto; fill: none; stroke: var(--accent); stroke-width: 1; animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0, 0) rotate(0); } to { transform: translate(-14px, 10px) rotate(30deg); } }
.empty-kicker { margin: 0 0 18px; color: var(--accent-ink); }
.empty-title { margin: 0 0 16px; font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 4vw, 60px); line-height: 1.02; letter-spacing: -.03em; max-width: 18ch; font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; }
.empty-text { margin: 0 0 28px; max-width: 52ch; font-family: var(--f-text); font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.empty-links { display: flex; flex-wrap: wrap; gap: 28px; margin: 0; }
.center-link { text-align: center; margin: 40px 0 0; }

/* ---------------------------------------------------------------- encuadres (categorías) */
.frame-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--ink); }
.frame-item { border-top: 1px solid var(--ink); }
.frame-row { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.25fr) minmax(0, 1fr) 96px 130px; align-items: center; gap: 24px; padding: clamp(22px, 3vw, 40px) 12px; text-decoration: none; isolation: isolate; overflow: hidden; transition: color .5s var(--ease-out); }
.fr-fill { position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out); }
.frame-row:hover, .frame-row:focus-visible { color: var(--paper); }
.frame-row:hover .fr-fill, .frame-row:focus-visible .fr-fill { transform: scaleY(1); transform-origin: top; }
.fr-num { color: var(--accent-ink); }
.frame-row:hover .fr-num { color: var(--accent); }
.fr-name { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 4.3vw, 72px); line-height: 1; letter-spacing: -.03em; font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; transition: transform .6s var(--ease-out), font-style .2s; }
.frame-row:hover .fr-name { transform: translateX(18px); font-style: italic; }
.fr-desc { font-family: var(--f-text); font-size: 17px; line-height: 1.45; color: inherit; opacity: .78; max-width: 40ch; }
.fr-glyph .glyph { width: 76px; transition: stroke .3s; }
.frame-row:hover .glyph { stroke: var(--paper); }
.frame-row:hover .glyph .g-dots circle { fill: var(--paper); }
.frame-row:hover .glyph .g-accent { stroke: var(--accent); }
.fr-count { text-align: right; opacity: .75; font-size: 11px; }

/* ---------------------------------------------------------------- cinta */
.ribbon { margin-top: clamp(80px, 12vw, 180px); padding: clamp(18px, 2.6vw, 34px) 0; border-block: 1px solid var(--ink); overflow: hidden; white-space: nowrap; }
.ribbon-track { display: inline-flex; will-change: transform; }
.ribbon-set { display: inline-flex; align-items: center; }
.ribbon-txt { font-family: var(--f-display); font-style: italic; font-weight: 250; font-size: clamp(40px, 7vw, 120px); line-height: 1.05; letter-spacing: -.03em; padding: 0 .35em; font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1; }
.ribbon-reg { width: clamp(28px, 4vw, 64px); height: auto; fill: none; stroke: var(--accent); stroke-width: 1.2; flex: none; }

/* ---------------------------------------------------------------- autor */
.author-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(16px, 2vw, 32px); align-items: start; }
.author-grid > .sec-kicker { grid-column: 1 / -1; margin-bottom: 12px; }
.author-portrait { grid-column: 1 / span 4; position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); }
.author-portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.author-portrait .crop { --co: -8px; z-index: 2; }
.author-mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 200; font-size: clamp(140px, 22vw, 340px); line-height: 1; overflow: hidden; font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0; }
.author-mono span { grid-area: 1 / 1; }
.author-mono .am-ghost { color: transparent; -webkit-text-stroke: 1.5px var(--accent); transform: translate(5%, 3%); mix-blend-mode: multiply; transition: transform 1s var(--ease-out); }
.author-portrait:hover .am-ghost { transform: translate(0, 0); }
.author-copy { grid-column: 6 / span 7; padding-top: 2vw; }
.author-name { margin: 0 0 22px; font-family: var(--f-display); font-weight: 300; font-size: clamp(44px, 6.4vw, 112px); line-height: .92; letter-spacing: -.035em; font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; }
.author-role { color: var(--ink-3); margin: 0 0 28px; line-height: 1.7; }
.author-bio { font-family: var(--f-text); font-size: clamp(19px, 1.6vw, 24px); line-height: 1.5; margin: 0 0 32px; max-width: 40ch; }

/* ---------------------------------------------------------------- newsletter */
.newsletter-box { position: relative; background: var(--paper-2); padding: clamp(32px, 5vw, 72px); }
.newsletter-box .crop { --co: -8px; }
.nl-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(32px, 4vw, 60px); margin: 0 0 12px; letter-spacing: -.03em; }
.nl-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.nl-form input { flex: 1 1 260px; padding: 15px 16px; font: inherit; font-size: 16px; background: var(--paper); border: 1px solid var(--ink); border-radius: 0; color: var(--ink); }

/* ---------------------------------------------------------------- pie */
.site-footer { margin-top: clamp(100px, 14vw, 220px); background: var(--ink); color: var(--paper); padding: clamp(56px, 7vw, 100px) var(--g) 24px; overflow: hidden; position: relative; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1fr; gap: 32px; max-width: var(--maxw); margin: 0 auto; }
.footer-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-col a { text-decoration: none; font-size: 15px; opacity: .86; transition: opacity .3s, transform .4s var(--ease-out); }
.footer-col a:hover { opacity: 1; transform: translateX(4px); color: var(--accent); }
.footer-h { color: rgba(242, 239, 233, .5); margin: 0 0 8px; }
.footer-sub { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.08; margin: 0 0 16px; max-width: 16ch; letter-spacing: -.02em; }
.footer-note { margin: 0; color: rgba(242, 239, 233, .6); font-size: 14px; }
.footer-mark { padding: .14em .12em .1em 0; margin: clamp(30px, 5vw, 80px) auto clamp(10px, 2vw, 30px); max-width: var(--maxw); font-family: var(--f-display); font-weight: 200; font-size: clamp(54px, 13.4vw, 230px); line-height: .85; letter-spacing: -.05em; white-space: nowrap; font-variation-settings: "opsz" 144, "SOFT" 20, "WONK" 0; display: flex; gap: .2em; }
.footer-mark i { font-style: italic; }
.fm-word { display: inline-block; }
.fm-mark { position: relative; }
.fm-mark::after { content: ""; position: absolute; left: -.04em; right: -.06em; top: .1em; bottom: -.04em; border: 2px solid var(--accent); transform: translate(.08em, .06em); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(242, 239, 233, .16); padding-top: 18px; max-width: var(--maxw); margin: 0 auto; color: rgba(242, 239, 233, .6); font-size: 11px; }
.to-top { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--paper); }
.to-top:hover { color: var(--accent); }

/* ---------------------------------------------------------------- cabeceras de página */
.page-head, .about-head { position: relative; padding: calc(var(--header-h) + clamp(64px, 12vh, 140px)) var(--g) clamp(40px, 6vw, 80px); max-width: var(--maxw); margin: 0 auto; }
.crop--head { inset: calc(var(--header-h) + 16px) var(--g) 0; --cl: 20px; --co: 0px; }
.page-head .sec-kicker, .about-head .sec-kicker { padding-left: 2px; }
.page-title { margin: 18px 0 24px; font-family: var(--f-display); font-weight: 300; font-size: clamp(60px, 13vw, 220px); line-height: .86; letter-spacing: -.045em; font-variation-settings: "opsz" 144, "SOFT" 20, "WONK" 0; }
.page-lede { margin: 0; max-width: 46ch; font-family: var(--f-text); font-size: clamp(18px, 1.6vw, 23px); line-height: 1.5; color: var(--ink-2); }
.page-head--cat .page-title { font-size: clamp(48px, 9.5vw, 170px); max-width: 11ch; }
.page-glyph { position: absolute; right: calc(var(--g) + 4vw); bottom: clamp(40px, 6vw, 80px); width: clamp(90px, 14vw, 220px); }
.page-glyph .glyph { width: 100%; stroke-width: .9; }

/* ---------------------------------------------------------------- archivo */
.archive { padding: 0 var(--g); max-width: var(--maxw); margin: 0 auto; }
.archive-tools { display: grid; grid-template-columns: minmax(220px, 1.2fr) auto minmax(160px, .5fr); gap: 20px 32px; align-items: end; padding: 28px 0; border-top: 1px solid var(--ink); }
.search, .tag-filter { display: flex; flex-direction: column; gap: 8px; }
.search-label { color: var(--ink-3); font-size: 11px; }
.search input, .tag-filter select { font-family: var(--f-display); font-size: clamp(22px, 2vw, 30px); font-weight: 350; padding: 4px 0 8px; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; color: var(--ink); width: 100%; outline-offset: 6px; -webkit-appearance: none; appearance: none; }
.tag-filter select { font-size: 18px; font-family: var(--f-sans); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23121212' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px; }
.search input::placeholder { color: var(--ink-3); opacity: .7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.archive-status { color: var(--ink-3); margin: 0 0 8px; min-height: 18px; font-size: 11px; }
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--ink); }
.row { position: relative; --line: 1; }
.row::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong); transform-origin: left; transform: scaleX(var(--line)); }
.row:first-child::after { background: var(--ink); }
.row-link { position: relative; display: grid; grid-template-columns: 96px 120px minmax(0, 1fr) 90px; gap: 24px; padding: 30px 10px; text-decoration: none; align-items: baseline; isolation: isolate; }
.row-link::before { content: ""; position: absolute; inset: 0; background: var(--paper-2); z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.row-link:hover::before, .row-link:focus-visible::before { transform: scaleX(1); }
.row-date, .row-min { color: var(--ink-3); font-size: 11px; }
.row-cat { color: var(--accent-ink); font-size: 11px; }
.row-min { text-align: right; line-height: 1.8; }
.row-main { display: flex; flex-direction: column; gap: 8px; }
.row-title { font-family: var(--f-display); font-weight: 380; font-size: clamp(24px, 2.4vw, 38px); line-height: 1.08; letter-spacing: -.022em; font-variation-settings: "opsz" 96, "SOFT" 30, "WONK" 0; transition: transform .6s var(--ease-out); text-wrap: balance; }
.row-link:hover .row-title { transform: translateX(12px); }
.row-sum { font-family: var(--f-text); font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 64ch; transition: transform .6s .03s var(--ease-out); }
.row-link:hover .row-sum { transform: translateX(12px); }
.empty--search { margin-top: 24px; }
.cat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; max-width: var(--maxw); margin: clamp(80px, 10vw, 160px) auto 0; padding: 0 var(--g); }
.cat-strip:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cat-tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 24px; background: var(--paper-2); text-decoration: none; min-height: 210px; overflow: hidden; transition: background .4s; }
.cat-tile .glyph { width: 64px; margin-bottom: auto; transition: transform .8s var(--ease-out); }
.cat-tile:hover { background: var(--paper-3); }
.cat-tile:hover .glyph { transform: translate(6px, -4px) rotate(-8deg); }
.cat-tile .mono { color: var(--accent-ink); margin-top: 28px; font-size: 11px; }
.cat-tile-name { font-family: var(--f-display); font-size: clamp(22px, 2vw, 30px); font-weight: 350; line-height: 1.05; letter-spacing: -.02em; }

/* ---------------------------------------------------------------- artículo */
.post { max-width: var(--maxw); margin: 0 auto; }
.post-head, .page-head, .about-head { margin-bottom: clamp(28px, 3.5vw, 48px); }
.post-head { position: relative; padding: calc(var(--header-h) + clamp(56px, 11vh, 130px)) var(--g) clamp(40px, 5vw, 72px); }
.post-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 24px; padding-left: 2px; }
.post-kicker a { color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.post-title { margin: 0 0 28px; max-width: 17ch; font-family: var(--f-display); font-weight: 330; font-size: clamp(42px, 7vw, 116px); line-height: .96; letter-spacing: -.038em; font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; text-wrap: balance; }
.post-sub { margin: 0 0 36px; max-width: 40ch; font-family: var(--f-text); font-style: italic; font-weight: 350; font-size: clamp(21px, 2vw, 30px); line-height: 1.34; color: var(--ink-2); text-wrap: pretty; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--ink-3); font-size: 11.5px; padding-top: 20px; border-top: 1px solid var(--line-strong); max-width: 980px; }
.post-meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.post-updated { color: var(--accent-ink); }
.post-cover { position: relative; margin: 0 var(--g) clamp(48px, 6vw, 90px); }
.post-cover-img { overflow: hidden; aspect-ratio: 16 / 8; background: var(--paper-2); }
.post-cover img { width: 100%; height: 112%; object-fit: cover; }
.post-cover .crop { --co: -8px; z-index: 2; height: calc(100% - 0px); }
.post-cover figcaption { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); margin-top: 12px; letter-spacing: .03em; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding: 0 var(--g); }
.post-layout > .prose { grid-column: 2; }
.toc { grid-column: 1; justify-self: end; width: 100%; max-width: 250px; }
.toc-box { position: sticky; top: calc(var(--header-h) + 32px); }
.toc summary { list-style: none; color: var(--ink-3); padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 14px; cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding: 6px 0; font-size: 14px; line-height: 1.35; text-decoration: none; color: var(--ink-3); transition: color .3s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-mono); font-size: 10px; padding-top: 3px; }
.toc .toc-l3 a { padding-left: 26px; font-size: 13px; }
.toc .toc-l3 a::before { content: ""; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); }
.toc a.is-active::before { color: var(--accent-ink); }

/* prosa: lectura larga */
.prose { font-family: var(--f-text); font-size: clamp(19px, 1.25vw, 21px); line-height: 1.68; color: var(--ink); font-variation-settings: "opsz" 16; counter-reset: sec; min-width: 0; }
.prose > * { margin-top: 0; margin-bottom: 1.15em; }
.prose p { text-wrap: pretty; hanging-punctuation: first; }
.prose > p:first-of-type::first-letter { float: left; font-family: var(--f-display); font-weight: 300; font-size: 4.6em; line-height: .78; margin: .07em .09em 0 -.02em; color: var(--accent); font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; }
.prose h2 { counter-increment: sec; margin: 2.3em 0 .7em; font-family: var(--f-display); font-weight: 380; font-size: clamp(30px, 2.6vw, 42px); line-height: 1.08; letter-spacing: -.022em; font-variation-settings: "opsz" 96, "SOFT" 30, "WONK" 0; text-wrap: balance; }
.prose h2::before { content: "§ " counter(sec, decimal-leading-zero); display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--accent-ink); margin-bottom: 14px; }
.prose h2.sources-title::before, .prose h2.footnotes-title::before, .prose--about h2::before { content: none; }
.prose h3 { margin: 1.8em 0 .5em; font-family: var(--f-display); font-weight: 450; font-size: clamp(22px, 1.7vw, 27px); line-height: 1.2; letter-spacing: -.012em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--accent); transition: color .2s, text-decoration-thickness .2s; }
.prose a:hover { color: var(--accent-ink); text-decoration-thickness: 2px; }
.prose strong { font-weight: 640; }
.prose em { font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; padding-left: .2em; }
.prose ol > li::marker { font-family: var(--f-mono); font-size: .78em; color: var(--accent-ink); }
.prose ul > li::marker { color: var(--accent); }
.prose hr { border: 0; height: 24px; margin: 2.4em 0; background: center / 24px 24px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6' fill='none' stroke='%23e23a1e' stroke-width='1.2'/%3E%3Cpath d='M12 1v22M1 12h22' stroke='%23e23a1e' stroke-width='1.2'/%3E%3C/svg%3E"); }
.prose code { font-family: var(--f-mono); font-size: .82em; background: var(--paper-2); padding: .1em .35em; }
.prose pre { background: var(--ink); color: var(--paper); padding: 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; }

.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--accent); font-style: italic; color: var(--ink-2); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose .pullquote { position: relative; border: 0; padding: 1.4em 0 1.2em; margin: 2em -8% 2em; color: var(--ink); font-style: normal; text-align: left; border-block: 1px solid var(--ink); }
.prose .pullquote p { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 3vw, 46px); line-height: 1.1; letter-spacing: -.025em; margin: 0; font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1; text-wrap: balance; }
.prose .pullquote p::before { content: "«"; color: var(--accent); margin-right: .06em; }
.prose .pullquote p::after { content: "»"; color: var(--accent); margin-left: .06em; }
.prose .pullquote cite { display: block; margin-top: 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: var(--ink-3); }
.prose .pullquote cite::before { content: "— "; }

.callout { position: relative; margin: 2em 0; padding: 22px 26px 6px; background: var(--paper-2); font-size: .92em; line-height: 1.6; }
.callout::before, .callout::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--ink); }
.callout { --corner: -6px; }
.callout::before { left: var(--corner); top: var(--corner); border-left-width: 1px; border-top-width: 1px; }
.callout::after { right: var(--corner); bottom: var(--corner); border-right-width: 1px; border-bottom-width: 1px; }
.callout p { margin: 0 0 .9em; }
.callout-title { font-weight: 600; font-family: var(--f-sans); font-size: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.callout-kind { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); }
.callout-aviso { background: transparent; border: 1px dashed var(--line-strong); }
.callout-idea { background: var(--ink); color: var(--paper); }
.callout-idea::before, .callout-idea::after { border-color: var(--accent); }
.callout-idea .callout-kind { color: var(--accent); }

.figure { margin: 2.2em 0; }
.figure img { width: 100%; height: auto; background: var(--paper-2); }
.figure figcaption, .chart-foot { font-family: var(--f-mono); font-size: 11px; letter-spacing: .02em; color: var(--ink-3); margin-top: 12px; line-height: 1.5; }
.figure-wide { margin-left: -14%; margin-right: -14%; }

.table-wrap { overflow-x: auto; margin: 2em 0; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--ink); }
.table-wrap:focus-visible { outline-offset: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--f-sans); font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.prose th { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 12px 14px 10px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose tbody tr { transition: background .25s; }
.prose tbody tr:hover { background: var(--paper-2); }
.prose tbody th { font-family: var(--f-sans); font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }

/* gráficos */
.chart { margin: 2.4em 0; padding-top: 16px; border-top: 2px solid var(--ink); position: relative; }
.chart-head { font-family: var(--f-display); font-size: clamp(20px, 1.6vw, 25px); font-weight: 420; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 12px; }
.chart-kicker { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; font-weight: 500; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; font-family: var(--f-sans); font-size: 13px; color: var(--ink-2); }
.chart-key { display: inline-flex; align-items: center; gap: 7px; }
.chart-key i { width: 14px; height: 3px; display: inline-block; border-radius: 2px; }
.chart-canvas { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; font-family: var(--f-sans); }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-zero { stroke: var(--ink); stroke-width: 1; }
.chart-tick, .chart-label { fill: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart-label { fill: var(--ink-2); }
.chart-value, .chart-direct { fill: var(--ink); font-size: 13px; font-weight: 550; font-variant-numeric: tabular-nums; }
.chart-bar { transition: opacity .25s; transform-box: fill-box; transform-origin: bottom; }
.chart-bar-h { transform-origin: left; }
.chart-line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { stroke: var(--paper); stroke-width: 2; }
.chart-hit { fill: transparent; cursor: crosshair; }
.chart-hit:hover { fill: var(--accent-soft); }
.chart svg:hover .chart-bar { opacity: .45; }
.chart svg .chart-bar:hover { opacity: 1; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--ink); color: var(--paper); font-family: var(--f-sans); font-size: 13px; padding: 7px 10px; white-space: nowrap; opacity: 0; transform: translate(-50%, calc(-100% - 12px)); transition: opacity .15s; font-variant-numeric: tabular-nums; }
.chart-tip.is-on { opacity: 1; }
.chart-data { margin-top: 10px; font-size: 15px; }
.chart-data summary { font-family: var(--f-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); cursor: pointer; display: inline-block; padding: 4px 0; }
.chart-data .table-wrap { margin: 10px 0 0; border-top-width: 1px; }
.chart-error { padding: 14px; border: 1px dashed var(--accent); font-family: var(--f-mono); font-size: 13px; }
.js .chart:not(.is-drawn) .chart-bar { transform: scaleY(0); }
.js .chart:not(.is-drawn) .chart-bar-h { transform: scaleX(0); }
.js .chart:not(.is-drawn) .chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .chart:not(.is-drawn) .chart-dot, .js .chart:not(.is-drawn) .chart-value, .js .chart:not(.is-drawn) .chart-direct { opacity: 0; }
.chart .chart-bar { transition: transform 1s var(--ease-out), opacity .25s; transition-delay: calc(var(--i, 0) * 70ms), 0s; }
.chart .chart-line { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-io); }
.chart .chart-dot, .chart .chart-value, .chart .chart-direct { transition: opacity .6s .9s; }

/* notas al pie */
.prose sup { line-height: 0; }
.prose .footnote-ref { font-family: var(--f-mono); font-size: .62em; text-decoration: none; color: var(--accent-ink); padding: 0 .15em; font-weight: 600; }
.prose .footnote-ref::before { content: "["; } .prose .footnote-ref::after { content: "]"; }
.footnotes { margin-top: 3em; padding-top: 4px; font-size: .84em; color: var(--ink-2); }
.footnotes-title, .sources-title { font-family: var(--f-mono) !important; font-size: 11px !important; letter-spacing: .09em !important; text-transform: uppercase; font-weight: 500 !important; color: var(--ink-3); border-top: 1px solid var(--ink); padding-top: 16px; margin: 0 0 16px !important; }
.footnotes ol { padding-left: 1.4em; }
.footnote-backref { text-decoration: none !important; margin-left: 4px; }
.fn-pop { position: absolute; z-index: 30; max-width: 360px; background: var(--ink); color: var(--paper); padding: 14px 16px; font-family: var(--f-text); font-size: 16px; line-height: 1.5; box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .45); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .3s var(--ease-out); }
.fn-pop.is-on { opacity: 1; transform: none; }
.fn-pop a { display: none; }

/* final del artículo */
.sources { margin-top: 3em; font-size: .86em; }
.sources ol { padding-left: 1.4em; }
.sources li { margin-bottom: .6em; word-break: break-word; }
.prose a.ext::after { content: "↗"; font-family: var(--f-sans); font-size: .72em; margin-left: .2em; color: var(--accent-ink); display: inline-block; text-decoration: none; }
.src-note { color: var(--ink-3); }
.post-end { margin-top: 3.2em; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.prose .tag { text-decoration: none; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 11px; color: var(--ink-2); transition: border-color .3s, color .3s; }
.prose .tag:hover { border-color: var(--ink); color: var(--ink); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 22px 0; border-block: 1px solid var(--ink); margin-bottom: 40px; }
.share-h { margin: 0 14px 0 0; color: var(--ink-3); font-size: 11px; }
.prose .share-btn { font-family: var(--f-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; padding: 9px 13px; border: 1px solid var(--line-strong); transition: background .3s, color .3s, border-color .3s; }
.prose .share-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.byline-card { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 28px; background: var(--paper-2); }
.byline-card .mono { margin: 0 0 8px; color: var(--ink-3); font-size: 11px; }
.byline-name { font-family: var(--f-display); font-size: 28px; font-weight: 380; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 8px; }
.byline-bio { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.prose .byline-card .link-arrow { text-decoration: none; flex: none; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------------------------------------------------------------- sobre mí */
.about-title { margin: 22px 0 48px; font-family: var(--f-display); font-weight: 300; font-size: clamp(56px, 11vw, 190px); line-height: .88; letter-spacing: -.045em; max-width: 10ch; font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; }
.about-id { display: flex; align-items: center; gap: 24px; }
.author-portrait--sm { width: 96px; flex: none; aspect-ratio: 1; }
.author-portrait--sm .author-mono { font-size: 76px; }
.author-portrait--sm .crop { --co: -6px; --cl: 10px; }
.about-name { font-family: var(--f-display); font-size: clamp(24px, 2.2vw, 34px); margin: 0 0 6px; letter-spacing: -.02em; }
.about-role { margin: 0; color: var(--ink-3); line-height: 1.7; }
.name-play { padding: clamp(40px, 6vw, 90px) var(--g); border-block: 1px solid var(--ink); margin: clamp(20px, 4vw, 60px) 0 clamp(60px, 8vw, 120px); overflow: hidden; }
.np-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3em .5em; margin: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(34px, 6vw, 104px); line-height: 1.05; letter-spacing: -.035em; font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; }
.np-cos { display: inline-block; color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: .05em; }
.np-arrow { font-size: clamp(14px, 1.4vw, 20px); color: var(--accent-ink); }
.np-b { font-style: italic; }
.np-c { position: relative; padding: 0 .12em; }
.np-frame { position: absolute; inset: .12em -.02em -.02em; border: 2px solid var(--accent); transform: translate(.1em, .07em); }
.post-layout--about { margin-bottom: 0; }
.topic-list { list-style: none; padding: 0 !important; }
.topic-list li { padding: 0; border-top: 1px solid var(--line-strong); margin: 0; }
.topic-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.prose .topic-list a { display: block; padding: 16px 0; text-decoration: none; transition: padding .5s var(--ease-out), color .3s; }
.prose .topic-list a:hover { padding-left: 14px; color: var(--ink); }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.prose .contact-links a { text-decoration: none; }
.prose .btn-ink:hover { color: var(--paper); }

/* ---------------------------------------------------------------- 404 */
.lost { padding: calc(var(--header-h) + 8vh) var(--g) 0; max-width: var(--maxw); margin: 0 auto; }
.lost-stage { position: relative; height: clamp(200px, 34vw, 460px); margin-bottom: 40px; display: grid; place-items: center; background: var(--paper-2); overflow: hidden; }
.crop--lost { --co: 0px; --cl: 22px; }
.lost-num { font-family: var(--f-display); font-weight: 200; font-size: clamp(160px, 30vw, 460px); line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); transform: translate(18%, 22%); }

/* ---------------------------------------------------------------- avisos */
.demo-ribbon { position: fixed; z-index: 70; left: 16px; bottom: 16px; display: flex; align-items: baseline; gap: 10px; max-width: calc(100% - 32px); padding: 9px 14px; background: var(--ink); color: var(--paper); font-size: 12px; line-height: 1.35; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .5); }
.demo-ribbon .mono { color: var(--accent); flex: none; font-size: 10.5px; }
.demo-ribbon.demo-ribbon--preview { bottom: auto; top: calc(var(--header-h) + 10px); }
.toast { position: fixed; z-index: 130; left: 50%; bottom: 24px; transform: translate(-50%, 200%); visibility: hidden; background: var(--accent); color: var(--paper); padding: 12px 18px; transition: transform .6s var(--ease-out); pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

/* ---------------------------------------------------------------- revelados */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); animation: failsafe-reveal 0s 3s forwards; }
  .js [data-reveal] { transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
  .js .glyph path { transition: stroke-dashoffset 1.4s var(--ease-io); }
  .js [data-reveal]:not(.is-in) .glyph path { stroke-dashoffset: 1; }
  .js .frame-row:hover .glyph path { animation: redraw 1.1s var(--ease-io); }
  @keyframes redraw { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
}
@keyframes failsafe-reveal { to { opacity: 1; transform: none; } }
.split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------------------------------------------------------------- movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .persp { height: auto; }
  .persp-pin { position: relative; height: auto; min-height: 80svh; }
  .persp-steps li { color: var(--ink); }
  .cursor { display: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 1fr); }
  .post.has-toc .post-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .post.has-toc .post-layout > .prose { grid-column: 2; max-width: 680px; }
  .frame-row { grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr) 90px; }
  .fr-count { display: none; }
  .figure-wide, .prose .pullquote { margin-left: 0; margin-right: 0; }
}
@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .nav-link { display: none; }
  .hero-foot { grid-template-columns: 1fr; gap: 26px; }
  .hero-sub, .hero-intro { grid-column: 1; }
  .hero-scroll { display: none; }
  .sl-tr { display: none; }
  .ht-2 { padding-left: 6vw; }
  .persp { height: 280vh; }
  .persp-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: stretch; gap: 14px; padding-top: calc(var(--header-h) + 8px); padding-bottom: 20px; }
  .persp-title { font-size: clamp(28px, 7.4vw, 44px); margin: 10px 0 14px; max-width: 16ch; }
  .persp-steps { min-height: 6.4em; }
  .persp-steps li { position: absolute; inset: 0 0 auto 0; border: 0; padding: 0; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease-out); }
  .persp-steps li.is-active { opacity: 1; transform: none; }
  .persp-steps li:last-child { border: 0; }
  .persp-stage { height: auto; min-height: 0; }
  .feature-link { grid-template-columns: 1fr; }
  .cards, .cards--3 { grid-template-columns: 1fr; }
  .frame-row { grid-template-columns: 40px minmax(0, 1fr) 56px; gap: 6px 14px; padding: 22px 4px; }
  .fr-name { grid-column: 2; }
  .fr-desc { grid-column: 2; grid-row: 2; font-size: 16px; }
  .fr-glyph { grid-column: 3; grid-row: 1 / span 2; }
  .fr-glyph .glyph { width: 52px; }
  .fr-num { grid-row: 1; align-self: start; padding-top: 10px; }
  .author-portrait { grid-column: 1 / span 12; max-width: 340px; }
  .author-copy { grid-column: 1 / span 12; padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .archive-tools { grid-template-columns: 1fr; }
  .row-link { grid-template-columns: auto 1fr auto; gap: 8px 14px; padding: 22px 4px; }
  .row-main { grid-column: 1 / -1; grid-row: 2; }
  .row-min { grid-column: 3; grid-row: 1; line-height: 1.4; }
  .row-sum { font-size: 16px; }
  .cat-strip, .cat-strip:has(> :nth-child(3):last-child) { grid-template-columns: 1fr 1fr; }
  .post-layout, .post.has-toc .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-layout > .prose, .post.has-toc .post-layout > .prose { grid-column: 1; }
  .toc { grid-column: 1; max-width: none; justify-self: stretch; }
  .toc-box { position: static; border: 1px solid var(--line-strong); padding: 14px 16px 6px; }
  .toc summary { border-bottom: 0; margin: 0; padding: 0 0 8px; }
  .toc summary::after { content: "+"; float: right; font-size: 16px; line-height: 1; }
  .toc details[open] summary::after { content: "–"; }
  .page-glyph { position: static; width: 84px; margin-top: 28px; }
  .byline-card { flex-direction: column; align-items: flex-start; }
  .demo-ribbon { left: 10px; bottom: 10px; font-size: 11px; }
  .hero { justify-content: flex-start; }
  .hero-foot { margin-top: auto; padding-top: 32px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 26vw; padding-top: 4vh; }
  .sheet-label { font-size: 9.5px; }
  .sl-bl { display: none; }
  .post-meta { gap: 8px 18px; }
  .prose { font-size: 19px; line-height: 1.64; }
  .footer-grid { grid-template-columns: 1fr; }
  .callout { padding: 18px 18px 4px; }
}
@media (hover: none) { .cursor { display: none; } }
@media print {
  .site-header, .site-footer, .share, .toc, .cursor, .related, .demo-ribbon { display: none !important; }
  body::before { display: none; }
  .prose { font-size: 12pt; }
}

/* ---------------------------------------------------------------- transición entre páginas */
.curtain { position: fixed; inset: 0; z-index: 150; background: var(--ink); color: var(--paper); pointer-events: none; clip-path: inset(100% 0 0 0); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.is-arriving .curtain { clip-path: inset(0 0 0 0); animation: curtain-failsafe .01s 1.6s forwards; }
@keyframes curtain-failsafe { to { clip-path: inset(0 0 100% 0); } }
.curtain-reg { width: 54px; height: 54px; fill: none; stroke: var(--accent); stroke-width: 1.2; animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.curtain-label { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(22px, 3vw, 40px); letter-spacing: -.02em; max-width: 80vw; text-align: center; line-height: 1.1; }
.is-arriving .curtain-reg, .is-arriving .curtain-label { opacity: 0; }

/* visor flotante del archivo */
.row-preview { position: fixed; left: 0; top: 0; z-index: 40; width: 220px; height: 240px; background: var(--paper-2); pointer-events: none; opacity: 0; transform: scale(.85); display: grid; place-items: center; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.row-preview .crop { --co: -7px; --cl: 14px; }
.rp-glyph { width: 46%; }
.rp-glyph .glyph { width: 100%; stroke-width: 1.4; }
.rp-cat { position: absolute; left: 14px; bottom: 12px; color: var(--accent-ink); font-size: 10.5px; }
