/*
Theme Name: Adonis Blog
Theme URI: https://blog.adonisfranshiza.ru
Author: Adonis
Description: Custom theme porting the static Adonis franchise blog (adonispr.ru/blog) 1:1 into WordPress - shared card-grid/category-filter chrome. Per-article visual styling lives in each post's own "article_style" meta field (see functions.php), not here, to avoid cross-article CSS class collisions (many articles reuse classnames like .goal-row/.pillars/.calc-box with different values).
Version: 1.0
*/

:root {
  --bg: #faf9f6; --surface: #ffffff; --surface-alt: #f0efe9; --line: #e0ded4;
  --ink: #17181a; --sub: #6b6b70; --red: #d81f2e; --nav-bg: rgba(255,255,255,.86);
  --ph-bg: #ece7dd; --ph-line: #c9c2b3; --ph-ink: #a49c8a;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Montserrat", -apple-system, sans-serif; }
a { color: inherit; text-decoration: none; }

.topnav { position: sticky; top: 0; z-index: 40; background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topnav-in { max-width: 1160px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.topnav img { height: 22px; }
.topnav .back { font-size: 13px; color: var(--sub); }
.topnav-right { display: flex; align-items: center; gap: 16px; }
.topnav-brand { font-family: "Oswald"; font-weight: 400; text-transform: uppercase; font-size: 20px; letter-spacing: .02em; color: var(--ink); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 56px 24px 120px; }
.page-eyebrow { font: 700 12px "Montserrat"; text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin-bottom: 12px; }
h1.page-title { font-family: "Oswald"; font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 6vw, 60px); line-height: .98; margin: 0 0 14px; }
.page-lede { font-size: 16px; color: var(--sub); max-width: 62ch; line-height: 1.6; margin: 0 0 28px; }

.tag-row { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 12px; }
.tag-pill { display: inline-block; font: 700 12.5px "Montserrat"; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--sub); background: none; cursor: pointer; }
.tag-pill:hover { border-color: var(--red); color: var(--red); }
.tag-pill.active { background: var(--red); border-color: var(--red); color: #fff; }

.breadcrumb { font-size: 13px; color: var(--sub); margin-bottom: 22px; }
.breadcrumb a { color: var(--sub); }
.breadcrumb a:hover { color: var(--ink); }

.cat-section { padding: 44px 0 8px; border-top: 1px solid var(--line); }
.cat-section:first-of-type { border-top: none; padding-top: 8px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.cat-head h2 { font-family: "Oswald"; font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 3.2vw, 32px); margin: 0; }
.progress-chip { font-size: 12.5px; color: var(--sub); display: flex; align-items: baseline; gap: 6px; }
.progress-chip .pc-num { font: 800 18px "Montserrat"; color: var(--red); font-variant-numeric: tabular-nums; }

.simple-head { font: 700 11px "Montserrat"; text-transform: uppercase; letter-spacing: .08em; color: var(--sub); margin: 26px 0 14px; }
.simple-head .simple-count { color: var(--ph-ink); font-weight: 700; }
.simple-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 8px; }

/* shared cover/card component */
.cover { position: relative; aspect-ratio: 1.75 / 1; overflow: hidden; background: #ffffff; border-radius: 16px; }
.cover img { transition: transform .4s ease; }
.card:hover .cover img { transform: scale(1.06); }
.cover .badge { position: absolute; top: 16px; left: 18px; z-index: 2; background: var(--red); color: #fff; font: 700 10.5px "Montserrat"; text-transform: uppercase; letter-spacing: .05em; padding: 5px 11px; border-radius: 999px; }
.cover .cov-body { position: absolute; left: 18px; bottom: 14px; right: 38%; z-index: 2; background: rgba(255,255,255,.95); border-radius: 10px; padding: 11px 14px; box-shadow: 0 6px 24px rgba(17,18,20,.12); }
.cover .cov-eyebrow { font: 700 10px "Montserrat"; text-transform: uppercase; letter-spacing: .08em; color: #6b6b70; margin-bottom: 5px; }
.cover .cov-word { font-family: "Oswald"; font-weight: 400; color: #17181a; text-transform: uppercase; font-size: clamp(17px, 2.6vw, 26px); line-height: .97; margin: 0; text-wrap: balance; }
.cover .cov-word .accent { color: var(--red); }
.cover img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.02) saturate(1.02); }

.card { display: block; }
.card h3 { font-family: "Oswald"; text-transform: uppercase; font-size: 22px; line-height: 1.08; margin: 16px 0 8px; letter-spacing: .01em; }
.card p.excerpt { font-size: 14px; color: var(--sub); line-height: 1.5; margin: 0 0 14px; }
.card .meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--sub); padding-top: 12px; border-top: 1px solid var(--line); }
.card .meta .dot { opacity: .5; }

.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 8px; }

/* placeholder / coming-soon cards */
.card.placeholder .cover.ph-cover {
  background: repeating-linear-gradient(135deg, var(--ph-bg) 0 10px, #f4f1e9 10px 20px);
  border: 1.5px dashed var(--ph-line);
  display: flex; align-items: center; justify-content: center;
}
.card.placeholder .cover.ph-cover-sm { aspect-ratio: 1.35/1; }
.ph-icon { width: 22%; height: 22%; color: var(--ph-line); opacity: .8; }
.ph-badge { background: var(--ph-ink); }
.ph-line { height: 11px; border-radius: 5px; background: var(--ph-bg); margin: 16px 0 9px; }
.card.placeholder .ph-line:first-of-type { margin-top: 16px; }
.ph-w1 { width: 92%; height: 15px; margin-top: 16px !important; }
.ph-w2 { width: 68%; height: 15px; }
.ph-w3 { width: 100%; }
.ph-w4 { width: 74%; }
.ph-sub { background: #f2efe7; height: 10px; }
.card.simple .ph-line { margin: 10px 0 6px; }
.card.simple .ph-w2 { height: 11px; }

@media (max-width: 980px) {
  .simple-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .featured-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 32px 16px 80px; }
  .simple-grid { grid-template-columns: 1fr; }
  .tag-row { gap: 7px; }
  .tag-pill { font-size: 11.5px; padding: 7px 13px; }
  h1.page-title { font-size: 34px; }
}
