/* ═══════════════════════════════════════════
   Houston Guides — listing components (v4 bone)
   The catalog cards for the Guides hub, in the landing design system:
   warm bone ground, warm-ink type, Hanken. Page frame (body, nav, footer,
   buttons) comes from site-tokens.css + landing.css + subpage.css; this file
   carries ONLY the hub's own grids and cards.
   ═══════════════════════════════════════════ */

/* ── Layout + intro ───────────────────────────────────────────────────────── */
.layout {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.content-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 18px;
}

.layout h1 {
  font-weight: 340;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink-strong);
  text-wrap: balance;
  margin-bottom: 22px;
}

.lead {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.55;
  color: var(--ink-muted);
  margin-bottom: 48px;
  max-width: 660px;
  text-wrap: pretty;
}

.layout h2 {
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 27px);
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink-strong);
  margin-top: 64px;
  margin-bottom: 8px;
  scroll-margin-top: 96px;
}

.section-lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 24px;
  max-width: 660px;
}

/* ── Workshop guide cards (with thumbnail) ────────────────────────────────── */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 8px;
}
@media (max-width: 760px) {
  .guide-grid { grid-template-columns: 1fr; }
}

.guide-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-elegant) var(--ease-standard),
    transform var(--dur-fast) var(--ease-entrance);
}
.guide-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px -32px rgba(40, 36, 28, 0.28);
  transform: translateY(-2px);
}

.guide-card .thumb {
  aspect-ratio: 2.1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.guide-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.guide-card .pad {
  padding: 20px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.guide-card .kicker,
.guide-group .intro .kicker,
.surface-card .surface-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-subtle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.guide-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-strong);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.guide-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.guide-card .metarow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 12.5px;
  color: var(--ink-subtle);
  font-weight: 500;
}
.guide-card .metarow .go {
  margin-left: auto;
  font-weight: 600;
  color: var(--ink-strong);
}

/* ── Grouped guide (one guide, several chapters) ──────────────────────────── */
.guide-group {
  display: grid;
  grid-template-columns: 5fr 4fr;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
  margin: 24px 0 8px;
}
@media (max-width: 760px) {
  .guide-group { grid-template-columns: 1fr; }
}
.guide-group .intro {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-group .intro h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-strong);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.guide-group .intro p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.guide-group .intro .start {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-strong);
}
.guide-group .chapters {
  list-style: none;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  gap: 2px;
}
@media (max-width: 760px) {
  .guide-group .chapters { border-left: none; border-top: 1px solid var(--line); }
}
.guide-group .chapters a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-muted);
  transition: background var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard);
}
.guide-group .chapters a:hover {
  background: var(--panel);
  color: var(--ink-strong);
}
.guide-group .chapters .num {
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  min-width: 18px;
}
.guide-group .chapters .arrow {
  margin-left: auto;
  color: var(--ink-subtle);
}

/* ── Link cards (changelog / external resources) ──────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 8px;
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
}
.surface-card {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: border-color var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-elegant) var(--ease-standard),
    transform var(--dur-fast) var(--ease-entrance);
}
.surface-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px -32px rgba(40, 36, 28, 0.28);
  transform: translateY(-2px);
}
.surface-card .surface-kicker { margin-bottom: 8px; }
.surface-card .surface-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-strong);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.surface-card .surface-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* ── Coming soon cards ────────────────────────────────────────────────────── */
.coming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 8px;
}
@media (max-width: 900px) {
  .coming-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .coming-grid { grid-template-columns: 1fr; }
}
.coming-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.coming-card .surface-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-subtle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.coming-card .surface-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-strong);
  letter-spacing: -0.01em;
}
.coming-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.coming-card .skl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.coming-card .skl span {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--panel-raised);
  border-radius: 9999px;
  padding: 3.5px 10px;
}
