/* ============================================================
   Opulence 2026 · Blog (archive + single)
   Mirrors brief/blog-article-prototype.html mapped to theme tokens.
   ============================================================ */

/* ===== ARTICLE HERO ===== */
.ahero { background: var(--cream-2); border-bottom: 1px solid var(--line-soft); }
.ahero .wrap { padding: 38px 20px 44px; max-width: 860px; }
.ahero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); margin-bottom: 18px; }
.ahero h1 em { font-style: italic; color: var(--gold-deep); }

.crumb { font-size: .75rem; color: var(--muted); margin-bottom: 22px; }
.crumb a:hover { color: var(--gold-text); }
.crumb span,
.crumb .breadcrumb_last { margin: 0 8px; opacity: .55; }

.cat-chip {
    display: inline-block; font-size: .62rem; letter-spacing: .16em;
    text-transform: uppercase; background: var(--burgundy); color: var(--cream);
    padding: 6px 13px; font-weight: 500; margin-bottom: 18px;
}

.standfirst {
    font-size: 1.18rem; color: var(--muted); font-weight: 300;
    max-width: 60ch; margin-bottom: 26px;
}

.byline {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding-top: 22px; border-top: 1px solid var(--line);
}
.avatar {
    width: 46px; height: 46px; border-radius: 50%; background: var(--forest-deep);
    color: var(--gold-2); display: flex; align-items: center; justify-content: center;
    font-family: var(--display); font-size: 1.15rem; flex-shrink: 0; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; }
.by-meta b { display: block; font-size: .9rem; font-weight: 500; }
.by-meta span { font-size: .78rem; color: var(--muted); }

.share { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.share-lbl {
    font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted); margin-right: 4px;
}
.sbtn {
    width: 36px; height: 36px; border: 1px solid var(--line); background: #fff;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: .25s; border-radius: var(--radius);
}
.sbtn:hover { border-color: var(--gold); background: var(--cream-2); }
.sbtn svg { width: 16px; height: 16px; stroke: var(--forest); fill: none; stroke-width: 1.5; }

/* ===== FEATURED IMAGE ===== */
.feat { max-width: 1040px; margin: 0 auto; padding: 44px 30px 0; }
.feat-img {
    aspect-ratio: 16/9; background: linear-gradient(150deg, var(--cream-2), #e5dcc9);
    overflow: hidden; border: 1px solid var(--line-soft);
}
.feat-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== LAYOUT ===== */
.layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px;
    align-items: start; padding: 48px 0 20px; max-width: 1100px; margin: 0 auto;
}
.article { max-width: none; font-size: 1.02rem; }
.article .entry-content > * { margin-bottom: 17px; }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 34px 0 14px; }
.article h3 { font-size: 1.4rem; margin: 28px 0 10px; }
.article p { margin-bottom: 17px; color: var(--muted); }
.article p strong,
.article li strong { color: var(--ink); font-weight: 500; }
.article a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 2px; }
.article img { max-width: 100%; height: auto; }
.article blockquote {
    border-left: 3px solid var(--gold); padding: 6px 0 6px 26px; margin: 30px 0;
    font-family: var(--display); font-size: 1.6rem; font-style: italic;
    color: var(--forest); line-height: 1.3;
}
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; color: var(--muted); }
.article li { margin-bottom: 8px; }

.tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
    font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted); border: 1px solid var(--line); padding: 6px 12px;
    text-decoration: none; border-radius: var(--radius);
}
.tags a:hover { border-color: var(--gold); color: var(--gold-text); }

/* ===== AUTHOR BOX ===== */
.article .author {
    display: flex; gap: 18px; align-items: flex-start; margin: 40px 0 0;
    padding: 24px; border: 1px solid var(--line); background: var(--cream-2);
}
.article .author .avatar { width: 64px; height: 64px; font-size: 1.5rem; }
.article .author .a-role {
    font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold-text); font-weight: 500; margin-bottom: 4px;
}
.article .author h4 { font-size: 1.2rem; margin-bottom: 6px; }
.article .author p { font-size: .88rem; margin-bottom: 8px; }
.article .author .a-link {
    font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--forest); font-weight: 500;
}

/* ===== SIDEBAR ===== */
.side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.card-h {
    background: var(--forest-deep); color: var(--cream); padding: 15px 20px;
    font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
}
.card-b { padding: 20px; }
.pop-post {
    display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft);
    text-decoration: none;
}
.pop-post:first-child { padding-top: 0; }
.pop-post:last-child { border-bottom: none; padding-bottom: 0; }
.pp-img {
    width: 56px; height: 56px; background: linear-gradient(150deg, var(--cream-2), #e5dcc9);
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-family: var(--display); color: rgba(154, 119, 57, .35); overflow: hidden;
}
.pp-img img { width: 100%; height: 100%; object-fit: cover; }
.pp-b b { display: block; font-family: var(--display); font-size: 1rem; line-height: 1.2; margin-bottom: 3px; color: var(--ink); }
.pp-b span { font-size: .7rem; color: var(--muted); }

/* ===== ARCHIVE HERO ===== */
.archive-hero {
    background: var(--forest-deep); color: var(--cream);
    padding: 56px 0; border-bottom: 1px solid var(--line-soft);
}
.archive-hero .crumb,
.archive-hero .crumb a { color: rgba(246, 242, 232, .7); }
.archive-hero .eyebrow.on-dark { color: var(--gold-2); }
.archive-hero h1 { color: var(--cream); font-size: clamp(2rem, 4vw, 3.2rem); margin: 12px 0; }
.archive-hero .intro { color: rgba(246, 242, 232, .78); max-width: 60ch; }

/* ===== POST GRID (archive + related) ===== */
.site-main { padding: 48px 0 64px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post {
    background: #fff; border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s;
    display: flex; flex-direction: column;
    padding: 20px;
    overflow: hidden;
    min-width: 0;
}
.post-img {
    aspect-ratio: 16/10; background: linear-gradient(150deg, var(--cream-2), #e5dcc9);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--display); font-size: 2.2rem; color: rgba(154, 119, 57, .28);
    overflow: hidden;
}
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-b { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta {
    display: flex; justify-content: space-between; font-size: .6rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text);
    font-weight: 500; margin-bottom: 11px;
}
.post h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: 10px; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { color: var(--gold-text); }
.post p { font-size: .84rem; color: var(--muted); margin-bottom: 14px; flex: 1; }
.post .more {
    font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--forest); font-weight: 500; text-decoration: none;
}

/* ===== RELATED SECTION ===== */
.sec { padding: 64px 0; border-top: 1px solid var(--line-soft); }
.sec.alt { background: var(--cream-2); }
.sec-head { margin-bottom: 32px; }
.sec-head.mid { text-align: center; max-width: 58ch; margin: 0 auto 32px; }
.sec-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 12px; }

/* ===== PAGINATION ===== */
.pagination { margin-top: 44px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line);
    background: #fff; color: var(--forest); text-decoration: none; font-size: .85rem;
    transition: .25s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    border-color: var(--gold); background: var(--forest-deep); color: var(--cream);
}

.no-posts { padding: 40px 0; color: var(--muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
    .layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .side { position: static; }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .post-grid { grid-template-columns: 1fr; }
    .share { margin-left: 0; }
    .article .author { flex-direction: column; }
}
