/* Articles styles. Mobile first; Bootstrap 5 breakpoints. */

/* Base: extra-small screens. */

.articles-hero {
  display: flex;
  align-items: center;
  border-bottom: 3px solid #ac854b;
  padding: 60px 0;
  min-height: 410px;
}

.articles-hero .page-heading {
  max-width: 980px;
}

.articles-hero :is(h1, :where(.title-level-1)) {
  font-size: 3rem;
}

.articles-hero:after {
  background: linear-gradient(90deg,#160b09ed 0%,#160b09b3 55%,#160b0940 100%);
}

.articles-directory {
  background: #faf9f6;
}

.article-collection>div {
  display: flex;
}

.article-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid #af8a50;
  background: #fff;
  transition: border-color .3s,box-shadow .3s;
}

.article-card-image {
  overflow: hidden;
}

.article-card-image img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform .6s;
  height: 280px;
}

.article-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 25px;
}

.article-card-body .eyebrow {
  font-size: .75rem;
  margin-bottom: 15px;
  letter-spacing: .13em;
}

.article-card :is(h2, :where(.title-level-2)) {
  line-height: 1.15;
  color: #571a28;
  margin-bottom: 18px;
  font-size: 2rem;
}

.article-card p {
  font-size: .9375rem;
  color: #706963;
  line-height: 1.8;
  margin-bottom: 24px;
}

.article-card .text-link {
  align-self: start;
  margin-top: auto;
}

.article-card:hover {
  border-color: #7e5b28;
  box-shadow: 0 14px 30px #33210c12;
}

.article-card:hover img {
  transform: scale(1.035);
}

.article-detail-section {
  background: #faf9f6;
}

.article-reading {
  max-width: 980px;
  margin: auto;
  border: 1px solid #cbb58d;
  background: #fff;
  padding: 30px 23px;
}

.article-lead {
  line-height: 1.9;
  border-left: 3px solid #b28b4e;
  color: #571a28;
  margin-bottom: 35px;
  font-size: 1.05rem;
  padding-left: 18px;
}

.article-reading-section {
  padding-top: 28px;
  border-top: 1px solid #ded4c2;
  margin-top: 30px;
}

.article-reading-section h2 {
  color: #571a28;
  margin-bottom: 20px;
  font-size: 2rem;
}

.article-reading-section p {
  font-size: 1rem;
  color: #615a54;
  line-height: 1.95;
  margin: 0;
}

.article-return {
  max-width: 980px;
  margin: 35px auto 0;
  text-align: center;
}

@media (min-width: 576px) {
  .articles-hero {
    display: flex;
    align-items: center;
    border-bottom: 3px solid #ac854b;
    min-height: 430px;
    padding: 60px 0;
  }

  .articles-hero :is(h1, :where(.title-level-1)) {
    font-size: clamp(3rem,5.1vw,5.2rem);
  }

  .article-card-body {
    display: flex;
    flex-direction: column;
    padding: 28px;
    flex: 1;
  }

  .article-card :is(h2, :where(.title-level-2)) {
    font-size: 2rem;
    line-height: 1.15;
    color: #571a28;
    margin-bottom: 18px;
  }

  .article-reading {
    max-width: 980px;
    margin: auto;
    border: 1px solid #cbb58d;
    background: #fff;
    padding: 35px 30px;
  }

  .article-lead {
    font-size: 1.15rem;
    line-height: 1.9;
    border-left: 3px solid #b28b4e;
    padding-left: 25px;
    color: #571a28;
    margin-bottom: 35px;
  }

  .article-reading-section h2 {
    font-size: 2.4rem;
    color: #571a28;
    margin-bottom: 20px;
  }
}

@media (min-width: 768px) {
  .articles-hero {
    min-height: 460px;
    display: flex;
    align-items: center;
    padding: 70px 0;
    border-bottom: 3px solid #ac854b;
  }

  .article-card-image img {
    display: block;
    width: 100%;
    height: 255px;
    object-fit: cover;
    object-position: center 30%;
    transition: transform .6s;
  }

  .article-reading {
    max-width: 980px;
    margin: auto;
    padding: 45px 50px;
    border: 1px solid #cbb58d;
    background: #fff;
  }
}

@media (prefers-reduced-motion:reduce) {
  .article-card:hover img {
    transform: none;
  }
}
