/* Blog posts. WordPress classic content scale (wp-content.css), wide column.
   Beats the theme's page-title heading lock inside the article only. */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-300-normal-latin.woff2") format("woff2");
}

:root body #route-blog .piece {
  width: min(1360px, calc(100% - clamp(96px, 11vw, 240px)));
  max-width: 1360px;
  margin: calc(76px + env(safe-area-inset-top, 0px)) auto 4rem;
  padding: 0 var(--page-gutter, 44px);
  box-sizing: border-box;
  font-family: "Hanken Grotesk", var(--font-body), "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: #2a2419;
}

:root body #route-blog .piece section {
  padding: 0 !important;
}

:root body #route-blog .piece-hero,
:root body #route-blog .piece-hero-copy,
:root body #route-blog .piece-stage,
:root body #route-blog .piece-close,
:root body #route-blog .piece-close-inner {
  position: static;
  width: auto;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: none;
  color: inherit;
}

:root body #route-blog .piece-hero::after {
  content: none;
}

:root body #route-blog .piece h1,
:root body #route-blog .piece h2,
:root body #route-blog .piece h3,
:root body #route-blog .piece h4,
:root body #route-blog .piece h5,
:root body #route-blog .piece h6 {
  font-family: var(--font-display), Georgia, serif !important;
  font-style: normal !important;
  font-synthesis: none !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: inherit !important;
  max-width: none !important;
  clear: both;
}

/* h1 and h2 stay the site's oversized display size. h3 and below step down from there. */
:root body #route-blog .piece h1 {
  font-size: var(--size-h1) !important;
  font-weight: 300 !important;
  font-variation-settings: "wght" 300 !important;
  letter-spacing: var(--track-display) !important;
  line-height: 1.12 !important;
  margin: 0.4em 0 0.35em !important;
}

:root body #route-blog .piece h2 {
  font-size: var(--size-h2) !important;
  font-weight: 300 !important;
  font-variation-settings: "wght" 300 !important;
  letter-spacing: var(--track-display) !important;
  line-height: 1.15 !important;
  color: #8a6f4d !important;
  margin: 1.65em 0 0.5em !important;
}

:root body #route-blog .piece h3 {
  font-size: 22px !important;
  font-weight: 500 !important;
  font-variation-settings: "wght" 500 !important;
  line-height: 1.35 !important;
  margin: 1.15em 0 0.4em !important;
}

:root body #route-blog .piece h4 {
  font-size: 16px !important;
  font-weight: 500 !important;
  font-variation-settings: "wght" 500 !important;
  line-height: 1.4 !important;
  margin: 1.1em 0 0.35em !important;
}

:root body #route-blog .piece h5 {
  font-size: 14px !important;
  font-weight: 500 !important;
  font-variation-settings: "wght" 500 !important;
  line-height: 1.45 !important;
  margin: 1em 0 0.3em !important;
}

:root body #route-blog .piece h6 {
  font-size: 13px !important;
  font-weight: 500 !important;
  font-variation-settings: "wght" 500 !important;
  line-height: 1.45 !important;
  margin: 1em 0 0.3em !important;
}

:root body #route-blog .piece h1 em,
:root body #route-blog .piece h2 em,
:root body #route-blog .piece h3 em {
  font-style: italic !important;
  font-weight: inherit !important;
  color: inherit !important;
}

:root body #route-blog .piece p,
:root body #route-blog .piece li {
  font-family: "Hanken Grotesk", var(--font-body), "Helvetica Neue", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 300 !important;
  line-height: 1.6 !important;
  letter-spacing: normal !important;
}

:root body #route-blog .piece p {
  margin: 0 0 1em !important;
}

:root body #route-blog .piece a {
  color: #216b9b;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

:root body #route-blog .piece ul,
:root body #route-blog .piece ol {
  margin: 1em 0 1.5em 1.25em !important;
  padding: 0 0 0 1.5em !important;
  list-style-position: outside !important;
}

:root body #route-blog .piece ul {
  list-style: disc !important;
}

:root body #route-blog .piece ol {
  list-style: decimal !important;
}

