/**
 * @file
 * Publication Cover Component
 *
 * Book/paper landing header. Left: cover image sitting tilted inside
 * a soft "shelf" (Skins muted-2 surface). Right: eyebrow badge, title,
 * subtitle, author line, oversized download button. Right column is
 * fully centered.
 *
 * All colours/radii/shadows/fonts come from Skins tokens — no hardcoded
 * palette. Re-skins automatically.
 *
 * USAGE:
 *   <section class="publication-cover">
 *     <div class="publication-cover__shelf">
 *       <img class="publication-cover__image" src="…" alt="…">
 *     </div>
 *     <div class="publication-cover__info">
 *       <span class="pub-eyebrow">
 *         <span class="pub-eyebrow__badge">PDF</span>
 *         <span class="pub-eyebrow__label">brand identity framework</span>
 *       </span>
 *       <h1 class="publication-cover__title">Title</h1>
 *       <p class="publication-cover__subtitle">Subtitle.</p>
 *       <p class="publication-cover__by">By Author, Affiliation</p>
 *       <a class="button button--hero button--hero-lg" href="…">Download</a>
 *     </div>
 *   </section>
 */

.publication-cover {
    display: grid;
    gap: clamp(1.5rem, 4vw, 4rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem) 0;
}

/* ==========================================================================
   LEFT — the "shelf": soft coloured box that holds the tilted cover
   ========================================================================== */

.publication-cover__shelf {
    position: relative;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--radius-xl, 1.5rem);
    background: var(--surface-muted-2,
        linear-gradient(135deg, #E9F8F4 0%, #C0E8DE 50%, #A1DACC 100%));
    isolation: isolate;
    overflow: hidden;
}

.publication-cover__shelf::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        60% 60% at 15% 12%,
        rgba(255, 255, 255, 0.55) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}

.publication-cover__shelf::after {
    content: "";
    position: absolute;
    inset: auto -8% -20% 30%;
    height: 60%;
    background: radial-gradient(
        50% 60% at 50% 50%,
        color-mix(in srgb, var(--color-primary) 25%, transparent) 0%,
        transparent 70%
    );
    filter: blur(24px);
    pointer-events: none;
    z-index: 0;
}

.publication-cover__image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md, 0.5rem);
    transform: rotate(-3deg);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.22),
        0 12px 24px rgba(0, 0, 0, 0.14);
    transition:
        transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.publication-cover:hover .publication-cover__image {
    transform: rotate(-1deg) translateY(-6px);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.28),
        0 18px 40px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   RIGHT — the intro block, fully centered
   ========================================================================== */

.publication-cover__info {
    text-align: center;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.publication-cover__info > * { margin: 0; }

.publication-cover__title {
    font-family: var(--font-family-heading, inherit);
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--color-ink);
    max-width: 22ch;
}

.publication-cover__subtitle {
    font-family: var(--font-family-base, inherit);
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--color-text-secondary);
    max-width: 44ch;
}

.publication-cover__by {
    font-family: var(--font-family-base, inherit);
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--color-text-secondary);
    letter-spacing: 0.01em;
}

/* Oversized download button — sizing bumped roughly 2× via .button--hero-lg
   (defined in button.css). Adds vertical breathing room around it. */
.publication-cover__info .button--hero {
    margin-top: 0.5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .publication-cover {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .publication-cover__shelf { padding: 1.5rem; }
    .publication-cover__image { transform: rotate(-2deg); }
    .publication-cover:hover .publication-cover__image { transform: rotate(-1deg); }
    .publication-cover__title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
}
