/* Vrtland editorial blog */

.blog-index,
.single-post-page {
  max-width: none;
  padding: 0;
}

.single-post-page,
.blog-article {
  background: #f8f4e9;
}

.blog-index {
  background: #f8f4e9;
}

.blog-index .internal-hero {
  border-bottom: 0;
}

.blog-archive {
  width: min(calc(100% - (var(--page-gutter) * 2)), 1510px);
  padding: clamp(.875rem, 1.25vw, 1.25rem) 0 clamp(5.5rem, 9vw, 8rem);
  margin-inline: auto;
}

.blog-index > .blog-archive {
  margin-block-start: 0;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .8rem;
  margin: 0 0 1.5rem;
}

.blog-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #607242;
  font-size: .87rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.blog-filters a:hover,
.blog-filters a:focus-visible {
  border-color: rgba(18, 56, 43, .18);
  color: var(--color-forest);
  transform: translateY(-1px);
}

.blog-filters a.is-active {
  border-color: var(--color-forest);
  background: var(--color-forest);
  color: #fff;
}

.blog-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(360px, .87fr);
  min-height: 390px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(18, 56, 43, .07);
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
}

.blog-feature .blog-card__media {
  min-height: 390px;
}

.blog-feature .blog-card__content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4.5vw, 4.25rem);
}

.blog-feature h2 {
  max-width: 580px;
  margin-top: 1rem;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
}

.blog-feature .blog-card__content > p {
  max-width: 530px;
  margin-top: 1.15rem;
  font-size: 1.03rem;
}

.blog-card__media {
  display: block;
  overflow: hidden;
  background: #dfe5d7;
  text-decoration: none;
}

.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(.2, .7, .2, 1), filter 400ms ease;
}

.blog-feature:hover .blog-card__image,
.blog-card:hover .blog-card__image {
  transform: scale(1.025);
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .65rem;
  align-items: center;
  color: rgba(23, 49, 39, .57);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.blog-card__meta > span:first-child {
  color: #708050;
}

.blog-feature h2,
.blog-card h2 {
  color: var(--color-forest);
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -.036em;
  line-height: 1.13;
}

.blog-feature h2 a,
.blog-card h2 a {
  text-decoration: none;
}

.blog-card__content > p {
  color: rgba(23, 49, 39, .74);
  line-height: 1.65;
}

.blog-card__link {
  display: inline-flex;
  gap: .7rem;
  align-items: center;
  min-height: 42px;
  margin-top: auto;
  color: #cf6844;
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
}

.blog-card__link span {
  font-size: 1.2em;
  transition: transform 180ms ease;
}

.blog-card__link:hover span,
.blog-card__link:focus-visible span {
  transform: translateX(4px);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(18, 56, 43, .07);
  border-radius: 16px;
  background: rgba(255, 255, 255, .68);
  transition: border-color 200ms ease, transform 280ms ease, box-shadow 280ms ease;
}

.blog-card:hover {
  border-color: rgba(18, 56, 43, .15);
  box-shadow: 0 18px 46px rgba(18, 56, 43, .08);
  transform: translateY(-4px);
}

.blog-card .blog-card__media {
  aspect-ratio: 16 / 9;
}

.blog-card .blog-card__content {
  display: flex;
  flex: 1;
  align-items: flex-start;
  flex-direction: column;
  padding: 1.35rem 1.35rem 1.25rem;
}

.blog-card h2 {
  margin-top: .8rem;
  font-size: clamp(1.25rem, 1.75vw, 1.58rem);
}

.blog-card .blog-card__content > p {
  margin: .8rem 0 1.05rem;
  font-size: .89rem;
}

.blog-empty {
  grid-column: 1 / -1;
  padding: 4rem 0;
  color: rgba(23, 49, 39, .7);
  text-align: center;
}

.blog-pagination {
  margin-top: clamp(2.75rem, 5vw, 4.5rem);
}

.blog-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog-pagination a,
.blog-pagination span.page-numbers {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: .45rem;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: .7rem 1rem;
  border: 1px solid rgba(18, 56, 43, .15);
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.blog-pagination .prev,
.blog-pagination .next {
  min-width: 116px;
}

.blog-pagination span.current {
  border-color: var(--color-forest);
  background: var(--color-forest);
  color: #fff;
}

.blog-pagination a:hover,
.blog-pagination a:focus-visible {
  border-color: var(--color-forest);
}

/* Single article */

.reading-progress {
  position: fixed;
  z-index: 1100;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  overflow: hidden;
  background: rgba(18, 56, 43, .1);
  pointer-events: none;
}

body.admin-bar .reading-progress {
  top: 32px;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #d66f4b;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.blog-article {
  --article-shell-width: 1240px;
  padding-top: clamp(10.5rem, 15vw, 13rem);
}

.article-hero {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--article-shell-width));
  margin-inline: auto;
}

