/* ==========================================================================
   Textile Blog — article detail
   ========================================================================== */

/* ---------- Hero ---------- */
.article-hero {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    padding: 80px 5.5% 130px;
    background:
        radial-gradient(760px 380px at 86% -20%, rgba(166, 58, 46, .17), transparent 66%),
        linear-gradient(118deg, #20241E 0%, #20241E 58%, #20241E 100%);
}
.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 72px 72px;
    pointer-events: none;
}
.article-hero::after {
    content: '';
    position: absolute;
    top: -160px;
    right: -120px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(166, 58, 46, .16);
    border-radius: 50%;
    pointer-events: none;
}
.article-hero__border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, #A63A2E 25%, #A63A2E 75%, transparent);
}
.article-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}
.article-breadcrumb {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, .58);
    font-family: 'Mulish', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.6;
    text-transform: uppercase;
}
.article-breadcrumb a { color: rgba(255, 255, 255, .7); text-decoration: none; transition: color .2s; }
.article-breadcrumb a:hover { color: #D47464; }
.article-hero__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.article-cat {
    display: inline-block;
    padding: 6px 13px;
    border: 1px solid rgba(166, 58, 46, .46);
    background: rgba(166, 58, 46, .13);
    color: #D47464;
    font-family: 'Mulish', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.article-hero__series {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .58);
    font-family: 'Mulish', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.article-hero__series::before {
    content: '';
    width: 26px;
    height: 1px;
    background: rgba(166, 58, 46, .65);
}
.article-title {
    margin: 0 0 24px;
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, .52);
    font-family: 'Mulish', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.article-meta__item { display: inline-flex; align-items: center; gap: 8px; }
.article-meta__item svg { color: #A63A2E; }
.article-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .32);
}

/* ---------- Body ---------- */
.article-main {
    padding: 0 5.5% 96px;
    background:
        radial-gradient(700px 300px at 92% 0%, rgba(166, 58, 46, .045), transparent 70%),
        #f6f4f0;
}
.article-body-wrap {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: -64px auto 0;
    padding: clamp(34px, 6vw, 64px) clamp(24px, 6vw, 72px) clamp(44px, 6vw, 68px);
    background: #fff;
    border: 1px solid #e8e2d8;
    box-shadow: 0 28px 70px rgba(29, 32, 28, .1);
    font-family: 'Mulish', sans-serif;
}
.article-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 34px;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    color: #52636d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s, border-color .2s;
}
.article-back:hover { color: #8E2A22; border-color: rgba(166, 58, 46, .5); }
.article-back svg { width: 15px; height: 15px; transition: transform .2s; }
.article-back:hover svg { transform: translateX(-3px); }
.article-back--bottom {
    margin: 42px 0 0;
    padding-top: 28px;
    border-top: 1px solid #eee8de;
}

/* ---------- Rich text ---------- */
.article-content {
    color: #4C5049;
    font-size: 16.5px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}
.article-content > p:first-of-type {
    color: #1D201C;
    font-size: 18px;
    line-height: 1.85;
}
.article-content > p:first-of-type::first-letter {
    float: left;
    margin: 8px 10px 0 0;
    color: #A63A2E;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.4rem;
    font-weight: 700;
    line-height: .82;
}
.article-content h2 {
    position: relative;
    margin: 46px 0 18px;
    padding-top: 18px;
    color: #20241E;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.4rem, 2.3vw, 1.72rem);
    font-weight: 700;
    line-height: 1.35;
}
.article-content h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    height: 2px;
    background: #A63A2E;
}
.article-content h3 {
    margin: 30px 0 12px;
    padding-left: 13px;
    border-left: 3px solid #A63A2E;
    color: #20241E;
    font-family: 'Mulish', sans-serif;
    font-size: 1.17rem;
    font-weight: 700;
    line-height: 1.5;
}
.article-content h4 {
    margin: 26px 0 10px;
    color: #20241E;
    font-family: 'Mulish', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
}
.article-content p { margin: 0 0 19px; }
.article-content ul,
.article-content ol { margin: 0 0 22px 22px; padding: 0; }
.article-content li { margin-bottom: 9px; line-height: 1.8; }
.article-content li::marker { color: #A63A2E; }
.article-content strong { color: #20241E; font-weight: 700; }
.article-content a { color: #8E2A22; text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: #1D201C; }
.article-content img { max-width: 100%; height: auto; display: block; margin: 26px 0; }
.article-content blockquote {
    position: relative;
    margin: 30px 0;
    padding: 22px 26px 22px 30px;
    background: #f8f5ef;
    border-left: 3px solid #A63A2E;
    color: #32454f;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.13rem;
    font-style: italic;
    line-height: 1.7;
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content table {
    width: 100%;
    margin: 26px 0;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
    background: #FFFDF8;
    border: 1px solid #e4dfd6;
}
.article-content thead { background: #1D201C; }
.article-content th {
    padding: 13px 16px;
    background: #1D201C;
    color: #fff;
    font-weight: 700;
    letter-spacing: .03em;
    text-align: left;
    border: 1px solid #1D201C;
}
.article-content td {
    padding: 12px 16px;
    color: #4C5049;
    text-align: left;
    border: 1px solid #e4dfd6;
}
.article-content tbody tr:nth-child(even) { background: #faf8f3; }
.article-content tbody tr:hover { background: #f6f0e4; }
.article-content hr {
    height: 1px;
    margin: 34px 0;
    border: 0;
    background: #e8e2d8;
}

/* ---------- CTA ---------- */
.article-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin-top: 48px;
    padding: 28px 32px;
    background:
        radial-gradient(420px 200px at 92% 0%, rgba(166, 58, 46, .18), transparent 70%),
        #1D201C;
    color: #fff;
}
.article-cta__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #D47464;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.article-cta h3 {
    margin: 0;
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.05rem, 1.8vw, 1.34rem);
    font-weight: 700;
    line-height: 1.4;
}
.article-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: none;
    padding: 12px 20px;
    background: #A63A2E;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s, transform .2s;
}
.article-cta__btn:hover { background: #D47464; color: #1D201C; transform: translateY(-2px); }
.article-cta__btn svg { transition: transform .2s; }
.article-cta__btn:hover svg { transform: translateX(3px); }

/* ---------- Prev / next ---------- */
.article-pager {
    display: flex;
    gap: 18px;
    margin-top: 42px;
}
.article-pager__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    padding: 20px 22px;
    border: 1px solid #e4ded3;
    background: #fff;
    text-decoration: none;
    transition: border-color .25s, background .25s, transform .25s;
}
.article-pager__item:hover { border-color: #A63A2E; background: #fbf8f2; transform: translateY(-2px); }
.article-pager__item--next { text-align: right; align-items: flex-end; }
.article-pager__label {
    color: #8E2A22;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.article-pager__title {
    color: #20241E;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.article-pager__item.is-disabled { opacity: .42; }
.article-pager__item.is-disabled:hover {
    border-color: #e4ded3;
    background: #fff;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .article-hero { padding: 58px 5% 110px; }
    .article-breadcrumb { margin-bottom: 22px; }
    .article-main { padding: 0 5% 64px; }
    .article-body-wrap { margin-top: -58px; }
    .article-content { font-size: 16px; }
    .article-content > p:first-of-type { font-size: 17px; }
    .article-content table { display: block; overflow-x: auto; white-space: nowrap; }
    .article-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
    .article-pager { flex-direction: column; }
    .article-pager__item--next { text-align: left; align-items: flex-start; }
}
