/* Chirometric blog — estilos compartidos, referenciados por cada artículo.
   Mismos tokens que landing/index.html (paleta teal + Archivo/Source Serif 4/IBM Plex Mono). */
:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-alt: #eef2f6;
  --ink: #101b28;
  --ink-soft: #4c5b6d;
  --ink-faint: #7c8a9a;
  --border: #dde4ea;
  --accent: #0c7c8c;
  --accent-strong: #075e68;
  --accent-tint: #e3f3f4;
  --shadow: 0 1px 2px rgba(16,27,40,0.04), 0 10px 30px -14px rgba(16,27,40,0.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1319; --surface: #161d26; --surface-alt: #1d2530;
    --ink: #eaeef3; --ink-soft: #a9b4c1; --ink-faint: #74808e;
    --border: #2a323e; --accent: #35d6e8; --accent-strong: #7ee9f2; --accent-tint: #17323a;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 10px 30px -14px rgba(0,0,0,0.55);
  }
}
:root[data-theme="dark"] {
  --bg: #0e1319; --surface: #161d26; --surface-alt: #1d2530;
  --ink: #eaeef3; --ink-soft: #a9b4c1; --ink-faint: #74808e;
  --border: #2a323e; --accent: #35d6e8; --accent-strong: #7ee9f2; --accent-tint: #17323a;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 10px 30px -14px rgba(0,0,0,0.55);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-strong); }
h1, h2, h3 { font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
.mono { font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; }

.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1040px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand img { width: 22px; height: 22px; }
.brand span { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 14.5px; letter-spacing: 0.02em; color: var(--ink); }
.back-link { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--border); }
.back-link:hover { color: var(--accent-strong); border-color: var(--accent); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: 1040px; }

article header.post-head { padding: 56px 0 8px; }
.eyebrow { display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-strong); background: var(--accent-tint); padding: 4px 9px; border-radius: 4px; margin-bottom: 16px; }
h1.post-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; margin-bottom: 14px; }
.post-meta { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: var(--ink-faint); margin-bottom: 40px; }

.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 22px; margin: 2em 0 0.6em; }
.prose h3 { font-size: 17.5px; margin: 1.6em 0 0.5em; }
.prose ol, .prose ul { padding-left: 1.4em; color: var(--ink); }
.prose li { margin-bottom: 0.6em; }
.prose strong { color: var(--ink); }
.prose table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.prose th { background: var(--surface-alt); font-family: "Archivo", sans-serif; font-size: 13px; }
.prose td.mono, .prose th.mono { font-family: "IBM Plex Mono", monospace; }

.callout { background: var(--accent-tint); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: 16px 20px; font-size: 15px; color: var(--ink-soft); margin: 1.6em 0; }
.callout strong { color: var(--ink); }

.cta-box { margin: 3em 0 1em; padding: 28px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta-box p { margin: 0; font-size: 15px; color: var(--ink-soft); max-width: 42ch; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 14px; text-decoration: none; padding: 10px 18px; border-radius: 8px; background: var(--accent); color: #fff; white-space: nowrap; }
.btn:hover { background: var(--accent-strong); }

footer.site-footer { padding: 48px 0 60px; text-align: center; }
footer.site-footer .mono { font-size: 12.5px; color: var(--ink-faint); }
footer.site-footer a { color: var(--ink-faint); }

/* blog index */
.hub-head { padding: 56px 0 8px; }
.hub-head p.lede { color: var(--ink-soft); font-size: 17.5px; max-width: 56ch; margin-top: 10px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 36px 0 60px; }
.post-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.post-card .lang-tag { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-strong); }
.post-card h3 { font-size: 16.5px; }
.post-card p { font-family: "Source Serif 4", serif; font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.post-card .kw { margin-top: auto; font-family: "IBM Plex Mono", monospace; font-size: 11.5px; color: var(--ink-faint); }
.post-card .lang-row { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; }
.post-card .lang-pill { font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft); background: var(--surface-alt); border: 1px solid var(--border); border-radius: 5px; padding: 3px 8px; text-decoration: none; }
.post-card .lang-pill:hover { color: var(--accent-strong); border-color: var(--accent); }

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
}
