/* Articles: the list page and one article, a calm reading column.
   Tokens come from site.css :root. */

.article {
  max-width: 700px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.article__head {
  text-align: center;
  margin-bottom: clamp(32px, 4.6vw, 48px);
}

.article__head .eyebrow a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article__title {
  font-size: var(--size-h1);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
}

.article__lede {
  font-size: var(--size-letter);
  line-height: 1.7;
  color: var(--muted);
  max-width: 34em;
  margin: 0 auto;
}

.article__body h2 {
  font-size: clamp(24px, 20px + 1vw, 30px);
  font-weight: 400;
  line-height: 1.25;
  margin: clamp(36px, 4.4vw, 48px) 0 12px;
}

.article__body p,
.article__body li {
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink);
}

.article__body p {
  margin: 0 0 14px;
}

/* Links keep the site's own link colour (site.css "a"), which passes AA. */
.article__body a {
  text-underline-offset: 3px;
}

.article__body .hu-inline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1em;
}

.article__list {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
}

.article__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
}

.article__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
}

.article__examples {
  list-style: none;
  margin: 4px 0 16px;
  padding: 18px 22px;
  background: var(--blush);
  border-radius: var(--r-inset);
}

.article__examples li {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.6;
}

.article__foot {
  margin-top: clamp(40px, 5vw, 56px);
  padding: clamp(28px, 4vw, 40px) 24px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  text-align: center;
}

.article__cta-text {
  font-family: var(--serif);
  font-size: clamp(22px, 19px + 0.8vw, 27px);
  line-height: 1.3;
  margin: 0 0 18px;
}

/* The list page */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list__link {
  display: block;
  padding: 28px 30px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--r-panel);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.article-list__link:hover,
.article-list__link:focus-visible {
  border-color: rgba(180, 96, 60, 0.35);
  transform: translateY(-2px);
}

.article-list__title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(24px, 20px + 1vw, 30px);
  line-height: 1.25;
  margin: 10px 0 8px;
}

.article-list__text {
  display: block;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .article-list__link:hover,
  .article-list__link:focus-visible {
    transform: none;
  }
}
