/* previews/index.css
   Styles for the preview gallery index only. Uses the site's theme variables
   so this page matches the rest of the site rather than the demos it lists. */

.pv-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.2rem 1.25rem 4rem;
}

.pv-h2 {
    font-size: clamp(1.35rem, 2.6vw, 1.7rem);
    letter-spacing: -.02em;
    margin-bottom: .7rem;
    color: var(--heading-color);
}

.pv-lede {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-color);
    max-width: 72ch;
    margin-bottom: .9rem;
}

.pv-note {
    font-size: .88rem;
    line-height: 1.7;
    color: var(--footer-text-color, #6b7785);
    border-left: 2px solid var(--border-color);
    padding-left: .9rem;
    max-width: 68ch;
    margin-bottom: 2rem;
}

.pv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    padding: .4rem 0 2.6rem;
}

.pv-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 11px;
    padding: 1.15rem 1.25rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pv-card:hover {
    border-color: var(--link-color);
    box-shadow: 0 12px 28px -18px rgba(22, 34, 52, .55);
    transform: translateY(-2px);
    text-decoration: none;
}

.pv-idx {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: .7rem;
    color: var(--footer-text-color, #a3afbb);
    margin-bottom: .4rem;
}

.pv-card h3 {
    font-size: 1.02rem;
    line-height: 1.35;
    margin: 0 0 .4rem;
    color: var(--heading-color);
    letter-spacing: -.01em;
}

.pv-card p {
    font-size: .86rem;
    line-height: 1.62;
    color: var(--text-color);
    margin: 0 0 .9rem;
}

.pv-go {
    margin-top: auto;
    font-size: .78rem;
    font-weight: 600;
    color: var(--link-color);
}

.pv-outro {
    border-top: 1px solid var(--border-color);
    padding-top: 1.8rem;
    max-width: 72ch;
}
.pv-outro h2 {
    font-size: 1.15rem;
    margin-bottom: .8rem;
    color: var(--heading-color);
}
.pv-outro p {
    font-size: .95rem;
    line-height: 1.78;
    color: var(--text-color);
    margin-bottom: .85rem;
}

@media (max-width: 640px) {
    .pv-wrap { padding: 1.6rem 1rem 3rem; }
    .pv-grid { gap: .8rem; }
}

.pv-crosslink {
    margin: 0 0 2rem;
    font-size: .9rem;
}
.pv-crosslink a {
    display: inline-block;
    padding: .55rem 1.05rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--heading-color);
    text-decoration: none;
    font-weight: 600;
}
.pv-crosslink a:hover { border-color: var(--link-color); color: var(--link-color); }
