/* ============================================================
Subpage chrome — shared header / footer for inner pages
(about.html · course.html). Brand-faithful: floating chrome
with a back square + А|Л wordmark, sticky on scroll.
Reuses ui.jsx primitives (Label, Pill, IconButton).
============================================================ */
/* thin geometric А|Л monogram (matches the logo) */
function SubMonogram({ size = 22, color = "var(--ink)" }) {
const st = { fontFamily: "var(--font-display)", fontWeight: 300, fontSize: size, lineHeight: 1,
letterSpacing: "-0.01em", color };
return (
А
Л
);
}
/* fixed chrome: back square + monogram (left) · primary CTA (right) */
function SubHeader({ cta, ctaHref = "enroll.html" }) {
const { t } = useT();
const [solid, setSolid] = React.useState(false);
React.useEffect(() => {
const onScroll = () => setSolid(window.scrollY > 24);
window.addEventListener("scroll", onScroll, { passive: true });
onScroll();
return () => window.removeEventListener("scroll", onScroll);
}, []);
return (