/* ==========================================================
   POST HERO (post-hero)
   Title, optional one-line intro and a vertical accent line at the
   top of every post and post type.

   Markup:
     <header class="post-hero">
         <div class="post-hero__accent"></div>
         <div class="post-hero__text">
             <h1>Title</h1>
             <p class="post-hero__intro">Short overview.</p>
         </div>
     </header>

   Alignment: the accent lines up with the cards' accent, and the title
   and intro line up with the text inside the cards, at every width.
   That comes from sharing tokens (card accent width, card padding,
   content inset), so change those tokens, not these numbers.

   Page-specific placement (Paperwork's sidebar layout, Tutorials'
   full-width layout) lives in those modules; everything else is here.
   ========================================================== */

.post-hero {
    display: flex;
    align-items: stretch;
    gap: var(--handbook-card-padding-x);
    max-width: 1180px;
    margin: 55px auto 50px;
    padding: 60px var(--handbook-content-inset) 8px;
    text-align: left;
}

.post-hero__accent {
    flex: 0 0 var(--handbook-card-accent-width);
    width: var(--handbook-card-accent-width);
    margin: -18px 0 -15px;
    background: var(--handbook-hero-accent);
    border-radius: 0;
}

.post-hero__text {
    max-width: 980px;
}

.post-hero h1 {
    max-width: 700px;
    margin: 0;
    color: var(--handbook-hero-title-color);
    font-family: var(--handbook-heading-font);
    font-size: 28pt;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: .95;
    text-transform: uppercase;
}

.post-hero .post-hero__intro {
    max-width: 400px;
    margin: 11px 0 0;
    color: var(--handbook-hero-intro-color);
    font-size: clamp(12px, 1.3vw, 14px);
    font-weight: 300;
    letter-spacing: .025em;
    line-height: 1.35;
    /* Generic page paragraph styles (article.page p) don't apply here. */
    padding: 0;
    background: none;
    border-radius: 0;
    font-family: 'Nunito', sans-serif;
}

@media (max-width: 800px) {

    .post-hero {
        max-width: none;
        margin: -50px 0 25px;
    }

    .post-hero__accent {
        margin: -10px 0;
    }

    .post-hero__text {
        width: 100%;
        max-width: 100%;
    }

    .post-hero h1 {
        max-width: 100%;
        font-size: clamp(22px, 8vw, 40px);
        letter-spacing: .04em;
        line-height: 1;
    }

    .post-hero .post-hero__intro {
        max-width: 100%;
        margin-top: 10px;
        font-size: clamp(10px, 6.5vw, 13.5px);
        line-height: 1.45;
    }
}


/* ----------------------------------------------------------
   Navigation pages (post-hero--menu)
   Production and Paperwork menus, FSUFILM Foundations. Their hero is
   written in each page's content as a page-menu-hero block;
   fsufilm_handbook_menu_hero() in functions.php turns it into this
   markup when the page is shown. The hero sits inside the page's
   narrow content column, so it has no side inset of its own.
   ---------------------------------------------------------- */

.post-hero.post-hero--menu {
    max-width: none;
    /* Puts the title and the first card at the same height as on posts.
       Padding, not margin: a margin here collapses into the page's. */
    margin: 0;
    padding: 60px 0 58px;
}

@media (max-width: 800px) {
    .post-hero.post-hero--menu {
        padding: 10px 0 33px;
    }
}

.post-hero__links {
    display: flex;
    gap: .75rem;
    align-items: center;
    margin-top: 14px;
}

.post-hero__links a {
    color: var(--handbook-gold-muted);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    text-decoration: underline;
    text-transform: uppercase;
    text-underline-offset: 2px;
}
