/* Article styles. Additive only: nothing here overrides the existing style.css.
   Kept in its own file so the results page stylesheet is never touched.
   Served from /assets/articles.css, cached by public/_headers under the /assets/* rule. */

.article,
.article-list,
.article-lede {
  max-width: 68ch;
}

.article-head {
  margin: 3rem 0 2.5rem;
}

.article-date,
.article-tags {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.article-head h1 {
  margin: 0.4rem 0 1rem;
  line-height: 1.15;
  text-wrap: balance;
}

.article-lede {
  font-size: 1.0625rem;
  line-height: 1.6;
  opacity: 0.85;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.article-tags li {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

.article-body {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.article-body h2 {
  margin: 2.75rem 0 0.75rem;
  line-height: 1.25;
}

.article-body h3 {
  margin: 2rem 0 0.5rem;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin: 0 0 1.15rem;
}

.article-body code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  background: color-mix(in oklab, currentColor 8%, transparent);
}

.article-body pre {
  overflow-x: auto;
  padding: 1rem 1.15rem;
  border-radius: 6px;
  border: 1px solid color-mix(in oklab, currentColor 15%, transparent);
}

.article-body pre code {
  background: none;
  padding: 0;
}

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

.article-body th,
.article-body td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid color-mix(in oklab, currentColor 15%, transparent);
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid color-mix(in oklab, currentColor 30%, transparent);
  opacity: 0.9;
}

.article-body img {
  max-width: 100%;
  height: auto;
}

.article-body figure {
  margin: 2rem 0;
}

.article-body figcaption {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  opacity: 0.7;
}

.article-foot {
  margin: 3.5rem 0 5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in oklab, currentColor 15%, transparent);
  font-size: 0.9rem;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 5rem;
}

.article-list li + li {
  margin-top: 1.75rem;
}

.article-list a {
  display: block;
  text-decoration: none;
}

.article-list time {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  opacity: 0.65;
  margin-bottom: 0.2rem;
}

.article-list-title {
  display: block;
  font-size: 1.125rem;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-list-desc {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.8;
}
