/* ============================================
   ARTICLES — long-form reading pages and the
   /articles.html index. Loaded only by those pages,
   after style.css, and uses its tokens.
   ============================================ */

.page-hero .article-meta {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
}
.page-hero .article-meta span { white-space: nowrap; }

/* A thin scan-line accent under the hero: CSS only, no imagery. */
.page-hero.article-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--azure) 45%, var(--cyan) 70%, transparent 100%);
  opacity: 0.8;
}

.article { padding: 3.5rem 0 4.5rem; }

.article-body {
  font-size: 1rem;
  line-height: 1.7;
}

.article-body h2 {
  margin-top: 2.6rem;
  font-size: clamp(1.3rem, 2.3vw, 1.65rem);
}
.article-body h3 { margin-top: 1.8rem; font-size: 1.08rem; }
.article-body p, .article-body li { color: var(--steel); }
.article-body a { color: var(--brand); text-underline-offset: 3px; }
.article-body a:hover { color: var(--brand-deep); }

.article-body ul, .article-body ol {
  padding-left: 1.25rem;
  margin: 0 0 1.1em;
  display: grid;
  gap: 0.45rem;
}
.article-body li::marker { color: var(--brand); }

.article-body .lede { font-size: 1.12rem; color: var(--ink); }

.callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 3px;
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.editor-note {
  font-size: 0.95rem;
  color: var(--slate);
  background: var(--fog);
  border-radius: 3px;
  padding: 0.75rem 1rem;
}

/* Tables scroll inside their own box on narrow screens; the page never does. */
.table-wrap {
  overflow-x: auto;
  margin: 1.4rem 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
}
.table-wrap caption {
  text-align: left;
  padding: 0.85rem 1rem 0.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.table-wrap th, .table-wrap td {
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table-wrap thead th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}
.table-wrap tbody th { font-weight: 600; color: var(--ink); }
.table-wrap td { color: var(--steel); font-variant-numeric: tabular-nums; }
.table-wrap tbody tr:last-child th,
.table-wrap tbody tr:last-child td { border-bottom: none; }
.table-note { font-size: 0.88rem; color: var(--slate); }

.dedication {
  border-left: 3px solid var(--azure);
  padding: 0.2rem 0 0.2rem 1.1rem;
  margin: 0 0 2rem;
  font-style: italic;
  color: var(--slate);
}

.article-foot {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--slate);
}
.article-foot p { margin-bottom: 0.6em; }
.article-foot a { color: var(--brand); }

.back-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  text-decoration: none;
}
.back-link:hover { color: var(--brand-deep); }

/* ---- Index page ---- */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 860px) { .article-list { grid-template-columns: 1fr; } }
.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 3px;
  padding: 1.5rem 1.6rem;
}
.article-card .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.article-card h2 { font-size: 1.25rem; margin: 0.45rem 0 0.5rem; }
.article-card h2 a { text-decoration: none; color: var(--ink); }
.article-card h2 a:hover { color: var(--brand); }
.article-card p { color: var(--slate); font-size: 0.95rem; margin: 0 0 0.6rem; }
.article-card .when {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ash);
  text-transform: uppercase;
}
.article-card .memorial {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--slate);
}
