/* ============================================================
 * Konfetka.cc · Sketch 012 · Article (long-read) styles
 * ============================================================
 * Подключается ПОСЛЕ tokens.css и styles.css — расширяет
 * базу для long-read статьи журнала. Editorial-типографика,
 * читабельная мера 70 знаков, italic Cormorant как эмфазис,
 * drop cap, mid-content callout с CTA.
 * ============================================================ */

/* ============================================================
 * 01 · READING PROGRESS BAR
 * ============================================================ */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  z-index: var(--z-header);
  pointer-events: none;
}
.read-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--color-signature);
  transition: width 80ms linear;
  box-shadow: 0 0 8px rgba(232, 122, 140, 0.5);
}
@media (prefers-reduced-motion: reduce) {
  .read-progress__bar { box-shadow: none; }
}


/* ============================================================
 * 02 · BREADCRUMB
 * ============================================================ */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-fg-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-block: var(--space-8);
}
.breadcrumb a {
  color: var(--color-fg-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb__sep { color: var(--color-fg-faint); }
.breadcrumb__current { color: var(--color-fg); }


/* ============================================================
 * 03 · ARTICLE HEAD
 * ============================================================ */
.article-head {
  padding-top: var(--space-8);
  padding-bottom: var(--space-12);
}

.article-head__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.article-head__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tight);
  color: var(--color-fg);
  margin-bottom: var(--space-8);
  max-width: 16em;
}

.article-head__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-rule);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}
.article-head__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.article-head__author-name {
  font-weight: var(--weight-semi);
  color: var(--color-fg);
}
.article-head__author-name em {
  color: var(--color-accent);
  font-style: italic;
}
.article-head__date {
  color: var(--color-fg-muted);
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}
.article-head__sep {
  width: 1px;
  height: 16px;
  background: var(--color-rule);
}


/* ============================================================
 * 04 · MOOD IMAGE
 * ============================================================ */
.article-mood {
  margin-bottom: var(--space-12);
  position: relative;
}
.article-mood img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.article-mood::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 60%,
    rgba(28, 8, 15, 0.4) 100%);
  pointer-events: none;
  border-radius: var(--radius-md);
}
.article-mood__caption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-fg-faint);
  margin-top: var(--space-3);
  letter-spacing: 0;
}


/* ============================================================
 * 05 · ARTICLE BODY
 * ============================================================ */
.article-body {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: var(--color-fg);
}

/* Lead — первый абзац крупнее, как «вход» */
.article-body__lead {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-fg);
  margin-bottom: var(--space-10);
}

/* Drop cap — крупная Cormorant italic первая буква */
.article-body__lead::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--weight-medium);
  font-size: 4.5em;
  line-height: 0.85;
  color: var(--color-signature);
  float: left;
  margin: 0.05em var(--space-4) 0 0;
  padding-top: 0.1em;
}

.article-body p {
  margin-bottom: var(--space-6);
  max-width: none;
}
.article-body p em {
  font-style: italic;
  font-weight: var(--weight-medium);
  color: var(--color-accent);
}
.article-body p strong {
  font-weight: var(--weight-semi);
  color: var(--color-fg);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  color: var(--color-fg);
  margin-block: var(--space-12) var(--space-5);
  max-width: 18em;
}
.article-body h2 em {
  color: var(--color-accent);
  font-style: italic;
  font-weight: var(--weight-regular);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: 1.2;
  color: var(--color-fg);
  margin-block: var(--space-8) var(--space-4);
}

.article-body ul,
.article-body ol {
  margin-block: var(--space-5) var(--space-6);
  padding-left: 0;
}
.article-body ul li,
.article-body ol li {
  position: relative;
  padding-left: var(--space-8);
  margin-bottom: var(--space-3);
  list-style: none;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 24px;
  height: 1px;
  background: var(--color-accent);
}
.article-body ol {
  counter-reset: ol-counter;
}
.article-body ol li {
  counter-increment: ol-counter;
}
.article-body ol li::before {
  content: counter(ol-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent);
  font-feature-settings: "tnum";
}

/* Pull-quote — без боковой полоски (по memory feedback_no_side_accent_line).
   Выделение: surface-warm bleed-секция, italic Cormorant 28px, центрирование. */
.pull-quote {
  margin-block: var(--space-12);
  padding: var(--space-10) var(--space-8);
  background: var(--color-surface-warm);
  border-radius: var(--radius-md);
  position: relative;
  text-align: left;
}
.pull-quote::before {
  content: "«";
  font-family: var(--font-display);
  font-size: 6em;
  line-height: 0.5;
  color: var(--color-signature);
  position: absolute;
  top: 0.3em;
  left: var(--space-6);
  opacity: 0.4;
}
.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  line-height: 1.35;
  color: var(--color-fg);
  margin: 0;
  padding-left: var(--space-12);
  letter-spacing: var(--tracking-tight);
}

/* Mid-article CTA callout — surface-rose, inline WhatsApp.
   Появляется в середине статьи, мягко зовёт на примерку. */
.article-callout {
  margin-block: var(--space-12);
  padding: var(--space-8);
  background: var(--color-surface-rose);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
}
.article-callout::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: var(--glow-lamp);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.article-callout > * { position: relative; z-index: 1; }
.article-callout__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: 1.2;
  color: var(--color-fg);
  letter-spacing: var(--tracking-tight);
}
.article-callout__title em {
  font-style: italic;
  color: var(--color-signature);
  font-weight: var(--weight-regular);
}
.article-callout__body {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--color-fg-muted);
}

/* Sister-size table — mono numerals, editorial */
.sister-table {
  width: 100%;
  margin-block: var(--space-8);
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.sister-table th,
.sister-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-rule);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.sister-table th {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-fg-muted);
  border-bottom-color: var(--color-border);
}
.sister-table td {
  color: var(--color-fg);
}
.sister-table td.is-base {
  color: var(--color-accent);
  font-weight: var(--weight-medium);
}
.sister-table tr:hover td { background: var(--color-surface); }

/* Section anchor — heritage silhouette mark между крупными частями */
.article-anchor {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-block: var(--space-12);
  color: var(--color-fg-faint);
  opacity: 0.5;
}
.article-anchor svg {
  width: 28px;
  height: 28px;
}


/* ============================================================
 * 06 · POST-ARTICLE CTA
 * ============================================================ */
.post-cta {
  background: var(--color-bg-deep);
  padding-block: var(--section-y-md);
  margin-top: var(--section-y-md);
  position: relative;
  overflow: hidden;
}
.post-cta::before {
  content: "";
  position: absolute;
  top: 30%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: var(--glow-lamp-warm);
  filter: blur(60px);
  pointer-events: none;
}
.post-cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.post-cta__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tight);
  color: var(--color-fg);
  margin-bottom: var(--space-5);
}
.post-cta__title em {
  font-style: italic;
  color: var(--color-accent);
  font-weight: var(--weight-regular);
}
.post-cta__lead {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  color: var(--color-fg-muted);
  max-width: 32em;
  margin: 0 auto var(--space-8);
}
.post-cta__buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}


/* ============================================================
 * 07 · RELATED ARTICLES
 * ============================================================ */
.related {
  padding-block: var(--section-y-md);
  background: var(--color-bg);
}
.related__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  font-style: italic;
  letter-spacing: var(--tracking-tight);
  color: var(--color-fg);
  margin-bottom: var(--space-8);
}
.related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .related__grid { grid-template-columns: repeat(2, 1fr); }
}
