.resources-page {
  padding-top: 0;
  background: #fffdf7;
}

.resources-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
  min-height: 455px;
  background: #eaf8f9;
}

.resources-hero-copy {
  align-self: center;
  padding: clamp(36px, 3vw, 52px) clamp(36px, 6vw, 116px) clamp(32px, 2.8vw, 44px);
}

.resources-eyebrow,
.latest-eyebrow {
  margin: 0;
  color: #b65631;
  font-size: clamp(.94rem, 1.08vw, 1.16rem);
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

.resources-rule,
.latest-rule {
  display: block;
  width: 70px;
  height: 4px;
  margin: 18px 0 22px;
  border-radius: 999px;
  background: #f0ba28;
}

.resources-hero h1 {
  margin: 0;
  color: #075f82;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 4.6vw, 5.15rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .98;
}

.resources-intro {
  max-width: 760px;
  margin: 24px 0 0;
  color: #587680;
  font-size: clamp(1.12rem, 1.5vw, 1.46rem);
  line-height: 1.42;
}

.resource-themes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.resource-theme {
  min-width: 0;
  text-align: center;
}

.resource-theme > span {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #075f82;
}

.resource-theme--aqua > span { background: #cceef2; }
.resource-theme--gold > span { background: #fff0be; }
.resource-theme--sage > span { background: #dcedd1; }

.resource-theme svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.7;
}

.resource-theme p {
  margin: 10px 0 0;
  color: #496772;
  font-size: 1rem;
  line-height: 1.25;
}

.resources-hero-image {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.resources-hero-image::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: clamp(70px, 9vw, 170px);
  background: linear-gradient(90deg, #eaf8f9 0%, rgba(234, 248, 249, .72) 34%, rgba(234, 248, 249, 0) 100%);
  pointer-events: none;
}

.resources-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.latest-resources {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 4vw, 68px) clamp(36px, 6vw, 116px) clamp(58px, 6vw, 100px);
  background: #fffaf1;
}

.latest-resources > :not(.latest-foliage) {
  position: relative;
  z-index: 2;
}

.latest-rule {
  margin-bottom: 18px;
}

.featured-article {
  display: grid;
  grid-template-columns: minmax(340px, .95fr) minmax(0, 1.65fr) minmax(170px, .42fr);
  gap: clamp(24px, 2.2vw, 40px);
  align-items: center;
  padding: 24px;
  border: 1px solid #e4ddcf;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(50, 76, 69, .05);
}

.featured-article-image {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.featured-article-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 493 / 241;
  object-fit: cover;
  transition: transform .25s ease;
}

.featured-article-image:hover img,
.featured-article-image:focus-visible img {
  transform: scale(1.02);
}

.featured-article-copy {
  min-width: 0;
}

.featured-article h2 {
  margin: 0;
  color: #075f82;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 2.3vw, 2.6rem);
  line-height: 1.05;
}

.featured-article h2 a {
  color: inherit;
  text-decoration: none;
}

.featured-article h2 a:hover,
.featured-article h2 a:focus-visible {
  text-decoration: underline;
  text-decoration-color: #f0ba28;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 0;
  margin: 16px 0 0;
  color: #587680;
  font-size: .96rem;
}

.featured-meta span + span::before {
  content: "|";
  margin: 0 13px;
  color: #9badb3;
}

.featured-article-copy > p {
  margin: 16px 0 0;
  color: #496772;
  font-size: 1.05rem;
  line-height: 1.5;
}

.featured-article-action {
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
}

.featured-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border-radius: 10px;
  padding: 13px 22px;
  color: #fff;
  background: #075f82;
  box-shadow: 0 8px 18px rgba(7, 95, 130, .14);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.featured-button:hover,
.featured-button:focus-visible {
  background: #064e6b;
}

.featured-button:focus-visible {
  outline: 3px solid rgba(240, 186, 40, .72);
  outline-offset: 3px;
}

.featured-button span {
  font-size: 1.4rem;
  line-height: 1;
}

.featured-article-action p {
  margin: 0;
  color: #147094;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.3;
}

.featured-article-action > span {
  width: 60px;
  height: 4px;
  border-radius: 999px;
  background: #f0ba28;
}

.latest-foliage {
  position: absolute;
  z-index: 1;
  bottom: -92px;
  left: -54px;
  width: 220px;
  height: 250px;
  opacity: .24;
  filter: blur(1.2px);
  transform: rotate(8deg);
  pointer-events: none;
}

.latest-foliage::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 98px;
  width: 6px;
  height: 230px;
  border-radius: 999px;
  background: #759f54;
  transform: rotate(-17deg);
}

.latest-foliage span {
  position: absolute;
  width: 56px;
  height: 108px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #4e833e, #a2c08a);
  transform-origin: bottom center;
}

.latest-foliage span:nth-child(1) { left: 38px; bottom: 30px; transform: rotate(-48deg); }
.latest-foliage span:nth-child(2) { left: 100px; bottom: 75px; transform: rotate(43deg) scale(.9); }
.latest-foliage span:nth-child(3) { left: 43px; bottom: 132px; transform: rotate(-43deg) scale(.72); }
.latest-foliage span:nth-child(4) { left: 105px; bottom: 168px; transform: rotate(40deg) scale(.6); }

@media (max-width: 1050px) {
  .resources-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  }

  .resources-hero h1 {
    font-size: clamp(3.1rem, 5.4vw, 4.5rem);
  }

  .featured-article {
    grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr);
  }

  .featured-article-action {
    grid-column: 1 / -1;
    grid-template-columns: auto auto 60px;
    justify-content: end;
    align-items: center;
  }
}

