/* ================================================================
   Homepage — čistá rovná mřížka článků (minimalissimo).
   Všechny dlaždice stejné: obrázek na šedém poli + titulek. Žádná
   hierarchie, žádná metadata. Staví na tokenech z header.css.
   ================================================================ */

/* ── Inter — čtecí písmo BLOGU (self-hosted). Deklarace PO VAHÁCH přesně
   jako Google Fonts (ne rozsah 400 700) — iOS Safari jinak variabilní font
   s rozsahem renderuje o chlup šířeji. Soubory jsou bajtově totožné s Googlem.
   Shop zůstává Archivo. ─────────────────────────────────────────────── */
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/blog/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/blog/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/blog/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/blog/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/blog/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/blog/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/blog/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/blog/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.home {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) clamp(16px, 4vw, 40px) clamp(64px, 10vw, 120px);
}

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 48px);
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
}
/* Varianta pro „Číst dál" v článku — 3 užší karty */
.cards--related { grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 760px) { .cards--related { grid-template-columns: 1fr; } }

.card__link {
  display: block; text-decoration: none; color: var(--c-ink);
}

/* Médium = obrázek na chladném šedém poli, zamčený poměr stran. */
.card__media {
  display: block; position: relative;
  aspect-ratio: 4 / 3;
  background: var(--c-field);
  border-radius: 2px; overflow: hidden;
  transition: opacity .3s var(--ease);
}
.card__media img {
  position: relative; z-index: 1;      /* obrázek překryje placeholder popisek */
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* hover: náhled ztlumí na 0.8 → prolne do světla (jako minimalissimo); nadpis beze změny */
.card__link:hover .card__media { opacity: .8; }
@media (prefers-reduced-motion: reduce) {
  .card__media { transition: none; }
}
/* placeholder popisek (jen dev, dokud není obrázek — img ho překryje) */
.card__media::after {
  content: "foto"; position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  color: var(--c-muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}

.card__title {
  display: block; margin-top: 14px;
  font-family: 'Inter', system-ui, sans-serif;   /* blog = Inter */
  font-size: clamp(1.05rem, .5vw + 1rem, 1.35rem);
  font-weight: 500; line-height: 1.3; letter-spacing: -.01em;
  text-wrap: balance;
}
.card__link:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 4px; border-radius: 2px; }

/* ── Prázdný stav + stránkování (homepage z clanky.json) ──────── */
.cards__empty {
  grid-column: 1 / -1; list-style: none;
  color: var(--c-muted); font-size: 16px; padding: 40px 0;
}
.blog-pagination {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin: clamp(40px, 6vw, 72px) auto 0; max-width: 1180px;
  padding: 0 clamp(16px, 4vw, 40px);
}
.blog-pagination__link {
  min-width: 40px; height: 40px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--c-ink); text-decoration: none;
  border: 1px solid var(--c-line); border-radius: 8px;
  transition: border-color .15s var(--ease);
}
.blog-pagination__link:hover { border-color: var(--c-ink); }
.blog-pagination__link.is-current { background: var(--c-ink); color: var(--c-on-ink); border-color: var(--c-ink); }
