/* ===== Article pages & article cards — added 2026-08-17 ===== */

/* --- Article listing grid (homepage + articles/index.html) --- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 3px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(43, 34, 20, .12);
    border-color: #c9bfa8;
}
.article-card .cover {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3efe7;
}
.article-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.article-card:hover .cover img { transform: scale(1.05); }
.article-card .card-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.article-card .tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: #a0762f;
    background: #f5eddd;
    border: 1px solid #e6d9bc;
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 12px;
}
.article-card h3 {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 10px;
}
.article-card p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #6b6156;
    margin: 0 0 14px;
    flex: 1;
}
.article-card .read {
    font-size: 13px;
    font-weight: 700;
    color: #2b2214;
}
.article-card .read::after { content: " →"; }

/* --- Article page body --- */
.article-wrap { max-width: 860px; margin: 0 auto; }
.article-meta {
    font-size: 13px;
    letter-spacing: .5px;
    color: #8a7f70;
    text-transform: uppercase;
    margin-bottom: 26px;
}
.article-body { font-size: 16.5px; line-height: 1.75; color: #33302b; }
.article-body h2 {
    font-size: 26px;
    margin: 46px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e2d5;
}
.article-body h3 { font-size: 20px; margin: 34px 0 12px; }
.article-body h4 { font-size: 17px; margin: 28px 0 10px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 26px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: #1f1b13; }
.article-body blockquote {
    margin: 26px 0;
    padding: 16px 22px;
    background: #f8f5ee;
    border-left: 4px solid #a0762f;
    font-style: italic;
    color: #4c453b;
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 26px 0;
    font-size: 14.5px;
    display: block;
    overflow-x: auto;
}
.article-body th {
    background: #2b2214;
    color: #fff;
    text-align: left;
    padding: 11px 14px;
    font-size: 13px;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.article-body td {
    padding: 11px 14px;
    border-bottom: 1px solid #e8e2d5;
    vertical-align: top;
}
.article-body tr:nth-child(even) td { background: #faf8f3; }
.article-body code {
    background: #f3efe7;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 14px;
}
.article-body hr {
    border: none;
    border-top: 1px solid #e8e2d5;
    margin: 40px 0;
}
.article-cta {
    margin-top: 50px;
    padding: 26px 30px;
    background: #f8f5ee;
    border: 1px solid #e6dcc6;
    border-radius: 3px;
    text-align: center;
}
.article-cta h4 { margin: 0 0 8px; font-size: 19px; }
.article-cta p { margin: 0 0 16px; font-size: 14px; color: #6b6156; }

/* --- Prev / next navigation --- */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid #e8e2d5;
}
.article-nav a {
    max-width: 48%;
    font-size: 14px;
    font-weight: 600;
    color: #2b2214;
    text-decoration: none;
    line-height: 1.5;
}
.article-nav a span {
    display: block;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #a09484;
    font-weight: 700;
    margin-bottom: 4px;
}
.article-nav a:hover { text-decoration: underline; }
.article-nav .next { text-align: right; margin-left: auto; }

@media (max-width: 640px) {
    .article-body { font-size: 15.5px; }
    .article-body h2 { font-size: 22px; }
    .article-nav { flex-direction: column; }
    .article-nav .next { text-align: left; }
}
