/* Archive cards — one per note on a topic page. */

.card {
  --accent-topic: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 18px 18px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.card[data-cat="cyber"] { --accent-topic: var(--cyber); }
.card[data-cat="linux"] { --accent-topic: var(--tux); }
.card[data-cat="coding"] { --accent-topic: var(--code); }
.card[data-cat="compilers"] { --accent-topic: var(--comp); }

/* Hover moves the border, not the card. The old version lifted 3px and threw a
   coloured halo; on a grid of a dozen cards that reads as the page twitching. */
.card:hover { background: var(--panel-2); border-color: color-mix(in srgb, var(--accent-topic) 45%, var(--line)); }

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.card__tag { color: var(--accent-topic); }
.card__date { color: var(--muted); }
.card__title { font-size: 16.5px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
/* takes the slack in a stretched row, which pins .card__foot to the bottom */
.card__excerpt { flex: 1; font-size: 14px; color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.card__foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.card__links { color: var(--muted); }
.card__cta { color: var(--muted); }
.card:hover .card__cta { color: var(--ink); }
