/* ========================================
   SINGLE POST
======================================== */

.single-post {
  padding-top: 8rem;
}

/* ========================================
   LAYOUT
======================================== */

.single-post__container {
  width: min(100% - 2rem, 52rem);
  margin-inline: auto;
}

/* ========================================
   HEADER
======================================== */

.single-post__header {
  padding-bottom: 4rem;
}

.single-post__meta {
  margin-bottom: 1rem;

  color: #3b82f6;

  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.single-post__title {
  margin-bottom: 3rem;

  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
  font-weight: 700;

  text-wrap: balance;
}

/* ========================================
   FEATURED IMAGE
======================================== */

.single-post__thumbnail {
  overflow: hidden;

  border: 1px solid #1f2937;
  border-radius: 1.5rem;
}

.single-post__thumbnail img {
  width: 100%;
  height: auto;

  display: block;
}

/* ========================================
   CONTENT
======================================== */

.single-post__content-wrapper {
  padding-bottom: 6rem;
}

.single-post__content {
  color: #cbd5e1;

  font-size: 1.125rem;
  line-height: 1.9;
}

/* Paragraph spacing */

.single-post__content p {
  margin-bottom: 2rem;
}

/* Headings */

.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
  margin-top: 4rem;
  margin-bottom: 1.5rem;

  color: #ffffff;

  line-height: 1.2;
  font-weight: 700;
}

.single-post__content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.single-post__content h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

/* Links */

.single-post__content a {
  color: #3b82f6;
  text-decoration: underline;
}

/* Lists */

.single-post__content ul,
.single-post__content ol {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.single-post__content li {
  margin-bottom: 0.75rem;
}

/* Blockquote */

.single-post__content blockquote {
  margin-block: 3rem;
  padding-left: 1.5rem;

  border-left: 3px solid #3b82f6;

  color: #ffffff;

  font-size: 1.5rem;
  line-height: 1.6;
}

/* Images inside content */

.single-post__content img {
  width: 100%;
  height: auto;

  border-radius: 1rem;

  margin-block: 3rem;
}

/* Code */

.single-post__content code {
  padding: 0.2rem 0.4rem;

  border-radius: 0.375rem;

  background-color: #111827;

  color: #93c5fd;

  font-size: 0.95em;
}

/* Pre */

.single-post__content pre {
  overflow-x: auto;

  margin-block: 2rem;
  padding: 1.5rem;

  border: 1px solid #1f2937;
  border-radius: 1rem;

  background-color: #020617;
}
