@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q1w.woff2) format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F6qfjptAgt5VM-kVkqdyU8n3pAL5Zh.woff2) format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F6qfjptAgt5VM-kVkqdyU8n3kAL5Zh.woff2) format('woff2');
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  background: #0a0a0a;
  color: #b8b8b8;
  line-height: 1.65;
  max-width: 78ch;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

::selection {
  background: #1a3a1a;
  color: #4ade80;
}

a {
  color: #4ade80;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #86efac;
  text-decoration: underline;
  text-underline-offset: 3px;
}

hr {
  border: none;
  border-top: 1px solid #222;
  margin: 2.5rem 0;
}

/* ========== GLOBAL TYPE ========== */

h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #e8e8e8;
  margin: 0 0 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

h2::before {
  content: '//';
  color: #4ade80;
  font-weight: 400;
}

h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #d0d0d0;
  margin: 1.5rem 0 0.35rem;
}

p {
  margin-bottom: 1rem;
  max-width: 68ch;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.35rem;
  position: relative;
  padding-left: 1.25rem;
}

li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: #333;
}

code {
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  background: #111;
  color: #4ade80;
  padding: 0.1em 0.35em;
  font-size: 0.88em;
}

pre {
  background: #111;
  border: 1px solid #1a1a1a;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 1rem 0;
}

pre code {
  background: transparent;
  padding: 0;
}

/* ========== HEADER ========== */

.site-header {
  margin-bottom: 2.5rem;
}

.site-header svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin-bottom: 1rem;
}

.site-header svg text {
  font-family: monospace, 'IBM Plex Mono', 'Courier New', monospace;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.1rem;
  font-size: 0.82rem;
  color: #555;
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #1a1a1a;
  background: #0e0e0e;
}

.nav-sep {
  color: #222;
  margin: 0 0.35rem;
  user-select: none;
}

.nav-link {
  color: #666;
  text-transform: lowercase;
  font-size: 0.8rem;
  padding: 0.1em 0.2em;
}

.nav-link:hover {
  color: #4ade80;
  text-decoration: none;
  background: #111;
  border-radius: 2px;
}

@media (max-width: 480px) {
  .header-nav {
    gap: 0.25rem 0.1rem;
    font-size: 0.75rem;
    padding: 0.5rem;
  }
}

/* ========== SECTIONS ========== */

section {
  margin-bottom: 0;
}

section > p:first-of-type {
  margin-top: 0;
}

/* ========== EXPERIENCE ========== */

section#experience h3 {
  margin: 1.5rem 0 0.15rem;
}

/* The org line: <p><strong>@ Org</strong> · period</p> */
section#experience h3 + p {
  margin-bottom: 0.15rem;
  font-size: 0.9rem;
}

section#experience h3 + p strong {
  color: #666;
  font-weight: 400;
}

/* Subtitle: <p><em>subtitle</em></p> */
section#experience h3 + p + p em {
  display: block;
  color: #777;
  font-size: 0.82rem;
  font-style: normal;
  margin-bottom: 0.5rem;
}

section#experience h3 + p + p {
  margin-bottom: 0.15rem;
}

/* Bullet points */
section#experience ul {
  font-size: 0.88rem;
  color: #999;
  margin-bottom: 0.5rem;
}

section#experience li::before {
  content: '-';
  color: #333;
}

/* Divider between jobs */
section#experience hr {
  border-top: 1px solid #1a1a1a;
  margin: 1.5rem 0;
}

/* ========== SELECTED WORK (blockquotes = repo items) ========== */

/* Intro paragraph */
section#selected-work > p:first-of-type {
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 1.25rem;
}

/* Each blockquote is a repo */
section#selected-work blockquote {
  border: none;
  padding: 0;
  margin: 0 0 1rem 0;
  font-size: 0.88rem;
}

/* Repo name + meta line */
section#selected-work blockquote > p:first-of-type {
  margin: 0 0 0.15rem 0;
  color: #444;
  font-size: 0.78rem;
}

/* The link inside: repo name */
section#selected-work blockquote > p:first-of-type a {
  font-weight: 600;
  color: #d0d0d0;
  font-size: 0.88rem;
  margin-right: 0.5rem;
}

section#selected-work blockquote > p:first-of-type a:hover {
  color: #4ade80;
}

/* Description */
section#selected-work blockquote > p:last-of-type {
  color: #777;
  font-size: 0.85rem;
  margin: 0;
}

/* Footer after repos */
section#selected-work > p:last-of-type {
  font-size: 0.8rem;
  color: #444;
  margin-top: 1.5rem;
}

/* ========== CAPABILITIES ========== */

section#capabilities h3 {
  margin: 1rem 0 0.35rem;
}

section#capabilities h3 + p {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.75rem;
}

/* ========== AVAILABILITY ========== */

section#availability p {
  margin-bottom: 1rem;
}

section#availability ul {
  margin-bottom: 1rem;
}

section#availability li::before {
  content: '>';
  color: #333;
}

/* ========== ARCHIVE BANNER ========== */

.archive-banner {
  margin-top: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid #1a1a1a;
  background: #0e0e0e;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.archive-banner::before {
  content: '~';
  color: #4ade80;
}

.archive-banner a {
  color: #777;
}

.archive-banner a:hover {
  color: #4ade80;
}

/* ========== FOOTER ========== */

.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1a1a1a;
  font-size: 0.75rem;
  color: #333;
}

.site-footer a {
  color: #444;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 480px) {
  body {
    padding: 1.5rem 1rem 4rem;
    font-size: 14px;
  }
}