.article-back {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  min-height: 42px;
  margin-bottom: 2.25rem;
  color: rgba(23, 49, 39, .78);
  font-size: .82rem;
  font-weight: 650;
  text-decoration: none;
}

.article-back span {
  transition: transform 180ms ease;
}

.article-back:hover span,
.article-back:focus-visible span {
  transform: translateX(-4px);
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .8rem;
  align-items: center;
  color: rgba(23, 49, 39, .58);
  font-size: .7rem;
  font-weight: 720;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.article-hero__meta > span:first-child {
  color: #6f8052;
}

.article-hero h1 {
  max-width: 1120px;
  margin-top: 1.25rem;
  overflow-wrap: normal;
  color: var(--color-forest);
  font-family: var(--sans);
  font-size: clamp(2.65rem, 4.55vw, 4.75rem);
  font-weight: 650;
  letter-spacing: -.05em;
  line-height: 1.03;
  text-wrap: balance;
}

.article-hero__lead {
  max-width: 1060px;
  margin: 1.55rem 0 0;
  color: rgba(23, 49, 39, .82);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.68;
  text-wrap: pretty;
}

.article-hero__media {
  aspect-ratio: 2 / 1;
  margin: clamp(2rem, 4vw, 3.25rem) 0 0;
  overflow: hidden;
  border-radius: 18px;
  background: #dfe5d7;
}

.article-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 300px);
  gap: clamp(3rem, 6vw, 6.25rem);
  align-items: start;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--article-shell-width));
  margin: clamp(3.5rem, 6vw, 5.75rem) auto 0;
}

.article-sidebar {
  position: sticky;
  top: 10.75rem;
  max-height: calc(100vh - 12.25rem);
  overflow-y: auto;
  scrollbar-width: thin;
}

body.admin-bar .article-sidebar {
  top: 12.75rem;
  max-height: calc(100vh - 14.25rem);
}

.article-toc {
  padding-left: 1.15rem;
  border-left: 1px solid rgba(18, 56, 43, .18);
}

.article-toc__toggle {
  display: flex;
  gap: .8rem;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-forest);
  font: inherit;
  text-align: left;
}

.article-toc__icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--color-forest);
  color: #fff;
}

.article-toc__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.article-toc__toggle > span:nth-child(2) {
  font-size: .9rem;
  font-weight: 750;
}

.article-toc__chevron {
  display: none;
  margin-left: auto;
  font-size: 1.1rem;
  transition: transform 180ms ease;
}

.article-toc ol {
  display: grid;
  gap: .2rem;
  padding: 0 0 0 .15rem;
  margin: 1.15rem 0 0;
  counter-reset: article-toc;
  list-style: none;
}

.article-toc li {
  counter-increment: article-toc;
}

