/* ============================================================
 * user_ui — Page hero copy.
 * ============================================================
 *
 * The hero's title and lead line, as the Price List shows them, shared
 * by the pages built on that hero: the Price List
 * (price_list/price_list.html) and the item page (item/item_page.html).
 * Linked per page through each owning template's `extra_css` block, not
 * the base cascade — only those pages pay for it.
 *
 * Classes:
 *   - .page-hero         the hero section; paints no background of its
 *                        own (the shared hero band of
 *                        shared/decorations.css shows through). Its
 *                        padding is the page's: each page spaces its
 *                        hero for what follows it, under its own class.
 *   - .page-hero-copy    the title and lead's column, kept clear of the
 *                        shared hero mascot (shared/decorations.css)
 *                        while the mascot sits beside the copy; from
 *                        760px down the mascot drops into flow below
 *                        the copy, which then takes the full width
 *   - .page-hero-title   the page's H1; long names wrap
 *   - .page-hero-lead    the lead line under it
 *
 * Colours and type come from shared/tokens.css, so both themes work
 * unchanged.
 *
 * Located at ui/user/static/user_ui/css/shared/page_hero.css
 * ============================================================ */

.page-hero {
    position: relative;
    isolation: isolate;
    z-index: 1;
}
.page-hero .wrap {
    position: relative;
}
.page-hero-copy {
    max-width: 680px;
    position: relative;
    z-index: 2;
}
.page-hero-title {
    font-family: var(--font-head);
    font-size: clamp(36px, 4.6vw, 60px);
    line-height: 1;
    font-weight: 700;
    margin: 0 0 18px;
    letter-spacing: -.005em;
    color: var(--text);
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.page-hero-lead {
    color: var(--text-dim);
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.55;
    margin: 0 0 38px;
    max-width: 560px;
    font-weight: 500;
}

@media (max-width: 860px) {
    .page-hero-copy { max-width: none; padding-right: 160px; }
}

@media (max-width: 760px) {
    .page-hero-copy { padding-right: 0; }
    .page-hero-title { font-size: 34px; margin-bottom: 14px; }
    .page-hero-lead { font-size: 15px; }
}
