/*
 * jeremy.ie — blog.
 *
 * Loads on top of assets/css/coal.css and only adds what an article needs that the
 * other pages do not: a long-form reading column on the margin spine, and figures.
 * Same rules as the rest of the site — no cards, no radius, no shadows.
 */

/* A long title in the chapter face would run to six lines at --fs-chapter. */
.article-title {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  max-width: 22ch;
}

.article {
  display: grid;
  grid-template-columns: minmax(0, var(--margin-col)) minmax(0, 1fr);
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
  margin: 0;
}

.article-meta {
  align-self: start;
  margin: 0.4rem 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.article-meta a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 220ms ease, border-color 220ms ease;
}

.article-meta a:hover,
.article-meta a:focus-visible {
  color: var(--chalk);
  border-bottom-color: var(--accent);
}

.article-body {
  min-width: 0;
}

.article-body > p {
  max-width: 62ch;
  margin: 0 0 1.2rem;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink-soft);
}

.article-body i,
.article-body em {
  font-style: italic;
  color: var(--ink);
}

.article-body a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 220ms ease;
}

.article-body a:hover,
.article-body a:focus-visible {
  border-bottom-color: var(--accent);
}

.article-hero {
  display: block;
  width: 100%;
  max-height: 26rem;
  margin: 0 0 2rem;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.article-figs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 0.6rem;
}

.article-figs img {
  flex: 1 1 14rem;
  min-width: 0;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.article-caption {
  margin: 0 0 2rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--ink-faint);
}

@media (max-width: 860px) {
  .article {
    grid-template-columns: 1fr;
  }

  .article-meta {
    margin-bottom: 2rem;
  }
}

/* Section heads and lists, for prose pages with structure (the privacy page). */
.article-body > h2 {
  max-width: 62ch;
  margin: 2.6rem 0 0.9rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}

.article-body > ul {
  max-width: 62ch;
  margin: 0 0 1.2rem;
  padding: 0 0 0 1.1rem;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink-soft);
}

.article-body > ul > li {
  margin: 0 0 0.6rem;
}

.article-body b {
  font-weight: 600;
  color: var(--ink);
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.86em;
}
