@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url('/wp-content/uploads/fonts/archivo-normal-400_900.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('/wp-content/uploads/fonts/plexsans-italic-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('/wp-content/uploads/fonts/plexsans-normal-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('/wp-content/uploads/fonts/plexsans-normal-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('/wp-content/uploads/fonts/plexsans-normal-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/wp-content/uploads/fonts/plexmono-normal-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/wp-content/uploads/fonts/plexmono-normal-500.woff2') format('woff2');
}

/* ====== Instrument panel design system (fabianasantiago.com) ====== */
/* Palette: ink-0 #0a141c, ink-1 #10202c, ink-2 #1b3547, text #d7e3ec,
   dim #7c93a4, cyan #4fc3e8, ok #57d9a3 */

/* Page ground: navy gradient with a faint cyan glow bleeding from the top */
body {
  background-image:
    radial-gradient(900px 420px at 50% -180px, rgba(79,195,232,0.10), transparent 70%),
    linear-gradient(180deg, #0a141c 0%, #0c1922 60%, #0a141c 100%);
  background-repeat: no-repeat;
  background-color: #0a141c;
  -webkit-font-smoothing: antialiased;
}

/* Display faces get the widened instrument voice */
h1, h2, h3, h4 { font-variation-settings: "wdth" 112; }
h1 { font-variation-settings: "wdth" 118; letter-spacing: -0.015em; }

a:focus-visible, button:focus-visible {
  outline: 2px solid #4fc3e8;
  outline-offset: 3px;
  border-radius: 2px;
}

hr.wp-block-separator {
  border-color: #1b3547;
  opacity: 1;
}

code {
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #10202c;
  border: 1px solid #1b3547;
  border-radius: 4px;
  padding: 2px 6px;
}

/* ── Top bar ─────────────────────────────────────────────────────── */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-topbar {
  background: rgba(10,20,28,0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #1b3547;
}
.unit-label,
.unit-label a {
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #7c93a4;
  text-decoration: none;
}
.unit-label a strong { color: #d7e3ec; font-weight: 500; }
.unit-label a:hover strong { color: #4fc3e8; }
.site-topbar .wp-block-navigation a {
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  color: #7c93a4;
  text-decoration: none;
}
.site-topbar .wp-block-navigation a:hover,
.site-topbar .wp-block-navigation .current-menu-item > a,
.site-topbar .wp-block-navigation a[aria-current="page"] {
  color: #4fc3e8;
}
/* Mobile nav overlay stays on-theme */
.wp-block-navigation__responsive-container.is-menu-open {
  background-color: #0a141c;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.panel-eyebrow {
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4fc3e8;
}
.hero-dim { color: #7c93a4; }

/* ── Checksum ribbon: the signature ──────────────────────────────── */
.checksum-ribbon {
  border: 1px solid #1b3547;
  background: linear-gradient(180deg, #10202c, rgba(16,32,44,0.6));
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 44px;
}
.checksum-ribbon p { margin: 0; }
.ribbon-label {
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: #7c93a4;
  white-space: nowrap;
}
.ribbon-hex {
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: #4fc3e8;
  word-break: break-all;
  flex: 1 1 32ch;
  min-width: 26ch;
}
.ribbon-hex span:nth-child(even) { color: #8ad4f0; }
.ribbon-tick {
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #57d9a3;
  border: 1px solid rgba(87,217,163,0.35);
  border-radius: 99px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* ── Panel cards ─────────────────────────────────────────────────── */
.panel-cards { gap: 18px; }
.panel-card {
  border: 1px solid #1b3547;
  background: #10202c;
  border-radius: 6px;
  padding: 24px 22px 26px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.panel-card:hover {
  border-color: rgba(79,195,232,0.55);
  transform: translateY(-2px);
}
.fingerprint {
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: #7c93a4;
  margin-bottom: 6px;
}
.fingerprint strong { color: #4fc3e8; font-weight: 400; }
.panel-card h3 { margin-top: 8px; }
.panel-card p:not(.fingerprint) { font-size: 15.5px; color: #7c93a4; }

/* ── Log-line empty state ────────────────────────────────────────── */
.log-line {
  border: 1px solid #1b3547;
  border-left: 3px solid #4fc3e8;
  background: #10202c;
  border-radius: 6px;
  padding: 18px 22px;
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.8;
  color: #7c93a4;
  overflow-x: auto;
}
.log-line em { font-style: normal; }
.log-lvl { color: #4fc3e8; }
.log-msg { color: #d7e3ec; }
.aside-note { color: #7c93a4; font-size: 15px; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid #1b3547; }
.footer-nav-links a {
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: #7c93a4;
  text-decoration: none;
  margin-right: 22px;
}
.footer-nav-links a:hover { color: #4fc3e8; }
.integrity {
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: #7c93a4;
}
.integrity strong { color: #4fc3e8; font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  .panel-card { transition: none; }
}

/* Readable text measure inside the wider 1060px column */
.entry-content p, .entry-content ul, .entry-content ol { max-width: 70ch; }
.home-hero p { max-width: 62ch; }
.checksum-ribbon p, .panel-card p, .log-line, .aside-note ~ *,
.footer-nav-links, .integrity { max-width: none; }
.checksum-ribbon p { max-width: none !important; }

/* The ribbon label is a terminal string; the <code> wrapper keeps straight
   quotes (wptexturize skips code), so strip the chip styling here */
.ribbon-label code {
  background: none; border: none; padding: 0;
  font-size: inherit; color: inherit; font-family: inherit;
}

/* Constrained layout centers max-width'd blocks; pin text to the left gutter */
.entry-content p, .entry-content ul, .entry-content ol {
  /* Gutenberg's constrained layout centers max-width'd blocks with
     !important auto margins; counter it in kind */
  margin-left: 0 !important;
  margin-right: auto !important;
}
/* Beat the .entry-content p specificity for full-width exceptions */
p.log-line { max-width: none; }

/* The article container IS the column: center it once, so left-pinned
   children align to the column gutter on every page (not the viewport) */
.entry-content {
  max-width: 1060px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* anchor targets clear the sticky topbar */
:target { scroll-margin-top: 90px; }

/* Block code (wp:code). Inline <code> is styled above, but the block form was
   never given a rule, so until the FileHasher support page used one it fell
   through to the theme's light default: a cream slab on the dark ground.
   Same panel/hairline treatment as the inline chip, sized for a command. */
pre.wp-block-code {
  background: #10202c;
  border: 1px solid #1b3547;
  border-radius: 4px;
  padding: 16px 18px;
  overflow-x: auto;
  color: #d7e3ec;
}

/* The nested <code> would otherwise pick up the inline chip styling and draw a
   second border inside the block; strip it, as .ribbon-label code does */
pre.wp-block-code code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: 0.95em;
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
}
