@import url("/css/site-footer.css");

:root {
    --wine: #7f0000;
    --wine-dark: #4f0008;
    --wine-bright: #aa1827;
    --ink: #242429;
    --muted: #6f6b6d;
    --paper: #fbf8f6;
    --soft: #f6e9e7;
    --line: #eadfdb;
    --white: #fff;
    --shadow: 0 18px 55px rgba(52, 28, 28, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: #fff; }
.skip-link:focus { left: 8px; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(127,0,0,.08); background: rgba(255,255,255,.97); box-shadow: 0 8px 28px rgba(45,20,22,.05); backdrop-filter: blur(10px); }
.site-header__inner { width: min(1200px, calc(100% - 40px)); min-height: 92px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.brand img { width: 230px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 25px; }
.site-nav a { position: relative; color: var(--ink); font-size: 13px; font-weight: 750; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--wine); transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a.is-current::after { right: 0; }

.blog-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #2b2629 0%, #171518 52%, #4f0008 100%); color: #fff; }
.blog-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -130px; top: -220px; border: 105px solid rgba(255,255,255,.045); border-radius: 50%; }
.blog-hero::after { content: ""; position: absolute; width: 300px; height: 300px; left: -150px; bottom: -200px; border-radius: 50%; background: rgba(127,0,0,.42); }
.blog-hero__inner { position: relative; z-index: 2; width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 104px 0 95px; }
.blog-hero__inner::after { display: none; }
.blog-hero h1 { max-width: 900px; margin: 8px 0 25px; color: #fff; font-size: clamp(48px, 6.4vw, 78px); line-height: .99; letter-spacing: -.05em; }
.blog-hero p:last-child { max-width: 690px; margin: 0; color: rgba(255,255,255,.82); font-size: 19px; }
.eyebrow { margin: 0 0 8px; color: var(--wine); font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.blog-hero .eyebrow { color: #ffcbc2; }

.post-list { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 92px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 38px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; }
.section-heading > span { color: var(--muted); font-size: 14px; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 35px rgba(53,27,29,.065); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(53,27,29,.12); }
.post-card__image { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #ddd; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-card__image img { transform: scale(1.025); }
.post-card__body { padding: 30px; }
.post-card h2 { margin: 10px 0 14px; font-size: 27px; line-height: 1.2; letter-spacing: -.025em; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card__body > p:not(.post-meta) { color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.post-meta span:first-child { color: var(--wine); }
.read-more { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 800; text-decoration: none; }
.empty-state { padding: 70px; border: 1px dashed #ceb8b1; border-radius: 16px; text-align: center; }

.blog-cta { width: min(1120px, calc(100% - 40px)); margin: 0 auto 90px; padding: 55px; border-radius: 18px; background: linear-gradient(135deg, var(--wine-dark), var(--wine)); box-shadow: var(--shadow); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.blog-cta .eyebrow { color: #e3a29b; }
.blog-cta h2 { margin: 0; font-size: clamp(27px, 4vw, 40px); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 25px; border: 1px solid #fff; border-radius: 9px; background: #fff; box-shadow: 0 13px 30px rgba(40,0,5,.2); color: var(--wine); font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 17px 34px rgba(40,0,5,.28); background: #fff; color: var(--wine); }

.article { padding-bottom: 80px; }
.article-header { width: min(930px, calc(100% - 40px)); margin: 0 auto; padding: 84px 0 48px; text-align: center; }
.back-link { display: inline-block; margin-bottom: 34px; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.article-header h1 { margin: 9px auto 24px; font-size: clamp(38px, 6vw, 66px); line-height: 1.08; letter-spacing: -.045em; }
.article-lead { max-width: 760px; margin: 0 auto 25px; color: var(--muted); font-size: 20px; line-height: 1.6; }
.post-meta--centered { justify-content: center; }
.article-image { width: min(1120px, calc(100% - 40px)); margin: 0 auto 65px; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow); }
.article-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-layout { width: min(980px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 190px minmax(0, 720px); gap: 54px; align-items: start; }
.article-aside { position: sticky; top: 30px; padding-top: 16px; border-top: 3px solid var(--wine); color: var(--muted); font-size: 14px; line-height: 1.55; }
.article-aside span { color: var(--wine); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.article-content { min-width: 0; }
.article-content > p:first-child { color: #3d3e42; font-size: 20px; line-height: 1.75; }
.article-content h2 { margin: 52px 0 16px; font-size: 32px; line-height: 1.2; letter-spacing: -.025em; }
.article-content h3 { margin: 35px 0 12px; font-size: 23px; line-height: 1.3; }
.article-content p { margin: 0 0 22px; }
.article-content blockquote { margin: 28px 0; padding: 21px 26px; border-left: 4px solid var(--wine); background: var(--soft); color: #4c4543; font-style: italic; }
.article-content ul, .article-content ol { margin: 0 0 25px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content a { font-weight: 700; }
.article-footer { width: min(720px, calc(100% - 40px)); margin: 65px auto 0; padding-top: 38px; border-top: 1px solid var(--line); text-align: center; }
.article-footer p { color: var(--muted); }
.preview-banner { padding: 10px 20px; background: #fff1bf; color: #5e4900; text-align: center; font-size: 14px; font-weight: 700; }
.not-found { min-height: 60vh; padding: 100px 20px; text-align: center; }
.not-found h1 { margin: 0 0 15px; font-size: 50px; }

.site-footer { border-top: 4px solid var(--wine); background: #1e1d20; color: #aaa2a5; }
.site-footer__inner { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 62px 0 42px; text-align: center; }
.site-footer__brand { color: #fff; font-size: 22px; font-weight: 800; text-decoration: none; }
.site-footer p { margin: 8px 0 20px; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 28px; margin-bottom: 24px; }
.site-footer nav a { color: #ddd; font-size: 14px; }

@media (max-width: 800px) {
    .site-header__inner { padding: 18px 0; flex-direction: column; gap: 16px; }
    .brand img { width: 220px; }
    .site-nav { width: 100%; justify-content: center; flex-wrap: wrap; gap: 12px 22px; }
    .blog-hero__inner { padding: 68px 0 72px; }
    .post-grid { grid-template-columns: 1fr; }
    .blog-cta { padding: 38px 30px; align-items: flex-start; flex-direction: column; }
    .article-layout { display: block; }
    .article-aside { position: static; margin-bottom: 40px; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .site-header__inner, .blog-hero__inner, .post-list, .blog-cta, .article-header, .article-image, .article-layout { width: min(100% - 28px, 1180px); }
    .site-nav a { font-size: 12px; }
    .post-list { padding: 55px 0 65px; }
    .post-card__body { padding: 23px; }
    .article-header { padding-top: 45px; }
    .article-image { margin-bottom: 38px; border-radius: 10px; }
    .article-content h2 { margin-top: 42px; font-size: 27px; }
}
