/* =====================================================
   ARTÍCULO INDIVIDUAL
===================================================== */

.ar-shell {
  padding-left: 2rem;
  padding-right: 2rem;
}


/* =====================================================
   HERO
===================================================== */

.ar-hero {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.ar-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;

  transition:
    color .2s ease,
    transform .2s ease;
}

.ar-back:hover {
  color: var(--ink);
  transform: translateX(-4px);
}

.ar-meta {
  margin-top: 3rem;

  display: flex;
  align-items: center;
  gap: 1rem;

  flex-wrap: wrap;
}

.ar-category {
  display: inline-flex;
  padding: .5rem .7rem;
}

.ar-title {
  margin-top: 2.5rem;

  max-width: 18ch;

  font-family: var(--font-display);

  font-size: 2.8rem;
  font-weight: 700;

  line-height: .94;
  letter-spacing: -.01em;

  text-transform: uppercase;
}

.ar-excerpt {
  margin-top: 2rem;

  max-width: 46rem;

  color: var(--muted-foreground);

  font-size: 1rem;
  line-height: 1.75;
}


/* =====================================================
   CUERPO
===================================================== */

.ar-body {
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.ar-content {
  max-width: 48rem;
  margin: 0 auto;
}

.ar-content p {
  margin-top: 1.5rem;

  font-size: 1rem;
  line-height: 1.85;
  text-align: justify;
  text-justify: inter-word;
}
.ar-content p:first-child {
  margin-top: 0;
}

.ar-content h2 {
  margin-top: 4rem;

  max-width: 18ch;

  font-family: var(--font-display);

  font-size: 2rem;
  font-weight: 700;

  line-height: 1;
  letter-spacing: -.005em;

  text-transform: uppercase;
}

.ar-content h3 {
  margin-top: 3rem;

  font-family: var(--font-display);

  font-size: 1.4rem;
  font-weight: 700;

  line-height: 1.1;

  text-transform: uppercase;
}

.ar-content blockquote {
  margin: 4rem 0;

  padding-left: 1.5rem;

  border-left: 4px solid var(--brand-teal);
}

.ar-content blockquote p {
  margin: 0;

  font-size: 1.35rem;
  line-height: 1.5;
}

.ar-content ul,
.ar-content ol {
  margin-top: 1.5rem;

  padding-left: 1.5rem;
}

.ar-content li {
  margin-top: .75rem;

  line-height: 1.7;
}

.ar-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* =====================================================
   DESTACADOS
===================================================== */

.ar-highlight {
  margin: 4rem 0;

  padding: 2rem;

  background: var(--secondary);
}

.ar-highlight p {
  margin: 0;

  font-family: var(--font-mono);

  font-size: 1.15rem;
  line-height: 1.55;
}


/* =====================================================
   SEGUIR LEYENDO
===================================================== */

.ar-related {
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.ar-related-list {
  margin: 2.5rem 0 0;
  padding: 0;

  list-style: none;

  border-top: 1px solid var(--border);
}

.ar-related-item {
  border-bottom: 1px solid var(--border);
}

.ar-related-link {
  min-height: 150px;

  padding: 1.75rem 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 2rem;

  color: inherit;

  transition:
    padding-left .3s ease,
    background .3s ease;
}

.ar-related-link:hover {
  padding-left: .75rem;

  background:
    color-mix(
      in oklab,
      var(--secondary) 40%,
      transparent
    );
}

.ar-related-link h3 {
  margin-top: .75rem;

  max-width: 18ch;

  font-family: var(--font-display);

  font-size: 1.5rem;
  font-weight: 700;

  line-height: 1;

  text-transform: uppercase;
}

.ar-related-arrow {
  flex: 0 0 auto;

  font-size: 2rem;

  transition: transform .3s ease;
}

.ar-related-link:hover .ar-related-arrow {
  transform: translateX(6px);
}


/* =====================================================
   COLOR SEGÚN CATEGORÍA
===================================================== */

body.article-cultura .ar-category {
  background: var(--brand-yellow);
}

body.article-humanitas .ar-category {
  background: var(--brand-teal);
}

body.article-empresa .ar-category {
  background: var(--brand-orange);
}

body.article-cultura .ar-content blockquote {
  border-left-color: var(--brand-yellow);
}

body.article-humanitas .ar-content blockquote {
  border-left-color: var(--brand-teal);
}

body.article-empresa .ar-content blockquote {
  border-left-color: var(--brand-orange);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (min-width: 768px) {

  .ar-title {
    font-size: 4rem;
  }

 .ar-excerpt {
  margin-top: 2rem;

  max-width: 46rem;

  color: var(--muted-foreground);

  font-size: 1rem;
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
}

  .ar-content p {
    font-size: 1.05rem;
  }

  .ar-content h2 {
    font-size: 2.75rem;
  }

  .ar-content blockquote p {
    font-size: 1.6rem;
  }

 .ar-related-link h3 {
  margin-top: .75rem;

  max-width: 32ch;

  font-family: var(--font-display);

  font-size: 1.5rem;
  font-weight: 700;

  line-height: .95;

  text-transform: uppercase;
}
.ar-related-link > div {
  flex: 1;
  max-width: 48rem;
}
}


@media (min-width: 1024px) {

  .ar-shell {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .ar-hero {
    padding-top: 7rem;
    padding-bottom: 6rem;
  }

  .ar-title {
    font-size: 5rem;
  }

  .ar-body {
    padding-top: 7rem;
    padding-bottom: 8rem;
  }

  .ar-related {
    padding-top: 7rem;
    padding-bottom: 8rem;
  }

}