/* Quiet Music: blog listing and articles.
   Loaded after site.css (tokens, header, menu, footer) and products.css (kicker, lead, cards). */

/* ---------- blog listing ---------- */
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-card .card-media {
    aspect-ratio: 16 / 9;
}

.post-card .card-media img {
    object-fit: cover;
}

.post-card .card-title {
    font-size: 1.25rem;
}

.post-meta {
    color: #8fa4b5;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ---------- article ---------- */
.article {
    width: min(760px, 100%);
    margin: 0 auto;
}

.article h1 {
    margin: 0 0 0.8rem;
    color: var(--accent-color);
    font-size: clamp(1.9rem, 4.4vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: 0.3px;
}

.article .dek {
    margin: 0;
    color: #c4d0dc;
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    line-height: 1.6;
}

.article-meta {
    margin: 1.1rem 0 0;
    padding-bottom: 1.3rem;
    border-bottom: 1px solid var(--line);
    color: #8fa4b5;
    font-size: 0.88rem;
}

.article-cover {
    margin: 1.6rem 0 0;
}

.article-cover img,
.article-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.article-body {
    margin-top: 1.8rem;
    color: #c9d5e1;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-body h2 {
    margin: 2.6rem 0 0.8rem;
    color: var(--text-color);
    font-size: clamp(1.35rem, 2.6vw, 1.7rem);
    line-height: 1.25;
}

.article-body h3 {
    margin: 1.8rem 0 0.5rem;
    color: var(--accent-color);
    font-size: 1.12rem;
    line-height: 1.35;
}

.article-body p {
    margin: 0 0 1.1rem;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.3rem;
    padding-left: 1.3em;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body li::marker {
    color: var(--accent-color);
}

.article-body a {
    color: var(--accent-color);
    text-underline-offset: 3px;
}

.article-body a:hover,
.article-body a:focus-visible {
    color: #8ccad6;
}

.article-body strong {
    color: var(--text-color);
}

.article-body code {
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-color);
    font-family: Consolas, "SF Mono", Menlo, monospace;
    font-size: 0.9em;
    overflow-wrap: anywhere;
}

.callout {
    margin: 0 0 1.8rem;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 4px solid var(--accent-color);
    border-radius: 10px;
    background: var(--section-bg);
}

.callout h2 {
    margin: 0 0 0.6rem;
    color: var(--accent-color);
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.callout ul,
.callout ol,
.callout p:last-child {
    margin-bottom: 0;
}

.callout li:last-child {
    margin-bottom: 0;
}

.article-figure {
    margin: 1.9rem 0 2rem;
}

.article-figure a {
    display: block;
}

.article-figure figcaption {
    margin-top: 0.6rem;
    color: #8fa4b5;
    font-size: 0.9rem;
    line-height: 1.55;
}

.table-wrap {
    margin: 0 0 1.4rem;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.55;
}

.data-table th,
.data-table td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.data-table td:first-child {
    color: var(--text-color);
    font-weight: 700;
}

.table-note,
.checked-note {
    margin-top: -0.4rem;
    color: #8fa4b5;
    font-size: 0.88rem;
}

/* product cards inside an article */
.article .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin: 0.4rem 0 1.6rem;
}

.article .card-title {
    font-size: 1.05rem;
}

.article .card-text {
    font-size: 0.88rem;
    line-height: 1.5;
}

.next-steps {
    margin-top: 2.6rem;
}

.back-to-blog {
    margin: 2rem 0 0;
    font-size: 0.95rem;
}

.back-to-blog a {
    color: var(--accent-color);
    text-underline-offset: 3px;
}

@media (max-width: 520px) {
    .post-list {
        grid-template-columns: 1fr;
    }

    .callout {
        padding: 16px 16px;
    }
}