.article-toc a {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: .35rem;
  padding: .42rem .55rem .42rem 0;
  color: rgba(23, 49, 39, .76);
  border-radius: 8px;
  font-size: .77rem;
  font-weight: 620;
  line-height: 1.42;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.article-toc a::before {
  color: rgba(23, 49, 39, .42);
  content: counter(article-toc, decimal-leading-zero);
  font-size: .65rem;
  font-weight: 750;
  letter-spacing: .04em;
  line-height: 1.75;
}

.article-toc a:hover,
.article-toc a:focus-visible,
.article-toc a.is-active {
  background: rgba(111, 128, 82, .1);
  color: var(--color-forest);
}

.article-body {
  min-width: 0;
  width: auto;
  margin: 0;
  color: #22382f;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.84;
}

.article-body > * {
  margin-block: 0 1.35rem;
}

.article-body h2,
.article-body h3 {
  scroll-margin-top: 9.5rem;
  color: var(--color-forest);
  font-family: var(--sans);
  font-weight: 670;
  letter-spacing: -.035em;
}

.article-body h2 {
  padding-top: clamp(2.2rem, 5vw, 3.75rem);
  margin-bottom: 1.25rem;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.12;
}

.article-body h3 {
  padding-top: 1.15rem;
  margin-bottom: .85rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.25;
}

.article-body p,
.article-body li {
  text-wrap: pretty;
}

.article-body a {
  color: #a94f32;
  font-weight: 650;
}

.article-body ul,
.article-body ol {
  padding-left: 1.25rem;
  margin-bottom: 1.6rem;
}

.article-body li + li {
  margin-top: .55rem;
}

.article-body strong {
  color: var(--color-forest);
}

.article-body blockquote {
  padding: 1.6rem 1.75rem;
  margin: 2rem 0;
  border-left: 4px solid #738554;
  background: rgba(226, 228, 211, .56);
  color: var(--color-forest);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body .article-tip,
.article-body .article-note {
  position: relative;
  padding: 1.4rem 1.55rem 1.4rem 4.25rem;
  margin: 2rem 0;
  border: 1px solid rgba(18, 56, 43, .08);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(218, 222, 199, .78), rgba(238, 234, 220, .75));
}

.article-body .article-tip::before,
.article-body .article-note::before {
  position: absolute;
  top: 1.35rem;
  left: 1.35rem;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #748451;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  content: "✓";
}

.article-body .article-note::before {
  background: #c96645;
  content: "!";
}

.article-body .article-tip > :last-child,
.article-body .article-note > :last-child {
  margin-bottom: 0;
}

.article-table-wrap {
  width: 100%;
  margin: 2.25rem 0;
  overflow-x: auto;
  border: 1px solid rgba(18, 56, 43, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .54);
  box-shadow: 0 16px 38px rgba(18, 56, 43, .055);
  scrollbar-width: thin;
}

.article-body .article-table,
.article-body table {
  width: 100%;
  min-width: 650px;
  margin: 0;
  border-spacing: 0;
  border-collapse: separate;
  font-size: .9rem;
}

.article-body .article-table th,
.article-body .article-table td,
.article-body table th,
.article-body table td {
  padding: .95rem 1rem;
  border-right: 1px solid rgba(18, 56, 43, .1);
  border-bottom: 1px solid rgba(18, 56, 43, .1);
  text-align: left;
  vertical-align: top;
}

.article-body .article-table th:last-child,
.article-body .article-table td:last-child,
.article-body table th:last-child,
.article-body table td:last-child {
  border-right: 0;
}

.article-body .article-table tr:last-child td,
.article-body table tr:last-child td {
  border-bottom: 0;
}

.article-body .article-table th,
.article-body table th {
  background: var(--color-forest);
  color: #fff;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .035em;
  line-height: 1.35;
  text-transform: uppercase;
}

.article-body .article-table tbody tr:nth-child(even),
.article-body table tbody tr:nth-child(even) {
  background: rgba(226, 228, 211, .42);
}

.article-body .article-table td:first-child,
.article-body table td:first-child {
  color: var(--color-forest);
  font-weight: 700;
}

.article-inline-media {
  margin: 1.7rem 0 2.4rem;
}

.article-inline-media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  background: #dfe5d7;
}

.article-inline-media figcaption {
  max-width: 680px;
  margin-top: .75rem;
  color: rgba(23, 49, 39, .62);
  font-size: .78rem;
  line-height: 1.55;
}

.article-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 3rem;
  align-items: center;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--article-shell-width));
  padding: clamp(2rem, 3.5vw, 3.25rem);
  margin: clamp(5rem, 9vw, 8rem) auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: var(--color-forest);
  color: #fffdf7;
}

.article-cta .eyebrow {
  color: #c8d5b8;
}

.article-cta h2 {
  max-width: 650px;
  font-family: var(--sans);
  font-size: clamp(1.75rem, 2.6vw, 2.65rem);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.08;
  color: #fffdf7;
}

