:root {
  --ink: #0f2a33;
  --paper: #f5f4ef;
  --muted: #65777c;
  --line: #d8ddda;
  --shadow: 0 16px 45px rgba(7, 28, 35, .10);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Space Grotesk", sans-serif; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, 92%); margin: auto; }
.lesson-hero { height: 290px; overflow: hidden; padding: 18px 0 14px; color: #fff; background-image: linear-gradient(180deg, rgba(15,42,51,.34), rgba(15,42,51,.86)), var(--hero-image); background-position: center, var(--hero-position); background-size: cover; background-repeat: no-repeat; }
.lesson-hero .shell { height: 100%; display: flex; flex-direction: column; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { display: block; width: 176px; height: auto; }
.hero-copy { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 0 4px; }
.eyebrow { margin: 0 0 8px; color: #fff; text-transform: uppercase; letter-spacing: .17em; font-size: 12px; font-weight: 700; }
h1 { max-width: 900px; margin: 0; color: #fff; font-family: "Instrument Serif", serif; font-size: clamp(52px, 7vw, 88px); font-weight: 400; line-height: .95; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.providers { padding: 58px 0 72px; }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-family: "Instrument Serif", serif; font-size: clamp(38px, 5vw, 58px); font-weight: 400; line-height: 1; }
.provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.provider-grid:has(> :only-child) { grid-template-columns: minmax(0, 520px); }
.provider-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.provider-image { width: 100%; height: 180px; object-fit: cover; object-position: center 55%; }
.provider-body { padding: 24px; display: flex; min-height: 300px; flex-direction: column; }
.provider-body h2 { margin: 0 0 10px; font-family: "Instrument Serif", serif; font-size: 32px; font-weight: 400; line-height: 1; }
.provider-body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.provider-link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: auto; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; }
.empty-state { max-width: 620px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.empty-state p { margin: 0; color: var(--muted); line-height: 1.6; }
.site-footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto 24px; padding: 34px 24px; border-radius: 30px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--ink); color: #fff; text-align: center; font-size: 14px; line-height: 1.5; }
.site-footer a { color: #fff; }

@media (max-width: 900px) {
  .provider-grid { grid-template-columns: 1fr; }
  .provider-body { min-height: 0; }
  .provider-link { margin-top: 22px; }
}

@media (max-width: 640px) {
  .lesson-hero { height: 250px; padding: 14px 0 10px; }
  .hero-logo img { width: 138px; }
  .hero-copy { padding: 12px 0 3px; }
  .providers { padding: 40px 0 52px; }
  .provider-image { height: 160px; }
  .site-footer { width: calc(100% - 24px); padding: 30px 18px; border-radius: 24px; }
}
