/* home.css — homepage typography and rhythm */

/* Single source of truth for the reading column. Uses rem (font-size
   independent) so the hero shortcodes — which render at hx:text-xl /
   hx:text-4xl — line up visually with body-font prose blocks. */
:root {
    --home-reading-width: 38rem;
}

/* Constrain and center the Hextra hero shortcodes. Loaded only on the
   homepage, so these class selectors don't leak elsewhere. */
h1.not-prose {
    width: 100%;
    max-width: var(--home-reading-width);
    margin: 1.5rem auto;
    text-align: left;
}

.home-hero-subtitle {
    max-width: var(--home-reading-width);
    margin: 0 auto 1.5rem;
}

.home-hero-subtitle p {
    font-size: 1.25rem;
    line-height: 1.5;
    color: #4b5563;
    text-align: left;
    margin: 0;
}

@media (prefers-color-scheme: dark) {
    .home-hero-subtitle p {
        color: #9ca3af;
    }
}

.home-prose {
    max-width: var(--home-reading-width);
    margin: 1.5rem auto;
    line-height: 1.65;
}

.home-prose p {
    margin: 0.75rem 0;
}

.home-prose strong {
    font-weight: 600;
}

.home-carousel {
    width: 100%;
    max-width: var(--home-reading-width);
    margin: 0 auto;
}

/* Stack the feature cards vertically at all breakpoints, constrained to the
   same reading width as the rest of the page. Overrides Hextra's responsive
   grid-cols utilities, so !important is intentional. */
.hextra-feature-grid {
    grid-template-columns: 1fr !important;
    max-width: var(--home-reading-width);
    margin: 1.5rem auto;
}

.home-clinician {
    margin: 3rem auto 1.5rem;
    padding: 2rem 1.75rem;
    border-radius: 12px;
    background: rgba(0, 123, 255, 0.05);
    border-left: 3px solid rgba(0, 123, 255, 0.45);
    max-width: var(--home-reading-width);
    line-height: 1.65;
}

.home-clinician h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.home-clinician p {
    margin: 0.75rem 0;
}

.home-clinician a {
    font-weight: 600;
}

@media (prefers-color-scheme: dark) {
    .home-clinician {
        background: rgba(255, 255, 255, 0.04);
        border-left-color: rgba(255, 255, 255, 0.3);
    }
}
