/* ==========================================================================
   article.css — rules used only by long-form pages
   articles/*.html and projects/*.html. The reset, nav, footer, .tag and .btn
   now live in base.css, so they are no longer repeated here.
   Requires theme.css and base.css to be loaded first.
   ========================================================================== */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 136px var(--pad) 72px;
}

/* --- HEADER -------------------------------------------------------------- */

.article-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-eyebrow::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--accent);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 5.6vw, 44px);
  line-height: 1.15;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

/* --- BODY ---------------------------------------------------------------- */

article p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 22px;
  text-align: justify;
  hyphens: auto;
}

article p.lede {
  font-size: 18px;
  color: var(--navy);
  text-align: justify;
  hyphens: auto;
}

h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin: 44px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

h2::after { content: ''; flex: 1; height: 1px; background: var(--rule); }

article ul { margin: 0 0 22px 20px; }

article li {
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 8px;
}

article li strong { color: var(--navy); font-weight: 500; }

.asof { font-size: 12.5px; color: var(--muted); margin: -8px 0 36px; }

/* --- FIGURES ------------------------------------------------------------- */

figure {
  margin: 32px 0 36px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--bg2);
  padding: 14px;
}

figure img { width: 100%; height: auto; display: block; border-radius: 2px; }

figcaption {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
}

figcaption strong { color: var(--navy); font-weight: 500; }

.pull {
  margin: 34px 0;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  line-height: 1.45;
  color: var(--navy);
}

/* --- PROJECT PAGES ------------------------------------------------------- */

.project-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 36px; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 8px 0 36px;
}

.fact {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: 3px;
  padding: 18px 20px;
}

.fact-val {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 6px;
}

.fact-label { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.fact-label strong { color: var(--navy); font-weight: 500; }

/* --- REFERENCES AND AUTHOR ----------------------------------------------- */

.refs { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--rule); }
.refs h2 { margin-top: 0; }

.refs p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 12px;
  padding-left: 18px;
  text-indent: -18px;
  overflow-wrap: break-word;
}

.refs a { color: var(--accent2); text-decoration: none; }
.refs a:hover { color: var(--navy); }

.author-box {
  margin-top: 44px;
  padding: 22px 24px;
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: 3px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.author-box strong { color: var(--navy); font-weight: 500; }
.author-box a { color: var(--accent2); text-decoration: none; }
.author-box a:hover { color: var(--navy); }

/* --- MOBILE -------------------------------------------------------------- */

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