.home-resources {
  margin-block: clamp(2rem, 5vw, 4rem);
  scroll-margin-top: 1rem;
}

.home-resources h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
}

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

.home-ged h2 { margin-bottom: 1rem; }
.home-ged h2 a { text-decoration: none; }
.home-ged h2 a:is(:hover, :focus-visible) { text-decoration: underline; }
@media (min-width: 57.01rem) {
  .ged-subjects { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.resource-grid a {
  --icon-face: #d9effb;
  --icon-rim: #9dbfd5;
  --card-tint: #f4faff;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid #d6e0e7;
  border-radius: 1rem;
  background: linear-gradient(125deg, var(--card-tint), white 80%);
  box-shadow: 0 2px 0 #dce3e9, 0 6px 15px -10px #25394a52;
  text-decoration: none;
}

.resource-grid a:nth-child(even) {
  --icon-face: #f6d9eb;
  --icon-rim: #d1a4c0;
  --card-tint: #fff6fb;
}

.resource-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--icon-rim);
  border-radius: .9rem;
  background: linear-gradient(155deg, #fff 0, var(--icon-face) 65%);
  box-shadow: inset 0 2px 0 #fff, 0 3px 0 var(--icon-rim), 0 7px 9px -6px #49415366;
}

.resource-icon img {
  width: 1.85rem;
  height: 1.85rem;
  filter: drop-shadow(0 1px 0 #fff);
}

.resource-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.resource-copy strong, .resource-copy small { display: block; }
.resource-copy strong { font: 620 1.02rem/1.35 var(--app-font); }
.resource-copy small { margin-top: .3rem; color: var(--app-muted); font: 400 .89rem/1.5 var(--app-font); }

@media (max-width: 57rem) {
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 38rem) {
  .resource-grid { gap: .7rem; }
  .resource-grid a { flex-direction: column; align-items: flex-start; gap: .85rem; padding: .95rem .85rem; }
  .resource-icon { width: 2.55rem; height: 2.55rem; border-radius: .78rem; }
  .resource-icon img { width: 1.6rem; height: 1.6rem; }
  .resource-copy strong { font-size: 1rem; }
}

@media (max-width: 21rem) {
  .resource-grid { grid-template-columns: minmax(0, 1fr); }
  .resource-grid a { flex-direction: row; align-items: center; }
}

@media (hover: hover) {
  .resource-grid a:hover { border-color: var(--icon-rim); box-shadow: 0 3px 0 var(--icon-rim), 0 9px 16px -10px #31435655; }
}

@media (prefers-reduced-motion: no-preference) {
  .resource-grid a { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
  @media (hover: hover) {
    .resource-grid a:hover { transform: translateY(-2px); }
  }
  .resource-grid a:active { transform: translateY(1px); }
}
