.resources-site {
  background: #f8f9fa;
  color: #0a0a0a;
}

.resources-site main {
  overflow: clip;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 10px 14px;
  background: #fff;
  color: #111;
  border: 2px solid #111;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.resources-eyebrow,
.resources-kicker {
  margin: 0 0 16px;
  color: #61666c;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.resources-hero {
  padding: clamp(150px, 16vw, 220px) 0 clamp(72px, 9vw, 124px);
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.16), transparent 28%),
    linear-gradient(135deg, #090909 0%, #181818 58%, #252525 100%);
  color: #fff;
}

.resources-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: end;
}

.resources-hero .resources-eyebrow {
  color: #bfc3c8;
}

.resources-hero h1,
.category-hero h1,
.article-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.resources-hero__grid > div > p:last-child {
  max-width: 720px;
  margin: 28px 0 0;
  color: #c7c9cc;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

.resource-search {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
}

.resource-search label {
  display: block;
  margin-bottom: 12px;
  font-size: .85rem;
  font-weight: 700;
}

.resource-search__control {
  display: flex;
  gap: 8px;
}

.resource-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 10px;
  background: #fff;
  color: #111;
  font: inherit;
}

.resource-search button {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.resource-search__status {
  min-height: 1.25em;
  margin: 10px 0 0;
  color: #d9dadd;
  font-size: .82rem;
}

.resource-topics,
.resource-feature,
.resource-library,
.related-resources {
  padding: clamp(64px, 8vw, 112px) 0;
}

.resource-topics {
  padding-bottom: 36px;
}

.resource-topics--category {
  padding-top: 42px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.section-heading > p,
.section-heading > a {
  margin: 0;
  color: #62666c;
  font-size: .9rem;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-list a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid #d9dbde;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.topic-list a:hover,
.topic-list a:focus-visible,
.topic-list a[aria-current="page"] {
  border-color: #111;
  background: #111;
  color: #fff;
}

.resource-feature {
  padding-top: 48px;
}

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

.resource-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.035);
}

.resource-card[hidden] {
  display: none !important;
}

.resource-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #151515;
  text-decoration: none;
}

.resource-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}

.resource-card:hover .resource-card__media img {
  transform: scale(1.025);
}

.resource-card__placeholder {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.08), transparent 45%),
    repeating-linear-gradient(135deg, transparent 0 30px, rgba(255,255,255,.035) 30px 31px),
    #121212;
  color: #cfd1d4;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.resource-card__placeholder span {
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: .02em;
}

.resource-card__body {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 26px;
}

.resource-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 18px;
  color: #62666c;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.resource-card__meta a {
  color: #111;
}

.resource-card h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.16;
  letter-spacing: -.03em;
}

.resource-card h2 a {
  color: inherit;
  text-decoration: none;
}

.resource-card__body > p {
  margin: 16px 0 28px;
  color: #62666c;
  line-height: 1.7;
}

.resource-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: auto;
  font-size: .84rem;
}

.resource-card__footer a {
  color: #111;
  font-weight: 800;
}

.resource-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
}

.resource-card--featured .resource-card__media {
  min-height: 440px;
  aspect-ratio: auto;
}

.resource-card--featured .resource-card__body {
  justify-content: center;
  padding: clamp(32px, 5vw, 72px);
}

.resource-card--featured h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.resource-empty {
  grid-column: 1 / -1;
  padding: 48px;
  border: 1px dashed #c9ccd0;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.resource-empty--compact {
  padding: 24px;
  text-align: left;
}

.resource-empty h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.resource-empty p {
  margin: 0 0 24px;
  color: #62666c;
}

.category-hero,
.article-hero {
  padding: clamp(140px, 15vw, 210px) 0 clamp(72px, 8vw, 110px);
  background: #111;
  color: #fff;
}

.category-hero__inner > p:last-child {
  max-width: 720px;
  margin: 28px 0 0;
  color: #c7c9cc;
  font-size: 1.1rem;
  line-height: 1.7;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
  color: #9da1a7;
  font-size: .82rem;
}

.breadcrumbs a {
  color: inherit;
}

.article-hero__inner {
  max-width: 1040px;
}

.article-hero h1 {
  max-width: 1000px;
  font-size: clamp(2.5rem, 6.8vw, 6.4rem);
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 24px;
  color: #c7c9cc;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-hero__excerpt {
  max-width: 820px;
  margin: 30px 0 36px;
  color: #d4d6d9;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.65;
}

