:root {
  --color-bg: #000000;
  --color-bg-alt: #000000;
  --color-text: #eceef1;
  --color-text-muted: #9aa1ac;
  --color-accent: #6d9bff;
  --color-border: #2c3038;
  --max-width: 780px;
  --radius: 8px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

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

/* Header */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 32px;
  padding-bottom: 32px;
  position: relative;
}

.name {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.title {
  margin: 4px 0 0;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  gap: 16px;
}

.contact-links a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.contact-links a:hover {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 1.1rem;
  padding: 6px 10px;
  cursor: pointer;
}

/* Main sections */

main {
  padding-top: 40px;
  padding-bottom: 40px;
}

section {
  margin-bottom: 40px;
}

h2 {
  font-size: 1.3rem;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.entry {
  margin-bottom: 24px;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.entry-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.entry-dates {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.entry-subtitle {
  margin: 2px 0 8px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.entry ul {
  margin: 0;
  padding-left: 20px;
}

.entry li {
  margin-bottom: 4px;
}

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

.skill-group h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.skill-group p {
  margin: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .contact-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
  }

  .contact-links.open {
    display: flex;
  }

  .name {
    font-size: 1.6rem;
  }
}

/* Print */

@media print {
  :root {
    --color-bg: #ffffff;
    --color-bg-alt: #ffffff;
    --color-text: #000000;
    --color-text-muted: #333333;
    --color-border: #cccccc;
  }

  .site-header {
    background: none;
    border-bottom: 1px solid #000;
  }

  .nav-toggle {
    display: none;
  }

  .contact-links {
    display: flex !important;
  }

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

  body {
    font-size: 12pt;
  }

  .site-footer {
    display: none;
  }
}