:root body #route-blog .piece li {
  display: list-item !important;
  margin: 0.25em 0 !important;
  padding: 0 !important;
}

:root body #route-blog .piece li::before {
  content: none !important;
}

:root body #route-blog .piece img {
  position: static !important;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  margin: 0;
  inset: auto;
  object-fit: unset;
}

:root body #route-blog .piece figure {
  display: block;
  clear: both;
  margin: 1.5em 0;
}

:root body #route-blog .piece-stats {
  margin: 0 0 1em;
}

:root body #route-blog .piece-stats div {
  margin: 0.35em 0;
}

:root body #route-blog .piece-stats b {
  margin-right: 0.45em;
  font-weight: 600;
}

/* Individual post: readable column, contents and related links on the right. */
:root body #route-blog .piece h2,
:root body #route-blog .article h2 {
  color: #8a6f4d !important;
  scroll-margin-top: 108px;
}
:root body #route-blog .piece h2 :is(strong, b),
:root body #route-blog .article h2 :is(strong, b) {
  font-weight: inherit !important;
  color: inherit !important;
}
:root body #route-blog .post-frame {
  width: min(1360px, calc(100% - clamp(96px, 11vw, 240px)));
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 2vw, 32px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  justify-content: start;
  column-gap: 48px;
  align-items: stretch;
}
:root body #route-insights .phero .wrap,
:root body #route-insights > section > .wrap,
:root body #route-insights .cta-block .wrap,
:root body #route-blog > section > .wrap,
:root body #route-blog .cta-block .wrap {
  width: min(1360px, calc(100% - clamp(96px, 11vw, 240px))) !important;
  max-width: 1360px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}
:root body #route-blog .post-spread {
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: 17px;
  min-width: 0;
}
:root body #route-blog .post-spread .art-h,
:root body #route-blog .post-spread .art-hero,
:root body #route-blog .post-spread .article {
  max-width: none !important;
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}
:root body #route-blog .post-spread .art-h {
  padding-top: calc(112px + env(safe-area-inset-top, 0px)) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
:root body #route-blog .post-spread .art-hero {
  position: relative;
  aspect-ratio: 4 / 3 !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin-top: 28px !important;
  overflow: hidden !important;
  clip-path: none !important;
}
:root body #route-blog .post-spread .art-hero img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center center !important;
  clip-path: none !important;
}
:root body #route-blog .article .wp-block-image {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  overflow: hidden;
}
:root body #route-blog .article .wp-block-image img {
  position: static !important;
  inset: auto !important;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
}
:root body #route-blog .post-spread .article {
  padding: 28px 0 0 !important;
  min-width: 0;
}
:root body #route-blog .article p,
:root body #route-blog .article li {
  font-family: "Hanken Grotesk", var(--font-body), "Helvetica Neue", Arial, sans-serif !important;
  font-size: 17px !important;
  font-weight: 300 !important;
  line-height: 1.65 !important;
}
:root body #route-blog .article figure {
  margin: 1.6em 0 !important;
}
:root body #route-blog .article > .wp-block-image {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 1.6em 0 !important;
  shape-outside: none !important;
}
:root body #route-blog .article img,
:root body #route-blog .post-spread .art-hero img {
  display: block;
  float: none !important;
}
:root body #route-blog .post-rail {
  min-height: 0;
  margin-top: 112px;
}
:root body #route-blog .post-rail-stick {
  position: sticky;
  top: calc(76px + 20px);
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 112px);
  overflow: hidden;
  padding-top: 28px;
  background: #f4efe3;
}
:root body #route-blog .post-toc {
  position: static;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-bottom: 12px;
}
:root body #route-blog .post-rail-label {
  margin: 0 0 12px;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: var(--track-kicker) !important;
  text-transform: uppercase !important;
  line-height: 1.3 !important;
  color: #8a6f4d !important;
}
:root body #route-blog .post-toc ol,
:root body #route-blog .post-interest ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
:root body #route-blog .post-toc li,
:root body #route-blog .post-interest li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
:root body #route-blog .post-toc a,
:root body #route-blog .post-interest a {
  color: #2a2419;
  font-family: "Hanken Grotesk", var(--font-body), "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  text-transform: none !important;
}
:root body #route-blog .post-toc a {
  display: block;
  padding: 7px 0 7px 12px;
  border-left: 1px solid rgba(42, 36, 25, 0.16);
  font-size: 14px;
}
:root body #route-blog .post-toc a[aria-current="true"] {
  color: #8a6f4d;
  border-left-color: #8a6f4d;
}
:root body #route-blog .post-interest {
  flex: 0 0 auto;
  margin-top: 0;
  padding-top: 16px;
  background: #f4efe3;
  border-top: 1px solid rgba(42, 36, 25, 0.14);
}
:root body #route-blog .post-interest a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgba(42, 36, 25, 0.14);
  font-size: 15px;
}
:root body #route-blog .post-interest li:last-child a {
  border-bottom: 1px solid rgba(42, 36, 25, 0.14);
}
:root body #route-blog .post-toc a:hover,
:root body #route-blog .post-interest a:hover {
  color: #8a6f4d;
}
:root body #route-blog .post-toc a:focus-visible,
:root body #route-blog .post-interest a:focus-visible {
  outline: 2px solid #8a6f4d;
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  :root body #route-blog .post-frame {
    display: flex;
    flex-direction: column;
  }
  :root body #route-blog .post-spread {
    display: contents;
    max-width: none;
  }
  :root body #route-blog .post-rail,
  :root body #route-blog .post-rail-stick {
    display: contents;
    margin-top: 0;
    padding-top: 0;
    max-height: none;
    overflow: visible;
    background: none;
    border: 0;
  }
  :root body #route-blog .art-h { order: 1; }
  :root body #route-blog .art-hero { order: 2; }
  :root body #route-blog .post-toc {
    order: 3;
    position: static;
    max-height: none;
    overflow: visible;
    margin-top: 28px;
  }
  :root body #route-blog .article { order: 4; }
  :root body #route-blog .post-interest {
    order: 5;
    margin-top: 28px;
    border-top: 0;
  }
}

