/* ==========================================================================
   articles.css - the /articles index and article pages.
   Loaded only on those pages, via the BaseLayout "head" slot.

   Uses the site's existing palette and type: Lato for headings and copy,
   #990f0d for brand red, #313131 for body text, 20px radii.
   Deliberately avoids .padding-global, which forces color: #fff.
   ========================================================================== */

:root {
  --article-red: #990f0d;
  --article-heading: #99110d;
  --article-ink: #313131;
  --article-muted: #6b6b6b;
  --article-rule: #e4e4e4;
  --article-blue: #1e7397;
}

.article-container {
  width: 100%;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Header ---------------------------------------------------------------- */

/* The site's herographic50.svg is drawn in black strokes and is designed to
   overlay a photo; on a dark editorial header it renders invisible. Articles
   have no hero photography, so this uses a plain dark field with the brand
   red as a base rule instead. */
.article-hero {
  background-image: linear-gradient(115deg, #1d1d1d 0%, #000 62%);
  background-color: #000;
  border-bottom: 4px solid var(--article-red);
  padding-top: 70px;
  padding-bottom: 55px;
}

.article-hero__eyebrow {
  color: #fff;
  opacity: 0.75;
  font-family: Lato, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.article-hero__eyebrow a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #ffffff59;
}

.article-hero__eyebrow a:hover {
  border-bottom-color: #fff;
}

.article-hero__title {
  color: #fff;
  font-family: Lato, sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}

.article-hero__lead {
  color: #ffffffd9;
  font-family: Lato, sans-serif;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-top: 18px;
  max-width: 62ch;
}

.article-meta {
  color: #ffffffb3;
  font-family: Lato, sans-serif;
  font-size: 0.95rem;
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.article-meta__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.6;
}

/* Index listing --------------------------------------------------------- */

.article-list {
  background-color: #fff;
  padding-top: 55px;
  padding-bottom: 65px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 26px 22px;
  border: 1px solid var(--article-rule);
  border-left: 4px solid var(--article-red);
  border-radius: 20px;
  text-decoration: none;
  background-color: #fff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.article-card:hover,
.article-card:focus-visible {
  box-shadow: 0 8px 30px #00000014;
  transform: translateY(-2px);
  outline: none;
}

.article-card:focus-visible {
  outline: 2px solid #0050bd;
  outline-offset: 2px;
}

.article-card__title {
  color: var(--article-heading);
  font-family: Lato, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
}

.article-card__desc {
  color: var(--article-ink);
  font-family: Lato, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 18px;
}

.article-card__meta {
  color: var(--article-muted);
  font-family: Lato, sans-serif;
  font-size: 0.875rem;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Article body ---------------------------------------------------------- */

.article-body {
  background-color: #fff;
  padding-top: 50px;
  padding-bottom: 60px;
}

.article-prose {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--article-ink);
  font-family: Lato, sans-serif;
  font-size: 1.1rem;
  line-height: 1.75;
}

.article-prose > :first-child {
  margin-top: 0;
}

.article-prose p {
  margin: 0 0 1.3em;
}

.article-prose h2 {
  color: var(--article-heading);
  font-family: Lato, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 2.1em 0 0.6em;
}

.article-prose h3 {
  color: var(--article-ink);
  font-family: Lato, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 1.8em 0 0.5em;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 1.3em;
  padding-left: 1.4em;
}

.article-prose li {
  margin-bottom: 0.55em;
}

.article-prose li::marker {
  color: var(--article-red);
}

.article-prose a {
  color: var(--article-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.article-prose a:hover {
  color: var(--article-red);
}

.article-prose a:focus-visible {
  outline: 2px solid #0050bd;
  outline-offset: 2px;
  border-radius: 3px;
}

/* Footer of an article -------------------------------------------------- */

.article-foot {
  max-width: 720px;
  margin: 45px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--article-rule);
}

.article-foot__back {
  color: var(--article-blue);
  font-family: Lato, sans-serif;
  font-size: 1rem;
  text-decoration: none;
}

.article-foot__back:hover {
  color: var(--article-red);
  text-decoration: underline;
}

/* Responsive ------------------------------------------------------------ */

@media screen and (max-width: 767px) {
  .article-hero {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .article-hero__title {
    font-size: 1.95rem;
    max-width: none;
  }

  .article-hero__lead {
    font-size: 1.05rem;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-prose {
    font-size: 1.05rem;
  }

  .article-prose h2 {
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-card {
    transition: none;
  }

  .article-card:hover,
  .article-card:focus-visible {
    transform: none;
  }
}
