/* =========================================================
   ABOUT THE AUTHOR — CUSTOM PAGE TEMPLATE
   ========================================================= */

.rl-about-page {
  min-height: 100vh;
  color: var(--rl-text);
}

.rl-about-section {
  position: relative;
  padding: clamp(60px, 8vw, 110px) 0 clamp(50px, 10vw, 85px);
  overflow: hidden;
}

.rl-about-section::before,
.rl-about-section::after {
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(205, 163, 95, 0.035);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.rl-about-section::before {
  top: 160px;
  left: -280px;
}

.rl-about-section::after {
  right: -300px;
  bottom: 100px;
}

.rl-about-container {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
}

/* Page title */

.rl-about-header {
  margin-bottom: clamp(45px, 6vw, 68px);
  text-align: center;
}

.rl-about-title {
  margin: 0;
  color: var(--rl-text);
  font-family: var(--rl-serif, Georgia, serif);
  font-size: clamp(50px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.rl-about-ornament,
.rl-about-separator {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rl-about-ornament {
  width: 210px;
  margin: 30px auto 0;
}

.rl-about-ornament span,
.rl-about-separator span {
  display: block;
  height: 1px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, transparent, rgba(205, 163, 95, 0.72));
}

.rl-about-ornament span:last-child,
.rl-about-separator span:last-child {
  background: linear-gradient(90deg, rgba(205, 163, 95, 0.72), transparent);
}

.rl-about-ornament i,
.rl-about-separator i {
  position: relative;
  display: block;
  width: 11px;
  height: 11px;
  margin-inline: 11px;
  border: 1px solid var(--rl-gold, #cda35f);
  transform: rotate(45deg);
}

.rl-about-ornament i::after,
.rl-about-separator i::after {
  position: absolute;
  inset: 3px;
  background: var(--rl-gold, #cda35f);
  content: "";
}

/* Main grid */

.rl-about-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(280px, 0.92fr);
  align-items: start;
  column-gap: clamp(30px, 5vw, 52px);
}

/* Feature image */

.rl-about-feature-image {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  overflow: hidden;
  background: #0a141c;
  border: 1px solid rgba(205, 163, 95, 0.24);
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.rl-about-feature-image picture,
.rl-about-feature-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.rl-about-feature-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
}

/* Ghost editor content */

.rl-about-editor-content {
  display: contents;
}

.rl-about-editor-content > .rl-about-author-name {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin: 0;
  padding-top: 2px;
  color: var(--rl-text);
  font-family: var(--rl-serif, Georgia, serif);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.02;
}

.rl-about-author-rule {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  display: block;
  width: 155px;
  height: 2px;
  margin-top: clamp(105px, 12vw, 132px);
  background: var(--rl-gold, #cda35f);
}

.rl-about-editor-content > .rl-about-introduction {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin: clamp(140px, 15vw, 165px) 0 0;
}

/*
 * Every editor element after the introduction spans
 * the complete content width.
 */

.rl-about-editor-content > * {
  grid-column: 1 / -1;
}

.rl-about-editor-content > .rl-about-author-name,
.rl-about-editor-content > .rl-about-author-rule,
.rl-about-editor-content > .rl-about-introduction {
  grid-column: 2;
}

.rl-about-editor-content > p {
  margin: 0;
  color: var(--rl-text);
  font-size: clamp(16px, 2.15vw, 20px);
  line-height: 1.62;
}

.rl-about-editor-content > .rl-about-introduction {
  font-size: clamp(18px, 2.2vw, 23px);
}

.rl-about-editor-content > p:not(.rl-about-introduction) {
  margin-top: 40px;
}

.rl-about-editor-content strong {
  color: var(--rl-gold, #cda35f);
  font-family: var(--rl-serif, Georgia, serif);
  font-weight: 600;
}

.rl-about-editor-content a {
  transition: color 0.2s ease;
}

.rl-about-editor-content a:hover {
  color: var(--rl-gold, #cda35f);
}

.rl-about-editor-content a:hover strong {
  color: var(--rl-gold, #cda35f);
}

/* Decorative paragraph separators */

.rl-about-separator {
  width: 235px;
  margin: 31px auto -8px;
}

.rl-about-separator i {
  width: 10px;
  height: 10px;
}

/* Ghost cards inside the page */

.rl-about-editor-content > .kg-card {
  width: 100%;
  margin: 35px 0 0;
}

.rl-about-editor-content > .kg-image-card:not(:first-child) {
  overflow: hidden;
  border-radius: 10px;
}

.rl-about-editor-content > .kg-image-card:not(:first-child) img {
  width: 100%;
}

/* Hide an image added inside the editor if feature image exists */

.rl-about-feature-image
  + .rl-about-editor-content
  > .kg-image-card:first-child {
  display: none;
}

/* Social links */

.rl-about-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  margin-top: 38px;
}

.rl-about-social-links > span {
  color: var(--rl-gold, #cda35f);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rl-about-social-links > div {
  display: flex;
  gap: 10px;
}

.rl-about-social-links a {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--rl-gold, #cda35f);
  background: rgba(205, 163, 95, 0.04);
  border: 1px solid rgba(205, 163, 95, 0.32);
  border-radius: 4px;
  place-items: center;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.rl-about-social-links a:hover {
  color: var(--rl-text);
  background: var(--rl-gold, #cda35f);
  border-color: var(--rl-gold, #cda35f);
  transform: translateY(-2px);
}

.rl-about-social-links svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 760px) {
  .rl-about-container {
    width: min(100% - 34px, 720px);
  }

  .rl-about-layout {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .rl-about-feature-image {
    grid-column: 1;
    grid-row: auto;
  }

  .rl-about-editor-content {
    display: block;
  }

  .rl-about-editor-content > .rl-about-author-name {
    margin-top: 0;
    font-size: clamp(28px, 8vw, 52px);
  }

  .rl-about-author-rule {
    width: 145px;
    margin: 15px 0 23px;
  }

  .rl-about-editor-content > .rl-about-introduction {
    margin: 0;
  }

  .rl-about-editor-content > p:not(.rl-about-introduction) {
    margin-top: 0;
  }

  .rl-about-editor-content > p {
    margin: 0;
  }

  .rl-about-separator {
    margin: 29px auto;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 560px) {
  .rl-about-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .rl-about-container {
    width: min(100% - 32px, 520px);
  }

  .rl-about-header {
    margin-bottom: 40px;
  }

  .rl-about-title {
    font-size: clamp(38px, 12vw, 48px);
  }

  .rl-about-ornament {
    width: 165px;
    margin-top: 23px;
  }

  .rl-about-feature-image {
    border-radius: 10px;
  }

  .rl-about-editor-content > .rl-about-author-name {
    font-size: clamp(26px, 7vw, 42px);
  }

  .rl-about-editor-content > p {
    font-size: 18px;
    line-height: 1.62;
  }

  .rl-about-separator {
    width: 190px;
    margin-block: 27px;
  }
}
