:root {
  --text-primary: #222;
  --text-secondary: #555;
  --text-light: #888;
  --background: #fff;
  --border: #ddd;
  --accent: #000;
  --subtle-accent: #f5f5f5;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  max-width: 750px;
  margin: 0 auto;
  padding: 25px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--background);
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 1em;
}

nav {
  margin-bottom: 20px;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

nav a {
  margin: 0 6px;
  padding: 2px 6px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: normal;
  letter-spacing: 0.5px;
  position: relative;
  font-size: 0.95em;
}

nav a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s;
}

nav a:hover:after {
  width: 100%;
}

h1 {
  color: var(--text-primary);
  font-size: 2.3em;
  margin: 0 0 8px 0;
  font-weight: normal;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

h2 {
  color: var(--text-primary);
  margin-top: 25px;
  margin-bottom: 12px;
  font-size: 1.4em;
  font-weight: normal;
  position: relative;
}

h2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 30px;
  height: 1px;
  background-color: var(--accent);
}

h3 {
  color: var(--text-primary);
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 1.2em;
  font-weight: normal;
}

p,
li {
  color: var(--text-secondary);
  margin-bottom: 5px;
  font-size: 1em;
}

strong {
  color: var(--text-primary);
}

.section-content {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.skill-category {
  margin-top: 12px;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-weight: normal;
  font-style: italic;
  font-size: 1em;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.skill-item {
  background-color: var(--subtle-accent);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--text-secondary);
  font-family: "Courier New", monospace;
}

.contact-info a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-light);
}

.contact-info a:hover {
  border-bottom: 1px solid var(--accent);
}

.experience-item,
.project-item {
  margin-bottom: 14px;
  padding-bottom: 10px;
}

.experience-item:last-child,
.project-item:last-child {
  border-bottom: none;
}

ul {
  padding-left: 18px;
}

li {
  margin-bottom: 4px;
}

footer {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.85em;
  text-align: center;
}

/* Responsive styles */
@media (max-width: 600px) {
  body {
    padding: 20px;
  }

  nav {
    margin-bottom: 18px;
  }

  nav a {
    margin: 2px 5px;
    font-size: 0.9em;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.3em;
    margin-top: 22px;
  }

  .skills-list {
    gap: 6px;
  }

  .skill-item {
    font-size: 0.8em;
    padding: 3px 8px;
  }

  p,
  li {
    font-size: 0.95em;
  }
}

@media (max-width: 400px) {
  nav a {
    margin: 1px 4px;
    font-size: 0.85em;
  }

  h1 {
    font-size: 1.8em;
  }
}

@media print {
  body {
    padding: 12px;
    font-size: 11pt;
    line-height: 1.4;
    max-width: none;
    margin: 0;
  }

  nav {
    display: none;
  }

  h1 {
    font-size: 18pt;
    margin: 0 0 2pt 0;
  }

  h2 {
    font-size: 14pt;
    margin-top: 12pt;
    margin-bottom: 2pt;
  }

  h3 {
    font-size: 12pt;
    margin-top: 10pt;
    margin-bottom: 1pt;
  }

  p,
  li {
    margin-bottom: 6pt;
    font-size: 11pt;
  }

  .section-content {
    padding: 4pt 0;
    margin-bottom: 12pt;
  }

  .skill-category {
    margin-top: 6pt;
    margin-bottom: 1pt;
  }

  .skills-list {
    gap: 8pt;
    margin-top: 0pt;
  }

  .skill-item {
    padding: 4pt 10pt;
    font-size: 9.5pt;
  }

  .experience-item,
  .project-item {
    margin-bottom: 8pt;
    padding-bottom: 4pt;
  }

  ul {
    padding-left: 18pt;
  }

  li {
    margin-bottom: 4pt;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #555;
  }

  section {
    page-break-inside: avoid;
  }

  footer {
    margin-top: 12pt;
    padding-top: 4pt;
    font-size: 10pt;
  }
}
