/* PITTSBURGHWORDS Build Step 016C card CTA + featured heading polish */

/* Make card "Open word" text links feel like the yellow pills above. */
.word-card > a,
.word-card a[href*="/words/"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 36px;
    margin-top: 14px;
    padding: 9px 14px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 999px;
    color: var(--ink);
    background: var(--gold);
    box-shadow: 0 8px 18px rgba(255, 184, 28, 0.22);
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1;
    text-decoration: none;
}

.word-card > a:hover,
.word-card a[href*="/words/"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(255, 184, 28, 0.28);
}

/* Give the Featured Words heading its own designed card before the grid. */
.word-list-section > .section-heading {
    position: relative;
    margin-bottom: clamp(18px, 3vw, 30px);
    padding: clamp(18px, 4vw, 34px);
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 184, 28, 0.18), transparent 32%),
        rgba(255, 250, 240, 0.78);
    box-shadow: 0 14px 44px rgba(0,0,0,0.07);
    overflow: hidden;
}

.word-list-section > .section-heading::after {
    content: "412";
    position: absolute;
    right: -0.06em;
    top: -0.18em;
    color: rgba(17, 17, 17, 0.032);
    font-size: clamp(6rem, 22vw, 15rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.12em;
    pointer-events: none;
}

.word-list-section > .section-heading .eyebrow,
.word-list-section > .section-heading h2,
.word-list-section > .section-heading p {
    position: relative;
    z-index: 1;
}

.word-list-section > .section-heading h2 {
    max-width: 820px;
    font-size: clamp(2.4rem, 8vw, 5.4rem);
    line-height: 0.88;
    letter-spacing: -0.08em;
    text-transform: uppercase;
}

.word-list-section > .section-heading p {
    max-width: 720px;
    color: var(--muted);
}

/* Keep the cards visually separate from the heading card. */
.word-grid {
    margin-top: 0;
}

/* Give cards enough internal spacing so the CTA does not feel crammed. */
.word-card {
    display: flex;
    flex-direction: column;
}

.word-card p {
    margin-bottom: 0;
}

.word-card blockquote {
    margin-bottom: 0;
}

.word-card > a {
    margin-top: auto;
}

/* Mobile polish. */
@media (max-width: 640px) {
    .word-list-section > .section-heading {
        padding: 18px 16px;
    }

    .word-list-section > .section-heading h2 {
        font-size: clamp(2.2rem, 13vw, 3.8rem);
    }

    .word-card > a,
    .word-card a[href*="/words/"] {
        min-height: 40px;
        padding: 10px 14px;
    }
}
