/**
 * @file       hce.css
 * @summary    Премиальная типографика Hubstorie. Не трогает ширину/отступы
 *             контейнера; покрывает .article-body (/article/{slug}) и
 *             .article-content (карточки на index.php).
 */

.article-body,
.article-content { letter-spacing: -0.01em; }

.article-body p,
.article-content p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

@media (max-width: 768px) {
    .article-body p,
    .article-content p {
        text-align: left;
        hyphens: none;
        -webkit-hyphens: none;
    }
}

/* Золотистая буквица — работает для обоих контейнеров */
.gold-drop-cap p:first-of-type::first-letter,
.article-content p:first-of-type::first-letter,
.article-body p:first-of-type::first-letter {
    font-size: 3.8em;
    font-weight: 700;
    float: left;
    line-height: 0.82;
    margin-right: 0.12em;
    margin-top: 0.04em;
    color: #d4a574;
    text-shadow: 0 0 15px rgba(212, 165, 116, 0.25);
    font-feature-settings: "lnum" on, "onum" off, "pnum" on, "kern" on;
    font-family: 'Source Serif 4', Georgia, serif;
}

/* Дизайнерская цитата — для класса .hs-quote (из HCE) И для обычного <blockquote>
   из визуального редактора (кнопка "цитата" даёт чистый blockquote без класса). */
.article-body .hs-quote,
.article-content .hs-quote,
.article-body blockquote,
.article-content blockquote {
    position: relative;
    border-left: 3px solid #d4a574;
    padding: 1rem 0 1rem 2rem;
    margin: 2.5rem 0;
    background: linear-gradient(90deg, rgba(212,165,116,0.07) 0%, rgba(212,165,116,0) 100%);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #ffffff;
}
.article-body blockquote p,
.article-content blockquote p {
    margin-bottom: 0.5rem;
    text-align: left;
}
.article-body blockquote p:last-child,
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-body .hs-quote-decorator,
.article-content .hs-quote-decorator {
    position: absolute; top: -10px; left: 12px;
    font-size: 6rem; color: rgba(212,165,116,0.08);
    font-family: 'Georgia', serif; line-height: 1;
    user-select: none; pointer-events: none;
}
.article-body .hs-quote-text,
.article-content .hs-quote-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-style: italic; font-size: 1.2rem; line-height: 1.75;
    color: #ffffff; margin-bottom: 0.75rem !important;
    text-align: left !important;
}
.article-body .hs-quote-author,
.article-content .hs-quote-author {
    display: block; font-family: 'Inter Tight','Inter',sans-serif;
    font-style: normal; font-size: 0.9rem; font-weight: 600;
    color: #d4a574; letter-spacing: 0.05em; text-transform: uppercase;
}
@media (max-width: 768px) {
    .article-body .hs-quote,
    .article-content .hs-quote,
    .article-body blockquote,
    .article-content blockquote { margin: 2rem 0; padding-left: 1.25rem; }
    .article-body .hs-quote-text,
    .article-content .hs-quote-text { font-size: 1.1rem; }
}

/* Книжная вёрстка диалогов */
.article-body .hs-dialogue-line,
.article-content .hs-dialogue-line {
    padding-left: 1.5rem; text-indent: -1.5rem;
    margin-bottom: 1.25rem; text-align: left !important;
}
.article-body .hs-dialogue-dash,
.article-content .hs-dialogue-dash {
    color: #d4a574; font-weight: 700; margin-right: 0.25rem;
}

/* ---------------------------------------------------------------------
 * Ссылки, списки и подзаголовки в теле статьи (страница читателя).
 * Раньше <a> были дефолтно-синими — теперь акцентные, как в админке.
 * ------------------------------------------------------------------- */
.article-content a {
    color: #d4a574;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(212,165,116,0.5);
    transition: color .15s ease, text-decoration-color .15s ease;
    word-break: break-word;
}
.article-content a:hover { color: #e6c08f; text-decoration-color: #e6c08f; }

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--text, #ede4d3);
}
.article-content li { margin: 0.35rem 0; line-height: 1.6; }

.article-content h3,
.article-content h4 {
    font-family: 'Source Serif 4', Georgia, serif;
    color: var(--text, #ede4d3);
    line-height: 1.25;
    margin: 1.6rem 0 0.6rem;
}
.article-content h3 { font-size: 1.3rem; }
.article-content h4 { font-size: 1.12rem; }
