/* /journal (pages/zhurnal.htm), design «Рубрики»: two photos as a band, topic chips that filter the posts,
   cards */

.lfj {
    --ink: #111; --muted: #6f6f6f; --line: #e9e6e1; --soft: #f7f5f2; --gold: #b08d57;
    max-width: 1100px; margin: 0 auto; padding: 168px 16px 72px; color: var(--ink);   /* the content ~32px under the fixed header */
    font-family: 'CenturyGothic', Arial, Helvetica, sans-serif;
}
.lfj * { font-size: inherit; box-sizing: border-box; }   /* the theme sets «* { font-size: 20px }» */
.lfj a { color: inherit; text-decoration: none; }
.lfj a:hover { color: inherit; text-decoration: none; }
.lfj a:focus-visible, .lfj button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lfj ul { margin: 0; padding: 0; list-style: none; }
.lfj img { display: block; width: 100%; height: 100%; object-fit: cover; }

.lfj-line { width: 40px; height: 1px; margin-top: 4px; background: var(--gold); }   /* as the catalog title (category-head.css) */
.lfj-title { margin: 0; font-size: 34px; font-weight: normal; letter-spacing: .02em; line-height: 1.15; }
.lfj-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #86663a; }
.lfj-excerpt { font-size: 14px; line-height: 1.6; color: #555; }
.lfj-more { justify-self: start; padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.lfj-empty { padding: 48px 0; text-align: center; font-size: 15px; color: var(--muted); }

/* the band: a photo, the title, a photo */
.lfj-band { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 16px; align-items: stretch; margin-bottom: 40px; }
.lfj-band img { aspect-ratio: 3 / 4; border-radius: 4px; }
.lfj-band__text { display: grid; align-content: center; justify-items: center; gap: 12px; padding: 32px 24px; background: #f2ede4; border-radius: 4px; text-align: center; }   /* a deeper beige than --soft (#f7f5f2), seen on the grey page (2026-12-02; chosen of five steps to #eee5d6) */

/* the topic chips */
.lfj-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.lfj-chip {
    min-height: 40px; padding: 0 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff;
    font-family: inherit; font-size: 13px; letter-spacing: .06em; color: var(--ink); cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.lfj-chip:hover { border-color: var(--ink); }
.lfj-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* the posts */
.lfj-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lfj-cards > li[hidden] { display: none; }
.lfj-note {
    position: relative; display: grid; align-content: start; gap: 12px; height: 100%; padding: 32px;
    border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.lfj-note:hover { border-color: #d8d2c8; box-shadow: 0 12px 32px rgba(0, 0, 0, .07); transform: translateY(-2px); }
.lfj-note__title { margin: 0; font-size: 19px; font-weight: normal; line-height: 1.35; letter-spacing: normal; color: inherit; }

/* phones */
@media (max-width: 767px) {
    .lfj { padding: 88px 16px 56px; }   /* the header is 57px tall on phones */
    .lfj-title { font-size: 28px; }
    .lfj-band { grid-template-columns: 1fr 1fr; }
    .lfj-band__text { grid-column: 1 / -1; grid-row: 1; padding: 24px 16px; }
    .lfj-band img { aspect-ratio: 1; }
    .lfj-chips { margin-bottom: 24px; }   /* wrapped and centred as on desktop: all the chips in view */
    .lfj-cards { grid-template-columns: 1fr; gap: 14px; }
    .lfj-note { padding: 24px 20px; }
    .lfj-note__title { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .lfj * { transition: none !important; }
}
