:root {
  color-scheme: dark;
  font-synthesis: none;
  --font-serif: "Newsreader", "Iowan Old Style", Baskerville, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #090b0d;
  color: #ededeb;
  display: flex;
}

.sidebar {
  width: 241px;
  min-height: 100vh;
  padding: 36px 37px 58px 34px;
  border-right: 1px solid #3a3a3a;
  background: #090b0d;
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
}

.about p,
.copyright {
  margin: 0;
}

.profile {
  height: 80px;
  display: flex;
  justify-content: center;
}

.profile-identity {
  display: none;
}

.profile-image {
  display: block;
  width: 110px;
  height: 110px;
  flex: 0 0 110px;
  border-radius: 50%;
  object-fit: cover;
  transform: translateY(-15%);
}

.about {
  margin-top: 37px;
  font-size: 16.1px;
  line-height: 1.5;
}

.about p + p {
  margin-top: 26px;
}

.availability {
  margin-top: 30px;
}

.availability p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #b8bbc1;
  font-size: 12.5px;
  line-height: 1.3;
}

.availability p span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #53c98b;
  box-shadow: 0 0 0 3px rgb(83 201 139 / 12%);
}

.availability a {
  color: #b8f5c5;
  font-size: 14px;
  text-underline-offset: 4px;
}

.availability a:hover,
.availability a:focus-visible {
  color: #53c98b;
}

.availability a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.divider {
  width: 100%;
  height: 1px;
  margin: 42px 0 141px;
  background: #3a3a3a;
}

.navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.navigation button,
.navigation a {
  appearance: none;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  text-align: left;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.navigation button::after,
.navigation a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  transition: right 220ms ease;
}

.navigation button:hover,
.navigation a:hover,
.navigation button:focus-visible,
.navigation a:focus-visible {
  color: #b8f5c5;
  transform: translateX(4px);
}

.navigation button:hover::after,
.navigation a:hover::after,
.navigation button:focus-visible::after,
.navigation a:focus-visible::after {
  right: 0;
}

.navigation button:focus-visible,
.navigation a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.external-link svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1;
}

.copyright {
  margin-top: auto;
  font-size: 12px;
  line-height: 1.2;
}

.content {
  flex: 1;
  min-width: 0;
  padding: 38px 45px;
  font-family: var(--font-serif);
}

.selected-work h1,
.expertise h1,
.expertise h2 {
  margin: 0;
  color: #ffffff;
  font-size: 31px;
  font-weight: 400;
  line-height: 1.2;
}

.expertise h2 {
  font-size: 27.9px;
}

.expertise {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(220px, 0.75fr) minmax(320px, 1.1fr);
  grid-template-areas: "services toolkit about";
  gap: clamp(34px, 5vw, 72px);
  margin-bottom: 64px;
}

.expertise-services {
  grid-area: services;
}

.expertise-toolkit {
  grid-area: toolkit;
}

.expertise-about {
  grid-area: about;
}

.skill-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  color: #b8bbc1;
  font-size: 13.5px;
  line-height: 1.35;
}

.service-list li {
  color: #d0d2d6;
}

.expertise-about p {
  max-width: 560px;
  margin: 18px 0 0;
  color: #b8bbc1;
  font-size: 14.4px;
  line-height: 1.55;
}

.expertise-about p + p {
  margin-top: 14px;
}

.wright-angle-link {
  color: #b8f5c5;
  text-decoration: none;
  transition: color 180ms ease;
}

.wright-angle-link:hover,
.wright-angle-link:focus-visible {
  color: #53c98b;
}

.wright-angle-link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.section-divider {
  width: 100%;
  height: 1px;
  margin-top: 7px;
  background: #3a3a3a;
}

.project-list {
  margin-top: 24px;
}

.project-card {
  --accent: #74a9ff;
  display: grid;
  grid-template-columns: minmax(225px, 0.8fr) minmax(265px, 1fr);
  gap: 42px;
  padding: 0 0 26px;
  border-bottom: 1px solid #343840;
}

.project-card + .project-card {
  padding-top: 26px;
}

.project-card--orange {
  --accent: #ff7657;
}

.project-card--green {
  --accent: #53c98b;
}

.project-card--yellow {
  --accent: #f2c94c;
}

.project-visual {
  min-height: 280px;
  border: 1px solid #303640;
  overflow: hidden;
}

.project-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-details {
  align-self: center;
}

.project-details h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(27px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1.05;
}

.project-info {
  display: grid;
  opacity: 1;
  transition: opacity 180ms ease;
}

.project-overview,
.project-technical {
  grid-area: 1 / 1;
}

