/* Resources index (/resources/) — the card grid that replaced the nav dropdown.
   Built on golden.css tokens and the shared .res-* chrome in resources.css.
   Only this page loads it. Golden Hour rules: honey is structural (never text),
   clay is the text-safe interactive accent. No emoji. */

/* ---------- page width ----------
   Wider than the 1000px .res-wrap the tools use: at three columns the
   screenshots need the extra room to stay legible. Loaded after
   resources.css, so this wins on equal specificity. */
.rx-wrap { max-width: 1200px; }

/* ---------- grid ---------- */
.rx-grid {
  display: grid;
  gap: 28px;
  margin-top: 40px;
}
@media (min-width: 680px) {
  .rx-grid { grid-template-columns: 1fr 1fr; gap: 32px 26px; }
}
@media (min-width: 1000px) {
  .rx-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
}

/* ---------- card ---------- */
.rx-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.rx-card:hover,
.rx-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--honey);
  box-shadow: 0 14px 30px rgba(22, 20, 18, 0.11);
}

/* thumbnail — a real screenshot of the tool, 16:10 */
.rx-shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: 1px solid var(--hair);
}
.rx-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}
.rx-card:hover .rx-shot img { transform: scale(1.02); }

.rx-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.rx-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
}
.rx-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 9px;
}
.rx-desc {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 9px;
}
.rx-go {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--clay);
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rx-go svg { flex: none; transition: transform 0.18s ease; }
.rx-card:hover .rx-go svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .rx-card, .rx-shot img, .rx-go svg { transition: none; }
  .rx-card:hover { transform: none; }
  .rx-card:hover .rx-shot img { transform: none; }
  .rx-card:hover .rx-go svg { transform: none; }
}
