/* Resources hub and notes.
   Tokens, type, and chrome stay in the shared files. This sheet only
   sets the editorial layout: a hairline card grid, a reading column,
   and the closing links. */

.res-hero h1 {
  max-width: 16em;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.res-hero .lede {
  max-width: 58ch;
  font-size: var(--t-18);
  line-height: 1.55;
}

.res-crumb {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: var(--t-11);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.res-crumb::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--hairline);
  display: inline-block;
  flex: 0 0 28px;
}

.res-crumb a {
  color: inherit;
  text-decoration: none;
}

.res-crumb a:hover { color: var(--white); }

.section.res-index {
  padding-top: 48px;
  padding-bottom: 72px;
}

.res-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.res-grid li { margin: 0; min-width: 0; display: flex; }

.res-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 100%;
  padding: 28px 24px 24px;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--motion-duration, 340ms) var(--motion-ease, ease-out), box-shadow var(--motion-duration, 340ms) var(--motion-ease, ease-out);
}
.res-card:hover {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.res-card:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: -2px;
  border-radius: 0;
}

.res-kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: var(--t-11);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.res-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: var(--t-22);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--white);
}

.res-card p {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-15);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-primary);
}

.res-more {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--font-body);
  font-size: var(--t-14);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-bright);
  text-decoration: underline;
  text-decoration-color: rgba(150, 175, 220, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.res-card:hover .res-more { text-decoration-color: var(--text-secondary); }

.section.res-article { padding-top: 8px; padding-bottom: 28px; }

.res-prose { max-width: 66ch; }

.res-prose h2 {
  margin: 36px 0 12px;
  font-family: var(--font-display);
  font-size: var(--t-24);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--white);
}

.res-prose h2:first-child { margin-top: 0; }

.res-prose p,
.res-prose li {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-16);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
}

.res-prose p { margin-bottom: 16px; }

.res-prose ul {
  margin: 0 0 16px;
  padding: 0 0 0 1.15em;
}

.res-prose li { margin: 0 0 8px; }
.res-prose li:last-child { margin-bottom: 0; }

.res-prose a {
  color: var(--text-bright);
  text-decoration-line: underline;
  text-decoration-color: rgba(150, 175, 220, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.res-prose a:hover {
  color: var(--white);
  text-decoration-color: var(--text-secondary);
}

.res-related {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  max-width: 66ch;
}

.res-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.res-related li { margin: 0; }

.res-related a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 0;
  font-family: var(--font-body);
  font-size: var(--t-15);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-bright);
  text-decoration: none;
}

.res-related a:hover { color: var(--white); }

.res-note {
  margin: 28px 0 0;
  max-width: 66ch;
  font-family: var(--font-mono);
  font-size: var(--t-11);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* Three columns below the desktop bar put the third card against the window
   edge and cut the title. Two columns until the nav is the desktop row. */
@media (max-width: 1199px) {
  .res-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .res-grid { grid-template-columns: 1fr; }
  .res-card { padding: 24px 20px 20px; }
  .res-hero h1 { max-width: none; }
}
