/* Shared styles for long-form articles. Serif body, sans headings — Medium's
   reading setup, using fonts that ship with every OS so nothing has to be
   downloaded. */

.article-content {
  /* 680px keeps lines in the 60-75 character band at this body size */
  max-width: 680px;
  /* Brighter than the site's --text-secondary, which is too dim for long-form.
     Sits a step below --text so bold still reads as emphasis. */
  --article-text: #dbdad2;
  --article-dim: #a8a79d;
  --article-serif: Georgia, "Times New Roman", Times, serif;
  --article-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* body sets `antialiased`, which thins strokes on macOS — fine for bold sans,
     but it makes a light-on-dark serif look washed out. */
  -webkit-font-smoothing: auto;
}

#article-content .article-back {
  font-family: var(--article-sans);
  font-size: 0.875rem;
  color: var(--article-dim);
  text-decoration: none;
  border-bottom: none;
  display: inline-block;
  margin-bottom: 20px;
}

#article-content .article-back:hover {
  color: var(--text);
}

#article-content h1,
#article-content h2 {
  font-family: var(--article-sans);
}

#article-content h1 {
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 14px;
}

#article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 52px 0 16px;
}

#article-content p,
#article-content li {
  font-family: var(--article-serif);
  font-size: 1.125rem;
  line-height: 1.6;
  letter-spacing: -0.003em;
  color: var(--article-text);
}

#article-content p {
  margin-bottom: 20px;
}

#article-content li {
  margin-bottom: 10px;
}

/* The "Last updated" line directly under the title */
#article-content .article-date {
  font-family: var(--article-sans);
  font-size: 0.9rem;
  letter-spacing: 0;
  color: var(--article-dim);
  margin-bottom: 32px;
}

#article-content .article-signoff {
  font-size: 1.05rem;
}

#article-content ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

#article-content li::marker {
  color: #555;
}

#article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 44px 0;
}

#article-content a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid #444;
  transition: border-color 0.2s;
}

#article-content a:hover {
  border-color: var(--text);
}

/* Figures sit apart from the prose — twice a paragraph's gap, top and bottom */
#article-content figure {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Figures break out of the prose column by ~15% total. Percentage margins
   resolve against the column, so -7.5% a side widens them to 115%. Only above
   800px, where there's room in the gutter for the overhang. */
@media (min-width: 800px) {
  #article-content figure {
    margin-left: -7.5%;
    margin-right: -7.5%;
  }
}
