:root {
    --bg: #080704;
    --panel: #15110a;
    --panel-2: #21190d;
    --gold: #d9a441;
    --gold-2: #f0cf82;
    --line: rgba(240, 207, 130, 0.24);
    --text: #f5efe3;
    --muted: #b9ad98;
    --danger: #d46b5d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.media-frame {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #080805;
    border: 1px solid rgba(214, 170, 82, .18);
}

.media-frame img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    margin: 0 auto;
}

.hero-banner-frame,
.wide-banner-frame {
    width: 100%;
    max-width: 960px;
    overflow: hidden;
    background: #070704;
    border: 1px solid rgba(214, 170, 82, .22);
}

.hero-banner-frame img,
.wide-banner-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.category-card-media {
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #070704;
}

.category-card-media img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    margin: 0 auto;
}

.post-card-media {
    height: 190px;
    margin-bottom: 16px;
}

.article-image-wrap {
    width: 100%;
    max-width: 860px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
    background: #070704;
    border: 1px solid rgba(214, 170, 82, .18);
}

.article-image-wrap img {
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.hero-visual,
.hero-image-wrap,
.card-image-wrap,
.image-placeholder {
    display: block;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #2b1d08, #080704 48%, #5f4314);
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    min-height: 160px;
}

.image-placeholder::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    min-height: 120px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(8, 7, 4, 0.94);
    border-bottom: 1px solid var(--line);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 20px;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand-symbol {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--gold);
    color: var(--gold-2);
}

.primary-nav {
    display: flex;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

.primary-nav a:hover,
.text-link:hover {
    color: var(--gold-2);
}

.cta-buttons,
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 18px;
    border: 1px solid var(--line);
    font-weight: 700;
    font-size: 14px;
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: #120d05;
}

.btn-outline {
    color: var(--gold-2);
    background: transparent;
}

.hero,
.page-hero,
.section,
.split-section,
.content-band,
.article-page,
.faq-list,
.footer-cta,
.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 20px;
}

.hero {
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    min-height: 560px;
}

.hero-copy,
.hero-media,
.hero-visual,
.hero-inner > *,
.category-grid > *,
.post-grid > *,
.split-section > *,
.content-band > *,
.footer-grid > * {
    min-width: 0;
}

.hero-copy h1,
.page-hero h1,
.article-page h1 {
    margin: 0 0 18px;
    max-width: 820px;
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1.05;
}

.hero-copy p,
.page-hero p,
.lead {
    max-width: 700px;
    color: var(--muted);
    font-size: 18px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold-2);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.side-panel,
.answer-box,
.post-card,
.faq-item,
.category-card,
.list-item {
    background: var(--panel);
    border: 1px solid var(--line);
}

.hero-media {
    min-width: 0;
}

.hero-summary {
    padding: 18px 0 0;
}

.hero-summary span {
    color: var(--gold-2);
}

.hero-summary strong {
    display: block;
    margin: 10px 0;
    font-size: 34px;
    line-height: 1.1;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2,
.mid-cta h2,
.content-main h2 {
    margin: 0;
    font-size: 30px;
}

.category-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.category-card,
.post-card,
.faq-item,
.list-item {
    display: block;
    padding: 22px;
}

.category-card {
    min-width: 0;
    overflow: hidden;
    background: #0d0d08;
    border: 1px solid rgba(214, 170, 82, .18);
}

.category-card span {
    color: var(--gold-2);
    font-size: 13px;
    font-weight: 700;
}

.category-card strong,
.list-item span {
    display: block;
    margin: 8px 0;
    font-size: 19px;
}

.category-card p,
.list-item p,
.post-card p,
.faq-item p,
.footer-grid p,
.mid-cta p,
.content-main p,
.side-panel p,
.article-body p,
.answer-box p {
    color: var(--muted);
}

.split-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.list-stack {
    display: grid;
    gap: 12px;
}

.mid-cta {
    max-width: 1180px;
    margin: 24px auto 56px;
    padding: 34px 20px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.mid-cta.inline {
    margin: 34px 0 0;
}

.content-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

.content-main,
.side-panel {
    padding: 26px;
}

.feature-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.feature-row span {
    border: 1px solid var(--line);
    color: var(--gold-2);
    padding: 8px 12px;
}

.post-card h2,
.faq-item h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.article-page {
    max-width: 860px;
}

.answer-box,
.article-body {
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.article-body-inline {
    padding: 0;
    border: 0;
    background: transparent;
}

.article-body h2,
.article-body h3 {
    color: var(--gold-2);
}

.article-body ul,
.article-body ol {
    color: var(--muted);
}

.related-links-section {
    max-width: 1180px;
    margin: 34px auto 56px;
    padding: 30px 20px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(33, 25, 13, 0.92), rgba(8, 7, 4, 0.92));
}

.article-page .related-links-section {
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
}

.related-links-section h2 {
    margin: 0 0 18px;
    color: var(--gold-2);
    font-size: 26px;
}

.related-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.related-links-column {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.related-link-item {
    display: block;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(214, 170, 82, .2);
    background: rgba(13, 13, 8, .84);
    color: var(--gold-2);
    font-weight: 700;
}

.related-link-item:hover {
    border-color: var(--gold);
    background: rgba(217, 164, 65, .12);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #050402;
}

.footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-top: 20px;
}

.footer-grid a {
    display: block;
    color: var(--muted);
    margin: 6px 0;
}

.mobile-fixed-cta {
    display: none;
}

.go-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 20px;
}

.go-box {
    max-width: 520px;
    padding: 34px;
    border: 1px solid var(--line);
    background: var(--panel);
    text-align: center;
}

@media (max-width: 900px) {
    .topbar,
    .content-band,
    .footer-cta,
    .split-section {
        grid-template-columns: 1fr;
    }

    .topbar {
        display: grid;
    }

    .primary-nav {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .category-grid,
    .post-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .header-actions {
        display: none;
    }

    body {
        padding-bottom: 72px;
    }

    .mobile-fixed-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px;
        background: rgba(8, 7, 4, 0.96);
        border-top: 1px solid var(--line);
    }

    .mobile-fixed-cta .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-wrap {
        width: min(100% - 24px, 1180px);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: auto;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .related-links-grid {
        grid-template-columns: 1fr;
    }

    .post-card-media {
        min-height: 160px;
    }
}
