/* ============================================================
   Thought Pattern AI - Resources index
   A scannable list of documents, articles, and open source.
   Chrome lives in site.css. Borrows the card idiom from the
   home page, laid out as full-width rows rather than a grid.
   ============================================================ */

/* -------- Page head -------------------------------------- */
.res-hero {
  max-width: 924px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 88px) var(--tp-space-8) clamp(32px, 5vw, 56px);
}
.res-hero-inner {
  max-width: 660px;
}
.res-title {
  font-family: var(--tp-font-display);
  font-weight: var(--tp-fw-regular);
  letter-spacing: var(--tp-ls-display);
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--tp-fg);
  margin: 0 0 var(--tp-space-4);
}
.res-lede {
  font-family: var(--tp-font-serif);
  font-size: var(--tp-fs-lg);
  line-height: var(--tp-lh-body);
  color: var(--tp-fg-body);
  margin: 0;
}

/* -------- Groups ----------------------------------------- */
.res-group {
  max-width: 924px;
  margin: 0 auto;
  padding: 0 var(--tp-space-8) clamp(40px, 6vw, 72px);
  scroll-margin-top: 88px;
}
.res-group-head {
  display: flex;
  align-items: baseline;
  gap: var(--tp-space-5);
  border-top: 1px solid var(--tp-border);
  padding-top: var(--tp-space-6);
  margin-bottom: var(--tp-space-6);
}
.res-group-title {
  font-family: var(--tp-font-display);
  font-weight: var(--tp-fw-regular);
  letter-spacing: var(--tp-ls-display);
  font-size: var(--tp-fs-2xl);
  line-height: var(--tp-lh-snug);
  color: var(--tp-fg);
  margin: 0;
}
.res-group-note {
  font-family: var(--tp-font-mono);
  font-size: var(--tp-fs-xs);
  letter-spacing: var(--tp-ls-mono);
  text-transform: uppercase;
  color: var(--tp-fg-muted);
  margin: 0;
}

/* -------- Items ------------------------------------------ */
/* The corner marks the home-page cards use; home.css is not loaded here. */
.res-item .corner {
  position: absolute;
  pointer-events: none;
  width: 12px;
  height: 12px;
  border-color: var(--tp-rule);
}
.res-item .corner.tl {
  top: 10px;
  left: 10px;
  border-top: 1px solid;
  border-left: 1px solid;
}
.res-item .corner.br {
  bottom: 10px;
  right: 10px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

.res-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--tp-space-5);
  margin: 0;
  padding: 0;
}
.res-item {
  position: relative;
  padding: var(--tp-space-8);
  background: var(--tp-bg-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-md);
  transition: border-color var(--tp-duration-base) var(--tp-ease-out);
}
.res-item:hover {
  border-color: var(--tp-border-active);
}
.res-meta {
  font-family: var(--tp-font-mono);
  font-size: var(--tp-fs-xs);
  letter-spacing: var(--tp-ls-mono);
  text-transform: uppercase;
  color: var(--tp-yellow-deep);
  margin: 0 0 var(--tp-space-4);
}
.res-item-title {
  font-family: var(--tp-font-display);
  font-weight: var(--tp-fw-regular);
  letter-spacing: var(--tp-ls-display);
  font-size: var(--tp-fs-xl);
  line-height: var(--tp-lh-snug);
  color: var(--tp-fg);
  margin: 0 0 var(--tp-space-3);
}
.res-blurb {
  font-family: var(--tp-font-serif);
  font-size: var(--tp-fs-md);
  line-height: var(--tp-lh-body);
  color: var(--tp-fg-body);
  margin: 0 0 var(--tp-space-6);
}

/* The whole row is the target; the link text is the affordance. */
.res-action {
  font-family: var(--tp-font-mono);
  font-size: var(--tp-fs-sm);
  letter-spacing: 0.06em;
  color: var(--tp-yellow);
  text-decoration: none;
}
.res-action::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--tp-radius-md);
}
.res-action:hover {
  color: var(--tp-yellow-hi);
}
.res-action span {
  transition: margin var(--tp-duration-fast) var(--tp-ease-out);
}
.res-item:hover .res-action span {
  margin-left: 6px;
}
.res-action:focus-visible::after {
  outline: 2px solid var(--tp-yellow);
  outline-offset: 2px;
}

/* -------- Responsive ------------------------------------- */
@media (max-width: 560px) {
  .res-hero,
  .res-group {
    padding-left: var(--tp-space-5);
    padding-right: var(--tp-space-5);
  }
  .res-item {
    padding: var(--tp-space-6);
  }
  .res-group-head {
    flex-direction: column;
    gap: var(--tp-space-2);
  }
}
