/* Mission FinOps — Blog / Thinking
   Editorial prose over structural mono chrome. Paper. Ink primary text.
   Matches assets/site.css's design system (design-spec.md §9). */

/* Self-hosted, Latin-subset, woff2 only. Same files site.css loads;
   paths are relative to this file (/blog/thinking.css). */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-600.woff2") format("woff2");
}

:root {
  --ink: #0F1419;
  --slate: #4A5568;
  --paper: #F7F8F7;
  --rule: #C2C9C7;
  --signal: #0B6E5F;
  --amber: #8b5c00;
  --mono: "IBM Plex Mono", "SF Mono", "Cascadia Code", Consolas, monospace;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 960px;
  --measure: 72ch;

  --fs-2xs: 12px;
  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-base: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font: 400 var(--fs-base)/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
/* Chrome stays monospace: kickers/labels, code, data table, back link.
   .mf-nav and .mf-footer live in assets/site.css; this file keeps only
   blog-specific selectors. */
.kicker, .meta, .section-label, .toc-title, .index-date, .index-cat,
pre, code, .data-table th, .back {
  font-family: var(--mono);
}
a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #095A4E; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: rgba(11, 110, 95, 0.18); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* Skip link */
.skip {
  position: fixed; z-index: 100; top: 0.75rem; left: 0.75rem;
  padding: 0.5rem 0.8rem; background: var(--signal); color: var(--paper);
  font-size: 12px; font-weight: 700; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* ═══════ NAV ═══════
   The .mf-nav / .mf-mobile-menu chrome lives in assets/site.css, which
   every page carrying this markup links. */

/* ═══════ HERO (blog index) ═══════ */
.hero { border-bottom: 1px solid var(--rule); }
.hero:before, .hero:after { content: none; }
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 36px;
}
.kicker, .meta, .section-label, .toc-title, .index-date, .index-cat {
  font: 500 11px/1.5 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Eyebrow label, not a shell prompt: the $ prefix here was the same
   terminal-shell affectation removed from .prompt in assets/site.css
   (design-spec.md appendix, stage-1 decision 1) - same reasoning, same
   fix. Colour off --signal for the same reason too: an eyebrow label is
   not a button, link, or focus ring. */
.kicker { color: var(--slate); margin: 0 0 14px; }
h1 {
  max-width: 20ch;
  margin: 0;
  font: 700 clamp(22px, 5vw, 32px)/1.2 var(--sans);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero-intro {
  max-width: var(--measure);
  margin: 16px 0 0;
  color: var(--ink);
  font-size: var(--fs-base);
  line-height: 1.6;
}

/* Hide reading mode toggle — terminal is the only mode now */
.mode-toggle { display: none; }

/* ═══════ INDEX (blog list) ═══════ */
.index {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 72px;
}
.index-intro {
  max-width: var(--measure);
  margin: 0 0 32px;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--slate);
}
.index-list { border-top: 1px solid var(--rule); }
.index-item {
  display: grid;
  grid-template-columns: 10ch 14ch 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}
.index-item:hover { background: var(--paper); border-color: var(--signal); }
.index-date { color: var(--slate); font-size: 11px; }
.index-cat { color: var(--amber); font-size: 11px; }
.index-copy h2 {
  margin: 0 0 4px;
  font: 700 var(--fs-sm)/1.2 var(--sans);
  color: var(--ink);
}
.index-copy p {
  max-width: 56ch;
  margin: 0;
  color: var(--slate);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

/* ═══════ ARTICLE HEAD ═══════ */
.article-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 32px;
  border-bottom: 1px solid var(--rule);
}
.article-head h1 {
  max-width: 24ch;
  font-size: clamp(20px, 4vw, 28px);
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--slate);
  margin: 0 0 16px;
  font-size: 11px;
}
.meta .category { color: var(--amber); }
.lede {
  max-width: var(--measure);
  margin: 16px 0 0;
  color: var(--ink);
  font-size: var(--fs-base);
  line-height: 1.6;
}

/* ═══════ ARTICLE GRID ═══════ */
.article-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 72px;
  display: grid;
  grid-template-columns: 14ch minmax(0, var(--measure));
  gap: 40px;
}
.toc {
  position: sticky;
  top: 60px;
  align-self: start;
}
.toc-title { color: var(--slate); font-size: 10px; letter-spacing: 0.08em; }
.toc ol { margin: 8px 0 0; padding: 0; list-style: none; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--slate); font-size: 12px; text-decoration: none; }
.toc a:hover { color: var(--signal); }

/* ═══════ PROSE ═══════ */
.prose { min-width: 0; }
.prose section { scroll-margin-top: 60px; margin-bottom: 48px; }
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate);
  margin: 0 0 14px;
  font-size: 11px;
}
.section-label::after { content: ""; height: 1px; flex: 1; background: var(--rule); }
.prose h2 {
  margin: 0 0 14px;
  font: 700 16px/1.2 var(--sans);
  color: var(--ink);
}
.prose p { margin: 0 0 1.1em; font-size: var(--fs-base); line-height: 1.6; }
.prose li { margin: 0.4em 0; font-size: var(--fs-base); line-height: 1.6; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 2ch; }

/* Code. Literally code (design-spec.md §9's "anything that is literally
   code" allowance) - kept dark deliberately, same treatment as
   assets/site.css's .terminal: a code block reads as one on a light page
   the same way it would in any editorial doc site. */
pre {
  overflow: auto;
  padding: 16px 20px;
  border: 1px solid var(--rule);
  background: #0a0a0a;
  color: #33ff00;
  font: 400 13px/1.7 var(--mono);
}
code { font: 400 0.9em var(--mono); color: var(--signal); }

/* Evidence block - a callout, same treatment as .plain-english/.margin-note
   in assets/site.css: an ink-accented border, no decorative colour fill. */
.evidence {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--ink);
  background: var(--paper);
}
.evidence strong {
  display: block;
  color: var(--ink);
  font: 500 11px var(--mono);
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Data table */
.data-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--rule); }
.data-table th { color: var(--slate); font: 500 11px var(--mono); text-transform: uppercase; }

/* Figure */
.figure { margin: 24px 0; }
.figure img { border: 1px solid var(--rule); }
.figure figcaption { color: var(--slate); font-size: 11px; margin-top: 6px; }

/* Author */
.author {
  margin-top: 48px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--slate);
  font-size: 13px;
}
.author strong { color: var(--ink); }

/* Back link */
.back {
  display: inline-block;
  margin-top: 20px;
  font: 500 12px var(--mono);
  color: var(--signal);
}

/* ═══════ FOOTER ═══════
   .mf-footer chrome lives in assets/site.css. */

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 760px) {
  body { font-size: 14px; }
  .hero-inner, .index, .article-head { padding-left: 16px; padding-right: 16px; }
  .article-grid { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px 60px; }
  .toc { position: static; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
  .index-item { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