@media (max-width: 800px) {
  :root body #route-blog .post-frame,
  :root body #route-blog .piece,
  :root body #route-insights .phero .wrap,
  :root body #route-insights > section > .wrap,
  :root body #route-insights .cta-block .wrap,
  :root body #route-blog > section > .wrap,
  :root body #route-blog .cta-block .wrap {
    width: min(100%, var(--page-width)) !important;
    max-width: var(--page-width) !important;
  }
}

@media (max-width: 640px) {
  :root body #route-blog .post-frame {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  :root body #route-blog .post-spread .art-h {
    padding: calc(104px + env(safe-area-inset-top, 0px)) 0 8px !important;
  }
  :root body #route-blog .post-spread .article {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  :root body #route-blog .piece {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  :root body #route-blog .art-h h1,
  :root body #route-blog .piece h1,
  :root body #route-blog .article h1 {
    font-size: 34px !important;
    line-height: 1.14 !important;
    letter-spacing: -0.02em !important;
  }
  :root body #route-blog .piece h2,
  :root body #route-blog .article h2 {
    font-size: 28px !important;
    line-height: 1.2 !important;
    margin: 1.55em 0 0.4em !important;
  }
  :root body #route-blog .piece h3,
  :root body #route-blog .article h3 {
    font-size: 21px !important;
    line-height: 1.3 !important;
    margin: 1.25em 0 0.35em !important;
  }
  :root body #route-blog .article p,
  :root body #route-blog .article li,
  :root body #route-blog .piece p,
  :root body #route-blog .piece li {
    font-size: 16px !important;
    font-weight: 300 !important;
    line-height: 1.65 !important;
  }
  :root body #route-blog .art-h .by,
  :root body #route-blog .art-h .by a {
    font-size: 11px !important;
    line-height: 1.55 !important;
  }
  :root body #route-blog .piece ul,
  :root body #route-blog .piece ol,
  :root body #route-blog .article ul,
  :root body #route-blog .article ol {
    margin-left: 0.2em !important;
    padding-left: 1.15em !important;
  }
  :root body #route-blog .piece img {
    max-width: 100% !important;
    height: auto !important;
  }
}
