/* CADENCE. Composed from the Field Notes component library.
   Page-scoped layout only: hero, method grid, package cards, and the
   spacing between library components. Tokens only, no new color. */

/* Hero */
.cd-hero { padding-top: clamp(var(--sp-7), 5vw, var(--sp-9)); }
.cd-hero h1 { max-width: 18ch; }
.cd-lede {
  font-family: var(--font-display); font-size: var(--fs-lead); line-height: 1.45;
  color: var(--ink); max-width: 58ch; margin-top: var(--sp-5); text-wrap: pretty;
}
.cd-sub { color: var(--ink-soft); max-width: 62ch; margin-top: var(--sp-4); text-wrap: pretty; }
.cd-hero-ctas { margin-top: var(--sp-6); }
.cd-idband { margin-top: var(--sp-8); }

/* Repository contents */
.cd-prose { max-width: 66ch; }

/* Method grid */
.cd-method .card { display: flex; flex-direction: column; gap: var(--sp-2); }
.cd-method .m-title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; color: var(--ink); }
.cd-method .card p { font-size: var(--fs-small); color: var(--muted); line-height: 1.55; }
.cd-connect { margin-top: var(--sp-7); max-width: 66ch; }
.cd-connect h3 { margin-bottom: var(--sp-3); }
.cd-connect p { color: var(--ink-soft); }

/* Condition cards */
.cd-conditions .fc-desc { flex: none; }

/* Package cards */
.cd-pkgs { align-items: stretch; }
.cd-pkg { display: flex; flex-direction: column; gap: var(--sp-2); }
.cd-pkg .pkg-step {
  font-family: var(--font-body); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--clay);
}
.cd-pkg .pkg-name { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; color: var(--ink); }
.cd-pkg .pkg-line { font-size: var(--fs-small); color: var(--ink-soft); }
.cd-pkg ul { list-style: none; display: grid; gap: var(--sp-2); margin-top: var(--sp-2); }
.cd-pkg li {
  font-size: var(--fs-small); color: var(--muted); line-height: 1.5;
  padding-left: 18px; position: relative;
}
.cd-pkg li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--field);
}
.cd-pkg li strong { color: var(--ink); }

/* Scope */
.cd-scope { margin-top: var(--sp-8); }
.cd-scope h3 { margin-bottom: var(--sp-3); }
.cd-scope > p { color: var(--ink-soft); max-width: 68ch; margin-bottom: var(--sp-5); }
.cd-price-note { margin-top: var(--sp-5); color: var(--ink-soft); max-width: 66ch; }

/* Tables. Column widths keep short cells from wrapping every row. */
.cd-table { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-5) var(--sp-6); }
.cd-table .table-plain th:nth-child(1) { width: 26%; }
.cd-table .table-plain th:nth-child(2):not(:last-child) { width: 30%; }
.cd-table-note { margin-top: var(--sp-5); color: var(--ink-soft); max-width: 66ch; }

/* Engagement steps */
.cd-steps { max-width: 70ch; }

/* The keeper role, on the field band */
.cd-role { max-width: 66ch; }
.cd-role > * + * { margin-top: var(--sp-4); }
.band-field .cd-role strong { color: var(--paper); }

/* Fit list inside prose */
.page-cadence .prose ul { list-style: none; padding-left: 0; }
.page-cadence .prose li { padding-left: 20px; position: relative; }
.page-cadence .prose li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--clay);
}

/* CTA sits in its own band, so the band's own padding carries it */
.cd-cta { padding-top: clamp(var(--sp-7), 5vw, var(--sp-8)); }

@media (max-width: 900px) {
  .cd-conditions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .cd-table { padding: var(--sp-4) var(--sp-5); }
}
