/* ==========================================================================
   Makman: sekcia Články (prehľad /clanky/ a podstránky článkov)
   Nadväzuje na styles.css (farby, písma, navigácia, päta).
   ========================================================================== */

.crumbs { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--red); }

/* ---------- prehľad článkov ---------- */
.blog { padding: calc(var(--nav-h) + 60px) 0 40px; }
.blog .wrap { max-width: 960px; }
.blog__h1 { font-family: var(--font-display); font-weight: 380; font-size: clamp(2.6rem, 1.4rem + 4vw, 4.6rem); line-height: 1; letter-spacing: -.03em; }
.blog__lead { margin-top: 18px; max-width: 620px; font-size: 18px; color: var(--ink-2); }
.blog__list { margin-top: clamp(36px, 5vw, 56px); border-top: 1.5px solid var(--ink); }
.post-card { border-bottom: 1px solid var(--line-2); }
.post-card a { display: grid; gap: 10px; padding: 28px 0; text-decoration: none; }
.post-card__meta { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted); }
.post-card__title { font-family: var(--font-display); font-weight: 420; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.12; letter-spacing: -.015em; transition: color .2s; }
.post-card__excerpt { color: var(--ink-2); max-width: 720px; }
.post-card__more { font-weight: 600; font-size: 15px; color: var(--red); }
.post-card a:hover .post-card__title { color: var(--red); }

/* ---------- článok ---------- */
.article { padding: calc(var(--nav-h) + 60px) 0 30px; }
.article .wrap { max-width: 780px; }
.article__h1 { font-family: var(--font-display); font-weight: 380; font-size: clamp(2.1rem, 1.2rem + 3vw, 3.5rem); line-height: 1.04; letter-spacing: -.025em; }
.article__meta { margin-top: 20px; padding-bottom: 26px; border-bottom: 1.5px solid var(--ink); font-family: var(--font-mono); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.article__meta strong { color: var(--ink); font-weight: 700; }

.prose { margin-top: 30px; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-family: var(--font-display); font-weight: 450; font-size: clamp(1.55rem, 1.2rem + 1vw, 2rem); line-height: 1.15; letter-spacing: -.015em; color: var(--ink); margin-top: 52px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2 + * { margin-top: 14px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--red); }
.prose ul { list-style: disc; padding-left: 24px; }
.prose ol { list-style: decimal; padding-left: 26px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--red); font-weight: 700; }

.prose .table { overflow-x: auto; margin-top: 26px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
.prose td:first-child { font-weight: 600; color: var(--ink); }

/* ---------- výzva pod článkom ---------- */
.article-cta { margin-top: 56px; padding: clamp(24px, 4vw, 36px); border-radius: 18px; background: var(--ink); color: var(--paper); display: grid; gap: 14px; }
.article-cta__label { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 238, 227, .6); }
.article-cta__title { font-family: var(--font-display); font-weight: 420; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); line-height: 1.15; letter-spacing: -.015em; }
.article-cta p { color: rgba(244, 238, 227, .8); }
.article-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.article-cta .btn svg { width: 18px; height: 18px; }
.article-cta .btn--line { color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--paper); }
.article-cta .btn--line:hover { background: var(--paper); color: var(--ink); }

.article__back { margin-top: 36px; font-weight: 600; }
.article__back a { text-underline-offset: 3px; }
.article__back a:hover { color: var(--red); }

@media (max-width: 560px) {
  .prose { font-size: 17px; }
  .article-cta .btn { width: 100%; }
}

/* ---------- obrázky ---------- */
.article__img { margin-top: 30px; }
.article__img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; background: var(--paper-2); box-shadow: var(--shadow); }
.post-card__img { width: 100%; max-width: 420px; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: var(--paper-2); }
@media (min-width: 761px) {
  .post-card a:has(.post-card__img) { grid-template-columns: 300px 1fr; column-gap: 32px; align-items: start; }
  .post-card a:has(.post-card__img) > :not(.post-card__img) { grid-column: 2; }
  .post-card__img { grid-column: 1; grid-row: 1 / span 4; }
}
