/* Shared styles for /blog and /blog/* article pages. */

.blog-main,
.blog-article,
.blog-index {
  width: 100%;
}

.blog-article,
.blog-index {
  max-width: 42rem;
  color: var(--color-text);
}

.blog-article h1,
.blog-article .page-heading,
.blog-index h1,
.blog-index .page-heading {
  text-align: left;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: var(--color-text);
  margin: 0;
}

.wonder-mob .blog-article h1,
.wonder-mob .blog-article .page-heading,
.wonder-mob .blog-index h1,
.wonder-mob .blog-index .page-heading {
  font-size: 32px;
}

.blog-dek {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.42857;
  color: var(--color-text-muted);
}

.blog-back {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.42857;
}

.blog-article p,
.blog-index p {
  margin: 1.25rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
}

.blog-article a,
.blog-index a,
.blog-back a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.blog-article a:hover,
.blog-index a:hover,
.blog-back a:hover {
  text-decoration-thickness: 2px;
}

.blog-index__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.blog-index__list li + li {
  margin-top: 1.25rem;
}

.blog-index__list a {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
}

.blog-index__list .blog-dek {
  margin-top: 0.25rem;
}

.blog-figure {
  margin: 1.5rem 0 0;
  max-width: 100%;
}

.blog-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.blog-figure--phone {
  max-width: 22.5rem;
}

.blog-figure figcaption {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.42857;
  color: var(--color-text-muted);
}

.blog-index__list a {
  display: block;
  text-decoration: none;
}

.blog-index__list a:hover {
  text-decoration: none;
}

.blog-index__title {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.blog-index__list a:hover .blog-index__title {
  text-decoration-thickness: 2px;
}

.blog-index__list .blog-figure {
  margin: 0 0 0.75rem;
}

.blog-index__excerpt {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
}


.blog-article h2 {
  margin: 2rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.wonder-mob .blog-article h2 {
  font-size: 1.25rem;
}

.blog-article blockquote {
  margin: 1.25rem 0 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--color-border);
}

.blog-article blockquote p {
  margin: 0;
}

.blog-cta-wrap {
  margin: 1.5rem 0 0;
}

.blog-article a.blog-cta,
.blog-article a.blog-cta:hover {
  text-decoration: none;
}

.blog-cta__icon {
  flex-shrink: 0;
}

html[data-theme="dark"] .blog-figure__theme--light,
html[data-theme="light"] .blog-figure__theme--dark {
  display: none;
}
