/* ==========================================================================
   felix-lambert.github.io — single stylesheet, no framework.
   One typeface (Inter), one accent, hairline borders, no decoration.
   ========================================================================== */

/* Font (self-hosted) ----------------------------------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens ----------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --bg-3: #f1f5f9;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #1d4ed8;
  --accent-strong: #1e40af;
  --accent-soft: rgba(29, 78, 216, 0.08);
  --on-accent: #ffffff;
  --ok: #15803d;
  --ok-soft: rgba(21, 128, 61, 0.1);
  --warn: #b45309;
  --warn-soft: rgba(180, 83, 9, 0.1);
  --info: #1d4ed8;
  --info-soft: rgba(29, 78, 216, 0.08);
  --radius: 8px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1040px;
  --narrow: 720px;
}

:root[data-theme="dark"] {
  --bg: #0f172a;
  --bg-2: #14203a;
  --bg-3: #1e293b;
  --text: #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --line: #1e293b;
  --line-strong: #334155;
  --accent: #60a5fa;
  --accent-strong: #93c5fd;
  --accent-soft: rgba(96, 165, 250, 0.12);
  --on-accent: #0b1220;
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --info: #60a5fa;
  --info-soft: rgba(96, 165, 250, 0.12);
}

/* Base ------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

dl,
dd {
  margin: 0;
}

code,
pre {
  font-family: var(--mono);
  font-size: 0.9em;
}

.muted {
  color: var(--text-2);
}

.small {
  font-size: 0.875rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Layout ----------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: var(--narrow);
}

.site-main {
  min-height: 60vh;
  padding-bottom: 4rem;
}

.section {
  margin-top: 4.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.section-tight {
  margin-top: 2.5rem;
}

.section-title {
  margin-bottom: 0.3em;
}

.section-intro {
  color: var(--text-2);
  margin: 0;
  max-width: 60ch;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-link {
  white-space: nowrap;
  font-weight: 500;
  padding-bottom: 0.35rem;
}

@media (max-width: 640px) {
  .section {
    margin-top: 3.5rem;
    padding-top: 2rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}

.brand {
  font-weight: 700;
  color: var(--text);
  margin-right: auto;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-2);
}

.lang-switch:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .header-tools .header-cta {
    display: none;
  }
}

/* Buttons, status -------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  text-decoration: none;
  border-color: var(--text);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--on-accent);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text-2);
}

.btn.is-done {
  border-color: var(--ok);
  color: var(--ok);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.status {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--text-2);
}

.status-live {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 40%, transparent);
  background: var(--ok-soft);
}

.status-ongoing,
.status-wip {
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 40%, transparent);
  background: var(--warn-soft);
}

.status-open_source {
  color: var(--info);
  border-color: color-mix(in srgb, var(--info) 40%, transparent);
  background: var(--info-soft);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* Hero ------------------------------------------------------------------- */

.hero {
  padding-top: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 3rem;
  align-items: start;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ok);
  margin: 0 0 1.5rem;
}

.hero-kicker {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 0.5rem;
}

.hero-name {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 0.5em;
}

.hero-headline {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  max-width: 36ch;
  margin-bottom: 0.6em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 60ch;
  margin-bottom: 0;
}

