html {
  background: var(--surface);
  color: var(--ink);
}

body {
  font: 400 var(--step-0) / 1.65 var(--font-body);
  padding-bottom: 4.25rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
}

h1 {
  font-size: var(--step-3);
}

h2 {
  font-size: var(--step-2);
}

h3 {
  font-size: var(--step-1);
}

p + *,
ul + *,
ol + *,
blockquote + * {
  margin-top: 1.25rem;
}

a {
  color: #5a4300;
  text-underline-offset: .16em;
}

main {
  overflow: hidden;
}

.blog-intro {
  padding-block: clamp(2.7rem, 6vw, 4.8rem);
  border-bottom: 1px solid #ececec;
}

.intro-inner {
  display: grid;
  gap: 1.5rem;
}

.blog-intro h1 {
  max-width: 48rem;
  margin-top: .35rem;
  font-size: clamp(2.4rem, 1.7rem + 2.6vw, 4rem);
  text-wrap: balance;
}

.blog-intro p:not(.eyebrow) {
  max-width: 46rem;
  margin-top: .85rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.article-index {
  padding-block: clamp(2.2rem, 5vw, 5rem);
}

.listing-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-bottom: 1.5rem;
}

.listing-head h2 {
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.35rem);
}

.listing-head p {
  color: var(--muted);
  font-size: .9rem;
}

.order-strip {
  background: var(--brand);
  color: var(--ink);
}

.order-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem 1.5rem;
  padding-block: 1.25rem;
}

.order-strip strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.order-strip-inner > div:last-child {
  display: flex;
  gap: 1rem;
}

.order-strip a {
  color: var(--ink);
  font-weight: 800;
}

.section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.section-soft {
  background: var(--surface-soft);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head p {
  max-width: 40rem;
  color: var(--muted);
}

.article-hero {
  background: var(--surface-soft);
  padding-bottom: 2rem;
}

.article-head {
  display: grid;
  gap: 1rem;
  max-width: 60rem;
  padding-block: 2rem;
}

.article-head h1 {
  text-wrap: balance;
}

.article-figure {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-layout {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2rem, 6vw, 4.5rem);
}

.article-content {
  width: min(100%, var(--article));
  margin-inline: auto;
}

.article-content > .lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
}

.article-content h2 {
  scroll-margin-top: 6rem;
  margin-top: 2.7rem;
}

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

.article-content ul,
.article-content ol {
  padding-left: 1.4rem;
}

.article-content li + li {
  margin-top: .45rem;
}

.article-content blockquote {
  border-left: .3rem solid var(--brand);
  margin-block: 1.75rem;
  padding: .2rem 0 .2rem 1.25rem;
  font-size: 1.15em;
}

.article-content blockquote footer {
  margin-top: .65rem;
  color: var(--ink-soft);
  font-size: .82em;
  font-weight: 650;
}

.article-summary {
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.article-faq {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: .9rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.8rem;
  color: var(--ink);
  font: 500 1.7rem / 1 var(--font-body);
  text-align: center;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 2.8rem 1.2rem 0;
  color: var(--ink-soft);
}

.article-closing {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border-left: .35rem solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fff9dc;
  font-size: var(--step-1);
}

.article-content .toc {
  margin: 2rem 0;
}

.article-content .author-card h2 {
  margin-top: .15rem;
}

.article-related {
  padding-block: 3rem;
  background: var(--surface-soft);
}

.article-related h2 {
  margin-bottom: 1.5rem;
}

.not-found {
  min-height: 65vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
}

.not-found p {
  max-width: 36rem;
  margin-inline: auto;
}

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

.source-list {
  font-size: .95rem;
}

.source-list li + li {
  margin-top: .4rem;
}

@media (min-width: 48rem) {
  body {
    padding-bottom: 0;
  }

  .intro-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .article-head {
    padding-block: 3rem;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
