/* ================================================================
   INNER PAGES — shared layout (about.html, blog.html, blog-post)
   Imports the main styles.css for variables & components.
   ================================================================ */

/* ── Inner-page hero banner ─────────────────────────────────────── */
.inner-hero {
    min-height: 38vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 120px 40px 48px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(201,147,58,0.09) 0%, transparent 70%),
                var(--bg);
}
.inner-hero .hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201,147,58,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,147,58,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift {
    from { background-position: 0 0; }
    to   { background-position: 40px 40px; }
}
.inner-hero .section-label { margin-bottom: 10px; }
.inner-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3.6rem);
    color: var(--cream);
    margin-bottom: 12px;
}
.inner-hero p {
    color: var(--cream-dim);
    font-size: 1rem;
    max-width: 560px;
}
.inner-hero-line {
    width: 60px; height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin: 18px auto 0;
}
/* corner decorations reused */
.hero-corner {
    position: absolute;
    width: 28px; height: 28px;
    border-color: var(--gold);
    border-style: solid;
    opacity: 0.45;
}
.hero-corner.tl { top: 80px; left: 24px; border-width: 2px 0 0 2px; }
.hero-corner.tr { top: 80px; right: 24px; border-width: 2px 2px 0 0; }
.hero-corner.bl { bottom: 24px; left: 24px; border-width: 0 0 2px 2px; }
.hero-corner.br { bottom: 24px; right: 24px; border-width: 0 2px 2px 0; }

/* ── Page content wrapper ───────────────────────────────────────── */
.page-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 64px 40px 100px;
}

/* ── Prose ──────────────────────────────────────────────────────── */
.prose h2 {
    font-family: var(--font-head);
    font-size: 1.7rem;
    color: var(--cream);
    margin: 48px 0 16px;
    position: relative;
    display: inline-block;
}
.prose h2::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 36px; height: 3px;
    background: var(--gold);
    border-radius: 2px;
}
.prose h3 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: var(--cream);
    margin: 28px 0 10px;
}
.prose p {
    font-size: 0.97rem;
    line-height: 1.9;
    color: var(--cream-dim);
    margin-bottom: 16px;
}
.prose ul {
    padding-left: 20px;
    margin-bottom: 16px;
}
.prose li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--cream-dim);
    margin-bottom: 6px;
}
.prose li::marker { color: var(--gold); }
.prose a { color: var(--gold); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--cream); font-weight: bold; }

/* Divider */
.prose hr {
    border: none;
    border-top: 1px solid rgba(201,147,58,0.15);
    margin: 48px 0;
}

/* ── Stat grid (About page) ─────────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 28px 0;
}
.stat-card {
    background: var(--card);
    border: 1px solid rgba(201,147,58,0.15);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
}
.stat-number {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--gold);
    display: block;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--cream-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Skills table ───────────────────────────────────────────────── */
.skills-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 24px 0;
}
.skill-category h4 {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.skill-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.skill-pill {
    font-size: 0.72rem;
    padding: 4px 12px;
    border-radius: 2px;
    background: rgba(201,147,58,0.07);
    border: 1px solid rgba(201,147,58,0.2);
    color: var(--cream-dim);
}

/* ── Blog card grid ─────────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 12px;
}
.blog-card {
    background: var(--card);
    border: 1px solid rgba(201,147,58,0.12);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.blog-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201,147,58,0.4);
    box-shadow: 0 14px 36px rgba(0,0,0,0.45), 0 0 24px var(--gold-glow);
}
.blog-card:hover::before { opacity: 1; }
.blog-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.1em;
}
.blog-tag {
    font-size: 0.65rem;
    padding: 2px 8px;
    border: 1px solid rgba(201,147,58,0.3);
    border-radius: 2px;
    color: var(--cream-dim);
    text-transform: uppercase;
}
.blog-card h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--cream);
}
.blog-card p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--cream-dim);
    flex: 1;
}
.blog-read-more {
    font-size: 0.78rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.blog-read-more::after { content: '→'; transition: transform 0.2s; }
.blog-card:hover .blog-read-more::after { transform: translateX(4px); }

/* Empty state */
.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed rgba(201,147,58,0.2);
    border-radius: var(--radius);
    color: var(--cream-dim);
}
.blog-empty h3 { font-family: var(--font-head); color: var(--cream-dim); margin-bottom: 10px; }

/* ── Blog post prose ────────────────────────────────────────────── */
.post-header { margin-bottom: 48px; }
.post-header h1 {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--cream);
    margin: 16px 0 12px;
    line-height: 1.2;
}
.post-cover {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid rgba(201,147,58,0.15);
    margin: 28px 0;
    max-height: 400px;
    object-fit: cover;
}
.post-body h2 { font-family: var(--font-head); font-size: 1.5rem; color: var(--cream);
    margin: 40px 0 14px; position: relative; display: inline-block; }
.post-body h2::after { content: ''; position: absolute; bottom: -6px; left: 0;
    width: 32px; height: 3px; background: var(--gold); border-radius: 2px; }
.post-body h3 { font-family: var(--font-head); font-size: 1.1rem; color: var(--cream); margin: 28px 0 10px; }
.post-body p  { font-size: 0.97rem; line-height: 1.95; color: var(--cream-dim); margin-bottom: 18px; }
.post-body ul, .post-body ol { padding-left: 22px; margin-bottom: 18px; }
.post-body li { font-size: 0.95rem; line-height: 1.85; color: var(--cream-dim); margin-bottom: 6px; }
.post-body li::marker { color: var(--gold); }
.post-body a { color: var(--gold); }
.post-body blockquote {
    border-left: 3px solid var(--gold);
    margin: 28px 0;
    padding: 12px 24px;
    background: rgba(201,147,58,0.05);
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: var(--cream-dim);
}
.post-body code {
    font-family: monospace;
    background: rgba(201,147,58,0.08);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.88em;
    color: var(--gold);
}
.post-body pre {
    background: var(--surface);
    border: 1px solid rgba(201,147,58,0.15);
    border-radius: var(--radius);
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
}
.post-body pre code { background: none; padding: 0; color: var(--cream-dim); }
.post-body img { max-width: 100%; border-radius: var(--radius); margin: 20px 0;
    border: 1px solid rgba(201,147,58,0.15); }
.post-body hr { border: none; border-top: 1px solid rgba(201,147,58,0.15); margin: 40px 0; }

/* back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 32px;
    transition: gap 0.2s;
}
.back-link:hover { gap: 12px; }
.back-link::before { content: '←'; }

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .page-content { padding: 40px 20px 80px; }
    .inner-hero   { padding: 110px 20px 40px; }
    .blog-grid    { grid-template-columns: 1fr; }
    .skills-block { grid-template-columns: 1fr 1fr; }
}

/* ===================== inner.css (FULL WITH MOBILE) ===================== */

/* KEEP YOUR ORIGINAL FILE CONTENT ABOVE */

@media (max-width: 768px) {

    .inner-hero {
        padding: 100px 20px 40px;
    }

    .inner-hero h1 {
        font-size: 1.8rem;
    }

    .page-content {
        padding: 40px 20px 80px;
    }

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

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

    .skills-block {
        grid-template-columns: 1fr;
    }
}
