@font-face {
    font-family: garet;
    src: url('../fonts/Garet-Book.otf');
}
@font-face {
    font-family: dmserif;
    src: url('../fonts/DMSerifDisplay-Regular.ttf') format('truetype');
}

:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #161616;
    --bg-card: #1c1c1c;
    --accent: #B59B7A;
    --accent-hover: #c9af91;
    --text-primary: #ddd;
    --text-secondary: #999;
    --text-muted: #666;
    --border: #272727;
    --radius: 10px;
    --content-max: 100%;
    --text-max: 100%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: garet, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.75;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

/* ================================
   HEADER — sticky, full-width 
   ================================ */
.blog-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15,15,15,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    height: 56px;
    width: 100%;
}

.blog-header .logo {
    height: 26px;
    width: auto;
    opacity: 0.9;
}

.blog-header nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.blog-header nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.blog-header nav a:hover { color: var(--text-primary); }

.blog-header nav .cta-btn {
    background: var(--accent);
    color: #111;
    padding: 7px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
}
.blog-header nav .cta-btn:hover { background: var(--accent-hover); }

/* ================================
   ARTICLE HERO — compact banner
   ================================ */
.article-hero {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.article-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,15,15,0.05) 30%, rgba(15,15,15,0.92) 100%);
}

.article-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 8% 28px;
    z-index: 2;
}

.article-breadcrumb {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 8px;
}
.article-breadcrumb a { color: var(--accent); text-decoration: none; }

.article-hero-content h1 {
    font-family: dmserif, Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.25;
    max-width: 100%;
}

.article-meta {
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ================================
   ARTICLE BODY — left-aligned text
   ================================ */
.article-body {
    padding: 32px 8% 60px;
}

.article-body p {
    max-width: var(--text-max);
    margin-bottom: 1.1em;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body h2 {
    font-family: dmserif, Georgia, serif;
    font-size: 1.55rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-top: 2.2em;
    margin-bottom: 0.6em;
    max-width: var(--text-max);
    position: relative;
    padding-left: 16px;
}

.article-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.article-body h3 {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 1.6em;
    margin-bottom: 0.4em;
    max-width: var(--text-max);
}

.article-body ul, .article-body ol {
    max-width: var(--text-max);
    padding-left: 1.3em;
    margin-bottom: 1.1em;
}

.article-body li {
    margin-bottom: 0.35em;
    line-height: 1.7;
    font-size: 1.02rem;
}

.article-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Images inside article — inline, not full-bleed */
.article-body img {
    display: block;
    max-width: var(--text-max);
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 1.6em 0;
}

/* ================================
   TOC — sidebar-like, compact
   ================================ */
.toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 28px;
    max-width: 100%;
}

.toc h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 600;
}

.toc ol {
    padding-left: 1em;
    margin: 0;
    max-width: none;
}

.toc li {
    margin-bottom: 3px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
}
.toc a:hover { color: var(--accent); }

/* ================================
   INFO BOX
   ================================ */
.info-box {
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.4em 0;
    max-width: var(--text-max);
}

.info-box h4 {
    color: var(--accent);
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.info-box p {
    margin-bottom: 0 !important;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ================================
   CTA BLOCK
   ================================ */
.cta-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    margin-top: 3em;
    max-width: var(--text-max);
    text-align: center;
}

.cta-block h3 {
    font-family: dmserif, Georgia, serif;
    font-size: 1.3rem;
    color: var(--text-primary) !important;
    margin-bottom: 8px;
    padding: 0 !important;
}
.cta-block h3::before { display: none !important; }

.cta-block p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 18px !important;
}

a.cta-btn, .cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #111;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.2s;
}
.cta-btn:hover { background: var(--accent-hover); }

/* ================================
   FAQ
   ================================ */
.faq-section {
    margin-top: 2.5em;
    max-width: var(--text-max);
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.faq-item h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 4px;
}
.faq-item h3::before { display: none; }

.faq-item p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0 !important;
}

/* ================================
   TABLES
   ================================ */
.article-body table {
    width: 100%;
    max-width: var(--text-max);
    border-collapse: collapse;
    margin: 1.2em 0;
    font-size: 0.92rem;
}

.article-body th {
    background: var(--bg-secondary);
    color: var(--accent);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-body td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.article-body tr:hover td { background: var(--bg-card); }

/* ================================
   FOOTER (simple)
   ================================ */
.blog-footer, footer {
    padding: 30px 40px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.blog-footer a, footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

/* ================================
   MOBILE
   ================================ */
@media (max-width: 768px) {
    .blog-header { padding: 0 16px; height: 50px; }
    .blog-header nav { gap: 12px; }
    .blog-header .logo { height: 22px; }

    .article-hero { height: 240px; }
    .article-hero-content { padding: 0 16px 20px; }
    .article-hero-content h1 { font-size: 1.45rem; }

    .article-body { padding: 20px 16px 40px; }
    .article-body p, .article-body ul, .article-body ol,
    .article-body h2, .article-body h3, .article-body img,
    .info-box, .cta-block, .faq-section, .toc {
        max-width: 100%;
    }
    .article-body h2 { font-size: 1.3rem; }
    .article-body img { max-height: 260px; }
    .toc { max-width: 100%; }
}

@media (max-width: 480px) {
    .article-hero { height: 200px; }
    .article-hero-content h1 { font-size: 1.25rem; }
    .blog-header nav .cta-btn { padding: 6px 14px; font-size: 0.78rem; }
}
