/* Blog 2Kije: artykuły i lista wpisów. Korzysta z tokenów z style.css. */

.crumbs { font-size: .9rem; color: var(--muted); margin: 28px 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--wood); }
.crumbs span { margin: 0 6px; }

.article { max-width: 760px; margin: 0 auto; padding-bottom: 72px; }
.article h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: 14px; }
.article .meta { color: var(--muted); font-size: .92rem; margin-bottom: 26px; }
.article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 56px 0 16px; scroll-margin-top: 100px; }
.article h3 { margin: 28px 0 8px; }
.article p, .article li { font-size: 1.07rem; line-height: 1.68; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .45em; }
.article a { color: var(--wood); text-underline-offset: 3px; }
.article a.btn { color: var(--cta-ink); text-decoration: none; }

.article figure { margin: 28px 0 30px; }
.article figure img { width: 100%; border-radius: 14px; box-shadow: var(--shadow); background: var(--paper-2); }
.article figcaption { font-size: .92rem; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.article .hero-fig { margin-top: 0; }
.article .hero-fig img { aspect-ratio: 16 / 9; object-fit: cover; }

.article .lead-p { font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); }

.tldr { margin: 34px 0; padding: 26px 28px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--card); }
.tldr strong { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wood); margin-bottom: 10px; }
.tldr ul { margin: 0; }

.a-cta { margin: 34px 0; padding: 26px 28px; border-radius: var(--radius); background: var(--ink); color: #f0ebe1; display: grid; gap: 14px; }
.a-cta h3 { margin: 0; font-size: 1.35rem; color: #fff; }
.a-cta p { margin: 0; color: #c9c3b6; font-size: 1rem; }
.a-cta .btn { justify-self: start; }

.toc { background: var(--paper-2); border-radius: var(--radius); padding: 22px 26px 10px; }
.toc h2 { margin: 0 0 10px; font-size: 1.15rem; }
.toc ol { margin: 0 0 12px; }
.toc li { margin-bottom: .3em; font-size: 1rem; }

.article table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: .98rem; background: var(--card); border-radius: 12px; overflow: hidden; }
.article th, .article td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { background: var(--paper-2); font-weight: 700; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.author-note { margin: 18px 0 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--cta); }
.author-note p { font-size: 1.12rem; }
.author-note cite { font-style: italic; color: var(--muted); }

.sources li { font-size: .98rem; }
.faq-a h3 { font-size: 1.12rem; }
.recs { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.recs a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; font-weight: 600; color: var(--ink); }
.recs a:hover { border-color: var(--wood); color: var(--wood); }

/* lista wpisów */
.blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 80px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card div { padding: 18px 20px 22px; }
.post-card span { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wood); }
.post-card h2 { font-size: 1.2rem; margin: 8px 0 8px; letter-spacing: -.01em; }
.post-card p { font-size: .96rem; color: var(--ink-2); margin: 0; }

@media (max-width: 900px) { .blog-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .blog-list { grid-template-columns: 1fr; }
  .tldr, .a-cta { padding: 20px; }
  .article th, .article td { padding: 10px; }
}
