﻿/* Mission FinOps — Blog / Thinking
   Terminal man-page aesthetic. Monospace. Dark. Green accent.
   Matches site.css design system. */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #0a0a0a;
  --panel: #0f110f;
  --text: #d4d4d4;
  --text-bright: #f0f0f0;
  --text-muted: #6b6b6b;
  --green: #33ff00;
  --green-dim: #1a8a00;
  --green-glow: rgba(51, 255, 0, 0.08);
  --green-border: rgba(51, 255, 0, 0.15);
  --amber: #ffb000;
  --border: #1f2b1f;
  --border-bright: #2a3d2a;
  --mono: "IBM Plex Mono", "SF Mono", "Cascadia Code", Consolas, monospace;
  --max: 960px;
  --measure: 72ch;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font: 400 15px/1.7 var(--mono);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #6fd498; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: rgba(51, 255, 0, 0.2); color: var(--text-bright); }
:focus-visible { outline: 1px solid var(--green); outline-offset: 2px; }

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

/* ═══════ NAV ═══════ */
.site-head { border-bottom: none; }
.mf-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.mf-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mf-brand { color: var(--green); font: 700 13px var(--mono); text-decoration: none; white-space: nowrap; }
.mf-brand b { font-weight: 700; }
.mf-nav-links { display: flex; gap: 16px; align-items: center; }
.mf-nav-links a { color: var(--text-muted); font-size: 12px; text-decoration: none; }
.mf-nav-links a:hover { color: var(--text); }
.mf-nav-links a[aria-current="page"] { color: var(--green); }
.mf-nav-cta { color: var(--bg) !important; background: var(--green); padding: 4px 10px; font-size: 11px; font-weight: 700; text-decoration: none !important; }
.mf-nav-cta:hover { background: #6fd498; }
.mf-menu-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 4px; width: 32px; height: 32px; padding: 6px;
  cursor: pointer; border: none; background: none;
}
.mf-menu-toggle span { display: block; height: 2px; background: var(--text); }
.mf-mobile-menu {
  display: none; flex-direction: column; gap: 8px;
  padding: 12px 24px 16px;
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid var(--border);
}
.mf-mobile-menu.open { display: flex; }
.mf-mobile-menu a { color: var(--text-muted); font-size: 13px; text-decoration: none; padding: 6px 0; }
.mf-mobile-menu a:hover { color: var(--green); }

@media (max-width: 860px) {
  .mf-nav-links { display: none; }
  .mf-menu-toggle { display: flex; }
}

/* ═══════ HERO (blog index) ═══════ */
.hero { border-bottom: 1px solid var(--border); }
.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;
}
.kicker { color: var(--green); margin: 0 0 14px; }
.kicker::before { content: "$ "; opacity: 0.5; }
h1 {
  max-width: 20ch;
  margin: 0;
  font: 700 clamp(22px, 5vw, 32px)/1.2 var(--mono);
  color: var(--text-bright);
  letter-spacing: -0.02em;
}
.hero-intro {
  max-width: var(--measure);
  margin: 16px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

/* 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: 14px;
  color: var(--text-muted);
}
.index-list { border-top: 1px solid var(--border); }
.index-item {
  display: grid;
  grid-template-columns: 10ch 14ch 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}
.index-item:hover { background: var(--panel); }
.index-date { color: var(--text-muted); font-size: 11px; }
.index-cat { color: var(--amber); font-size: 11px; }
.index-copy h2 {
  margin: 0 0 4px;
  font: 700 14px/1.35 var(--mono);
  color: var(--text-bright);
}
.index-copy p {
  max-width: 56ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

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

/* ═══════ 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(--green); 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(--text-muted); font-size: 12px; text-decoration: none; }
.toc a:hover { color: var(--green); }

/* ═══════ 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(--green);
  margin: 0 0 14px;
  font-size: 11px;
}
.section-label::before { content: "$ "; opacity: 0.5; }
.section-label::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.prose h2 {
  margin: 0 0 14px;
  font: 700 16px/1.35 var(--mono);
  color: var(--text-bright);
}
.prose p { margin: 0 0 1.1em; font-size: 14px; }
.prose li { margin: 0.4em 0; font-size: 14px; }
.prose strong { color: var(--text-bright); }
.prose ul, .prose ol { padding-left: 2ch; }

/* Code */
pre {
  overflow: auto;
  padding: 16px 20px;
  border: 1px solid var(--border-bright);
  background: #050705;
  color: var(--green);
  font: 400 13px/1.7 var(--mono);
  text-shadow: 0 0 4px rgba(51, 255, 0, 0.2);
}
code { font: 400 0.9em var(--mono); color: var(--green); }

/* Evidence block */
.evidence {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 2px solid var(--amber);
  background: var(--panel);
}
.evidence strong {
  display: block;
  color: var(--amber);
  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(--border); }
.data-table th { color: var(--green); font: 500 11px var(--mono); text-transform: uppercase; }

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

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

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

/* ═══════ FOOTER ═══════ */
.mf-footer { border-top: 1px solid var(--border); }
.mf-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 40px;
}
.mf-footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.mf-footer-links a { color: var(--text-muted); font-size: 12px; text-decoration: none; }
.mf-footer-links a:hover { color: var(--green); }
.mf-footer-meta { color: var(--text-muted); font-size: 11px; line-height: 1.6; }
.mf-footer-meta a { color: var(--text-muted); }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 760px) {
  body { font-size: 14px; }
  .mf-nav-inner { padding: 0 16px; }
  .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(--border); }
  .index-item { grid-template-columns: 1fr; gap: 4px; }
  .mf-footer-inner { padding: 20px 16px 32px; }
}

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