.blog-custom-about-page {
  position: relative;
  left: 50%;
  width: calc(100vw - 40px);
  max-width: none;
  transform: translateX(-50%);
}

.blog-custom-about-main {
  padding: 48px 0 80px;
}

.blog-custom-about-shell {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  color: var(--theme-skin, #505050);
}

.blog-custom-about-editor,
.blog-custom-about-profile,
.blog-custom-about-content,
.blog-custom-about-grid,
.blog-custom-about-card {
  box-sizing: border-box;
}

.blog-custom-about-editor {
  overflow-wrap: anywhere;
  word-break: normal;
}

.blog-custom-about-editor > :first-child {
  margin-top: 0;
}

.blog-custom-about-editor > :last-child {
  margin-bottom: 0;
}

.blog-custom-about-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 22px;
  padding: 30px 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 10%, rgba(242, 181, 202, .18), transparent 34%),
    linear-gradient(135deg, rgba(225, 242, 251, .9), rgba(253, 238, 244, .82));
  border: 1px solid rgba(185, 211, 228, .58);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(91, 123, 148, .12);
}

.blog-custom-about-profile::before,
.blog-custom-about-profile::after {
  position: absolute;
  color: rgba(208, 130, 164, .2);
  font-size: 28px;
  line-height: 1;
  content: "✿";
  pointer-events: none;
}

.blog-custom-about-profile::before {
  top: 16px;
  right: 24px;
  transform: rotate(14deg);
}

.blog-custom-about-profile::after {
  right: 62px;
  bottom: 14px;
  font-size: 18px;
  transform: rotate(-12deg);
}

.blog-custom-about-profile > .wp-block-shortcode,
.blog-custom-about-avatar-wrap {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin: 0;
  line-height: 0;
}

.blog-custom-about-avatar {
  display: block;
  width: 96px;
  height: 96px;
  box-sizing: border-box;
  border: 4px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 7px 22px rgba(94, 113, 137, .2);
}

.blog-custom-about-content {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.blog-custom-about-content > *,
.blog-custom-about-card > * {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.blog-custom-about-name {
  margin: 0;
  color: var(--theme-skin, #505050);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: normal;
}

.blog-custom-about-intro {
  max-width: 650px;
  margin: 8px 0 0;
  color: #68727d;
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: normal;
}

.blog-custom-about-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.blog-custom-about-tag {
  margin: 0;
  padding: 5px 10px;
  color: #61758d;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(150, 185, 207, .38);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: normal;
}

.blog-custom-about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.blog-custom-about-card {
  --blog-custom-about-icon-color: #668db1;
  --blog-custom-about-icon-bg: rgba(116, 169, 211, .14);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 148px;
  margin: 0;
  padding: 24px 25px;
  color: var(--theme-skin, #505050);
  background: rgba(255, 255, 255, var(--homepage_widget_transparency, .9));
  border: 1px solid rgba(213, 219, 226, .72);
  border-radius: 17px;
  box-shadow: 0 7px 24px rgba(87, 101, 119, .09);
  cursor: default;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.blog-custom-about-card:nth-child(2) {
  --blog-custom-about-icon-color: #a8799c;
  --blog-custom-about-icon-bg: rgba(208, 137, 176, .14);
}

.blog-custom-about-card:nth-child(3) {
  --blog-custom-about-icon-color: #7a70ad;
  --blog-custom-about-icon-bg: rgba(145, 124, 194, .14);
}

.blog-custom-about-card:nth-child(4) {
  --blog-custom-about-icon-color: #6d9b78;
  --blog-custom-about-icon-bg: rgba(112, 174, 127, .14);
}

.blog-custom-about-card:hover {
  box-shadow: 0 9px 27px rgba(87, 101, 119, .13);
  transform: translateY(-1px);
}

.blog-custom-about-card-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin: 0 0 16px;
  color: var(--blog-custom-about-icon-color);
  background: var(--blog-custom-about-icon-bg);
  border-radius: 13px;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.blog-custom-about-card-title {
  margin: 0;
  color: var(--theme-skin, #505050);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: normal;
}

.blog-custom-about-card-description {
  margin: 7px 0 0;
  color: #68727d;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: normal;
}

.blog-custom-about-closing {
  margin: 31px 0 0;
  color: #6f7882;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: normal;
}

.blog-custom-about-closing::before {
  margin-right: 7px;
  color: rgba(203, 126, 162, .72);
  content: "✿";
}

.blog-custom-about-page-links {
  margin-top: 24px;
  text-align: center;
}

body.dark .blog-custom-about-shell {
  color: var(--dark-text-primary);
}

body.dark .blog-custom-about-profile {
  background:
    radial-gradient(circle at 92% 10%, rgba(163, 107, 139, .12), transparent 34%),
    linear-gradient(135deg, rgba(53, 69, 82, .88), rgba(62, 48, 59, .82));
  border-color: var(--dark-border-color);
  box-shadow: var(--dark-shadow-normal);
}

body.dark .blog-custom-about-avatar {
  border-color: rgba(210, 210, 220, .28);
  box-shadow: 0 7px 22px rgba(0, 0, 0, .22);
}

body.dark .blog-custom-about-name,
body.dark .blog-custom-about-card-title {
  color: var(--dark-text-primary);
}

body.dark .blog-custom-about-intro,
body.dark .blog-custom-about-card-description,
body.dark .blog-custom-about-closing {
  color: var(--dark-text-secondary);
}

body.dark .blog-custom-about-tag {
  color: var(--dark-text-secondary);
  background: rgba(22, 24, 28, .34);
  border-color: var(--dark-border-color);
}

body.dark .blog-custom-about-card {
  color: var(--dark-text-primary);
  background: var(--dark-bg-secondary);
  border-color: var(--dark-border-color);
  box-shadow: var(--dark-shadow-normal);
}

body.dark .blog-custom-about-card:hover {
  background: var(--dark-bg-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

@media (max-width: 720px) {
  .blog-custom-about-page {
    width: calc(100vw - 24px);
  }

  .blog-custom-about-main {
    padding: 34px 0 58px;
  }

  .blog-custom-about-profile {
    flex-direction: column;
    gap: 18px;
    padding: 26px 24px;
    text-align: center;
  }

  .blog-custom-about-content {
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .blog-custom-about-intro {
    text-align: center;
  }

  .blog-custom-about-tags {
    justify-content: center;
  }

  .blog-custom-about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .blog-custom-about-card {
    min-height: 0;
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .blog-custom-about-page {
    width: calc(100vw - 16px);
  }

  .blog-custom-about-profile {
    padding: 23px 18px;
    border-radius: 17px;
  }

  .blog-custom-about-avatar {
    width: 88px;
    height: 88px;
  }

  .blog-custom-about-card {
    padding: 20px;
    border-radius: 15px;
  }

  .blog-custom-about-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-custom-about-card {
    transition: none;
  }

  .blog-custom-about-card:hover {
    transform: none;
  }
}
