@media(min-width:1700px) {
  main {
    max-width:680px
  }
  .hero {
    padding-top:90px;
    padding-bottom:65px
  }
}
@media(max-width:1100px) {
  .profile {
    width:255px;
    padding:26px 22px
  }
  .page {
    margin-left:255px
  }
  .topbar {
    padding:0 22px
  }
  .topbar nav {
    gap:0
  }
  .topbar nav a {
    font-size:10px;
    padding:5px 7px
  }
  .top-actions {
    gap:5px
  }
  .contact-nav {
    padding:7px 10px
  }
  main {
    width:calc(100% - 60px)
  }
  .hero h2 {
    font-size:47px
  }
  .item-heading {
    gap:10px
  }
  .date {
    font-size:9px
  }
}
@media(max-width:800px) {
  .profile {
    position:static;
    width:auto;
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:25px;
    overflow:visible
  }
  .profile-top {
    display:grid;
    grid-template-columns:88px 1fr;
    column-gap:20px
  }
  .portrait {
    grid-row:1/4
  }
  .profile h1 {
    font-size:25px;
    margin:3px 0
  }
  .profile-role {
    font-size:11px
  }
  .profile-bio {
    grid-column:2;
    margin:10px 0 0;
    max-width:500px;
    font-size:11px
  }
  .profile-facts {
    grid-column:1/-1;
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    margin-top:20px;
    padding-top:12px;
    font-size:10px
  }
  .profile-bottom {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-top:16px
  }
  .socials {
    margin:0
  }
  .sidebar-actions {
    width:190px
  }
  .cv-button {
    padding:8px;
    font-size:11px
  }
  .sidebar-actions button {
    font-size:15px;
    width:35px
  }
  .page {
    margin-left:0
  }
  .topbar {
    height:62px;
    padding:0 23px
  }
  .topbar nav a {
    font-size:10px;
    padding:5px 8px
  }
  .brand {
    font-size:24px
  }
  .contact-nav {
    display:none
  }
  main {
    width:min(100% - 48px,660px)
  }
  .hero {
    padding:45px 0
  }
  .hero h2 {
    font-size:48px
  }
  .section {
    padding:36px 0
  }
  .about-section {
    padding-top:0
  }
  html {
    scroll-padding-top:85px
  }
}
@media(max-width:440px) {
  .profile {
    padding:22px 20px
  }
  .profile-top {
    grid-template-columns:75px 1fr;
    gap:0 16px
  }
  .portrait {
    width:75px;
    height:92px
  }
  .profile h1 {
    font-size:22px;
    margin-top:2px
  }
  .profile-bio {
    font-size:10px;
    line-height:1.7
  }
  .profile-facts {
    gap:8px 13px;
    font-size:9px
  }
  .profile-facts span:last-child {
    display:none
  }
  .socials {
    font-size:10px;
    gap:16px
  }
  .sidebar-actions {
    width:162px
  }
  .cv-button {
    font-size:10px
  }
  .topbar {
    padding:0 16px
  }
  .topbar nav a {
    font-size:9px;
    padding:5px 6px
  }
  .brand {
    font-size:22px
  }
  #theme {
    font-size:20px;
    padding:0
  }
  .top-actions {
    gap:0
  }
  main {
    width:calc(100% - 40px)
  }
  .hero h2 {
    font-size:43px
  }
  .hero-label {
    font-size:8px
  }
  .hero p {
    font-size:12px
  }
  h2 {
    font-size:27px;
    margin-bottom:20px
  }
  .item-heading {
    display:block
  }
  .date {
    display:block;
    margin-top:4px
  }
  .item-heading h3 {
    font-size:18px
  }
  .resume-item {
    gap:11px
  }
  .project-entry h3 {
    font-size:19px
  }
  .achievements {
    font-size:11px
  }
  .skill-row {
    grid-template-columns:1fr;
    gap:3px;
    padding:15px 0
  }
  .skill-row p {
    font-size:11px
  }
  .contact-actions {
    align-items:flex-start;
    flex-direction:column;
    gap:18px
  }
  footer {
    font-size:8px;
    flex-wrap:wrap
  }
  .small-link {
    font-size:9px
  }
  .other-projects p span {
    display:block
  }
  .certifications {
    margin-left:35px
  }
}
.portrait {
  width:180px;
  height:220px;
  border-radius:7px
}
@media(max-width:800px) {
  .profile-top {
    grid-template-columns:112px 1fr
  }
  .portrait {
    width:112px;
    height:140px
  }
}
@media(max-width:440px) {
  .profile-top {
    grid-template-columns:100px 1fr
  }
  .portrait {
    width:100px;
    height:125px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  * {
    transition:none!important
  }
}
@media(max-width:800px) {
  .topbar {
    flex-wrap:wrap;
    height:86px;
    align-content:center;
    gap:5px 0
  }
  .topbar>nav {
    order:3;
    width:100%;
    justify-content:center
  }
  .top-actions {
    margin-left:auto
  }
  .language-switch {
    width:auto
  }
  .hero {
    padding-top:40px
  }
  html {
    scroll-padding-top:108px
  }
}
@media(min-width:801px) and (max-width:1100px) {
  .contact-nav {
    display:none
  }
}
