.link-index-page,
.about-index-page {
  border: 1px solid rgba(76, 73, 72, 0.12);
}

.link-index-page #article-container,
.about-index-page #article-container {
  color: var(--font-color);
}

.flink-intro {
  max-width: 640px;
  margin: 0 0 38px;
  color: var(--font-color);
  font-size: 0.98rem;
  line-height: 1.8;
  opacity: 0.72;
}

.link-index-page .flink > h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.4;
}

.link-index-page .flink > h2:not(:first-of-type) {
  margin-top: 36px;
}

.link-index-page .flink-desc {
  margin-top: 7px;
  color: var(--font-color);
  font-size: 0.82rem;
  opacity: 0.56;
}

.link-index-page .flink .flink-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  margin: 18px 0 0;
  padding: 0;
  text-align: left;
}

.link-index-page .flink .flink-list > .flink-list-item {
  float: none;
  width: 100% !important;
  height: auto;
  min-height: 82px;
  margin: 0;
  border: 1px solid rgba(76, 73, 72, 0.12);
  border-radius: 9px;
  background: #fbfbfa;
  box-shadow: 0 4px 14px rgba(76, 73, 72, 0.045);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.link-index-page .flink .flink-list > .flink-list-item::before {
  display: none;
}

.link-index-page .flink .flink-list > .flink-list-item:hover {
  border-color: rgba(76, 73, 72, 0.24);
  box-shadow: 0 8px 22px rgba(76, 73, 72, 0.08);
  transform: translateY(-2px);
}

.link-index-page .flink-list-item > a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: min-content min-content;
  column-gap: 14px;
  align-content: center;
  min-height: 82px;
  padding: 14px 16px;
  border-radius: inherit;
}

.link-index-page .flink-list-item > a:focus-visible {
  outline: 2px solid var(--theme-color);
  outline-offset: 3px;
}

#page.link-index-page #article-container .flink .flink-list > .flink-list-item a .flink-item-icon,
#page.link-index-page #article-container .flink .flink-list > .flink-list-item:hover a .flink-item-icon {
  grid-row: 1 / 3;
  align-self: center;
  float: none;
  width: 48px;
  height: 48px;
  margin: 0;
  border: 1px solid rgba(76, 73, 72, 0.08);
  border-radius: 10px;
  background: #fff;
}

#page.link-index-page #article-container .flink .flink-list > .flink-list-item a .flink-item-icon img {
  border-radius: inherit;
}

#page.link-index-page #article-container .flink .flink-item-name {
  align-self: end;
  height: auto;
  padding: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
}

#page.link-index-page #article-container .flink .flink-item-desc {
  align-self: start;
  height: auto;
  padding: 3px 0 0;
  color: var(--font-color);
  font-size: 0.8rem;
  line-height: 1.45;
  opacity: 0.58;
}

.about-profile {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 42px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(76, 73, 72, 0.12);
}

.about-profile-avatar {
  width: 82px;
  height: 82px;
  margin: 0 !important;
  border: 1px solid rgba(76, 73, 72, 0.1);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.about-profile-copy h2 {
  margin: 0 0 8px !important;
  font-size: 1.55rem;
  line-height: 1.3;
}

.about-profile-copy h2::before,
.about-section h2::before,
.about-contact h2::before {
  display: none !important;
}

.about-profile-copy p {
  margin: 0 !important;
  color: var(--font-color);
  line-height: 1.7;
  opacity: 0.68;
}

.about-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.about-section h2,
.about-contact h2 {
  margin: 0 0 14px !important;
  font-size: 1.08rem;
  line-height: 1.4;
}

.about-section p {
  margin: 0 !important;
  color: var(--font-color);
  font-size: 0.94rem;
  line-height: 1.9;
  opacity: 0.78;
}

.about-contact {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid rgba(76, 73, 72, 0.12);
}

.about-contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.about-contact-list a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(76, 73, 72, 0.12);
  border-radius: 8px;
  color: var(--font-color);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.about-contact-list a:hover {
  border-color: rgba(76, 73, 72, 0.26);
  background: #fbfbfa;
}

.about-contact-list a:focus-visible {
  outline: 2px solid var(--theme-color);
  outline-offset: 3px;
}

.about-contact-list i {
  grid-row: 1 / 3;
  color: var(--font-color);
  font-size: 1rem;
  opacity: 0.72;
}

.about-contact-list span {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.about-contact-list small {
  overflow: hidden;
  color: var(--font-color);
  font-size: 0.72rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.54;
}

[data-theme="dark"] .link-index-page,
[data-theme="dark"] .about-index-page,
[data-theme="dark"] .about-profile,
[data-theme="dark"] .about-contact {
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .link-index-page .flink .flink-list > .flink-list-item,
[data-theme="dark"] .about-contact-list a {
  border-color: rgba(255, 255, 255, 0.12);
  background: #191919;
}

[data-theme="dark"] .link-index-page .flink-list-item .flink-item-icon {
  border-color: rgba(255, 255, 255, 0.08);
  background: #222;
}

[data-theme="dark"] .about-contact-list a:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: #202020;
}

@media (max-width: 768px) {
  .flink-intro {
    margin-bottom: 30px;
  }

  .link-index-page .flink .flink-list,
  .about-content-grid,
  .about-contact-list {
    grid-template-columns: 1fr;
  }

  .link-index-page .flink > h2:not(:first-of-type) {
    margin-top: 30px;
  }

  .about-profile {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 26px;
  }

  .about-profile-avatar {
    width: 68px;
    height: 68px;
  }

  .about-profile-copy h2 {
    font-size: 1.35rem;
  }

  .about-content-grid {
    gap: 28px;
  }

  .about-contact {
    margin-top: 32px;
    padding-top: 26px;
  }
}
