/* ═══════════════════════════════════════════════════════
   THOMAS FISHER — Blog Styles
   Matches the main site design system
   Palette: Near-black + Amber gold
   Fonts: Space Grotesk + Inter (loaded by HTML)
═══════════════════════════════════════════════════════ */

:root {
    --bg:         #0B0A10;
    --bg-alt:     #0F0E16;
    --bg-card:    #141320;
    --border:     #1E1D2E;
    --border-mid: #2E2D44;
    --text:       #E9E8F4;
    --text-mid:   #9896AD;
    --text-dim:   #55546A;
    --accent:     #F5A623;

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;

    --radius-md:  14px;
    --ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
}

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

/* ── Navigation ──────────────────────────────────────── */
.navbar {
    background: rgba(11, 10, 16, 0.92) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 16px 32px !important;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
    color: var(--accent) !important;
    transition: opacity 0.2s;
}

.navbar-brand:hover { opacity: 0.65; }

/* ── Page Container ──────────────────────────────────── */
.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Article ─────────────────────────────────────────── */
.blog-article {
    padding: 64px 0 100px;
}

/* Title */
#title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 12px;
    padding-top: 56px;
}

/* Date */
#date {
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 52px;
    display: block;
}

/* ── Images ──────────────────────────────────────────── */
.img-thumbnail {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    background: var(--bg-card) !important;
    padding: 0 !important;
    width: 100%;
    height: auto;
    margin: 36px 0 !important;
}

.blog-image {
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-md);
}

.text-center .img-thumbnail {
    margin-left: auto;
    margin-right: auto;
}

.image-description {
    text-align: center;
    font-size: 13px;
    color: var(--text-dim);
    margin-top: -24px;
    margin-bottom: 40px;
    font-style: italic;
    line-height: 1.5;
}

/* ── Typography ──────────────────────────────────────── */
h2.blog-header {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-top: 64px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

h4 {
    font-family: var(--font-display) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    letter-spacing: -0.015em;
    margin-top: 36px !important;
    margin-bottom: 14px !important;
    line-height: 1.3;
}

p {
    color: var(--text-mid);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.82;
    letter-spacing: 0;
}

/* First paragraph after the title hero image gets slightly larger */
.container > p:first-of-type {
    font-size: 17px;
}

ul, ol {
    color: var(--text-mid);
    padding-left: 22px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
    line-height: 1.75;
    font-size: 16px;
}

/* Strong text inside content */
strong {
    color: var(--text);
    font-weight: 600;
}

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
}

a:hover {
    border-color: var(--accent);
    opacity: 0.85;
}

hr {
    border: none;
    border-top: 1px solid var(--border) !important;
    max-width: none !important;
    margin: 48px 0;
}

/* ── Contact Footer in Blog ──────────────────────────── */
#contact {
    margin-top: 80px;
    padding: 48px 0 80px;
    border-top: 1px solid var(--border);
}

#contact h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.025em;
    text-align: left !important;
    margin-bottom: 8px;
}

#contact hr {
    margin: 16px 0 32px !important;
}

#contact p {
    font-size: 14px;
    color: var(--text-mid);
}

#contact .text-center {
    text-align: left !important;
}

#contact .col-lg-6 {
    margin-bottom: 16px;
}

.logo-icon {
    display: inline-block;
    height: 22px;
    width: auto;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 600px) {
    .navbar { padding: 14px 20px !important; }
    .container { padding: 0 20px; }

    #title { padding-top: 40px; font-size: clamp(28px, 8vw, 40px); }

    h2.blog-header { margin-top: 48px; }

    .testimonial { padding: 28px 20px; }
}

/* ── Post Index ──────────────────────────────────────── */
.post-index {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.post-index li {
    margin: 0;
    border-top: 1px solid var(--border);
}

.post-index a {
    display: block;
    padding: 28px 0;
    border-bottom: none;
}

.post-index a:hover { opacity: 1; }

.post-date {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 8px;
}

.post-title {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text);
    transition: color 0.2s var(--ease);
}

.post-index a:hover .post-title { color: var(--accent); }

.post-desc {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.6;
}
