*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

:root {
  --content-max-width: 52rem;
  --content-padding-x: 2.75rem;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fafafa;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

.site-header nav {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 1.25rem var(--content-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-name {
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a;
  text-decoration: none;
}

.site-name:hover {
  text-decoration: none;
  color: #2563eb;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.85rem;
  color: #525252;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #1a1a1a;
  text-decoration: underline;
}

main {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 2.5rem var(--content-padding-x) 4rem;
}

.site-footer {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 1.5rem var(--content-padding-x);
  border-top: 1px solid #e5e5e5;
  font-size: 0.8rem;
  color: #737373;
  text-align: center;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: #404040;
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

p {
  margin: 0 0 1rem;
  color: #404040;
}

.lead {
  font-size: 1rem;
  color: #525252;
}

.meta {
  font-size: 0.85rem;
  color: #737373;
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}

.cta-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 500;
}

.cv-section {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.25rem 0;
  margin-bottom: 1rem;
}

.cv-section > h2,
.cv-group-heading {
  margin-top: 0;
}

.cv-group-heading {
  font-size: 1rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: #404040;
}

.cv-section > p:last-child,
.cv-section > ul:last-child {
  margin-bottom: 0;
}

.role {
  margin-bottom: 1rem;
}

.role:last-child {
  margin-bottom: 0;
}

.role-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0.35rem;
}

.role-dates {
  font-size: 0.85rem;
  color: #737373;
  white-space: nowrap;
}

.role-company {
  font-size: 0.9rem;
  color: #525252;
  margin-bottom: 0.5rem;
}

.role ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #404040;
}

.role li {
  margin-bottom: 0.35rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  background: #f0f0f0;
  border-radius: 4px;
  color: #404040;
}

.skills-category {
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #efefef;
}

.skills-category:last-child {
  margin-bottom: 0;
}

.skills-category:first-child {
  padding-top: 0;
  border-top: none;
}

.skills-category h3 {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.skills-category p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  :root {
    --content-padding-x: 1.5rem;
  }

  main {
    padding-top: 2rem;
  }
}
