/* Blog-only layout. The existing landing page does not load this file. */
@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("/assets/dm-serif-display-italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

.blog-page {
  --blog-pad: 28px;
  margin: 0;
  background: var(--cream, #fff3da);
  color: var(--ink, #1e4034);
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

.blog-page *,
.blog-page *::before,
.blog-page *::after {
  box-sizing: border-box;
}

.blog-page h1,
.blog-page h2,
.blog-page p {
  margin: 0;
}

.blog-page a {
  color: inherit;
  text-underline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.blog-page a:focus-visible {
  outline: 3px solid var(--terracotta, #b26342);
  outline-offset: 5px;
}

.blog-page ::selection {
  background: var(--peach, #e7c9b2);
  color: var(--forest, #1e4034);
}

.blog-page .wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--blog-pad);
}

.blog-page .skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--cream, #fff3da);
  color: var(--forest, #1e4034);
  transform: translateY(-180%);
}

.blog-page .skip-link:focus {
  transform: translateY(0);
}

.blog-page .blog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-block: 30px;
}

.blog-page .wordmark {
  display: block;
  flex: none;
  width: 90px;
  height: 42px;
  background: currentColor;
  mask: url("/assets/olive-wordmark.png") center / contain no-repeat;
  font-size: 0;
  color: var(--forest, #1e4034);
}

.blog-page .blog-header nav,
.blog-page .blog-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 14px;
  line-height: 1.5;
}

.blog-page .blog-header nav {
  margin-left: auto;
}

.blog-page .blog-header nav > a:not(.button) {
  padding-block: 10px;
}

.blog-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 23px;
  border: 0;
  border-radius: 999px;
  background: var(--terracotta-button, #ae603d);
  color: var(--button-ink, #fffdf5);
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.blog-page .button:hover {
  background: var(--terracotta-deep, #974e33);
}

.blog-page .button.small {
  min-height: 44px;
  padding: 12px 19px;
  font-size: 13px;
}

.blog-page .article {
  max-width: 760px;
  padding-block: 52px 88px;
}

.blog-page .article h1 {
  font-size: clamp(40px, 5.1vw, 59px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -1.7px;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.blog-page .eyebrow {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.blog-page .article > .eyebrow {
  margin-bottom: 23px;
}

.blog-page .article .dek {
  margin-block: 25px;
  font-size: 21px;
  line-height: 1.6;
}

.blog-page .article .byline,
.blog-page .article-meta {
  color: var(--muted, #3f4d38);
  font-size: 13px;
  line-height: 1.6;
}

.blog-page .article .byline {
  margin-bottom: 35px;
  padding-bottom: 30px;
  border-bottom: 1px solid #91a37870;
}

.blog-page .article-back {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--terracotta-deep, #974e33);
  font-size: 14px;
}

.blog-page .article h2 {
  margin-block: 40px 17px;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.6px;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.blog-page .article p,
.blog-page .article li {
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.blog-page .article p + p,
.blog-page .article p + ul,
.blog-page .article p + ol,
.blog-page .article ul + p,
.blog-page .article ol + p {
  margin-top: 20px;
}

.blog-page .article section ul,
.blog-page .article section ol {
  margin-block: 20px;
  padding-left: 25px;
}

.blog-page .article section li {
  margin-block: 14px;
  padding-left: 8px;
}

.blog-page .article section li::marker {
  color: var(--terracotta-deep, #974e33);
}

.blog-page .article section a,
.blog-page .text-link {
  color: var(--terracotta-deep, #974e33);
  text-decoration-thickness: 1px;
}

.blog-page .article section a:hover,
.blog-page .text-link:hover {
  text-decoration-thickness: 2px;
}

.blog-page .article-list {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.blog-page .article-list > li {
  padding-block: 29px 34px;
  border-top: 1px solid #91a37870;
}

.blog-page .article-list h2 {
  margin-block: 10px 13px;
}

.blog-page .article-list h2 a {
  text-decoration: none;
}

.blog-page .article-list h2 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.blog-page .article-list p {
  font-size: 17px;
  line-height: 1.7;
}

.blog-page .article-list .article-meta {
  font-size: 13px;
}

.blog-page .article-list .text-link {
  display: inline-block;
  margin-top: 17px;
  font-size: 15px;
}

.blog-page .article-cta {
  margin-top: 48px;
  padding: 33px 35px;
  border: 1px solid #91a37855;
  border-radius: 8px;
  background: var(--sage, #edf1da);
}

.blog-page .article-cta h2 {
  margin: 0 0 15px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 34px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.6px;
}

.blog-page .article-cta p {
  font-size: 17px;
  line-height: 1.7;
}

.blog-page .article-cta .button {
  margin-top: 21px;
}

.blog-page .blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-block: 30px 38px;
  border-top: 1px solid #91a37870;
}

.blog-page .blog-footer nav {
  gap: 20px;
  font-size: 12px;
}

.blog-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .blog-page {
    --blog-pad: 24px;
  }

  .blog-page .blog-header {
    gap: 16px;
    padding-block: 24px;
  }

  .blog-page .blog-header .wordmark {
    width: 72px;
    height: 36px;
  }

  .blog-page .blog-header nav {
    gap: 14px;
    font-size: 12px;
  }

  .blog-page .button.small {
    min-height: 42px;
    padding: 11px 14px;
    font-size: 12px;
  }

  .blog-page .article {
    padding-block: 32px 64px;
  }

  .blog-page .article h1 {
    font-size: clamp(37px, 9vw, 47px);
    letter-spacing: -1.25px;
  }

  .blog-page .article .dek {
    margin-block: 23px;
    font-size: 19px;
  }

  .blog-page .article h2 {
    margin-top: 35px;
    font-size: 26px;
    letter-spacing: -.45px;
  }

  .blog-page .article p,
  .blog-page .article li {
    font-size: 18px;
    line-height: 1.75;
  }

  .blog-page .article .byline {
    margin-bottom: 30px;
    padding-bottom: 25px;
    font-size: 12px;
  }

  .blog-page .article section ul,
  .blog-page .article section ol {
    padding-left: 22px;
  }

  .blog-page .article section li {
    padding-left: 4px;
  }

  .blog-page .article-list {
    margin-top: 35px;
  }

  .blog-page .article-list h2 {
    margin-top: 10px;
  }

  .blog-page .article-cta {
    padding: 27px 24px;
  }

  .blog-page .article-cta h2 {
    margin-top: 0;
    font-size: 31px;
  }

  .blog-page .blog-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .blog-page {
    --blog-pad: 20px;
  }

  .blog-page .blog-header nav {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-page .button {
    transition: none;
  }
}
