/* ============================================================
   Kevin Blackman — kevinblackman.com
   Clean, readable, responsive. No build step.
   ============================================================ */

:root {
  --bg:         #ffffff;
  --bg-alt:     #f6f8fa;
  --ink:        #0f172a;
  --ink-2:      #334155;
  --muted:      #64748b;
  --accent:     #0891b2;
  --accent-ink: #0e7490;
  --accent-soft:#ecfeff;
  --accent-bd:  #a5e8f2;
  --border:     #e2e8f0;
  --radius:     14px;
  --maxw:       1080px;
  --shadow-sm:  0 1px 2px rgba(15,23,42,.04);
  --shadow:     0 8px 28px -12px rgba(15,23,42,.18);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--ink); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink); color: #fff;
  font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: .02em;
}
.brand-name { font-size: 15px; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav .nav-cta {
  color: var(--accent-ink); border: 1px solid var(--accent-bd);
  padding: 7px 14px; border-radius: 9px; background: var(--accent-soft);
}
.nav .nav-cta:hover { background: #d7f7fb; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 64px; border-bottom: 1px solid var(--border); }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 800; letter-spacing: -0.035em; }
.lead {
  margin-top: 20px; max-width: 680px;
  font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-meta {
  list-style: none; margin: 38px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.hero-meta li { display: flex; align-items: center; gap: 9px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; padding: 11px 20px;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: #cbd5e1; background: var(--bg-alt); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { margin-bottom: 40px; }
.kicker {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 700; }
.section-intro, .section-foot { max-width: 720px; font-size: 17px; color: var(--ink-2); }
.section-intro { margin-bottom: 36px; }
.section-foot { margin-top: 36px; color: var(--muted); }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.section-alt .card { background: #fff; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d3e3e8; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--ink-2); }

.metric { position: relative; }
.metric-num {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--accent); display: block; margin-bottom: 12px; letter-spacing: .05em;
}

/* ---------- Systems ---------- */
.system {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 30px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.section-alt .system { background: #fff; }
.system h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.system p { font-size: 15.5px; color: var(--ink-2); max-width: 760px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; }
.tags li {
  font-family: var(--mono); font-size: 12px; color: var(--accent-ink);
  background: var(--accent-soft); border: 1px solid var(--accent-bd);
  padding: 3px 10px; border-radius: 999px;
}

/* ---------- Profile ---------- */
.profile { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.profile-summary p { font-size: 16.5px; color: var(--ink-2); }
.profile-h { font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 28px 0 14px; }
.profile-summary .profile-h:first-of-type { margin-top: 30px; }
.competencies { list-style: none; padding: 0; margin: 0 0 28px; }
.competencies li { position: relative; padding-left: 22px; margin-bottom: 12px; font-size: 15.5px; color: var(--ink-2); }
.competencies li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.note code, .profile code { font-family: var(--mono); font-size: 12.5px; background: var(--bg-alt); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; }

.profile-aside { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.profile-aside .profile-h:first-child { margin-top: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2);
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 8px;
}
.avail { font-size: 14.5px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-lead { max-width: 640px; font-size: 17px; color: var(--ink-2); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; background: var(--bg); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.footer-mono { font-family: var(--mono); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
         gap: 0; background: #fff; border-bottom: 1px solid var(--border);
         padding: 8px 24px 16px; transform: translateY(-12px); opacity: 0; pointer-events: none;
         transition: .18s ease; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .nav .nav-cta { border: 1px solid var(--accent-bd); margin-top: 10px; text-align: center; }
  body.nav-open .nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
}

/* ============================================================
   CV page (cv.html)
   ============================================================ */
.cv { padding: 56px 0 72px; }
.cv-header { border-bottom: 2px solid var(--ink); padding-bottom: 22px; margin-bottom: 30px; }
.cv-header h1 { font-size: clamp(32px, 6vw, 46px); font-weight: 800; }
.cv-creds { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--accent-ink); margin-top: 8px; text-transform: uppercase; }
.cv-title { font-size: 17px; color: var(--ink-2); margin-top: 10px; font-weight: 500; }
.cv-contact { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.cv-contact a { color: var(--muted); }
.cv-contact a:hover { color: var(--accent-ink); }

.cv-grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.cv-section { margin-bottom: 30px; }
.cv-section > h2 {
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.cv-lead { font-size: 16px; color: var(--ink-2); }

.role { margin-bottom: 22px; }
.role-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.role h3 { font-size: 16.5px; font-weight: 700; }
.role .org { color: var(--accent-ink); font-weight: 600; }
.role .when { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.role .where { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.role p { font-size: 14.5px; color: var(--ink-2); }

.cv-aside .cv-section > h2 { border-bottom: 1px solid var(--border); }
.kv { margin-bottom: 14px; }
.kv .k { font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 3px; }
.kv .v { font-size: 14px; color: var(--ink-2); }
.cert { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.cert .yr { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cv-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }

@media print {
  .site-header, .site-footer, .cv-actions, .nav-toggle { display: none !important; }
  .cv { padding: 0; }
  .cv-grid { gap: 32px; }
  body { line-height: 1.5; }
  a { color: var(--ink) !important; text-decoration: none; }
}
@media (max-width: 820px) {
  .cv-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   EOD Reports showcase (RAVOLM column + summary + PDF)
   ============================================================ */
.reports-list { display: flex; flex-direction: column; gap: 16px; }
.report {
  display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.report:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d3e3e8; }
.report-viz { background: #000; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; line-height: 0; }
.report-viz img { width: 100%; height: auto; display: block; }
.report-date { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--accent-ink); text-transform: uppercase; }
.report-title { font-size: 18px; font-weight: 700; color: var(--ink); margin: 6px 0 8px; }
.report-summary { font-size: 15px; color: var(--ink-2); }
.report-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; }
.report-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; }
.report-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.reports-note { margin-top: 26px; font-size: 13px; color: var(--muted); }
@media (max-width: 680px) {
  .report { grid-template-columns: 1fr; gap: 14px; }
  .report-viz { max-width: 320px; }
}
