:root {
    --bg: #0b0b10;
    --surface: rgba(255, 255, 255, 0.055);
    --surface-strong: rgba(255, 255, 255, 0.09);
    --gold: #ffd700;
    --text: #f5f5f2;
    --muted: rgba(255, 255, 255, 0.64);
    --dim: rgba(255, 255, 255, 0.42);
    --line: rgba(255, 255, 255, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(900px 420px at 76% -8%, rgba(255, 215, 0, 0.07), transparent 62%),
        var(--bg);
    color: var(--text);
    font-family: 'Montserrat', system-ui, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

:focus-visible {
    border-radius: 2px;
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.site-header,
.site-footer {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 7px;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.top-nav a {
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
    border-bottom-color: var(--gold);
    color: var(--text);
}

.blog-shell {
    width: min(1120px, calc(100% - 2.5rem));
    min-height: calc(100vh - 180px);
    margin: 0 auto;
    padding: 4.5rem 0 5rem;
}

.blog-hero {
    max-width: 760px;
    margin-bottom: 3rem;
}

.eyebrow {
    margin-bottom: 0.85rem;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.blog-hero h1,
.category-heading h1,
.article-header h1 {
    font-family: 'Anton', 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.03;
    text-transform: uppercase;
}

.blog-hero h1 {
    margin-bottom: 1.3rem;
    font-size: clamp(3.2rem, 8vw, 6.2rem);
}

.blog-hero h1 span {
    color: var(--gold);
}

.blog-hero > p:last-child {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.08rem;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2.2rem;
    padding-bottom: 1.3rem;
    border-bottom: 1px solid var(--line);
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.72rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.category-pill:hover,
.category-pill.active {
    border-color: rgba(255, 215, 0, 0.45);
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold);
}

.category-pill span {
    color: var(--dim);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.post-card {
    display: flex;
    min-height: 270px;
    flex-direction: column;
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.28);
    background: var(--surface-strong);
}

.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
}

.post-card-meta time {
    margin-right: 0.25rem;
    color: var(--dim);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.post-card h2 {
    margin-bottom: 0.7rem;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.22;
}

.post-card h2 a {
    text-decoration: none;
}

.post-card > p {
    margin-bottom: 1.4rem;
    color: var(--muted);
    font-size: 0.93rem;
}

.read-link {
    margin-top: auto;
    color: var(--gold);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.read-link span {
    display: inline-block;
    transition: transform 0.18s ease;
}

.read-link:hover span {
    transform: translateX(4px);
}

.breadcrumbs {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 2.4rem;
    color: var(--dim);
    font-size: 0.82rem;
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--gold);
}

.category-heading {
    margin-bottom: 2.5rem;
}

.category-heading h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(2.8rem, 7vw, 5rem);
}

.category-heading > p:last-child,
.empty-state {
    color: var(--muted);
}

.article-shell {
    width: min(780px, calc(100% - 2.5rem));
    min-height: calc(100vh - 180px);
    margin: 0 auto;
    padding: 3rem 0 5rem;
}

.article-header {
    margin-bottom: 2.6rem;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid var(--line);
}

.article-header h1 {
    margin-bottom: 1.2rem;
    font-size: clamp(2.8rem, 7vw, 5.4rem);
}

.article-deck {
    max-width: 700px;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 1.15rem;
}

.article-byline {
    color: var(--dim);
    font-size: 0.82rem;
    font-weight: 700;
}

.article-cover {
    width: 100%;
    max-height: 460px;
    margin-bottom: 2.6rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    object-fit: cover;
}

.article-body {
    font-size: 1.02rem;
}

.article-body > * + * {
    margin-top: 1.25rem;
}

.article-body h2,
.article-body h3 {
    margin-top: 2.4rem;
    line-height: 1.25;
}

.article-body h2 {
    font-size: 1.65rem;
}

.article-body h3 {
    font-size: 1.3rem;
}

.article-body p,
.article-body li {
    color: rgba(255, 255, 255, 0.78);
}

.article-body ul,
.article-body ol {
    padding-left: 1.4rem;
}

.article-body a {
    color: var(--gold);
}

.article-body blockquote {
    padding: 0.25rem 0 0.25rem 1.2rem;
    border-left: 3px solid var(--gold);
    color: var(--muted);
}

.article-body code {
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    background: var(--surface-strong);
    font-size: 0.9em;
}

.article-body img {
    max-width: 100%;
    border-radius: 10px;
}

.article-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3.5rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 12px;
    background: rgba(255, 215, 0, 0.06);
}

.article-cta p {
    font-weight: 800;
}

.article-cta a {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0 2.2rem;
    border-top: 1px solid var(--line);
    color: var(--dim);
    font-size: 0.78rem;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

@media (max-width: 680px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.7rem;
    }

    .top-nav {
        gap: 1.1rem;
    }

    .blog-shell {
        padding-top: 3rem;
    }

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

    .article-cta,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .post-card,
    .read-link span {
        transition: none;
    }
}
