* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.6;
  max-width: 800px;
  padding: 20px;
  background: #e6e6d8;
  color: #0000ee;
  position: relative;
  font-family: sans-serif;
  font-size: 16px;
}

.navmenu {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  justify-content: flex-start;
}

.block {
  height: 32px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.cell-filled {
  background: #e6e6d8;
  color: #0000ee;
  border: 1px solid #0000ee;
  padding: 0 20px;
}

.cell-filled a {
  color: #0000ee;
  text-decoration: none;
  font-size: 0.875rem;
  white-space: nowrap;
}

.cell-filled:hover {
  background: #0000ee;
}

.cell-filled:hover a {
  color: #e6e6d8;
}

.cell-outline {
  background: #e6e6d8;
  border: 1px solid #0000ee;
}

.row-1 .cell-outline:nth-child(2) {
  width: 100px;
}

.row-1 .cell-outline:nth-child(4) {
  width: 120px;
}

.row-2 .cell-outline:nth-child(1) {
  width: 150px;
}

.row-2 .cell-outline:nth-child(3) {
  width: 90px;
}

.row-3 .cell-outline:nth-child(2) {
  width: 140px;
}

html {
  scroll-behavior: smooth;
}

header {
  margin-bottom: 2em;
}

h1 {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
  font-weight: 400;
  line-height: 1.3;
}

.subtitle {
  font-size: 1rem;
  margin-bottom: 1em;
  font-weight: 400;
  line-height: 1.4;
}

.contact {
  margin-top: 1em;
  font-size: 0.875rem;
  line-height: 1.6;
}

.contact a {
  color: #0000ee;
}

.section {
  margin-bottom: 3em;
}

.section > p {
  margin-bottom: 1em;
  font-size: 1rem;
  line-height: 1.6;
}

h2 {
  font-size: 1.125rem;
  margin-bottom: 1.5em;
  font-weight: 400;
  letter-spacing: 0;
}

.job,
.education-item,
.articles {
  margin-bottom: 2em;
  padding-left: 1.5em;
  border-left: 1px solid #0000ee;
}

.job-header {
  margin-bottom: 0.75em;
}

.job-title {
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 0.25em;
  line-height: 1.4;
}

.job-title a {
  color: #0000ee;
}

.job-date {
  font-size: 0.875rem;
  font-style: italic;
  opacity: 0.8;
}

.job-description {
  margin-top: 0.75em;
}

.job-description p {
  margin-bottom: 0.75em;
  font-size: 0.875rem;
  line-height: 1.6;
}

.warning {
  font-size: 0.7em;
  color: #383838;
}

.tech {
  font-size: 0.875rem;
  font-style: italic;
  margin-top: 0.5em;
  opacity: 0.8;
}

.projects-list {
  margin-top: 1em;
  padding-left: 0;
}

.project-item {
  margin-bottom: 0.75em;
  line-height: 1.6;
  font-size: 1rem;
}

.project-item a {
  color: #0000ee;
  font-weight: 400;
}

.project-item strong {
  font-weight: 400;
}

.skills-grid {
  padding-left: 0;
}

.skill-category {
  margin-bottom: 1em;
  line-height: 1.6;
  font-size: 1rem;
}

.skill-category strong {
  font-weight: 400;
}

.duotone-container {
  width: 300px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  overflow: hidden;
  background-color: #0000ee;
}

.duotone-container img {
  width: 100%;
  display: block;
  mix-blend-mode: screen;
  filter: grayscale(100%) contrast(1.1) brightness(1.1);
}

a {
  color: #0000ee;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

@media print {
  body {
    padding: 15px;
    font-size: 11pt;
  }

  h2 {
    page-break-after: avoid;
  }

  .job,
  .education-item {
    page-break-inside: avoid;
  }

  .navmenu,
  .duotone-container {
    display: none;
  }
}
@media (max-width: 768px) {
  .navmenu {
    position: relative;
    top: 0;
    right: 0;
    margin-bottom: 2em;
    align-items: flex-start;
  }

  .row {
    justify-content: flex-start;
    gap: 4px;
    margin-bottom: 4px;
  }

  .block {
    height: 24px;
    font-size: 0.75rem;
  }

  .cell-filled {
    padding: 0 12px;
  }

  .cell-filled a {
    font-size: 0.75rem;
  }

  .row-1 .cell-outline:nth-child(2) {
    width: 60px;
  }

  .row-1 .cell-outline:nth-child(4) {
    width: 70px;
  }

  .row-2 .cell-outline:nth-child(1) {
    width: 90px;
  }

  .row-2 .cell-outline:nth-child(3) {
    width: 55px;
  }

  .row-3 .cell-outline:nth-child(2) {
    width: 85px;
  }

  .duotone-container {
    position: relative;
    right: 0;
    bottom: 0;
    width: 100%;
    margin-top: 2em;
  }

  body {
    padding: 15px;
  }

  h1 {
    font-size: 1.125rem;
  }

  h2 {
    font-size: 1rem;
  }

  .job,
  .education-item,
  .articles {
    padding-left: 1em;
  }
}
