/* Articles: list page (articles.html) and article pages (article/<slug>.html). Pages are built by tools/make_articles.py. */

/* List: one row per article, cover left, text right */
.a-list { list-style: none; padding: 40px var(--gut) 120px; }
.a-list li + li { border-top: 1px solid var(--line); }
.a-list a { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 48px; align-items: center; padding: 32px 0; color: inherit; text-decoration: none; }
.a-list figure { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: rgba(0,0,0,.08); }
.a-list figure:empty { display: grid; place-items: center; }
.a-list figure:empty::after { content: ""; width: 36%; aspect-ratio: 664.8 / 184; background: rgba(18,19,20,.2); -webkit-mask: url(../brand/indee-logo.svg) center / contain no-repeat; mask: url(../brand/indee-logo.svg) center / contain no-repeat; }
.a-list img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s ease; }
.a-list a:hover img { scale: 1.04; }
.a-list time { font: var(--num); font-size: var(--fs-small); color: var(--soft); }
.a-list h2 { margin-top: 10px; font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 900; transition: color .2s; }
.a-list a:hover h2 { color: #2f4bff; }
.a-list p { margin-top: 14px; max-width: 620px; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--soft); }
.a-empty { padding: 40px var(--gut) 120px; font-size: var(--fs-body); color: var(--soft); }

/* Article page */
.a-head { padding-bottom: 96px; }
.a-head h1 { max-width: 900px; font-size: var(--fs-h2); line-height: var(--lh-h2); }
.a-head .a-date { margin-bottom: 20px; font: var(--num); font-size: var(--fs-ui); color: rgba(255,255,255,.7); }
.a-head > p { max-width: 720px; }

.crumb b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Soft white panel like factory .f-team cards — keeps long text off the reeded .mid board */
.a-body {
  max-width: calc(720px + 2 * var(--gut));
  margin: 0 auto;
  padding: 56px var(--gut) 96px;
  font-size: var(--fs-lead);
  line-height: 1.9;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1px rgba(18,19,20,.1);
  border-radius: 6px;
}
.a-body > * + * { margin-top: 1.2em; }
.a-body h2 { margin-top: 2.2em; font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 900; }
.a-body h3 { margin-top: 1.8em; font-size: var(--fs-title); line-height: var(--lh-title); font-weight: 600; }
.a-body :is(h2, h3) + * { margin-top: .8em; }
.a-body strong { font-weight: 600; }
.a-body a { color: #2f4bff; text-decoration: underline; text-underline-offset: 3px; }
.a-body :is(ul, ol) { padding-left: 1.4em; }
.a-body li + li { margin-top: .4em; }
.a-body blockquote { padding-left: 20px; border-left: 3px solid #2f4bff; color: var(--soft); }
.a-body figure { margin-block: 2em; }
.a-body figure img { width: 100%; height: auto; border-radius: 6px; }
.a-body figcaption { margin-top: 10px; font-size: var(--fs-caption); line-height: 1.6; color: var(--soft); }
.a-body .a-cover { margin: 0 0 2.4em; }

.a-more { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; padding: 96px var(--gut); border-top: 1px solid var(--line); }
.a-more h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 900; }
.a-more ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.a-more a { display: block; color: inherit; text-decoration: none; }
.a-more img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; filter: brightness(.88); transition: filter .25s; }
.a-more a:hover img { filter: brightness(1); }
.a-more h3 { margin-top: 12px; font-size: var(--fs-body); font-weight: 600; transition: color .2s; }
.a-more a:hover h3 { color: #2f4bff; }
.a-more h3 small { margin-left: 6px; font-size: var(--fs-label); font-weight: 400; color: var(--soft); }
.a-more p { margin-top: 4px; font-size: var(--fs-caption); color: var(--soft); }
.a-back { display: inline-block; margin-top: 20px; font-size: var(--fs-ui); font-weight: 600; color: #121314; text-decoration: none; }
.a-back:hover { color: #2f4bff; }
.a-end { max-width: calc(720px + 2 * var(--gut)); margin: -48px auto 0; padding: 0 var(--gut) 96px; }

@media (max-width: 760px) {
  .sp-hero { padding: 120px var(--gut) 72px; }
  .a-list { padding: 16px var(--gut) 72px; }
  .a-list a { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .a-list h2 { font-size: var(--fs-title); line-height: var(--lh-title); }
  .a-list p { margin-top: 8px; font-size: var(--fs-small); }
  .a-empty { padding: 32px var(--gut) 72px; }
  .a-body { padding: 32px var(--gut) 64px; font-size: var(--fs-body); }
  .a-more { grid-template-columns: 1fr; gap: 28px; padding: 64px var(--gut); }
  .a-more ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
