/* ============================================
   FREE RESOURCES PAGE
   Reuses .hp tokens & .program-card chrome from styles.css.
   ============================================ */

.hp.fr-root {
  --hp-section-accent: var(--ec-lilac);
  background: var(--hp-bg);
  color: var(--hp-fg);
}

/* HERO ─────────────────────────────────────────── */
.hp .fr-hero {
  padding: 112px 0 48px;
  text-align: center;
}
.hp .fr-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1.5px solid var(--hp-section-accent);
  border-radius: 999px;
  color: var(--hp-section-accent);
  font-family: var(--ec-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hp .fr-hero-headline {
  font-family: var(--ec-sans);
  font-weight: 900;
  font-size: calc(128px * var(--hp-typescale));
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 32px;
  text-wrap: balance;
}
.hp .fr-hero-script {
  font-size: 1.05em;
  color: var(--hp-section-accent);
  line-height: 0.9;
  display: inline-block;
  transform: translateY(0.05em);
}
.hp .fr-hero-lede {
  max-width: 740px;
  margin: 0 auto;
  font-family: var(--ec-sans);
  font-weight: 500;
  font-size: calc(22px * var(--hp-typescale));
  line-height: 1.5;
  opacity: 0.85;
  text-wrap: pretty;
}

/* RESOURCE GRID ───────────────────────────────── */
.hp .fr-grid-section { padding: 32px 0 112px; }
.hp .fr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 28px;
}
.hp .fr-card { height: 100%; }
.hp .fr-card .program-blurb { flex: 1 1 auto; }
.hp .fr-card-title {
  font-size: calc(34px * var(--hp-typescale));
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}

/* TABLET ───────────────────────────────────────── */
@container hp (min-width: 761px) and (max-width: 1040px) {
  .hp .fr-hero-headline { font-size: calc(96px * var(--hp-typescale)); }
}

/* MOBILE ───────────────────────────────────────── */
@container hp (max-width: 760px) {
  .hp .fr-hero { padding: 56px 0 32px; }
  .hp .fr-hero-pill { font-size: 11px; padding: 7px 14px; margin-bottom: 20px; }
  .hp .fr-hero-headline { font-size: calc(56px * var(--hp-typescale)); margin-bottom: 20px; }
  .hp .fr-hero-lede { font-size: 17px; }
  .hp .fr-grid-section { padding: 16px 0 64px; }
  .hp .fr-card-title { font-size: calc(28px * var(--hp-typescale)) !important; }
  .hp .fr-card .program-cta { width: 100%; justify-content: center; }
}
