/*
Theme Name: Powerlifting Fpdo
Theme URI: https://powerlifting-fpdo.org.ua
Description: Тёмная премиум-тема для блога о психологии отношений: обсидиан с платиновым акцентом, люкс-типографика Bodoni, редакционный сплит. Чистый семантический SEO-HTML, один H1 на страницу. Без тяжёлых эффектов — быстрая загрузка.
Author: Claude Dev
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: powerlifting-fpdo
*/

/* ============================================================
   Tokens — dark premium: obsidian + platinum/steel
   ============================================================ */
:root {
  --bg:        #0a0a0c;
  --bg-2:      #101015;
  --surface:   #131319;
  --text:      #ece9e6;
  --muted:     #9d9aa3;
  --faint:     #6e6b76;
  --platinum:  #cfd2da;
  --platinum-dk:#aab0bd;
  --steel:     #8a93a6;
  --line:      rgba(207, 210, 218, 0.14);
  --line-2:    rgba(207, 210, 218, 0.28);

  --font-display: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --text-base: clamp(1rem, 0.96rem + 0.25vw, 1.08rem);
  --text-hero: clamp(2.6rem, 1.3rem + 6vw, 6.6rem);
  --text-h2:   clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  --text-feat: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem);
  --text-h3:   clamp(1.15rem, 1rem + 0.7vw, 1.45rem);

  --space-section: clamp(3.2rem, 2.3rem + 4vw, 6rem);
  --container:  1200px;
  --container-narrow: 720px;
  --radius:     2px;

  --duration: 300ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--platinum); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: 0; margin: 0 0 0.5em; color: #fff; }
p { margin: 0 0 1.2em; }

:focus-visible { outline: 2px solid var(--platinum); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 0.5rem + 3vw, 2.8rem); }
.container--narrow { max-width: var(--container-narrow); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--platinum); color: #0a0a0c; padding: 0.75rem 1.25rem; z-index: 1000; font-weight: 700; }
.skip-link:focus { left: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.eyebrow { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--steel); }
.pill { display: inline-flex; font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--platinum); }

/* ============================================================
   Header
   ============================================================ */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 86px; }
.site-brand { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: 0.02em; color: #fff; display: inline-flex; align-items: center; gap: 0.55rem; }
.site-brand:hover { color: var(--platinum); }
.site-brand__heart { width: 19px; height: 19px; color: var(--platinum); flex: none; }
.site-brand img { max-height: 46px; width: auto; }
.main-nav ul { list-style: none; display: flex; gap: clamp(0.9rem, 0.4rem + 1.5vw, 2.2rem); margin: 0; padding: 0; }
.main-nav a { color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; padding-block: 0.4rem; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); width: 46px; height: 42px; border-radius: 2px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ============================================================
   Hero (grand serif)
   ============================================================ */
.hero { padding-block: clamp(3.2rem, 5vw, 6.5rem) clamp(2rem, 3vw, 3rem); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }
.hero__amp { position: absolute; top: 50%; right: clamp(-1.5rem, -1rem - 1vw, 1rem); transform: translateY(-50%); font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: clamp(9rem, 5rem + 20vw, 26rem); line-height: 0.8; color: var(--platinum); opacity: 0.05; z-index: 0; pointer-events: none; user-select: none; }
.hero__rule { display: flex; align-items: center; gap: 1rem; color: var(--steel); margin-bottom: 1.6rem; }
.hero__rule::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.hero h1 { font-size: var(--text-hero); margin: 0; max-width: 18ch; font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--platinum); }
.hero__lede { color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); max-width: 56ch; margin: 1.6rem 0 0; }

/* ============================================================
   Editorial split — featured left, ruled list right
   ============================================================ */
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.8rem, 1rem + 4vw, 4.5rem); align-items: start; }

