/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 3.25rem; padding: 0.8rem 1.5rem; font-size: var(--text-base); }

.btn--primary { background: var(--color-brand); color: var(--color-on-dark); }
.btn--primary:hover { background: var(--color-brand-dark); color: var(--color-on-dark); }
.btn--mint { background: var(--color-mint); color: var(--color-ink); }
.btn--mint:hover { background: var(--color-mint-dark); color: var(--color-ink); }
.btn--ghost { border-color: rgb(255 255 255 / 30%); background: rgb(255 255 255 / 6%); color: var(--color-on-dark); }
.btn--ghost:hover { border-color: rgb(255 255 255 / 60%); color: var(--color-on-dark); }
.btn--outline { border-color: var(--color-line); background: var(--color-surface); color: var(--color-ink); }
.btn--outline:hover { border-color: var(--color-brand); color: var(--color-brand); }

/* Section heading */
.section-head { max-width: 44rem; margin-bottom: var(--space-7); }
.section-head__title { font-size: var(--text-2xl); }
.section-head__text { margin-top: var(--space-4); color: var(--color-muted); font-size: var(--text-lg); }
.section--dark .section-head__text { color: var(--color-on-dark-muted); }

.section-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-7); }
.section-row .section-head { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--color-brand);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: currentcolor; }
.section--dark .eyebrow, .eyebrow--light { color: var(--color-mint); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; }
.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 600;
}
.tag--brand { border-color: transparent; background: var(--color-brand-light); color: var(--color-brand-dark); }

/* Blog post card: the whole card is clickable through the title link. */
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition), transform var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-card:focus-within { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.post-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--color-brand-light); }
.post-card__image { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--color-brand); background: linear-gradient(135deg, var(--color-brand-light), var(--color-mist)); }
.post-card__body { display: flex; flex: 1; flex-direction: column; gap: var(--space-3); padding: var(--space-5); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); color: var(--color-muted); font-size: var(--text-xs); }
.post-card__title { font-size: var(--text-xl); }
.post-card__link { color: inherit; text-decoration: none; }
.post-card__link:focus-visible { outline: none; }
.post-card__link::after { content: ""; position: absolute; inset: 0; }
.post-card__excerpt { color: var(--color-muted); font-size: var(--text-sm); }
.post-card__more { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: auto; padding-top: var(--space-2); color: var(--color-brand); font-size: var(--text-sm); font-weight: 600; }

.post-grid { display: grid; gap: var(--space-5); list-style: none; }
@media (min-width: 40em) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
