:root {
    --blog-ink: #24191d;
    --blog-muted: #6d6065;
    --blog-red: #b91f49;
    --blog-red-dark: #841332;
    --blog-rose: #f7dce5;
    --blog-cream: #fffaf7;
    --blog-paper: #ffffff;
    --blog-line: #eadfe2;
    --blog-green: #2e6b56;
    --blog-shadow: 0 18px 50px rgba(72, 30, 45, .10);
    --blog-radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.blog-page {
    margin: 0;
    background: var(--blog-cream);
    color: var(--blog-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body.blog-page img { max-width: 100%; }
body.blog-page a { color: inherit; }
.blog-shell, .container, .header-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 3000; background: #fff; padding: 12px 16px; border-radius: 8px; color: var(--blog-ink); }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.adult-warning { background: #78152f; color: #fff; padding: 9px 20px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .035em; }
.top-bar { background: var(--blog-ink); color: #e9dfe2; padding: 9px 0; text-align: center; font-size: 13px; }
.main-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--blog-line); box-shadow: 0 6px 22px rgba(53, 24, 34, .06); backdrop-filter: blur(12px); }
.header-container { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.logo img { display: block; width: 200px; height: 60px; object-fit: contain; }
.main-nav ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-nav a { position: relative; color: #382b30; text-decoration: none; font-size: 14px; font-weight: 650; transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--blog-red); }
.main-nav .nav-blog-link { color: var(--blog-red); }
.main-nav .nav-blog-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px; background: var(--blog-red); }
.main-nav #loguser { border: 1px solid var(--blog-line); padding: 9px 13px; border-radius: 999px; }

.eyebrow { margin: 0 0 10px; color: var(--blog-red); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.blog-hero { position: relative; overflow: hidden; padding: 76px 0 86px; color: #fff; background: linear-gradient(120deg, #28171d 0%, #5b1830 58%, #8f1e41 100%); }
.blog-hero::before { content: ""; position: absolute; width: 480px; height: 480px; top: -300px; right: 2%; border-radius: 50%; border: 80px solid rgba(255,255,255,.045); }
.blog-hero::after { content: ""; position: absolute; inset: 0; opacity: .22; background-image: radial-gradient(rgba(255,255,255,.8) .65px, transparent .65px); background-size: 15px 15px; mask-image: linear-gradient(90deg, transparent, #000); }
.blog-hero__inner { position: relative; z-index: 1; }
.blog-hero .eyebrow { color: #ffb3c9; }
.blog-hero h1 { max-width: 850px; margin: 0; font-family: Lora, Georgia, serif; font-size: clamp(2.45rem, 5.2vw, 4.65rem); line-height: 1.07; letter-spacing: -.035em; }
.blog-hero h1 span { color: #ffb3c9; }
.blog-hero__lead { max-width: 720px; margin: 25px 0 32px; color: #f1e6e9; font-size: 18px; }
.blog-search { display: flex; width: min(600px, 100%); background: #fff; padding: 6px; border-radius: 999px; box-shadow: 0 18px 36px rgba(0,0,0,.18); }
.blog-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 12px 18px; border-radius: 999px; color: var(--blog-ink); font: inherit; }
.blog-search button, .button { border: 0; border-radius: 999px; padding: 12px 21px; background: var(--blog-red); color: #fff; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.blog-search button:hover, .button:hover { background: var(--blog-red-dark); transform: translateY(-1px); }
.button--dark { display: inline-flex; background: var(--blog-ink); }

.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 48px; align-items: start; padding-block: 72px 88px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2, .sidebar-card h2, .blog-manifesto h2, .related-section h2 { margin: 0; font-family: Lora, Georgia, serif; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -.02em; }
.result-count { color: var(--blog-muted); font-size: 13px; white-space: nowrap; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.article-card { min-width: 0; overflow: hidden; background: var(--blog-paper); border: 1px solid var(--blog-line); border-radius: var(--blog-radius); box-shadow: 0 10px 30px rgba(72,30,45,.06); transition: transform .25s ease, box-shadow .25s ease; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--blog-shadow); }
.article-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.08fr .92fr; }
.article-card__media { display: block; overflow: hidden; min-height: 220px; background: var(--blog-rose); }
.article-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; aspect-ratio: 16 / 9; transition: transform .5s ease; }
.article-card:hover .article-card__media img { transform: scale(1.025); }
.article-card--featured .article-card__media img { aspect-ratio: auto; }
.article-card__body { display: flex; flex-direction: column; padding: 25px; }
.article-card--featured .article-card__body { justify-content: center; padding: 38px; }
.article-card__meta, .article-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--blog-muted); font-size: 12px; }
.category-pill { display: inline-flex; width: fit-content; border-radius: 999px; padding: 6px 10px; background: var(--blog-rose); color: var(--blog-red-dark) !important; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.article-card h3 { margin: 18px 0 12px; font-family: Lora, Georgia, serif; font-size: 1.38rem; line-height: 1.28; letter-spacing: -.015em; }
.article-card--featured h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { color: var(--blog-red); }
.article-card__body > p { margin: 0 0 24px; color: var(--blog-muted); font-size: 14px; }
.article-card__footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--blog-line); }
.read-link { color: var(--blog-red) !important; font-size: 13px; font-weight: 750; text-decoration: none; }
.read-link span { display: inline-block; transition: transform .2s ease; }
.read-link:hover span { transform: translateX(3px); }

.blog-sidebar { display: grid; gap: 20px; position: sticky; top: 110px; }
.sidebar-card { padding: 26px; background: #fff; border: 1px solid var(--blog-line); border-radius: var(--blog-radius); }
.sidebar-card h2 { font-size: 1.45rem; }
.category-list { display: grid; margin-top: 20px; }
.category-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--blog-line); color: var(--blog-muted); font-size: 14px; text-decoration: none; }
.category-list a:last-child { border: 0; }
.category-list a:hover, .category-list a.active { color: var(--blog-red); }
.category-list b { min-width: 25px; padding: 2px 7px; border-radius: 999px; background: #f5eff1; color: var(--blog-muted); font-size: 11px; text-align: center; }
.sidebar-card--accent { background: #eaf4f0; border-color: #d1e7df; }
.sidebar-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 14px; background: #fff; font-size: 20px; }
.sidebar-card--accent p { color: #496158; font-size: 14px; }
.sidebar-card--accent a { color: var(--blog-green); font-size: 13px; font-weight: 750; text-decoration: none; }
.rss-link { display: flex; justify-content: space-between; gap: 12px; padding: 17px 20px; border: 1px dashed #cdbdc2; border-radius: 14px; color: var(--blog-muted) !important; font-size: 13px; text-decoration: none; }
.empty-state { padding: 70px 30px; border: 1px dashed #d5c5ca; border-radius: var(--blog-radius); background: rgba(255,255,255,.65); text-align: center; }
.empty-state > span { font-size: 42px; }
.empty-state h3 { margin: 10px 0; font-family: Lora, Georgia, serif; font-size: 1.5rem; }
.empty-state p { color: var(--blog-muted); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 36px; }
.pagination a { color: var(--blog-red); font-size: 14px; font-weight: 750; text-decoration: none; }
.pagination span { color: var(--blog-muted); font-size: 13px; }

.blog-manifesto { padding: 62px 0; background: #f1e6e8; border-block: 1px solid #e1d3d7; }
.blog-manifesto__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.blog-manifesto__inner > p { margin: 0; color: var(--blog-muted); }

.article-hero { padding: 54px 0 66px; background: linear-gradient(180deg, #fff 0%, #fff8f7 100%); border-bottom: 1px solid var(--blog-line); }
.article-hero__inner { max-width: 930px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 30px; color: #85777c; font-size: 12px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--blog-red); }
.article-hero h1 { max-width: 900px; margin: 22px 0 18px; font-family: Lora, Georgia, serif; font-size: clamp(2.25rem, 5vw, 4.2rem); line-height: 1.1; letter-spacing: -.04em; }
.article-hero__excerpt { max-width: 800px; margin: 0; color: var(--blog-muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.article-byline { display: flex; align-items: center; gap: 12px; margin-top: 30px; color: var(--blog-muted); font-size: 13px; }
.article-byline > span:nth-child(2) { display: grid; }
.article-byline b { color: var(--blog-ink); font-size: 13px; }
.article-byline b a { color: inherit; text-decoration: none; }
.article-byline b a:hover { color: var(--blog-red); }
.article-byline small { color: var(--blog-muted); }
.author-mark { display: inline-grid; flex: 0 0 auto; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: var(--blog-ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.byline-separator { width: 1px; height: 30px; margin-inline: 8px; background: var(--blog-line); }
.article-image-wrap { max-width: 1180px; margin-top: 46px; }
.article-featured-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; box-shadow: var(--blog-shadow); }
.article-layout { display: grid; grid-template-columns: 210px minmax(0, 760px); justify-content: center; gap: 58px; padding-block: 68px 92px; }
.article-aside { min-width: 0; }
.sticky-card { position: sticky; top: 115px; display: grid; gap: 16px; padding-right: 24px; border-right: 1px solid var(--blog-line); color: var(--blog-muted); font-size: 13px; }
.sticky-card p { margin: 0; }
.sticky-card > a { color: var(--blog-red); font-weight: 700; text-decoration: none; }
.print-button { width: fit-content; border: 0; padding: 0; background: transparent; color: var(--blog-ink); font: inherit; font-weight: 700; cursor: pointer; }
.article-content { min-width: 0; color: #34282c; font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.82; }
.article-content > p:first-child { font-size: 21px; line-height: 1.72; color: #3b2d32; }
.article-content h2 { margin: 2.4em 0 .7em; color: var(--blog-ink); font-family: Lora, Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.05rem); line-height: 1.25; letter-spacing: -.02em; }
.article-content h3 { margin: 2em 0 .65em; font-family: Lora, Georgia, serif; font-size: 1.35rem; }
.article-content p { margin: 0 0 1.35em; }
.article-content a { color: var(--blog-red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content blockquote { margin: 2em 0; padding: 22px 26px; border-left: 4px solid var(--blog-red); background: #fff4f5; color: #4a333b; font-family: Lora, Georgia, serif; }
.article-content ul, .article-content ol { padding-left: 1.25em; }
.article-content li { margin-bottom: .55em; }
.source-box { margin: 2.4em 0 0; padding: 24px 26px; border: 1px solid #d1e7df; border-left: 5px solid var(--blog-green); border-radius: 16px; background: #f1f8f5; font-family: Inter, sans-serif; }
.article-content .source-box h2 { margin: 0 0 12px; font-family: Lora, Georgia, serif; font-size: 1.25rem; }
.source-box ul { margin: 0; padding-left: 1.2em; }
.source-box li { margin: .45em 0; font-size: 14px; line-height: 1.55; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--blog-line); font-family: Inter, sans-serif; }
.article-tags span { padding: 7px 11px; border-radius: 999px; background: #f2eaec; color: var(--blog-muted); font-size: 12px; }
.editorial-note { display: flex; gap: 18px; margin-top: 34px; padding: 26px; border: 1px solid var(--blog-line); border-radius: 18px; background: #fff; font-family: Inter, sans-serif; }
.editorial-note h2 { margin: 0 0 6px; font-family: Lora, Georgia, serif; font-size: 1.2rem; }
.editorial-note p { margin: 0; color: var(--blog-muted); font-size: 13px; line-height: 1.65; }

.related-section { padding: 70px 0 82px; background: #f1e7e9; border-top: 1px solid #e3d7da; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mini-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--blog-line); border-radius: 16px; }
.mini-card__image { display: block; overflow: hidden; }
.mini-card__image img { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease; }
.mini-card:hover img { transform: scale(1.03); }
.mini-card > div { padding: 20px; }
.category-label { color: var(--blog-red); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.mini-card h3 { margin: 8px 0 14px; font-family: Lora, Georgia, serif; font-size: 1.08rem; line-height: 1.35; }
.mini-card h3 a { text-decoration: none; }
.mini-card > div > span:last-child { color: var(--blog-muted); font-size: 11px; }
.not-found { padding-block: 120px; text-align: center; }
.not-found > span { color: var(--blog-rose); font-family: Lora, serif; font-size: 7rem; font-weight: 700; line-height: 1; }
.not-found h1 { margin: 10px 0; font-family: Lora, serif; font-size: 2.5rem; }
.not-found p { margin-bottom: 28px; color: var(--blog-muted); }

.main-footer { margin-top: 0; padding: 58px 20px 22px; background: #1f171a; color: #f7f0f2; }
.footer-content { width: min(1180px, 100%); margin: 0 auto 38px; display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 40px; }
.footer-section h4 { margin: 0 0 17px; color: #ff9db9; font-size: 15px; }
.footer-section p { margin: 0; color: #c8bdc1 !important; font-size: 13px !important; line-height: 1.75 !important; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #c8bdc1; font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.copyright { width: min(1180px, 100%); margin: 0 auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #958a8e; text-align: center; font-size: 12px; }
.copyright p { margin: 0; }

@media (max-width: 1020px) {
    .header-container { padding-block: 12px; flex-direction: column; gap: 10px; }
    .main-header { position: relative; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
    .main-nav a[href="/blog/"]::after { display: none; }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
    .rss-link { grid-column: 1 / -1; }
    .article-layout { grid-template-columns: 1fr; max-width: 800px; }
    .article-aside { display: none; }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .blog-shell, .container, .header-container { width: min(100% - 28px, 1180px); }
    .adult-warning { font-size: 10px; }
    .top-bar { display: none; }
    .logo img { width: 170px; height: auto; }
    .main-nav ul { gap: 9px 14px; }
    .main-nav a { font-size: 12px; }
    .main-nav #loguser { display: none; }
    .blog-hero { padding: 55px 0 62px; }
    .blog-hero__lead { font-size: 16px; }
    .blog-search button { padding-inline: 15px; }
    .blog-layout { padding-block: 48px 65px; gap: 34px; }
    .article-grid { grid-template-columns: 1fr; }
    .article-card--featured { display: block; grid-column: auto; }
    .article-card--featured .article-card__body { padding: 25px; }
    .article-card--featured .article-card__media img { aspect-ratio: 16 / 9; }
    .blog-sidebar { grid-template-columns: 1fr; }
    .rss-link { grid-column: auto; }
    .blog-manifesto__inner { grid-template-columns: 1fr; gap: 24px; }
    .article-hero { padding: 36px 0 45px; }
    .article-byline { align-items: flex-start; flex-wrap: wrap; }
    .byline-separator { display: none; }
    .article-image-wrap { width: 100%; margin-top: 0; }
    .article-featured-image { border-radius: 0; box-shadow: none; }
    .article-layout { padding-block: 42px 64px; }
    .article-content { font-size: 17px; line-height: 1.75; }
    .article-content > p:first-child { font-size: 19px; }
    .related-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-content { grid-template-columns: 1fr; gap: 28px; }
}

@media print {
    .adult-warning, .top-bar, .main-header, .main-footer, .article-aside, .related-section, .article-tags { display: none !important; }
    body.blog-page { background: #fff; }
    .article-hero { padding: 20px 0; }
    .article-featured-image { max-height: 350px; box-shadow: none; }
    .article-layout { display: block; padding: 30px 0; }
    .article-content { max-width: 100%; }
    .editorial-note { break-inside: avoid; }
}
