/* Buzz (/blog/): company news. The intro lists the posts; each post has its tags
   and date beside the body on desktop. Shared tokens, page intro, page index,
   text links, photo frame and the call-to-action band come from site.css. */

/* ---------- Intro and post list ---------- */

.buzz-intro .lead {
  margin-top: 1rem;
}

.buzz-intro .page-index {
  margin-top: 0.5rem;
}

/* ---------- Posts ---------- */

.posts {
  display: grid;
  gap: 2rem;
  padding-bottom: var(--section-y);
}

.post {
  padding-top: 1.375rem;
  border-top: 1px solid var(--green-900);
  scroll-margin-top: 0.75rem;
}

.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tag {
  display: inline-block;
  padding: 0.375rem 0.625rem;
  background: var(--cream-50);
  border: 1px solid var(--line-strong);
  font-size: 0.65625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-700);
}

.post-tag--event {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--ink-900);
}

.post-tag--event[data-past] {
  background: var(--cream-200);
  border-color: var(--line-strong);
  color: var(--ink-600);
}

.post__date {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--ink-600);
}

.post__body h2 {
  margin-top: 0.625rem;
  font-size: clamp(1.6875rem, 1.3rem + 1.2vw, 2.375rem);
  line-height: 1.12;
  text-wrap: pretty;
}

/* Body text stops at about 80 characters a line; details and the certificate use
   the full column. */
.post__body > p {
  max-width: 38em;
  margin-top: 0.75rem;
  font-size: clamp(0.96875rem, 0.92rem + 0.25vw, 1.09375rem);
  line-height: 1.65;
  color: var(--ink-700);
}

.post__body h2 + p {
  margin-top: 0.875rem;
}

.post-details {
  margin: 1.125rem 0 0;
  background: var(--cream-50);
  border: 1px solid var(--line-strong);
}

.post-details > div {
  padding: 0.75rem 0.9375rem;
}

.post-details > div + div {
  border-top: 1px solid var(--line);
}

.post-details dt {
  font-size: 0.65625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.post-details dd {
  margin: 0.1875rem 0 0;
  font-size: 0.96875rem;
  line-height: 1.45;
}

.post__figure {
  max-width: 46.5rem;
  margin-top: 1.125rem;
}

/* The certificate opens at full size, so its text can be read on a phone. */
.post__figure a {
  display: block;
}

.post__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.125rem;
  font-size: 0.96875rem;
  font-weight: 600;
}

/* ---------- Breakpoints ---------- */

@media (min-width: 40rem) {
  .post-details > div {
    display: grid;
    grid-template-columns: 11.25rem minmax(0, 1fr);
    gap: 1.125rem;
    padding: 0.875rem 1.25rem;
  }

  .post-details dt {
    padding-top: 0.1875rem;
    font-size: 0.6875rem;
  }

  .post-details dd {
    margin: 0;
    font-size: 1.03125rem;
    line-height: 1.5;
  }

  .post__links {
    flex-flow: row wrap;
    gap: 0.75rem 1.75rem;
  }
}

@media (min-width: 64rem) {
  .buzz-intro {
    padding-bottom: 3.5rem;
  }

  .buzz-intro .page-intro__inner {
    grid-template-columns: 1.3fr 1fr;
    gap: 4.5rem;
  }

  .buzz-intro .lead {
    margin: 1.375rem 0 0;
  }

  .buzz-intro .page-index {
    margin-top: 0;
  }

  .posts {
    gap: 3.5rem;
  }

  /* Tags and date in a narrow column beside the post. */
  .post {
    display: grid;
    grid-template-columns: 14.375rem minmax(0, 51.25rem);
    align-items: start;
    gap: 3rem;
    padding-top: 2.125rem;
    scroll-margin-top: 1.25rem;
  }

  .post__tags {
    gap: 0.5625rem;
  }

  .post-tag {
    padding: 0.4375rem 0.6875rem;
    font-size: 0.71875rem;
  }

  .post__date {
    margin-top: 0.875rem;
    font-size: 0.875rem;
  }

  .post__body h2 {
    margin-top: 0;
  }

  .post__body > p {
    margin-top: 1rem;
  }

  .post__body h2 + p {
    margin-top: 1.25rem;
  }

  .post-details {
    margin-top: 1.625rem;
  }

  .post__figure {
    margin-top: 1.625rem;
    padding: 0.75rem;
  }

  .post__links {
    margin-top: 1.5rem;
  }
}
