.expertise-page {
  background: #f7f5f1;
  color: #171411;
  overflow-x: clip;
}

.expertise-page .site-header {
  background: #fff;
}

.expertise-hero {
  width: 100%;
  overflow: hidden;
  background: #332b25;
}

.expertise-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.article-toolbar {
  min-height: 166px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-top: 32px;
}

.article-toolbar .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 19px 0 0;
  margin: 0;
  color: #655043;
  font-size: 0.8125rem;
}

.article-toolbar .breadcrumb a {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: inherit;
}

.article-toolbar .breadcrumb svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.article-search {
  width: min(824px, 52%);
  height: 61px;
  display: flex;
  background: #fff;
  border: 1px solid #e6e1da;
}

.article-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 28px;
  color: #2a241f;
  font: inherit;
  font-size: 0.9375rem;
}

.article-search input::placeholder {
  color: #777069;
}

.article-search button {
  width: 72px;
  border: 0;
  background: #655043;
  color: #fff;
  cursor: pointer;
  transition: background-color .25s ease;
}

.article-search button:hover,
.article-search button:focus-visible {
  background: #80685a;
}

.article-search svg,
.share-button svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.featured-article {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(0, 840px);
  gap: 60px;
  align-items: start;
  min-height: 550px;
}

.featured-copy {
  padding-top: 52px;
}

.featured-copy h1 {
  margin: 0 0 16px;
  max-width: 650px;
  font-size: clamp(1.85rem, 2vw, 2.35rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.featured-copy > p {
  max-width: 650px;
  margin: 0;
  color: #635a53;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.read-more {
  width: 224px;
  height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 23px;
  background: #655043;
  color: #fff;
  font-size: 0.8125rem;
  transition: background-color .25s ease, transform .25s ease;
}

.read-more:hover,
.read-more:focus-visible {
  background: #80685a;
  transform: translateY(-2px);
}

.featured-image {
  display: block;
  width: 100%;
  aspect-ratio: 840 / 451;
  object-fit: cover;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #655043;
  font-size: 0.75rem;
}

.article-meta span + span::before {
  content: "•";
  margin-right: 18px;
  color: #b3a69b;
}

.featured-meta {
  max-width: 650px;
  justify-content: space-between;
  margin-top: 80px;
  padding-top: 22px;
  border-top: 1px solid #d8d0c8;
}

.featured-meta > div {
  display: flex;
}

.share-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #655043;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}

.share-button:hover,
.share-button:focus-visible,
.share-button.copied {
  color: #fff;
  background: #655043;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 66px;
  row-gap: 78px;
  scroll-margin-top: 30px;
}

.article-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-image-link {
  display: block;
  overflow: hidden;
}

.card-image-link img {
  display: block;
  width: 100%;
  aspect-ratio: 517 / 303;
  object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
}

.article-card:hover .card-image-link img {
  transform: translateY(-5px);
  filter: brightness(1.03);
}

.article-card h2 {
  margin: 19px 0 12px;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.35;
}

.article-card h2 a {
  color: inherit;
  transition: color .2s ease;
}

.article-card h2 a:hover,
.article-card h2 a:focus-visible {
  color: #80685a;
}

.article-card > p {
  min-height: 48px;
  margin: 0 0 24px;
  color: #635a53;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.article-card .article-meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #d8d0c8;
}

.article-pagination {
  min-height: 336px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 23px;
  padding-top: 116px;
}

.article-pagination button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #51473f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.article-pagination .pagination-next {
  position: relative;
  border-color: transparent;
  background: transparent;
  color: #655043;
}

.article-pagination .pagination-next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid #655043;
  border-right: 1.5px solid #655043;
  transform: translate(-65%, -50%) rotate(45deg);
}

.article-pagination button:hover,
.article-pagination button:focus-visible,
.article-pagination button.active {
  border-color: #655043;
  background: #655043;
  color: #fff;
}

.article-pagination .pagination-next:hover,
.article-pagination .pagination-next:focus-visible {
  border-color: transparent;
  background: transparent;
  color: #80685a;
}

.article-pagination .pagination-next:hover::before,
.article-pagination .pagination-next:focus-visible::before {
  border-color: #80685a;
}

@media (max-width: 1500px) {
  .featured-article {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 44px;
  }

  .articles-grid {
    column-gap: 42px;
  }
}

@media (max-width: 1024px) {
  .article-toolbar {
    min-height: auto;
    padding-top: 26px;
    padding-bottom: 56px;
  }

  .article-search {
    width: min(560px, 64%);
  }

  .featured-article {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 80px;
  }

  .featured-copy {
    padding-top: 0;
  }

  .featured-meta {
    margin-top: 48px;
  }

  .featured-image {
    grid-row: 1;
  }

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

@media (max-width: 680px) {
  .expertise-hero img {
    width: 150%;
    max-width: none;
    margin-left: -25%;
  }

  .article-toolbar {
    display: grid;
    gap: 22px;
    padding-bottom: 44px;
  }

  .article-toolbar .breadcrumb {
    padding-top: 0;
  }

  .article-search {
    width: 100%;
    height: 54px;
  }

  .featured-copy h1 {
    font-size: 1.75rem;
  }

  .featured-meta {
    align-items: flex-end;
    margin-top: 40px;
  }

  .featured-meta > div,
  .article-card .article-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .article-meta span + span::before {
    display: none;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    row-gap: 56px;
  }

  .article-card > p {
    min-height: 0;
  }

  .article-pagination {
    min-height: 230px;
    gap: 15px;
    padding-top: 72px;
  }

  .article-pagination button {
    width: 42px;
    height: 42px;
    font-size: .9375rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-image-link img,
  .read-more {
    transition: none;
  }
}
