/* ==================================================================
   Life Caviar — Journal browse grid  ([lc_journal])
   A STAGGERED editorial stream: image / copy alternating sides (the
   product "Защо …?" rhythm), in the dark Life Caviar house language.
   All --lc-* tokens are scoped to the .lc-journal root, so it renders
   correctly on any theme. Flat #1d1e22 — no glow wash (matches the
   site's locked-in flat direction). RWD at the foot of the file.
   ================================================================== */

.lc-journal {
  --lc-bg: #1d1e22;
  --lc-text: #f0eeef;
  --lc-primary: #edcf91;   /* champagne gold */
  --lc-secondary: #827251; /* bronze          */
  --lc-muted: rgba(240, 238, 239, 0.74);
  --lc-line: rgba(237, 207, 145, 0.18);
  --lc-line-strong: rgba(237, 207, 145, 0.34);
  --lc-serif: "Forum", Georgia, "Times New Roman", serif;
  --lc-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  background: var(--lc-bg);
  color: var(--lc-text);
  font-family: var(--lc-sans);
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: .005em;
  padding: clamp(64px, 9vw, 132px) 0 clamp(64px, 9vw, 124px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.lc-journal *,
.lc-journal *::before,
.lc-journal *::after { box-sizing: border-box; }

.lc-journal img { max-width: 100%; display: block; }

.lc-journal__inner {
  width: 100%;
  max-width: 1440px;               /* aligns with the site header/footer width */
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 56px);
}

.lc-journal .forum { font-family: var(--lc-serif); font-weight: 400; }

/* --- Signature: the champagne "pearl" (shared house language) --- */
.lc-journal__pearl {
  width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; display: inline-block;
  background: radial-gradient(circle at 34% 30%, #fbf1d8 0%, #edcf91 38%, #8a7649 78%, #4c422b 100%);
  box-shadow: 0 0 0 1px rgba(237, 207, 145, 0.22), 0 3px 9px rgba(0, 0, 0, 0.55), inset 0 0 3px rgba(255, 255, 255, 0.25);
}
.lc-journal__pearl--sm { width: 8px; height: 8px; }

/* ------------------------------------------------------------------
   Page header
   ------------------------------------------------------------------ */
.lc-journal__head {
  max-width: 940px;
  margin: 0 0 clamp(48px, 7vw, 92px);
}
.lc-journal__eyebrow {
  display: block;
  font-family: var(--lc-sans); font-weight: 500;
  font-size: 12.5px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--lc-primary);
}
.lc-journal__eyebrow::before {
  content: ""; display: inline-block;
  width: 30px; height: 1px; margin-right: 15px; vertical-align: middle;
  background: var(--lc-primary);
}
.lc-journal__display {
  margin: clamp(18px, 2.6vw, 34px) 0 0;
  color: var(--lc-text);
  font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: .98; letter-spacing: .01em;
}
.lc-journal__intro {
  margin: clamp(18px, 2.4vw, 30px) 0 0; max-width: 52ch;
  font-family: var(--lc-serif); font-weight: 400; color: var(--lc-text);
  font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.5;
}
.lc-journal__flourish { display: inline-flex; align-items: center; gap: .9rem; margin-top: clamp(24px, 3vw, 40px); }
.lc-journal__hrule { width: clamp(64px, 11vw, 150px); height: 1px; background: var(--lc-line-strong); }

/* ------------------------------------------------------------------
   Category filter
   ------------------------------------------------------------------ */
.lc-journal__filter {
  display: flex; flex-wrap: wrap; gap: clamp(18px, 2.6vw, 34px);
  margin: 0 0 clamp(40px, 6vw, 72px);
  padding-bottom: clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid var(--lc-line);
}
.lc-journal__filter-link {
  position: relative;
  font-family: var(--lc-sans); font-weight: 400;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--lc-muted); text-decoration: none;
  padding-bottom: 6px;
  transition: color .3s ease;
}
.lc-journal__filter-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--lc-primary);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.lc-journal__filter-link:hover,
.lc-journal__filter-link:focus-visible { color: var(--lc-text); }
.lc-journal__filter-link.is-active { color: var(--lc-primary); }
.lc-journal__filter-link.is-active::after,
.lc-journal__filter-link:hover::after,
.lc-journal__filter-link:focus-visible::after { transform: scaleX(1); }

/* ------------------------------------------------------------------
   Staggered stream
   ------------------------------------------------------------------ */
.lc-journal__stream {
  display: flex; flex-direction: column;
  gap: clamp(56px, 8vw, 118px);
}

.lc-journal__row {
  display: flex; align-items: center;
  gap: clamp(40px, 5.5vw, 88px);
}
/* alternate the sides — even rows put the image on the right */
.lc-journal__stream > .lc-journal__row:nth-child(even) {
  flex-direction: row-reverse;
}

.lc-journal__row-media {
  flex: 0 0 50%;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(240, 238, 239, 0.04);
  border: 1px solid var(--lc-line);
}
.lc-journal__row-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.lc-journal__row:hover .lc-journal__row-media img { transform: scale(1.045); }

