.resources-page {
  background:
    radial-gradient(circle at 8% 12%, rgba(60, 255, 177, 0.28), transparent 30%),
    radial-gradient(circle at 92% 24%, rgba(255, 247, 16, 0.26), transparent 26%),
    #f5f5f2;
}

.resources-header {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content-wide));
  min-height: 118px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  margin: 0 auto;
}

.resources-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
}

.resources-brand__mark {
  width: 72px;
  height: 72px;
  border-width: 5px;
}

.resources-brand__mark img {
  inset: 11px;
  width: 40px;
  height: 40px;
}

.resources-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
  font-size: 19px;
  font-weight: 400;
}

.resources-nav a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color 180ms ease;
}

.resources-nav a:hover,
.resources-nav a:focus-visible {
  text-decoration-color: currentColor;
}

.resources-main {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content-wide));
  margin: 0 auto;
  padding-bottom: 128px;
}

.resources-hero {
  position: relative;
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 54px;
  align-items: end;
  overflow: hidden;
  padding: 70px 64px;
  border: 4px solid var(--ink);
  border-radius: 46px;
  background: var(--yellow);
}

.resources-hero::before,
.resources-hero::after {
  position: absolute;
  border: 4px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.resources-hero::before {
  top: -170px;
  right: -120px;
  width: 390px;
  height: 390px;
  background: var(--pink);
}

.resources-hero::after {
  top: 84px;
  right: 210px;
  width: 122px;
  height: 122px;
  background: var(--brand-color);
}

.resources-hero > p {
  position: absolute;
  z-index: 1;
  top: 52px;
  left: 64px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resources-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  font-size: clamp(62px, 8vw, 116px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.resources-hero__intro {
  position: relative;
  z-index: 1;
  padding: 26px;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
}

.resources-hero__intro p {
  margin: 0;
}

.resources-section {
  padding: 112px 0 0;
  scroll-margin-top: 30px;
}

.resources-section__heading {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-bottom: 42px;
}

.resources-section__heading > p {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--brand-color);
  font-weight: 700;
}

.resources-section:nth-of-type(3) .resources-section__heading > p {
  background: var(--orange);
}

.resources-section:nth-of-type(4) .resources-section__heading > p {
  background: var(--pink);
}

.resources-section:nth-of-type(5) .resources-section__heading > p {
  background: var(--yellow);
}

.resources-section__heading h2 {
  margin: 0 0 14px;
  color: var(--heading-accent);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05em;
}

.resources-section__heading div > p {
  max-width: 760px;
  margin: 0;
  color: #494949;
  font-size: 17px;
  line-height: 1.55;
}

.resource-grid {
  display: grid;
  gap: 18px;
}

.resource-grid--works {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-card,
.mapping-card {
  border: 3px solid var(--ink);
  background: var(--paper);
}

.resource-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 28px;
}

.resource-card:nth-child(1) {
  background: #e6dcff;
}

.resource-card:nth-child(2) {
  background: #d7fbe7;
}

.resource-card:nth-child(3) {
  background: #fff4bb;
}

.resource-card__creator {
  margin: 0 0 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-card h3 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.resource-card > p:not(.resource-card__creator, .resource-card__links) {
  margin: 0;
  line-height: 1.55;
}

.resource-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: auto 0 0;
  padding-top: 28px;
}

.resource-card__links a,
.visual-credit__links a {
  padding: 8px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
}

.resource-card__links a::after,
.visual-credit__links a::after {
  margin-left: 5px;
  content: "↗";
}

.resource-card__links a:hover,
.resource-card__links a:focus-visible,
.visual-credit__links a:hover,
.visual-credit__links a:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

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

.mapping-card {
  min-height: 210px;
  padding: 28px;
  border-radius: 24px;
}

.mapping-card h3 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.2;
}

.mapping-card p {
  margin: 0;
  color: #414141;
  line-height: 1.6;
}

.image-credit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: image-credit;
}

.image-credit-list li {
  position: relative;
  min-height: 170px;
  padding: 26px 26px 26px 76px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  counter-increment: image-credit;
}