.hero-links {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.hero-figure {
  margin: 0;
  justify-self: end;
  width: 100%;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.facts {
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  padding: 1.1rem 1.25rem 1.1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.fact + .fact {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.fact dd {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.fact dt {
  font-size: 0.85rem;
  color: var(--text-2);
}

.companies {
  margin-top: 2.5rem;
}

.companies-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.75rem;
}

.companies-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.companies-list li {
  display: flex;
  flex-direction: column;
}

.company-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.company-note {
  font-size: 0.75rem;
  color: var(--text-3);
}

@media (max-width: 860px) {
  .hero {
    padding-top: 2.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-figure {
    justify-self: start;
    width: 200px;
    order: -1;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .fact + .fact {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Experience ------------------------------------------------------------- */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.xp-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.xp-item:last-child {
  border-bottom: 1px solid var(--line);
}

.xp-when {
  color: var(--text-2);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  padding-top: 0.2rem;
}

.xp-role {
  margin-bottom: 0.1em;
  font-size: 1.05rem;
}

.xp-company {
  margin: 0;
  font-size: 0.95rem;
}

.xp-note {
  margin: 0.4rem 0 0;
  color: var(--text-2);
  font-size: 0.93rem;
}

.xp-bullets,
.xp-missions {
  margin: 0.6em 0 0;
  padding-left: 1.15em;
}

.xp-bullets li,
.xp-missions li {
  margin-bottom: 0.35em;
}

.xp-tags {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--text-3);
}

.timeline-compact .xp-item {
  padding: 1rem 0;
}

@media (max-width: 640px) {
  .xp-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .xp-when {
    padding-top: 0;
  }
}

/* Projects --------------------------------------------------------------- */

.project {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.home .project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .home .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.project-title {
  margin-bottom: 0.1em;
  font-size: 1.2rem;
}

.project-title-lg {
  font-size: 1.5rem;
}

.project-tagline {
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 0.7em;
}

.project-text {
  margin-bottom: 0.6em;
}

.project-highlights {
  color: var(--text-2);
  font-size: 0.93rem;
  padding-left: 1.1em;
  margin-bottom: 0.6em;
}

.project-stack {
  margin: auto 0 0;
  padding-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-2);
}

.project-links {
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.project-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr);
  gap: 2rem;
  padding: 2rem;
  margin-bottom: 1.25rem;
}

.project-featured .project-stack {
  margin-top: 0.75rem;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-content: start;
}

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.1rem;
}

.metric dd {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.metric dt {
  font-size: 0.8rem;
  color: var(--text-2);
}

@media (max-width: 800px) {
  .project-featured {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* Skills ----------------------------------------------------------------- */

.skills {
  margin-top: 1.5rem;
}

.skills-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.skills-row:last-child {
  border-bottom: 1px solid var(--line);
}

.skills-row dt {
  font-weight: 600;
}

.skills-row dd {
  color: var(--text-2);
}

@media (max-width: 640px) {
  .skills-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* Posts ------------------------------------------------------------------ */

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.post-item:last-child {
  border-bottom: 1px solid var(--line);
}

.post-item-date {
  color: var(--text-2);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.post-item-title {
  font-weight: 600;
  color: var(--text);
  font-size: 1.02rem;
}

.post-item-title:hover {
  color: var(--accent);
}

.lang-chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text-2);
}

@media (max-width: 640px) {
  .post-item {
    grid-template-columns: 1fr auto;
  }

  .post-item-date {
    grid-column: 1 / -1;
    order: -1;
    font-size: 0.82rem;
  }
}

.blog-group {
  margin-top: 2.5rem;
}

.blog-group-title {
  font-size: 0.78rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

/* Generic page & prose --------------------------------------------------- */

.page-header {
  padding-top: 3rem;
  margin-bottom: 2rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 60ch;
}

.eyebrow {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.post-meta {
  color: var(--text-2);
  font-size: 0.95rem;
}

.prose {
  font-size: 1.06rem;
  line-height: 1.75;
}

.prose h2,
.prose h3 {
  margin-top: 2em;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

.prose img {
  margin: 1.5rem auto;
  border-radius: var(--radius);
  max-height: 70vh;
  width: auto;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--line-strong);
  color: var(--text-2);
}

.prose pre {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  line-height: 1.5;
}

.prose code {
  background: var(--bg-3);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.prose pre code {
  background: none;
  padding: 0;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

.post-footer {
  margin-top: 3rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.author-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}

/* Contact ---------------------------------------------------------------- */

.contact-email {
  margin: 1.25rem 0 0;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer-inner {
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  justify-content: flex-end;
}

.footer-legal {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-2);
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/* CV page ---------------------------------------------------------------- */

.cv {
  max-width: 880px;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 2rem 0 1.5rem;
}

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--text);
}

.cv-name {
  font-size: 2.25rem;
  margin-bottom: 0.1em;
}

.cv-role {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.6em;
}

.cv-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  font-size: 0.92rem;
  color: var(--text-2);
}

.cv-contact li + li::before {
  content: "·";
  margin-right: 0.5rem;
  color: var(--text-3);
}

.cv-avatar {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}

.cv-section {
  margin-top: 1.9rem;
}

.cv-section h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 0.8rem;
}

.cv-summary {
  font-size: 1.02rem;
  margin: 0;
}

.cv-skills {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.cv-skill-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
}

.cv-skill-row dt {
  font-weight: 600;
}

.cv-skill-row dd {
  margin: 0;
  color: var(--text-2);
}

.cv .timeline .xp-item {
  grid-template-columns: 150px 1fr;
}

.cv-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.cv-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-list li {
  margin-bottom: 0.6rem;
}

.cv-updated {
  margin-top: 2.5rem;
}

@media (max-width: 640px) {
  .cv-header {
    flex-direction: column-reverse;
  }

  .cv-skill-row,
  .cv-two-col {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .cv-two-col {
    gap: 1rem;
  }

  .cv .timeline .xp-item {
    grid-template-columns: 1fr;
  }
}

/* Print / PDF ------------------------------------------------------------ */

@page {
  size: A4;
  margin: 14mm 14mm 16mm;
}

@media print {
  :root,
  :root[data-theme="dark"] {
    --bg: #ffffff;
    --bg-2: #ffffff;
    --bg-3: #f0f2f4;
    --text: #111111;
    --text-2: #444444;
    --text-3: #777777;
    --line: #cccccc;
    --line-strong: #bbbbbb;
    --accent: #1e40af;
    --accent-strong: #1e40af;
  }

  body {
    font-size: 10pt;
    line-height: 1.38;
    background: #fff;
  }

  .site-header,
  .site-footer,
  .no-print,
  .skip-link,
  .xp-tags {
    display: none !important;
  }

  .site-main {
    padding-bottom: 0;
  }

  .wrap {
    padding: 0;
    max-width: none;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .cv-name {
    font-size: 22pt;
  }

  .cv-role {
    font-size: 12pt;
    color: var(--accent);
  }

  .cv-header {
    padding-bottom: 0.5rem;
    border-bottom-width: 1.5pt;
  }

  .cv-contact {
    font-size: 9pt;
  }

  .cv-avatar {
    width: 68px;
    height: 68px;
    border-radius: 6px;
  }

  .cv-section {
    margin-top: 0.85rem;
  }

  .cv-section h2 {
    font-size: 8pt;
    margin-bottom: 0.35rem;
  }

  .cv-summary {
    font-size: 10pt;
  }

  .cv-skills {
    gap: 0.2rem;
  }

  .cv-skill-row {
    grid-template-columns: 125px 1fr;
    gap: 0.5rem;
    font-size: 9.5pt;
  }

  .cv .timeline .xp-item {
    grid-template-columns: 140px 1fr;
    gap: 0.6rem;
    padding: 0.45rem 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .xp-role {
    font-size: 11pt;
    margin-bottom: 0.05em;
  }

  .xp-company {
    margin-bottom: 0;
  }

  .xp-when,
  .xp-note,
  .xp-company {
    font-size: 9pt;
  }

  .xp-note {
    margin-top: 0.15rem;
  }

  .xp-when {
    white-space: nowrap;
    font-size: 8.5pt;
    padding-top: 0.25rem;
  }

  .xp-bullets,
  .xp-missions {
    margin-top: 0.15rem;
    padding-left: 1em;
  }

  .xp-bullets li,
  .xp-missions li {
    margin-bottom: 0.1rem;
  }

  .cv-two-col {
    gap: 1rem;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .cv-list li {
    margin-bottom: 0.3rem;
  }

  .cv-updated {
    margin-top: 0.75rem;
    font-size: 8pt;
  }
}
