/* Article (blog) layout for /articles — loaded after features.css on the hub
   and on every article page (minusPHI article.css idiom, AnvixaAI tokens).
   Owns the editorial prose column, the article-card grid on the index, and
   the shared photo/figure frames. Per-article animations keep their own
   <style> block on the page. */

/* ---------- article hero (inside the dark .pagehero) ---------- */
.arthero { text-align: left; padding-bottom: 46px; }
.arthero .inner { max-width: 760px; margin: 0 auto; }
.arthero h1 { text-align: left; margin-left: 0; max-width: 720px; }
.arthero .sub { text-align: left; margin-left: 0; }
.arthero .byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-top: 22px; color: #74857c; font-size: 13px; font-weight: 600;
}
.arthero .byline .avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand);
  color: #fff; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: 0.02em;
}
.arthero .byline .sep { opacity: 0.5; }

/* ---------- prose column ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article > p, .article > ul, .article > ol { font-size: 15.5px; line-height: 1.75; color: #313c4e; }
.article > p { margin: 0 0 18px; }
.article .lead { font-size: 17.5px; color: var(--ink); }
.article h2 {
  font-family: var(--heading); font-size: clamp(21px, 2.8vw, 26px); font-weight: 700;
  letter-spacing: -0.01em; text-transform: none; color: var(--ink);
  text-align: left; margin: 44px 0 14px; line-height: 1.3;
}
.article h3 {
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 700; color: var(--ink);
  margin: 30px 0 10px;
}
.article ul { padding-left: 22px; margin: 0 0 18px; }
.article ul li { margin: 7px 0; }
.article a { font-weight: 600; }
.article strong { color: var(--ink); }

/* hero photo */
.artphoto { max-width: 860px; margin: 34px auto 44px; }
.artphoto img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--line-dark);
  box-shadow: 0 28px 60px -30px rgba(15, 23, 42, 0.45);
}
.artphoto .cap { display: block; text-align: center; color: var(--faint); font-size: 12.5px; margin-top: 12px; }
@media (max-width: 640px) { .artphoto { margin-top: 24px; margin-bottom: 30px; } .artphoto img { aspect-ratio: 4 / 3; } }

/* figure frame for the in-article animation */
.artfig { margin: 34px 0 8px; }
.artfig .figcap { text-align: center; color: var(--faint); font-size: 12.5px; margin: 12px 0 26px; }

/* takeaways box */
.takeaways {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: 12px; padding: 20px 24px; margin: 34px 0;
}
.takeaways .t {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 6px;
}
.takeaways ul.plain { margin-top: 0; }

/* end-of-article feature pointer */
.artnext {
  display: block; background: var(--brand-tint); border: 1px solid rgba(2, 108, 57, 0.2);
  border-radius: 12px; padding: 18px 22px; margin: 40px 0 0; text-decoration: none;
}
.artnext:hover { text-decoration: none; border-color: rgba(2, 108, 57, 0.45); }
.artnext .k { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.artnext .t { display: block; font-family: var(--heading); font-weight: 700; font-size: 17px; color: var(--ink); margin-top: 4px; }
.artnext .d { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }

/* ---------- index page: article cards ---------- */
.artgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
@media (max-width: 980px) { .artgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .artgrid { grid-template-columns: 1fr; } }
.artcard {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.artcard:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 20px 44px -22px rgba(15, 23, 42, 0.35); }
/* height:auto beats the img height="…" presentational hint so aspect-ratio can crop */
.artcard img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.artcard .body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.artcard .k {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 8px;
}
.artcard .t {
  font-family: var(--heading); font-weight: 700; font-size: 17.5px; line-height: 1.32;
  color: var(--ink); letter-spacing: -0.01em;
}
.artcard:hover .t { color: var(--brand-dark); }
.artcard .d { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-top: 8px; }
.artcard .meta { margin-top: auto; padding-top: 14px; color: var(--faint); font-size: 12px; font-weight: 600; }

/* feature filter chips on the index */
.artfilter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 30px 0 0; }
.artfilter button {
  font: 600 12.5px/1 'Inter', sans-serif; color: var(--muted); background: #fff;
  border: 1px solid var(--line-dark); border-radius: 99px; padding: 8px 15px; cursor: pointer;
  transition: all 0.15s ease;
}
.artfilter button:hover { border-color: var(--brand); color: var(--brand); }
.artfilter button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.artgrid .artcard.hide { display: none; }

/* the Pexels credit link in the dark footer (only articles pages show it) */
footer .tiny a { color: #93a69e; }
footer .tiny a:hover { color: #fff; text-decoration: none; }
