/* Homepage refinement, layered after the existing theme. Keep the illustrated
   intro and body artwork in their original containers and responsive footprint. */
.main-content > article.about {
  background: var(--eerie-black-2);
  border-color: var(--jet);
  box-shadow: 0 12px 32px rgb(0 0 0 / 18%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.about > .service {
  margin-left: 0;
  margin-right: 0;
}

.about .service-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about .service-list > .service-item-box2 {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 18px;
  min-width: 0;
  border: 1px solid var(--jet);
  border-radius: 12px;
  background: var(--eerie-black-1);
  box-shadow: none;
}

.about .service-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.about .service-icon-box img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin: 0;
}

.about .service-content-box {
  min-width: 0;
  text-align: left;
}

.about .service-item-title {
  padding-top: 0;
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.45;
}

.about .service-content-box p {
  color: var(--light-gray);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
}

/* Separate the section title from its list, rather than boxing both inline. */
.about > .main-skills {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
}

.about .focus-capability-list {
  margin-top: 18px;
  gap: 8px;
}

.about .focus-capability-list li {
  background: var(--eerie-black-1);
  border-color: var(--jet);
  font-size: 14px;
  line-height: 1.5;
}

.about .focus-project-card {
  background: var(--eerie-black-1);
  border-color: var(--jet);
  box-shadow: none;
  padding: 16px;
  text-align: left;
}

.about .focus-project-card h3 { font-size: 17px; line-height: 1.45; }
.about .focus-project-card p { font-size: 14px; line-height: 1.75; color: var(--light-gray); font-weight: 400; }
.about .focus-project-type { font-size: 12px; line-height: 1.5; }
.about .portfolio-cta {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
}
.about .portfolio-cta:focus-visible {
  outline: 3px solid var(--orange-yellow-crayola);
  outline-offset: 4px;
}

.portfolio-cta:focus-visible, .focus-project-media:focus-visible, .contact-link:focus-visible, .navbar-link:focus-visible {
  outline: 3px solid var(--orange-yellow-crayola);
  outline-offset: 4px;
  scroll-margin-block: 80px;
}
.contact-link { min-height: 44px; display: inline-flex; align-items: center; }

/* The contact row is already a two-column grid. Legacy calc(100% - 64px)
   widths subtracted the icon a second time, then inline-flex clipped the text. */
.sidebar .contacts-list .contact-info {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.sidebar .contact-info .contact-link {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
.sidebar .info-content {
  min-width: 0;
  max-width: 100%;
}
.sidebar .info-content :is(.realname, .name, .title) {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
@media (max-width: 768px) {
  /* Reserve a separate top row for the contact toggle instead of squeezing
     the name/title between the avatar and a large right-side padding. */
  .sidebar .sidebar-info { padding-top: 44px; }
  .sidebar .info-content { padding-right: 0; }
}
.skip-link:focus { position: fixed; top: 4px; left: 4px; z-index: 10002; }

@media (max-width: 1249px) {
  /* Let wrapped identity/contact text determine height, retaining collapse. */
  .sidebar, .sidebar.active { max-height: none; }
  .sidebar:not(.active) .sidebar-info_more { display: none; }
  .sidebar.active .sidebar-info_more { display: block; }
  .sidebar:not(.active) .sidebar-info_more { visibility: hidden !important; opacity: 0 !important; pointer-events: none; }
  .sidebar:not(.active) .sidebar-info_more a { visibility: hidden !important; }
  .sidebar.active .sidebar-info_more { visibility: visible; opacity: 1; }
}

@media (max-width: 600px) {
  .about .service-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .about .service-list > .service-item-box2 { padding: 14px; gap: 12px; }
}