/* featured */
.feat__media { overflow: hidden; border: 1px solid var(--line-2); }
.feat__media a, .feat__media span { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.feat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.feat:hover .feat__media img { transform: scale(1.04); }
.feat__cat { display: inline-block; margin: 1.2rem 0 0.4rem; }
.feat__title { font-size: var(--text-feat); margin: 0.3rem 0 0.7rem; }
.feat__title a { color: #fff; }
.feat__title a:hover { color: var(--platinum); }
.feat__excerpt { color: var(--muted); font-size: 1.05rem; max-width: 52ch; }
.feat__meta { margin-top: 1rem; font-size: 0.82rem; color: var(--faint); letter-spacing: 0.04em; }

/* ruled index list */
.index__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-2); margin-bottom: 0.4rem; }
.index__head h2, .index__head .section-head__title { font-size: 1.1rem; margin: 0; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
.index { counter-reset: ix; }
.idx-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding-block: 1.15rem; border-bottom: 1px solid var(--line); }
.idx-item__num { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--steel); line-height: 1.3; }
.idx-item__num::before { counter-increment: ix; content: counter(ix, decimal-leading-zero); }
.idx-item__cat { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.3rem; }
.idx-item__title { font-size: var(--text-h3); line-height: 1.2; margin: 0; }
.idx-item__title a { color: var(--text); }
.idx-item__title a:hover { color: #fff; }
.idx-item__meta { margin-top: 0.4rem; font-size: 0.76rem; color: var(--faint); }

/* ============================================================
   Generic grid (archive/search/related)
   ============================================================ */
.section { padding-block: var(--space-section); }
.section--tight { padding-top: clamp(2rem, 3vw, 3rem); }
.section-head { margin-bottom: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); }
.section-head h2, .section-head__title { font-size: var(--text-h2); margin: 0; }
.section-head__title { font-family: var(--font-display); font-weight: 600; color: #fff; }
.section-head .eyebrow { display: block; margin-bottom: 0.5rem; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 2.6rem); }
.card { display: flex; flex-direction: column; }
.card__media { overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 4 / 3; background: var(--surface); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__media-fallback { display: block; width: 100%; height: 100%; background: linear-gradient(140deg, #1a1a22, #0c0c12); }
.card__body { padding-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card__title { font-size: var(--text-h3); line-height: 1.2; margin: 0; }
.card__title a { color: #fff; }
.card__title a:hover { color: var(--platinum); }
.card__excerpt { color: var(--muted); font-size: 0.95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { font-size: 0.78rem; color: var(--faint); letter-spacing: 0.04em; }

/* ============================================================
   Single
   ============================================================ */
.breadcrumbs { font-size: 0.8rem; color: var(--faint); padding-block: 1.3rem; text-transform: uppercase; letter-spacing: 0.08em; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li:not(:last-child)::after { content: "·"; color: var(--faint); }
.breadcrumbs a { color: var(--muted); }

.entry-header { padding-block: clamp(0.8rem, 2vw, 1.8rem) clamp(1.2rem, 2vw, 2rem); text-align: center; }
.entry-title { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4.2rem); margin: 0.8rem auto 1rem; max-width: 20ch; font-weight: 600; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: center; color: var(--faint); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.06em; }
.entry-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--steel); }

.entry-featured { margin: 0 0 clamp(1.8rem, 3vw, 2.8rem); border: 1px solid var(--line-2); }
.entry-featured img { width: 100%; max-height: 580px; object-fit: cover; }

.entry-content { font-size: clamp(1.06rem, 1rem + 0.4vw, 1.2rem); line-height: 1.9; color: #d7d3d0; }
.entry-content > p:first-of-type::first-letter { font-family: var(--font-display); font-weight: 600; float: left; font-size: 3.8em; line-height: 0.76; padding: 0.04em 0.14em 0 0; color: var(--platinum); }
.entry-content > * { margin-bottom: 1.4em; }
.entry-content h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin: 1.8em 0 0.5em; color: #fff; }
.entry-content h3 { font-size: var(--text-h3); margin: 1.5em 0 0.4em; color: #fff; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { border-left: 2px solid var(--platinum); margin: 1.8em 0; padding: 0.2em 0 0.2em 1.6rem; font-family: var(--font-display); font-style: italic; font-size: 1.6rem; line-height: 1.3; color: #fff; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content li::marker { color: var(--steel); }
.entry-content figcaption { color: var(--faint); font-size: 0.86rem; text-align: center; margin-top: 0.5rem; }

.entry-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.entry-tags a { font-size: 0.8rem; color: var(--text); border: 1px solid var(--line-2); padding: 0.4rem 0.9rem; }
.entry-tags a:hover { border-color: var(--platinum); color: #fff; }

.related { margin-top: var(--space-section); padding-top: clamp(2rem, 3vw, 3rem); border-top: 1px solid var(--line); }

/* ============================================================
   Archive / page hero
   ============================================================ */
.page-hero { padding-block: clamp(2.8rem, 4vw, 4.5rem) clamp(1.6rem, 2.5vw, 2.4rem); border-bottom: 1px solid var(--line); text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); margin: 0.5rem 0 0.5rem; font-weight: 600; }
.page-hero p { color: var(--muted); max-width: 58ch; margin: 0 auto; }

/* ============================================================
   Buttons + pagination
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.9rem 1.9rem; font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.btn--primary { background: var(--platinum); color: #0a0a0c; }
.btn--primary:hover { background: #fff; color: #0a0a0c; }

.pagination { margin-top: clamp(2.5rem, 4vw, 4rem); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.pagination .page-numbers { min-width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 0.7rem; border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; }
.pagination .page-numbers:hover { border-color: var(--platinum); color: #fff; }
.pagination .page-numbers.current { background: var(--platinum); color: #0a0a0c; border-color: var(--platinum); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { margin-top: var(--space-section); border-top: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.site-footer__title { font-family: var(--font-body); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin: 0 0 1.1rem; }
.site-footer__about .site-footer__brand { font-family: var(--font-display); font-size: 1.7rem; color: #fff; display: block; margin-bottom: 0.6rem; }
.site-footer__about p { color: var(--muted); max-width: 38ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer ul a { color: var(--muted); font-size: 0.95rem; }
.site-footer ul a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid var(--line); padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem clamp(1.1rem,0.5rem+3vw,2.8rem) 1.5rem; display: none; z-index: 50; }
  .site-header { position: relative; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.2rem; }
  .main-nav a { display: block; padding: 0.6rem 0; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
