/* ============================================================
   resources.css — /resources hub + spoke placeholder pages
   Page-specific (NOT in bundle.css). Loaded only by the
   resources pages via their own <link>. Uses the global tokens
   from tokens.css (already in bundle.css).
   ============================================================ */

/* —— Intro / mission (sits below the hero, above the guide grid).
   Two columns on desktop: copy + the crew photo. —— */
.res-intro {
  /* No bottom padding — the gap to the guide library comes solely from
     .res-library's top padding, so the two paper sections read as one
     clean transition instead of a double-padded void. */
  padding: var(--section-y) 0 0;
  background: var(--paper);
}
.res-intro-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.res-intro-copy h2 {
  margin-top: 14px;
  max-width: 18ch;
}
.res-intro-copy h2 em { font-style: italic; color: var(--gold-deep); }
.res-intro-copy p {
  color: var(--ink-mute);
  font-size: 17px;
  line-height: 1.6;
  margin-top: 18px;
  max-width: 54ch;
}
.res-intro-figure {
  margin: 0;
}
.res-intro-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink-line);
}

/* —— Guide library —— */
.res-library {
  padding: 64px 0 var(--section-y);
  background: var(--paper);
}

/* A category cluster (heading + its cards) */
.res-group { margin-top: 56px; }
.res-group:first-child { margin-top: 0; }
.res-group-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--ink-line);
}
.res-group-head h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 460;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.res-group-head .count {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  font-weight: 600;
  text-transform: uppercase;
}

.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* A single guide card (the whole card is a link) */
.res-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink-line);
  padding: 26px 26px 22px;
  min-height: 196px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.res-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 14px 30px -18px rgba(26,22,18,0.45);
}
.res-card-tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 14px;
}
.res-card h4 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 460;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.res-card h4 em { font-style: italic; color: var(--rust); }
.res-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.res-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.res-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.res-card-cta .arrow {
  font-family: var(--display);
  color: var(--ink-mute);
  transition: transform .2s ease, color .2s ease;
}
.res-card:hover .res-card-cta { color: var(--rust); }
.res-card:hover .res-card-cta .arrow { transform: translateX(4px); color: var(--rust); }
.res-card-read {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* Status pill — flags a guide that's still being written (staging only;
   remove the .is-draft modifier when the spoke goes live). */
.res-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 2px;
}
.res-card.is-draft {
  border-style: dashed;
  border-color: var(--ink-line);
}
.res-card.is-draft .res-pill {
  background: var(--cream-deep);
  color: var(--ink-mute);
  border: 1px solid var(--ink-line);
}
.res-card.is-live .res-pill {
  background: rgba(86,125,70,0.12);
  color: #4d6b3f;
}

/* —— Authority note (why these guides are trustworthy) —— */
.res-authority {
  padding: var(--section-y) 0;
  background: var(--cream);
  border-top: 1px solid var(--ink-line);
}
.res-authority-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.res-authority-head h2 { margin-top: 14px; max-width: 16ch; }
.res-authority-head h2 em { font-style: italic; color: var(--gold-deep); }
.res-authority-head p {
  color: var(--ink-mute);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 18px;
  max-width: 36ch;
}
.res-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}
.res-point h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 460;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.res-point h3 .res-point-mark {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 16px;
}
.res-point p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-mute);
}

/* ============================================================
   Spoke placeholder ("in progress") pages
   ============================================================ */
.res-stub {
  background: var(--paper);
  padding: 96px 0 var(--section-y);
}
.res-stub-inner {
  max-width: 60ch;
}
.res-stub .crumbs { color: var(--ink-mute); }
.res-stub .crumbs a { color: var(--ink-mute); }
.res-stub-badge {
  display: inline-block;
  margin: 22px 0 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  background: var(--cream-deep);
  border: 1px solid var(--ink-line);
  padding: 6px 12px;
}
.res-stub h1 {
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 460;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--ink);
}
.res-stub h1 em { font-style: italic; color: var(--rust); }
.res-stub-dek {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-mute);
  margin-top: 20px;
}
.res-stub-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.res-stub-back {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--ink-line);
  font-size: 14px;
  color: var(--ink-mute);
}
.res-stub-back a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .res-intro-inner { grid-template-columns: 1fr; gap: 32px; }
  .res-authority-inner { grid-template-columns: 1fr; gap: 36px; }
  .res-points { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .res-grid { grid-template-columns: 1fr; gap: 16px; }
  .res-group-head h3 { font-size: 21px; }
  .res-card h4 { font-size: 20px; }
}
