:root {
  --accent: #086788;
  --soft: #eef8fa;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.language-switch {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 31px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: 600 11px Arial, sans-serif;
}

.language-switch:hover {
  opacity: .82;
}

.english {
  font-family: "Alexandria", Arial, sans-serif;
  direction: ltr;
}

.english .contact-row {
  direction: ltr;
  justify-content: flex-start;
}

.english .entry time,
.english .project-list small,
.english .courses time {
  text-align: left;
}

.english .cv-grid aside {
  padding: 25px;
}

.english .strengths li {
  padding-right: 0;
  padding-left: 18px;
}

.english .strengths li::before {
  right: auto;
  left: 0;
}

body {
  background: #f3f7f8;
}

main,
.topbar {
  background: #fff;
}

body {
  font-size: 16px;
}

.intro h1 {
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.3;
}

.intro h2 {
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.7;
}

.intro-copy > p {
  font-size: 15px;
  line-height: 2;
}

.label,
.contact-row,
.actions a,
.back,
nav {
  font-size: 12px;
}

.available,
.project-head b {
  font-size: 11px;
}

footer span {
  font-size: 12px;
}

footer > a {
  font-size: 13px;
}

.info-block h3 {
  font-size: 16px;
}

.info-block dl div,
.language,
.tags span {
  font-size: 12px;
}

.section-title h2 {
  font-size: 25px;
  line-height: 1.5;
}

.entry h3,
.project-head h3 {
  font-size: 16px;
  line-height: 1.7;
}

.entry h4,
.entry p,
.project-list p,
.strengths li {
  font-size: 13px;
  line-height: 1.9;
}

.entry time,
.project-list small {
  font-size: 12px;
}

.section-title span {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.intro {
  position: relative;
  margin-top: 22px;
  padding: 48px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0f8fa 0%, #fff 68%);
}

.intro::after {
  content: "</>";
  position: absolute;
  left: 1%;
  top: 12%;
  color: #edf2f4;
  font: 700 120px/1 Consolas, monospace;
  z-index: -1;
}

.photo-wrap img {
  filter: saturate(.86);
  height: 375px;
}

.cv-grid {
  gap: 28px;
  padding-top: 38px;
}

.cv-grid aside {
  align-self: start;
  padding: 25px;
  border: 0;
  border-radius: 10px;
  background: #eff6f7;
}

.info-block {
  margin-bottom: 28px;
}

.info-block:last-child {
  margin-bottom: 0;
}

.cv-section {
  margin-bottom: 25px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.section-title {
  margin-bottom: 18px;
}

.entry {
  padding: 17px 0;
}

.project-list article {
  background: #f7fafb;
}

.dev-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dev-principles article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.dev-principles b {
  color: var(--accent);
  font: 12px Consolas, monospace;
}

.dev-principles h3 {
  margin: 17px 0 7px;
  font-size: 14px;
}

.dev-principles p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.code-sample {
  margin-top: 14px;
  overflow: hidden;
  border-radius: 8px;
  background: #17232a;
  color: #d8e5e8;
}

.code-sample > div {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 13px;
  border-bottom: 1px solid #2b3b43;
}

.code-sample i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #587078;
}

.code-sample span {
  margin-left: auto;
  color: #73878e;
  font: 11px Consolas, monospace;
}

.code-sample pre {
  margin: 0;
  padding: 22px;
  font: 11px/1.9 Consolas, monospace;
}

.code-sample em {
  color: #67d7e0;
}

.code-sample b {
  color: #f2c46d;
}

.code-sample strong {
  color: #9ddc91;
  font-weight: 400;
}

.courses article {
  display: grid;
  grid-template-columns: 65px 1fr 60px;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.courses time,
.courses > article > b {
  color: var(--accent);
  font-size: 12px;
  line-height: 1.6;
  direction: ltr;
}

.courses > article > b {
  text-align: left;
  font-weight: 500;
}

.courses h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.courses p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 650px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  html {
    direction: ltr;
  }

  body {
    direction: rtl;
  }

  body > *,
  main,
  section,
  header,
  footer,
  .intro-copy,
  .photo-wrap,
  .cv-grid,
  .cv-content {
    min-width: 0;
    max-width: 100%;
  }

  main {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .topbar {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .intro {
    width: 100%;
    margin-top: 12px;
    padding: 28px 20px;
  }

  .photo-wrap {
    width: min(100%, 290px);
  }

  .photo-wrap img {
    width: 100%;
    height: 345px;
  }

  .intro h1 {
    max-width: 100%;
    font-size: 38px;
    line-height: 1.4;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
  }

  .intro h2 {
    font-size: 19px;
    line-height: 1.75;
  }

  .intro-copy > p {
    font-size: 13px;
  }

  .actions {
    width: 100%;
  }

  .actions a {
    width: 100%;
  }

  .cv-grid {
    width: 100%;
    padding-bottom: 55px;
  }

  .cv-grid aside,
  .cv-section {
    width: 100%;
    min-width: 0;
    padding: 20px;
  }

  .section-title h2 {
    font-size: 21px;
  }

  .project-head {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    width: 100%;
  }

  .dev-principles {
    grid-template-columns: 1fr;
  }

  .courses article {
    grid-template-columns: 55px 1fr;
  }

  .courses > article > b {
    display: none;
  }
}
