/**
 * Page Hero — smaller hero banner for subpages
 */

/* Remove top padding so the hero is flush with the header */
body:has(.page-hero) .site-main {
    padding-block-start: 0;
}

.page-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: clamp(22rem, 55vh, 36rem);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient overlay: body bg at bottom → transparent at top (matches main hero) */
.page-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, var(--color-bg) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.3) 100%);
    pointer-events: none;
}

.page-hero__content {
    position: relative;
    z-index: 2;
    max-width: 44rem;
    padding: var(--space-2xl) var(--gutter);
    text-align: center;
}

.page-hero__title {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: var(--size-display-xl);
    font-weight: 400;
    line-height: var(--leading-display);
    color: #3d2e1e;
    letter-spacing: -0.01em;
}

.page-hero__description {
    margin-top: var(--space-m);
    font-size: var(--size-step-0);
    font-weight: 600;
    font-style: italic;
    line-height: var(--leading-relaxed);
    color: #3d2e1e;
}

/* ---- Page-load entrance ---- */

@keyframes page-hero-enter {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
}

.page-hero__title,
.page-hero__description {
    animation: page-hero-enter 1.1s cubic-bezier(0.4, 0, 0, 1) both;
}

.page-hero__title       { animation-delay: 50ms; }
.page-hero__description { animation-delay: 250ms; }

@media (prefers-reduced-motion: reduce) {
    .page-hero__title,
    .page-hero__description {
        animation: none;
    }
}
