:root {
  --text: #1a1a1a;
  --text-muted: #5a6170;
  --text-faint: #8a909c;
  --bg: #ffffff;
  --border: #d6d6d6;
  --border-faint: #eaeaea;
  --accent: #1a4b82;

  --font-body: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;

  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6e6e6;
    --text-muted: #a0a6b3;
    --text-faint: #6b7280;
    --bg: #14161a;
    --border: #2a2e36;
    --border-faint: #1e2128;
    --accent: #6ea8dc;
  }
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 2rem 1.25rem 4rem;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
}

.site-header {
  max-width: var(--measure);
  margin: 0 auto 2rem;
  padding-bottom: 1rem;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-header strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.switcher {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.switcher a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 0.5rem;
}

.switcher a:hover,
.switcher a:focus {
  color: var(--text);
}

.switcher a.active {
  color: var(--accent);
  font-weight: 500;
}

h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 0.75rem;
  padding-top: 0.5rem;
}

h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0.1rem 0 0;
}

p { margin: 0 0 1rem; }

section { margin-bottom: 2rem; }

.summary p { font-size: 1rem; }

.competencies ul,
.skills p,
.languages ul,
.education ul {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.competencies ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.competencies li::after {
  content: " ·";
  color: var(--text-faint);
  margin-left: 0.5rem;
}

.competencies li:last-child::after { content: ""; }

.role {
  margin-bottom: 1.5rem;
}

.role header .period {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.role h3 .company {
  font-weight: 400;
  color: var(--text-muted);
}

.role ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.role li { margin-bottom: 0.25rem; }

.role--compact { margin-bottom: 1rem; }
.role--compact header { margin-bottom: 0; }

.era--early ul.early-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.era--early li {
  margin-bottom: 0.4rem;
}

.era--early .period {
  display: inline-block;
  width: 7rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
}

.education ul,
.languages ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.education li,
.languages li { margin-bottom: 0.3rem; }

.skills h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.contact {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.contact a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.contact a:hover,
.contact a:focus {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Print */
@media print {
  :root {
    --text: #000;
    --text-muted: #333;
    --accent: #000;
    --border: #999;
  }

  @page { margin: 1.2cm 1.4cm; }

  body {
    padding: 0;
    font-size: 9pt;
    line-height: 1.35;
  }

  main, .site-header {
    max-width: none;
    margin: 0;
  }

  .switcher { display: none; }

  .site-header {
    padding-bottom: 0.3rem;
    margin-bottom: 0.5rem;
  }

  .site-header strong {
    font-size: 14pt;
  }

  h1 {
    font-size: 10.5pt;
    margin: 0.3rem 0 0.4rem;
  }

  h2 {
    font-size: 10.5pt;
    margin: 0.5rem 0 0.25rem;
    padding-top: 0;
  }

  h3 { font-size: 9.5pt; }

  section { margin-bottom: 0.5rem; }

  .summary p { font-size: 9pt; margin: 0 0 0.4rem; }

  .competencies ul,
  .skills p,
  .languages ul,
  .education ul {
    font-size: 8.5pt;
  }

  .role {
    page-break-inside: avoid;
    margin-bottom: 0.45rem;
  }

  .role header .period {
    display: inline-block;
    margin-right: 0.5em;
    font-size: 8pt;
  }

  .role h3 { display: inline; }

  .role ul {
    margin: 0.2rem 0 0;
    font-size: 8.5pt;
  }

  .role li { margin-bottom: 0.1rem; }

  .role--compact { margin-bottom: 0.2rem; }

  .era--early .period { width: 5rem; font-size: 8pt; }

  .education li, .languages li { margin-bottom: 0.1rem; }

  .skills h3 { margin-top: 0.3rem; }

  .actions { display: none; }     

  .contact a {
    border-bottom: none;
    text-decoration: underline;
  }
}

.actions {
  margin: 0 0 1.5rem;
}

.print-button {
  font: inherit;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.print-button:hover,
.print-button:focus {
  border-color: var(--accent);
  color: var(--accent);
}

.print-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 75, 130, 0.15);
}

