/* «Журнал» on the home page (partials/home/magazine) «Обложка»: the newest post large, the next three as a list */

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

/* the title with its gold line, «Все статьи» on the right */
.lfm-head { display: grid; grid-template-columns: 1fr auto; align-items: end; row-gap: 10px; margin-bottom: 28px; }
.lfm-title { margin: 0; font-size: 34px; font-weight: normal; letter-spacing: .02em; line-height: 1.15; }
.lfm-line { grid-row: 2; display: block; width: 40px; height: 1px; margin-top: 6px; background: var(--gold); }
.lfm-all { grid-row: 1; grid-column: 2; align-self: center; font-size: 13px; letter-spacing: .06em; border-bottom: 1px solid var(--gold); }
.lfm-all i { font-style: normal; color: var(--gold); }
.lfm-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #86663a; }
.lfm-excerpt { font-size: 14px; line-height: 1.6; color: #555; }

/* the newest post and the list */
.lfm-posts { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.lfm-cover { display: grid; gap: 12px; }
.lfm-cover__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; margin-bottom: 6px; }
.lfm-cover__img img { transition: transform .6s ease; }
.lfm-cover:hover .lfm-cover__img img { transform: scale(1.03); }
.lfm-cover__title { font-size: 24px; line-height: 1.3; }
.lfm-list { border-top: 1px solid var(--ink); }
.lfm-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 14px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.lfm-row__num { font-size: 20px; color: var(--muted); transition: color .2s; }
.lfm-row__body { display: grid; gap: 6px; }
.lfm-row__title { font-size: 17px; line-height: 1.35; }
.lfm-row i { font-style: normal; color: var(--muted); transition: transform .25s, color .2s; }
.lfm-row:hover .lfm-row__num, .lfm-row:hover i { color: var(--gold); }
.lfm-row:hover i { transform: translateX(4px); }

/* tablets: the list under the post */
@media (max-width: 991px) {
    .lfm-posts { grid-template-columns: 1fr; gap: 28px; }
}
/* phones */
@media (max-width: 767px) {
    .lfm { margin: 48px auto; }
    .lfm-title { font-size: 26px; }
    .lfm-cover__title { font-size: 20px; }
    .lfm-row { grid-template-columns: 34px minmax(0, 1fr); padding: 16px 0; }
    .lfm-row i { display: none; }
    .lfm-row__title { font-size: 15px; }
}

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

/* «Журнал» on a white card, as «Для неё» / «Для него» above it (home-for-her.css, 2026-12-02) */
.lfm { position: relative; z-index: 0; margin-top: 132px; margin-bottom: 100px; }   /* 68px between the cards */
.lfm::before {
    content: ''; position: absolute; z-index: -1; top: -32px; right: -24px; bottom: -32px; left: -24px;
    border: 1px solid #e9e6e1; border-radius: 12px; background: #fff; pointer-events: none;
}
@media (max-width: 1147px) { .lfm { padding: 0 28px; } .lfm::before { right: 8px; left: 8px; } }
@media (max-width: 767px) {
    .lfm { margin-top: 100px; margin-bottom: 56px; padding: 0 16px; }
    .lfm::before { top: -24px; right: 8px; bottom: -20px; left: 8px; }   /* the title at the top: more room above it */
}
