@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/jetbrains-mono-latin-700-normal-BYuf6tUa.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* /resume page: Catppuccin Mocha on screen, black on white in print.
   Linked as a stylesheet (no inline styles: CSP). Served/emitted by
   scripts/resume-plugin.js, which prepends the JetBrains Mono @font-face. */

:root {
  --base: #1e1e2e;
  --mantle: #181825;
  --surface0: #313244;
  --text: #cdd6f4;
  --subtext: #bac2de;
  --muted: #9399b2;
  --blue: #89b4fa;
  --mauve: #cba6f7;
  --green: #a6e3a1;
  --pink: #f5c2e7;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace; /* @font-face prepended by the plugin */
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 16px 48px;
  background: var(--base);
  color: var(--text);
  font: 1rem/1.6 var(--sans);
}

.topnav,
.masthead,
main,
.footer {
  max-width: 48rem; /* rem, not ch: these blocks use different fonts and sizes */
  margin-inline: auto;
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(137, 180, 250, 0.45);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

a:hover { text-decoration-color: currentColor; }

a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
  border-radius: 2px;
}

.topnav {
  padding: 16px 0;
  font: 0.875rem/1.4 var(--mono);
}

.masthead {
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--surface0);
}

h1, h2, h3 {
  font-family: var(--mono);
  line-height: 1.25;
}

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  color: var(--text);
}

.headline {
  margin: 8px 0 0;
  color: var(--mauve);
  font-family: var(--mono);
  font-weight: 600;
}

.masthead-contact {
  margin: 8px 0 0;
  color: var(--muted);
}

section {
  padding-top: 28px;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h2::before {
  content: '## ';
  color: var(--muted);
}

h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--mauve);
}

p { margin: 0 0 8px; }

.entry + .entry { margin-top: 20px; }

.entry-location {
  color: var(--subtext);
  font-weight: 400;
}

.roles,
.points {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.roles li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 16px;
}

.role-title { font-weight: 600; }

.period,
.meta {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.meta { font-size: 0.9375rem; }

.points li {
  position: relative;
  padding-left: 1.25em;
  margin-bottom: 4px;
}

.points li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--mauve);
}

.tech { color: var(--subtext); font-size: 0.9375rem; }

.label {
  color: var(--green);
  font-weight: 600;
}

.pairs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 0 0 8px;
}

.pairs dt {
  color: var(--green);
  font-weight: 600;
}

.pairs dd { margin: 0; }

.footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--surface0);
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 560px) {
  .pairs { grid-template-columns: 1fr; gap: 0; }
  .pairs dd { margin-bottom: 8px; }
}

/* Print: a clean one-column résumé, black on white */
@media print {
  @page { margin: 16mm 16mm 18mm; }

  :root {
    --text: #000;
    --subtext: #222;
    --muted: #444;
    --blue: #000;
    --mauve: #000;
    --green: #000;
  }

  body {
    background: #fff;
    color: #000;
    padding: 0;
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .topnav,
  .footer {
    display: none;
  }

  .topnav, .masthead, main, .footer { max-width: none; }

  a {
    color: #000;
    text-decoration: none;
  }

  .masthead {
    padding-top: 0;
    border-bottom: 1.5pt solid #000;
  }

  h2 { border-bottom: 0.5pt solid #999; padding-bottom: 2pt; }
  h2::before { content: none; }

  section { padding-top: 14pt; }

  h2, h3 { break-after: avoid; }
  .entry, .roles li, .pairs { break-inside: avoid; }
}
