/* Blog — layered on /styles.css, /promptkits/kit.css and /signup.css. Only blog components live here. */

.blog-home,
.blog-post {
  max-width: 860px;
}

/* Overview */

.blog-list {
  display: grid;
  gap: 1rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.5rem;
  border: 1px solid #dce5f2;
  border-radius: 12px;
  background: #f2f6fc;
  color: var(--ink);
  transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
}

.blog-card span {
  color: var(--blue);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.blog-card strong {
  margin-top: .4rem;
  color: var(--navy);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.blog-card p {
  margin: .3rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.blog-card:hover,
.blog-card:focus-visible {
  border-color: #bfd0e9;
  background: #eaf2ff;
  transform: translateY(-2px);
  outline: none;
}

.blog-older {
  margin-top: 3.5rem;
}

.blog-older h2 {
  margin: 0 0 .5rem;
}

.blog-empty {
  color: var(--muted);
}

/* Post */

.blog-title {
  padding: 2.5rem 0 1rem;
}

.blog-title h1 {
  margin-bottom: .6rem;
}

.blog-date {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: .95rem;
}

.blog-title .lede {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 440;
  line-height: 1.45;
}

.blog-content {
  line-height: 1.65;
}

.blog-content h2 {
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.blog-content h3 {
  margin: 2.2rem 0 .6rem;
  color: var(--navy);
  font-size: 1.25rem;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.blog-content p {
  margin: 0 0 1rem;
}

.blog-content ul,
.blog-content ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.blog-content li {
  margin-bottom: .4rem;
}

.blog-content a {
  color: var(--blue);
  border-bottom: 1px solid currentColor;
  overflow-wrap: anywhere;
}

.blog-content a:hover,
.blog-content a:focus-visible {
  color: var(--navy);
  outline: none;
}

.blog-topics {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

.blog-topics strong {
  color: var(--navy);
}

.blog-topics a,
.blog-book a:not(.button) {
  color: var(--blue);
  border-bottom: 1px solid currentColor;
}

.blog-content h3 {
  scroll-margin-top: 6rem;
}

.blog-book {
  margin-top: 3.5rem;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
}

.blog-book p {
  margin: 0 0 1rem;
}

.blog-book-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.blog-book-links .button.primary {
  margin-left: 0;
}

/* Sign-up box */

.blog-subscribe {
  margin-top: 3.5rem;
  border: 1px solid #dce5f2;
  border-radius: 12px;
  background: #f2f6fc;
}

.blog-subscribe .signup-actions {
  justify-content: flex-start;
}
