@font-face {
  font-family: "Inter";
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #F4F6F3; --panel: #FFFFFF; --text: #111513; --muted: #5A635D; --line: #DDE2DC;
  --accent: #17803A; --accent-soft: #E3F1E6; --on-accent: #FFFFFF;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgb(16 24 20 / .04), 0 8px 24px -12px rgb(16 24 20 / .12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0E0D; --panel: #141816; --text: #E8ECE9; --muted: #96A19A; --line: #252B28;
    --accent: #5BD27A; --accent-soft: #16301F; --on-accent: #0C0E0D;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -16px rgb(0 0 0 / .6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 6; }

.top, main, .foot { max-width: 1120px; margin: 0 auto; padding-inline: 32px; }

/* Small uppercase labels, used for section titles and tags */
.eyebrow, h2, .n-label, .toolbox h3, .m-issuer {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}

/* Header */
.top { display: flex; align-items: center; gap: 32px; height: 72px; }
.mark { font-size: 16px; font-weight: 650; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.top nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 500; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }
.resume {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  font-size: 14px; font-weight: 550; color: var(--text); text-decoration: none; transition: border-color .15s;
}
.resume:hover { border-color: var(--accent); }
.r-doc { width: 14px; height: 18px; }
.r-page, .r-lines { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero { padding: 64px 0 56px; }
.eyebrow { color: var(--accent); }
h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; margin: 14px 0 22px; }
.lead { font-size: clamp(19px, 2.3vw, 24px); line-height: 1.45; letter-spacing: -.012em; max-width: 40ch; }
.now { margin-top: 16px; color: var(--muted); max-width: 60ch; }

.actions { display: grid; grid-template-columns: repeat(2, 150px); gap: 12px; margin: 32px 0 56px; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; height: 44px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }

/* Flow diagram: the line after the pipeline is thinner because less data leaves it */
.flow { margin: 0; display: grid; grid-template-columns: 1fr 110px 1.15fr 110px 1fr; }
.node {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 168px;
}
.node.mid { border-color: var(--accent); }
.node strong { font-size: 15px; font-weight: 650; line-height: 1.35; }
.chips, .ops { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; font-weight: 500; padding: 3px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--panel); }
.ops li { font-size: 13px; font-weight: 550; padding: 3px 10px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }

.pipe { position: relative; align-self: center; height: 3px; margin: 0 14px 0 10px; background: var(--accent); border-radius: 2px; }
.pipe.out { height: 2px; }
.pipe::after {
  content: ""; position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-left: 8px solid var(--accent); border-right: 0;
}
.pipe span { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; }

/* Blocks */
.block { padding: 80px 0 0; }
h2 { margin-bottom: 20px; }
h3 { font-size: 19px; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; }

.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stages li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.num { font-size: 12px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.metric { font-size: 14px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.metric b { display: block; font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -.025em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stages p:last-child { font-size: 15px; color: var(--muted); }
.stages a { color: var(--text); }

.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.jobs li { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.jobs time { font-size: 14px; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.jobs h3 span { color: var(--accent); font-weight: 550; }
.jobs p { color: var(--muted); margin-top: 6px; max-width: 70ch; }

.toolbox { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; }
.toolbox > div { border-top: 2px solid var(--accent); padding-top: 14px; }
.toolbox h3 { margin-bottom: 12px; line-height: 1.4; }
.toolbox .chips li { color: var(--text); }

/* Certification badges: earned ones are the real Credly badge, the rest a dashed placeholder */
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.badge {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 28px 16px 22px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
}
.medal {
  width: 120px; aspect-ratio: 1; margin-bottom: 16px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1.5px dashed var(--line);
}
.medal img { display: block; width: 100%; height: 100%; border-radius: 4px; }
.earned .medal { border: 0; }
.m-issuer { font-size: 10px; }
.m-name { margin-top: 4px; font-size: 14px; font-weight: 650; line-height: 1.2; color: var(--muted); }
.badge b { font-size: 15px; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.when { font-size: 13px; color: var(--muted); text-wrap: balance; }
.earned .when { color: var(--accent); font-weight: 550; text-decoration: none; }
.earned .when:hover { text-decoration: underline; }

/* Writing */
.post {
  display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: center;
  padding: 20px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--muted); transition: border-color .15s;
}
.post + .post { margin-top: 12px; }
.post:hover { border-color: var(--accent); }
.post time { font-size: 14px; font-variant-numeric: tabular-nums; }
.post b { display: block; font-size: 18px; font-weight: 650; letter-spacing: -.01em; color: var(--text); margin-bottom: 2px; }
.post i { font-style: normal; font-size: 18px; color: var(--accent); }

/* Contact and footer */
.contact { padding: 112px 0 64px; text-align: center; }
.contact p { color: var(--muted); }
.email { display: inline-block; font-size: clamp(21px, 4vw, 36px); font-weight: 650; letter-spacing: -.02em; color: var(--text); margin: 12px 0 16px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.links { display: flex; justify-content: center; gap: 24px; font-size: 15px; font-weight: 500; }
.foot { padding-block: 24px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Blog */
.article { max-width: 720px; padding-top: 48px; padding-bottom: 80px; }
.article h1 { font-size: clamp(34px, 5.5vw, 52px); margin: 10px 0 32px; }
.back { display: inline-block; font-size: 14px; font-weight: 500; margin-bottom: 32px; text-decoration: none; }
.back:hover { text-decoration: underline; }
.prose { font-size: 17px; line-height: 1.75; }
.prose p, .prose ul { margin: 0 0 22px; }
.prose h2 { font-size: 24px; font-weight: 700; line-height: 1.3; text-transform: none; letter-spacing: -.02em; color: var(--text); margin: 48px 0 14px; }
.prose li { margin-bottom: 6px; }
.prose code { font: 14px var(--code); background: var(--accent-soft); color: var(--accent); padding: 2px 6px; border-radius: 4px; }
.prose pre { margin: 0 0 22px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.prose pre code { background: none; color: var(--text); padding: 0; font-size: 13.5px; line-height: 1.75; }
.prose pre .k { color: var(--accent); font-weight: 600; }

/* Tablet */
@media (max-width: 1100px) {
  .stages, .toolbox { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; max-width: 560px; }
  .node { min-height: 0; }
  .pipe { justify-self: center; width: 3px; height: 56px; margin: 0 0 12px; }
  .pipe.out { width: 2px; height: 56px; }
  .pipe::after { right: auto; left: 50%; top: auto; bottom: -8px; transform: translateX(-50%); border: 6px solid transparent; border-top: 8px solid var(--accent); border-bottom: 0; }
  .pipe span { left: 18px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .badges { grid-template-columns: 1fr 1fr; }
}
/* Phone */
@media (max-width: 720px) {
  .top, main, .foot { padding-inline: 16px; }
  .top { height: 64px; }
  .top nav { display: none; }
  .resume { margin-left: auto; height: 36px; padding: 0 12px; }
  .hero { padding: 36px 0 40px; }
  .actions { grid-template-columns: 1fr 1fr; margin-bottom: 40px; }
  .block { padding-top: 60px; }
  .stages { grid-template-columns: 1fr; }
  .jobs li { grid-template-columns: 1fr; gap: 4px; }
  .toolbox { gap: 20px; }
  .post { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .post i { display: none; }
  .contact { padding-top: 88px; }
  .article { padding-top: 24px; }
}
@media (max-width: 480px) {
  .toolbox { grid-template-columns: 1fr; }
  .badges { gap: 8px; }
  .badge { padding: 22px 10px 18px; }
  .medal { width: 96px; }
  .m-name { font-size: 12px; }
  .badge b { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