.lc-journal__row-body {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column;
  align-items: flex-start;
}

/* kicker — the eyebrow-style category label */
.lc-journal__kicker {
  font-family: var(--lc-sans); font-weight: 500;
  font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--lc-secondary);
}
.lc-journal__row-title {
  margin: clamp(16px, 1.8vw, 22px) 0 0;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.12; letter-spacing: .01em;
  color: var(--lc-text);
}
.lc-journal__row-title a {
  color: inherit; text-decoration: none;
  transition: color .3s ease;
}
.lc-journal__row-title a:hover,
.lc-journal__row-title a:focus-visible { color: var(--lc-primary); }

.lc-journal__row-meta {
  margin-top: clamp(12px, 1.4vw, 18px);
  font-size: 13px; letter-spacing: .06em; color: var(--lc-muted);
}
.lc-journal__row-excerpt {
  margin: clamp(16px, 1.8vw, 22px) 0 0; max-width: 52ch;
  font-size: clamp(1rem, 1.1vw, 1.08rem); line-height: 1.78; color: var(--lc-muted);
}

/* --- Editorial CTA (house pattern: gold rule top + bottom, label + line-arrow) --- */
.lc-journal__cta {
  display: inline-flex; width: fit-content; max-width: 100%;
  align-items: center; gap: clamp(20px, 2.4vw, 32px);
  margin-top: clamp(26px, 3vw, 40px);
  padding: 14px clamp(18px, 2.6vw, 30px);
  border-top: 1px solid rgba(237, 207, 145, 0.5);
  border-bottom: 1px solid rgba(237, 207, 145, 0.5);
  color: var(--lc-primary); text-decoration: none;
  transition: color .3s ease, border-color .3s ease;
}
.lc-journal__cta-label {
  font-family: var(--lc-serif);
  font-size: clamp(13px, 1vw, 15px); letter-spacing: .22em; text-transform: uppercase;
}
.lc-journal__cta-arrow { width: 32px; height: 8px; flex: 0 0 auto; transition: transform .3s ease; }
.lc-journal__cta:hover,
.lc-journal__cta:focus-visible { color: #f6e8c8; border-color: rgba(237, 207, 145, 0.9); }
.lc-journal__cta:hover .lc-journal__cta-arrow,
.lc-journal__cta:focus-visible .lc-journal__cta-arrow { transform: translateX(5px); }

.lc-journal__empty {
  text-align: center; color: var(--lc-muted); font-weight: 300;
  padding: clamp(48px, 8vw, 96px) 0;
}

/* ------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------ */
.lc-journal__pagination {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px; margin-top: clamp(64px, 9vw, 118px);
}
.lc-journal__pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  border: 1px solid var(--lc-line); border-radius: 999px;
  font-family: var(--lc-serif); font-size: 15px;
  color: var(--lc-muted); text-decoration: none;
  transition: color .3s ease, border-color .3s ease, background .3s ease;
}
.lc-journal__pagination a.page-numbers:hover,
.lc-journal__pagination a.page-numbers:focus-visible {
  color: var(--lc-primary); border-color: var(--lc-line-strong);
  /* no outline:none here — keyboard focus falls through to the .lc-journal :focus-visible ring */
}
.lc-journal__pagination .page-numbers.current {
  color: var(--lc-bg); background: var(--lc-primary); border-color: var(--lc-primary);
}
.lc-journal__pagination .page-numbers.dots { border-color: transparent; }

.lc-journal :focus-visible { outline: 2px solid var(--lc-primary); outline-offset: 3px; }

/* ------------------------------------------------------------------
   Motion — scroll-reveal (reduced-motion safe)
   ------------------------------------------------------------------ */
.lc-journal.is-armed [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
}
.lc-journal.is-armed [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lc-journal.is-armed [data-reveal] { opacity: 1; transform: none; transition: none; }
  .lc-journal__cta-arrow { transition: none; }
  .lc-journal__cta:hover .lc-journal__cta-arrow,
  .lc-journal__cta:focus-visible .lc-journal__cta-arrow { transform: none; }
  .lc-journal__row-media img { transition: none; }
  .lc-journal__filter-link::after { transition: none; }
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
/* tablet — stack each row (image on top, copy beneath), kill the alternation */
@media (max-width: 900px) {
  .lc-journal__row,
  .lc-journal__stream > .lc-journal__row:nth-child(even) {
    flex-direction: column; align-items: stretch;
    gap: clamp(22px, 4vw, 34px);
  }
  .lc-journal__row-media { flex: 0 0 auto; width: 100%; aspect-ratio: 16 / 10; }
  .lc-journal__row-excerpt { max-width: none; }
}

@media (max-width: 560px) {
  .lc-journal__eyebrow { letter-spacing: .28em; }
  .lc-journal__row-media { aspect-ratio: 4 / 3; }
  .lc-journal__cta { width: 100%; justify-content: space-between; }
}