.article-byline {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: #b9bdc2;
  font-size: .88rem;
}

.article-byline > div,
.article-byline > div:last-child {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
}

.article-byline strong {
  color: #fff;
}

.article-hero-image {
  margin-top: clamp(48px, 7vw, 90px);
}

.article-hero-image img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  border-radius: 18px;
}

.article-hero-image p {
  color: #62666c;
  font-size: .82rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: clamp(48px, 8vw, 110px);
  justify-content: center;
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(72px, 9vw, 120px);
}

.article-toc__sticky {
  position: sticky;
  top: 120px;
}

.article-toc h2 {
  margin: 0 0 18px;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article-toc nav {
  display: grid;
  gap: 10px;
  padding-left: 16px;
  border-left: 1px solid #d8dade;
}

.article-toc a {
  color: #62666c;
  font-size: .85rem;
  line-height: 1.5;
  text-decoration: none;
}

.article-toc__h3 {
  padding-left: 14px;
}

.article-body {
  color: #26282b;
  font-size: 1.0625rem;
  line-height: 1.85;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body h2 {
  margin: 2.8em 0 .8em;
  color: #111;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  scroll-margin-top: 110px;
}

.article-body h3 {
  margin: 2.2em 0 .7em;
  color: #111;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.25;
  scroll-margin-top: 110px;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
  margin: 0 0 1.4em;
}

.article-body a {
  color: #111;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-body blockquote {
  padding: 10px 0 10px 28px;
  border-left: 3px solid #111;
  color: #42464b;
  font-size: 1.18rem;
}

.article-figure {
  margin: 48px 0;
}

.article-figure img {
  width: 100%;
  border-radius: 14px;
}

.article-figure figcaption {
  margin-top: 10px;
  color: #62666c;
  font-size: .82rem;
}

.code-block {
  margin: 36px 0;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  color: #f3f4f5;
}

.code-block__language {
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #aeb2b7;
  font-size: .75rem;
  text-transform: uppercase;
}

.code-block pre {
  overflow-x: auto;
  margin: 0;
  padding: 22px;
  font-size: .9rem;
}

.article-callout,
.author-box,
.article-cta {
  margin: 42px 0;
  padding: 28px;
  border: 1px solid #d8dade;
  border-radius: 14px;
  background: #fff;
}

.article-callout h3,
.author-box h2,
.article-cta h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.article-callout p,
.author-box p,
.article-cta p {
  margin: 0;
}

.article-callout--warning {
  border-color: #b9801b;
}

.article-callout--success {
  border-color: #2d7651;
}

.article-cta {
  background: #111;
  color: #fff;
}

.article-cta .resources-kicker {
  color: #bfc3c8;
}

.article-cta > p:not(.resources-kicker) {
  margin-bottom: 22px;
  color: #c7c9cc;
}

.article-cta .btn {
  background: #fff;
  color: #111;
}

.author-box__role {
  color: #62666c;
  font-weight: 700;
}

.article-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-bottom: clamp(72px, 9vw, 120px);
}

.article-pagination a {
  display: grid;
  gap: 8px;
  padding: 26px;
  border: 1px solid #d8dade;
  border-radius: 14px;
  background: #fff;
  color: #111;
  text-decoration: none;
}

.article-pagination a:last-child {
  text-align: right;
}

.article-pagination span {
  color: #62666c;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.related-resources {
  background: #eceef0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  .resources-hero__grid,
  .resource-card--featured {
    grid-template-columns: 1fr;
  }

  .resource-card--featured .resource-card__media {
    min-height: 360px;
  }

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

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

  .article-toc__sticky {
    position: static;
  }
}

@media (max-width: 620px) {
  .resources-hero,
  .category-hero,
  .article-hero {
    padding-top: 124px;
  }

  .resource-search__control,
  .section-heading,
  .article-byline {
    align-items: stretch;
    flex-direction: column;
  }

  .resource-search__control {
    display: grid;
  }

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

  .resource-card--featured .resource-card__media {
    min-height: 240px;
  }

  .resource-card__body,
  .resource-card--featured .resource-card__body {
    padding: 24px;
  }

  .resource-empty {
    padding: 28px 20px;
  }

  .article-pagination {
    grid-template-columns: 1fr;
  }

  .article-pagination a:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resource-card__media img {
    transition: none;
  }
}