.project-info > [aria-hidden="true"] {
  visibility: hidden;
}

.project-info.is-fading {
  opacity: 0;
}

.project-role {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 13px 0 19px;
  color: #c8cbd0;
  font-size: 13px;
  line-height: 1.35;
}

.project-role::before {
  content: "";
  width: 20px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--accent);
}

.project-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.project-meta div {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
}

.project-meta dt {
  color: #f4f4f2;
  font-weight: 700;
}

.project-meta dd {
  margin: 0;
  color: #b8bbc1;
}

.project-status-details {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
}

.project-popularity {
  color: #ffab91;
}

.project-summary {
  margin: 18px 0 14px;
  padding-top: 15px;
  border-top: 1px solid #343840;
  color: #b8bbc1;
  font-size: 14px;
  line-height: 1.5;
}

.project-technical {
  margin: 13px 0 14px;
  color: #b8bbc1;
  font-size: 14px;
  line-height: 1.6;
}

.project-action {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-bottom: 14px;
  min-height: 42px;
  padding: 11px 16px 9px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #090b0d;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.project-actions .project-action {
  margin-bottom: 0;
}

.project-action:hover,
.project-action:focus-visible {
  background: color-mix(in srgb, var(--accent) 50%, white);
  color: #090b0d;
}

.project-action:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 50%, white);
  outline-offset: 3px;
}

.project-action[hidden] {
  display: none;
}

.case-study {
  appearance: none;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.case-study-arrow {
  display: inline-block;
  margin-left: 7px;
  transition: transform 180ms ease;
}

.case-study:hover .case-study-arrow,
.case-study:focus-visible .case-study-arrow {
  transform: translateX(4px);
}

.case-study:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

@media (max-width: 1200px) {
  .expertise {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "services toolkit"
      "about about";
    gap: 38px;
  }
}

@media (max-width: 940px) {
  .expertise {
    grid-template-columns: 1fr;
    grid-template-areas:
      "services"
      "toolkit"
      "about";
    gap: 38px;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-visual {
    min-height: 320px;
  }
}

@media (max-width: 700px) {
  body {
    display: flex;
    flex-direction: column;
  }

  .sidebar,
  .content,
  .expertise {
    display: contents;
  }

  .profile {
    order: 1;
    height: auto;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
    padding: 28px 34px 0;
  }

  .profile-image {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    transform: none;
  }

  .profile-identity {
    display: block;
  }

  .profile-name,
  .profile-specialty {
    margin: 0;
  }

  .profile-name {
    color: #fff;
    font-size: 25px;
    line-height: 1.1;
  }

  .profile-specialty {
    max-width: 240px;
    margin-top: 5px;
    color: #b8bbc1;
    font-size: 13px;
    line-height: 1.35;
  }

  .about {
    order: 2;
    margin-top: 0;
    padding: 24px 34px 0;
    font-size: 17px;
  }

  .about p + p {
    display: none;
  }

  .availability {
    order: 3;
    margin-top: 0;
    padding: 22px 34px 0;
  }

  .divider {
    order: 4;
    width: auto;
    margin: 30px 34px 0;
  }

  .selected-work {
    order: 5;
    padding: 32px 34px 0;
  }

  .expertise-services,
  .expertise-about,
  .expertise-toolkit {
    padding-right: 34px;
    padding-left: 34px;
  }

  .expertise-services {
    order: 6;
    padding-top: 52px;
  }

  .expertise-about {
    order: 7;
    padding-top: 42px;
  }

  .expertise-toolkit {
    order: 8;
    padding-top: 42px;
  }

  .navigation {
    order: 9;
    margin: 44px 34px 0;
    padding-top: 30px;
    border-top: 1px solid #3a3a3a;
  }

  .copyright {
    order: 10;
    margin: 34px 34px 0;
    padding-bottom: 36px;
  }

  .content {
    padding: 32px 34px;
  }

  .expertise {
    margin-bottom: 0;
  }

  .project-visual {
    min-height: 240px;
  }

  .project-card {
    padding-bottom: 32px;
  }

  .project-card + .project-card {
    padding-top: 32px;
  }
}

@media (max-width: 520px) {
  .project-meta div {
    grid-template-columns: 60px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navigation button,
  .navigation a,
  .navigation button::after,
  .navigation a::after,
  .project-info,
  .project-action,
  .case-study,
  .case-study-arrow {
    transition: none;
  }

  .navigation button:hover,
  .navigation a:hover,
  .navigation button:focus-visible,
  .navigation a:focus-visible {
    transform: none;
  }
}