.article-cta p:not(.eyebrow) {
  max-width: 720px;
  margin: 1.25rem 0 0;
  color: rgba(255, 253, 247, .76);
  line-height: 1.7;
}

.article-cta .button--light {
  border-color: #fffdf7;
  background: #fffdf7;
  color: var(--color-forest);
}

.article-cta .button--light:focus-visible {
  border-color: #dfe6c9;
  background: #dfe6c9;
  color: var(--color-forest);
}

@media (hover: hover) and (pointer: fine) {
  .article-cta .button--light:hover {
    border-color: #dfe6c9;
    background: #dfe6c9;
    color: var(--color-forest);
  }
}

.article-cta .button {
  white-space: nowrap;
}

.related-posts {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--article-shell-width));
  padding-top: clamp(5rem, 9vw, 8rem);
  margin-inline: auto;
}

.related-posts > .eyebrow {
  color: #6f8052;
}

.related-posts > h2 {
  margin-bottom: 2rem;
  color: var(--color-forest);
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3.65rem);
  font-weight: 650;
  letter-spacing: -.045em;
}

.article-back--bottom {
  width: fit-content;
  margin: 3rem auto clamp(2rem, 5vw, 4rem);
}

.single-post .site-footer--without-cta {
  margin-top: 0;
}

.single-post .site-footer__wave {
  background: #f8f4e9;
}

@media (max-width: 980px) {
  body.admin-bar .reading-progress {
    top: 46px;
  }

  .blog-feature {
    grid-template-columns: 1fr;
  }

  .blog-feature .blog-card__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-sidebar {
    position: static;
    order: -1;
    max-height: none;
    overflow: visible;
  }

  .article-toc {
    padding: 1rem 1.05rem;
    border: 1px solid rgba(18, 56, 43, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .48);
  }

  .article-toc__chevron {
    display: inline-block;
  }

  .article-toc__toggle[aria-expanded="true"] .article-toc__chevron {
    transform: rotate(180deg);
  }

  .article-toc ol[hidden] {
    display: none;
  }

  .article-cta {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .article-cta .button {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .blog-archive {
    width: calc(100% - 2.5rem);
    padding-top: .875rem;
  }

  .blog-filters {
    flex-wrap: nowrap;
    padding-bottom: .45rem;
    margin-right: -1.25rem;
    overflow-x: auto;
    scroll-padding-left: 1.25rem;
    scrollbar-width: none;
  }

  .blog-filters::-webkit-scrollbar {
    display: none;
  }

  .blog-filters a {
    flex: 0 0 auto;
  }

  .blog-feature {
    min-height: 0;
    border-radius: 16px;
  }

  .blog-feature .blog-card__content {
    padding: 1.55rem 1.35rem 1.4rem;
  }

  .blog-feature h2 {
    font-size: 1.75rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    border-radius: 14px;
  }

  .blog-article {
    padding-top: 8.75rem;
  }

  .article-hero,
  .article-layout,
  .article-cta,
  .related-posts {
    width: calc(100% - 2.5rem);
  }

  .article-back {
    margin-bottom: 1.35rem;
  }

  .article-hero h1 {
    font-size: clamp(2.45rem, 12.4vw, 3.6rem);
  }

  .article-hero__lead {
    font-size: 1.03rem;
  }

  .article-hero__media {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
  }

  .article-toc ol {
    margin-top: .9rem;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.78;
  }

  .article-body h2 {
    scroll-margin-top: 7.5rem;
    font-size: clamp(1.7rem, 8.2vw, 2.35rem);
  }

  .article-body .article-tip,
  .article-body .article-note {
    padding: 4rem 1.2rem 1.2rem;
  }

  .article-body .article-tip::before,
  .article-body .article-note::before {
    top: 1.1rem;
    left: 1.1rem;
  }

  .article-table-wrap {
    width: calc(100% + 1.25rem);
    margin-right: -1.25rem;
    border-radius: 12px 0 0 12px;
  }

  .article-body .article-table,
  .article-body table {
    min-width: 610px;
    white-space: normal;
  }

  .article-cta {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .article-cta h2 {
    font-size: clamp(2rem, 10.5vw, 3.25rem);
  }

  .related-posts {
    padding-top: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reading-progress span {
    transition: none;
  }
}
