:root {
  color-scheme: dark;
  --page-background: #100e13;
  --section-background: #302735;
  --card-background: #211a27;
  --text-muted: #d6cdd9;
  --accent: #ed32bc;
  --accent-text: #f3a0df;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page-background);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
h1, h2, h3 { text-wrap: balance; }

.skip {
  position: absolute;
  top: -100px;
  padding: 10px;
  background: #fff;
  color: #100e13;
}
.skip:focus { top: 10px; z-index: 30; }
.review {
  padding: 9px 20px;
  background: #22101e;
  color: #e9cce2;
  text-align: center;
  letter-spacing: .04em;
}
.review strong { color: #fff; }
.wrap {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}
.resource-nav {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #353035;
}
.resource-nav .aifp-logo {
  position: relative;
  display: block;
  width: 263px;
  height: 35px;
  flex-shrink: 0;
  overflow: hidden;
}
.resource-nav .aifp-logo img {
  position: absolute;
  width: 326px;
  height: auto;
  left: -34px;
  top: -50px;
}
.resource-nav .navlinks { display: flex; align-items: center; gap: 30px; }
.resource-nav .navlinks a { text-decoration: none; }
.resource-nav .navlinks a:hover,
.resource-nav .navlinks a[aria-current="page"] { color: var(--accent-text); }

.resource-hero {
  padding-block: clamp(50px, 7vw, 90px) 34px;
  text-align: center;
}
.resource-hero h1 {
  max-width: 21ch;
  margin: 12px auto 18px;
}
.eyebrow, .concept-label {
  color: var(--accent-text);
  font-weight: 700;
  text-transform: uppercase;
}
.eyebrow { margin: 0; }
.resource-hero .section-intro, .topic-heading .section-intro {
  margin: 0 auto;
  color: var(--text-muted);
  text-wrap: pretty;
}

.interest-nav {
  margin-top: clamp(24px, 4vw, 40px);
}
.interest-nav p {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: var(--type-label);
}
.interest-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.interest-nav a, .button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid #9b8099;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
}
.interest-nav a { font-size: var(--type-note); }
.interest-nav a:hover, .button:hover {
  background: #b0038930;
  border-color: var(--accent);
}

.topic-section {
  padding-block: clamp(50px, 7vw, 94px);
  background-color: var(--section-background);
  background-image: radial-gradient(circle, #e9c9e221 .8px, transparent 1px);
  background-size: 26px 26px;
  scroll-margin-top: 12px;
}
.topic-section:nth-of-type(even) { background-color: #18141c; }
.topic-heading {
  margin: 0 auto clamp(24px, 4vw, 38px);
  text-align: center;
}
.topic-heading h2 { margin: 0 0 14px; }
.resource-grid {
  --card-gap: clamp(18px, 3vw, 34px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--card-gap);
}
.resource-card {
  display: flex;
  flex: 0 1 calc((100% - 2 * var(--card-gap)) / 3);
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 26px 22px;
  border: 1px solid #715a7980;
  border-radius: 20px;
  background: var(--card-background);
  box-shadow: 0 16px 36px #0002;
  text-align: center;
}
.guide-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  background: #141016;
  box-shadow: 0 16px 35px #0005;
}
.guide-cover--post { object-fit: contain; }
.resource-card .concept-label {
  margin: 20px 0 8px;
  font-size: var(--type-note);
}
.resource-card h3 {
  margin: 0 0 12px;
  text-transform: uppercase;
}
.resource-card p:not(.concept-label) {
  margin: 0 0 22px;
  color: var(--text-muted);
  text-wrap: pretty;
}
.resource-card .button { margin-top: auto; font-size: var(--type-note); }

.resource-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px 36px;
  padding-block: clamp(36px, 6vw, 64px);
}
.resource-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
}
.resource-cta p { margin: 0; color: var(--text-muted); }
.resource-cta .button {
  flex-shrink: 0;
  border-color: var(--accent);
  background: var(--accent);
  color: #100e13;
}
.resource-cta .button:hover {
  border-color: #f77cd8;
  background: #f77cd8;
}

@media (max-width: 1000px) {
  .resource-card {
    flex-basis: calc((100% - var(--card-gap)) / 2);
    max-width: 25rem;
  }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .resource-nav .aifp-logo { width: 210px; height: 29px; }
  .resource-nav .aifp-logo img { width: 261px; left: -27px; top: -40px; }
  .resource-card { flex-basis: 100%; }
  .resource-cta { flex-direction: column; text-align: center; }
}
@media (max-width: 420px) {
  .resource-card { padding: 18px; }
}
