/* Article styles - extends site variables from /style.css */

/* Article layout */

.article {
  max-width: 65ch;
  margin: 0 auto;
  padding: 3rem var(--gutter) 5rem;
}

.article h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.article .article__meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

.article__hero {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}

/* Prose */

.article h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.article h3 {
  font-size: 1.125rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.article p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.article ul,
.article ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.article li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
  font-size: 1rem;
}

.article strong {
  font-weight: 600;
}

.article blockquote {
  border-left: 3px solid var(--brand);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
}

.article blockquote p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Tables */

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.article th,
.article td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article th {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.article thead {
  border-bottom: 2px solid var(--border);
}

/* CTA box */

.article .cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2.5rem 0;
  text-align: center;
}

.article .cta-box h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.article .cta-box p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.article .cta-box .btn {
  font-size: 1rem;
  padding: 0.65rem 1.5rem;
}

/* Blog index */

.blog-index {
  max-width: 65ch;
  margin: 0 auto;
  padding: 3rem var(--gutter) 5rem;
}

.blog-index h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
}

.blog-index__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-index__list li {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.blog-index__list li:last-child {
  border-bottom: none;
}

.blog-index__list img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.blog-index__list h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.blog-index__list h2 a {
  color: var(--text);
}

.blog-index__list h2 a:hover {
  color: var(--brand-dark);
}

.blog-index__list p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}
