:root {
  --about-accent: #425aef;
  --about-accent-soft: rgba(66, 90, 239, .10);
  --about-border: rgba(66, 90, 239, .12);
  --about-muted: #77819a;
  --about-shadow: 0 18px 50px rgba(37, 52, 102, .08);
}

[data-theme='dark'] {
  --about-accent: #79a7ff;
  --about-accent-soft: rgba(121, 167, 255, .13);
  --about-border: rgba(255, 255, 255, .09);
  --about-muted: #a1a8bd;
  --about-shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

#about-page {
  padding: 0;
  width: 100%;
}

.about-panel {
  background: var(--card-bg);
  border: 1px solid var(--about-border);
  border-radius: 22px;
  box-shadow: var(--about-shadow);
}

.about-hero {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 22px;
  background-position: center;
  background-size: cover;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: center;
  padding: 46px 56px;
}

.about-label {
  color: var(--about-accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.about-hero .about-label {
  color: rgba(255, 255, 255, .82);
}

.about-hero h1 {
  margin: 10px 0 18px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: -.04em;
}

.about-hero-author {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .9);
  font-size: 1.05rem;
  font-weight: 700;
}

.about-hero-author img {
  width: 54px;
  height: 54px;
  border: 3px solid rgba(255, 255, 255, .5);
  border-radius: 16px;
  object-fit: cover;
}

.about-socials {
  display: flex;
  gap: 16px;
  margin-top: 26px;
}

.about-socials a {
  color: rgba(255, 255, 255, .9);
  font-size: 1.15rem;
  transition: transform .2s ease, color .2s ease;
}

.about-socials a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.about-content-panel {
  padding: 36px 42px;
}

.about-content-panel #article-container {
  max-width: 880px;
  margin: 0 auto;
}

.about-content-panel #article-container h2 {
  margin-top: 2.1em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--about-border);
  color: var(--text-highlight-color);
  font-size: 1.45rem;
}

.about-content-panel #article-container h2:first-child {
  margin-top: 0;
}

.about-content-panel #article-container p,
.about-content-panel #article-container li {
  color: var(--font-color);
  line-height: 1.9;
}

.about-content-panel #article-container ul {
  padding: 16px 20px 16px 38px;
  border-radius: 16px;
  background: var(--about-accent-soft);
}

.about-content-panel #article-container iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 22px 0 10px;
  border: 0;
  border-radius: 16px;
}

.about-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-stats-card,
.about-contact-card {
  padding: 24px;
}

.about-stats-card h2,
.about-contact-card h2 {
  margin: 8px 0 20px;
  color: var(--text-highlight-color);
  font-size: 1.35rem;
}

.about-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 6px;
  border-radius: 12px;
  background: var(--about-accent-soft);
  text-align: center;
}

.about-stat strong {
  color: var(--text-highlight-color);
  font-size: 1.15rem;
}

.about-stat span {
  color: var(--about-muted);
  font-size: .66rem;
}

.about-contact-card p {
  color: var(--about-muted);
  line-height: 1.7;
}

.about-email {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--about-accent);
  font-size: .84rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.about-email:hover {
  color: var(--text-highlight-color);
}

@media screen and (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

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

@media screen and (max-width: 768px) {
  .about-hero,
  .about-hero-content {
    min-height: 270px;
  }

  .about-hero-content {
    padding: 32px 24px;
  }

  .about-content-panel {
    padding: 26px 20px;
  }

  .about-rail {
    display: flex;
  }
}