.image-credit-list li::before {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  content: counter(image-credit, decimal-leading-zero);
}

.image-credit-list span {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
}

.image-credit-list p {
  margin: 0;
  color: #414141;
  line-height: 1.55;
}

.image-credit-list a {
  color: #1738c8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.visual-credit-grid:empty {
  display: none;
}

.visual-credit {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  overflow: hidden;
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 30px;
  background: var(--paper);
}

.visual-credit > img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.visual-credit figcaption {
  align-self: center;
  padding: 38px;
}

.visual-credit h3 {
  margin: 0 0 20px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.visual-credit figcaption > p {
  margin: 0;
  color: #414141;
  line-height: 1.6;
}

.visual-credit__links {
  display: flex;
  gap: 10px;
  margin-top: 24px !important;
}

.resources-pending {
  max-width: 720px;
  margin: 20px 0 0;
  padding: 17px 20px;
  border-left: 5px solid var(--orange);
  background: rgba(255, 255, 255, 0.76);
  color: #414141;
  font-size: 14px;
  line-height: 1.5;
}

.resources-footer .site-footer__inner {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content-wide));
}

.resources-footer .site-footer__links {
  transform: none;
}

@media (max-width: 900px) {
  .resources-hero {
    min-height: 650px;
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 64px 42px 42px;
  }

  .resources-hero > p {
    top: 38px;
    left: 42px;
  }

  .resources-hero h1 {
    align-self: end;
    padding-top: 120px;
  }

  .resource-grid--works {
    grid-template-columns: 1fr;
  }

  .resource-card {
    min-height: 250px;
  }
}

@media (max-width: 700px) {
  .resources-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 18px 0 24px;
  }

  .resources-brand {
    gap: 9px;
    font-size: 13px;
  }

  .resources-brand__mark {
    width: 54px;
    height: 54px;
    border-width: 4px;
  }

  .resources-brand__mark img {
    inset: 9px;
    width: 28px;
    height: 28px;
  }

  .resources-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 18px;
    font-size: 16px;
  }

  .resources-language {
    grid-column: 2;
    grid-row: 1;
  }

  .resources-main {
    width: calc(100% - 28px);
    padding-bottom: 82px;
  }

  .resources-hero {
    min-height: 570px;
    gap: 30px;
    padding: 46px 20px 20px;
    border-width: 3px;
    border-radius: 30px;
  }

  .resources-hero::before {
    top: -104px;
    right: -100px;
    width: 250px;
    height: 250px;
    border-width: 3px;
  }

  .resources-hero::after {
    top: 110px;
    right: 118px;
    width: 76px;
    height: 76px;
    border-width: 3px;
  }

  .resources-hero > p {
    top: 24px;
    left: 20px;
    max-width: 210px;
    font-size: 10px;
  }

  .resources-hero h1 {
    padding-top: 145px;
    font-size: clamp(48px, 15vw, 68px);
  }

  .resources-hero__intro {
    padding: 19px;
    border-width: 2px;
    border-radius: 19px;
    font-size: 14px;
  }

  .resources-section {
    padding-top: 76px;
  }

  .resources-section__heading {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 28px;
  }

  .resources-section__heading > p {
    width: 42px;
    height: 42px;
    border-width: 2px;
    font-size: 12px;
  }

  .resources-section__heading h2 {
    margin-bottom: 10px;
    font-size: 36px;
  }

  .resources-section__heading div > p {
    font-size: 14px;
  }

  .resource-grid--mapping,
  .image-credit-list {
    grid-template-columns: 1fr;
  }

  .resource-card,
  .mapping-card {
    padding: 22px;
  }

  .resource-card h3 {
    font-size: 27px;
  }

  .image-credit-list li {
    min-height: 0;
    padding: 22px 20px 22px 66px;
  }

  .image-credit-list li::before {
    top: 20px;
    left: 18px;
  }

  .visual-credit {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .visual-credit > img {
    min-height: 220px;
    max-height: 260px;
  }

  .visual-credit figcaption {
    padding: 24px;
  }

  .visual-credit h3 {
    font-size: 28px;
  }
}
