:root {
  --bg-deep-navy: #141824;
  --bg-midnight-slate: #1e293b;
  --border-grey: #334155;
  --accent-emerald: #10b981;
  --accent-sky: #60a5fa;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --max-width: 720px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--bg-deep-navy);
}

a {
  color: var(--accent-sky);
  text-decoration: none;
}

a:hover {
  color: var(--accent-emerald);
}

.site-header {
  border-bottom: 1px solid var(--border-grey);
  background-color: var(--bg-midnight-slate);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  font-weight: 600;
  color: var(--text-light);
}

.nav-brand:hover {
  color: var(--accent-emerald);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-sky);
}

.site-main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--border-grey);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

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

.page-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.subtitle {
  margin: 0;
  color: var(--text-muted);
}

.card {
  background-color: var(--bg-midnight-slate);
  border: 1px solid var(--border-grey);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.card p {
  margin: 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.skill-group h3 {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-group li {
  padding: 0.125rem 0;
}

.experience-item,
.education-item {
  margin-bottom: 1.5rem;
}

.experience-item:last-child,
.education-item:last-child {
  margin-bottom: 0;
}

.experience-header {
  margin-bottom: 0.5rem;
}

.meta {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.experience-item ul {
  margin: 0;
  padding-left: 1.25rem;
}

.experience-item li {
  margin-bottom: 0.25rem;
}

.about-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.about-picture {
  flex-shrink: 0;
  width: 100px;
  height: 150px;
  object-fit: cover;
  border: 1px solid var(--border-grey);
  border-radius: 0.25rem;
  background-color: var(--bg-deep-navy);
}

.about-text p {
  margin: 0 0 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.contact-list {
  margin: 0;
}

.contact-item {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-grey);
}

.contact-item:first-child {
  padding-top: 0;
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-item dt {
  margin: 0;
  font-weight: 600;
  color: var(--text-muted);
}

.contact-item dd {
  margin: 0;
}

@media (max-width: 480px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