@media (max-width: 760px) {
  .resources-page {
    padding-top: 0;
  }

  .resources-hero {
    grid-template-columns: 1fr;
  }

  .resources-hero-copy {
    padding: 30px 18px 26px;
  }

  .resources-hero h1 {
    font-size: clamp(2.75rem, 12vw, 3.65rem);
  }

  .resources-intro {
    margin-top: 18px;
    font-size: 1.06rem;
  }

  .resource-themes {
    gap: 10px;
    margin-top: 18px;
  }

  .resource-theme > span {
    width: 62px;
    height: 62px;
  }

  .resource-theme svg {
    width: 35px;
    height: 35px;
  }

  .resource-theme p {
    font-size: .88rem;
  }

  .resources-hero-image {
    min-height: 230px;
  }

  .resources-hero-image::before {
    inset: 0 0 auto;
    width: auto;
    height: 56px;
    background: linear-gradient(180deg, #eaf8f9 0%, rgba(234, 248, 249, 0) 100%);
  }

  .latest-resources {
    padding: 38px 18px 50px;
  }

  .featured-article {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
  }

  .featured-article h2 {
    font-size: 2rem;
  }

  .featured-meta {
    display: grid;
    gap: 5px;
  }

  .featured-meta span + span::before {
    content: none;
  }

  .featured-article-action {
    grid-column: auto;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .featured-button {
    width: 100%;
  }

  .featured-article-action p {
    text-align: center;
  }

  .featured-article-action > span {
    justify-self: center;
  }


  .latest-foliage {
    left: -108px;
    opacity: .15;
  }
}

.article-library {
  position: relative;
  z-index: 1;
  margin-top: clamp(42px, 5vw, 70px);
}

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

.article-library-eyebrow {
  margin: 0 0 8px;
  color: #b65631;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-library > h2 {
  margin: 0 0 24px;
  color: #075f82;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
}

.article-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.library-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(7, 95, 130, .09);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(50, 76, 69, .05);
}

.library-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eaf8f9;
}

.library-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.library-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.library-card-category {
  align-self: flex-start;
  margin: 0 0 10px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #075f82;
  background: #eaf8f9;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.library-card-meta {
  margin: 0 0 9px;
  color: #607983;
  font-size: .85rem;
}

.library-card h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.16;
}

.library-card h3 a {
  color: #075f82;
  text-decoration: none;
}

.library-card h3 a:hover,
.library-card h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.library-card-summary {
  margin: 0;
  color: #496772;
  line-height: 1.55;
}

.library-card-read {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  margin-top: auto;
  padding-top: 20px;
  color: #075f82;
  font-weight: 800;
  text-decoration: none;
}

.library-card-read:hover,
.library-card-read:focus-visible {
  color: #b65631;
  text-decoration: underline;
  text-decoration-color: #f0ba28;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.library-card-read:focus-visible {
  outline: 3px solid rgba(240, 186, 40, .58);
  outline-offset: 4px;
}

.library-card-read span {
  font-size: 1.25rem;
  line-height: 1;
}

@media (max-width: 980px) {
  .article-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .article-library-grid {
    grid-template-columns: 1fr;
  }
}
