:root {
    --bg: #09090c;
    --panel: #121217;
    --panel-soft: #19191f;
    --text: #f4ede8;
    --muted: #b9aaa5;
    --line: rgba(255, 255, 255, 0.1);
    --red: #c91f2d;
    --red-soft: #ff4455;
    --gold: #c59a48;
    --shadow: rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    background:
        radial-gradient(circle at 18% 0%, rgba(201, 31, 45, 0.24), transparent 34rem),
        radial-gradient(circle at 86% 12%, rgba(197, 154, 72, 0.16), transparent 26rem),
        linear-gradient(180deg, #0e0d12 0%, var(--bg) 42rem);
    user-select: none;
    -webkit-user-select: none;
}

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

img {
    display: block;
    max-width: 100%;
    height: auto;
    pointer-events: none;
    -webkit-user-drag: none;
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand img {
    max-height: 44px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 68, 85, 0.6);
    border-radius: 50%;
    color: var(--red-soft);
    box-shadow: 0 0 30px rgba(201, 31, 45, 0.34);
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: var(--text);
}

.hero {
    padding: clamp(56px, 9vw, 120px) 0 clamp(44px, 7vw, 84px);
}

.hero.compact {
    padding-bottom: 36px;
}

.hero-kicker {
    margin-bottom: 12px;
    color: var(--red-soft);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.article-header h1 {
    max-width: 920px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 9vw, 7.2rem);
    line-height: 0.92;
    font-weight: 700;
    text-wrap: balance;
}

.hero p,
.article-header p {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding-bottom: 64px;
}

.post-card,
.empty-state {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    box-shadow: 0 28px 70px var(--shadow);
}

.post-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.035);
}

.post-card-content,
.empty-state {
    padding: 26px;
}

.post-card-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.post-card h2 {
    margin: 12px 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.05;
}

.post-card p,
.empty-state p {
    margin: 0 0 20px;
    color: var(--muted);
}

.read-more,
.button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 68, 85, 0.55);
    border-radius: 999px;
    color: var(--text);
    background: rgba(201, 31, 45, 0.12);
}

.article {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(48px, 7vw, 92px) 0 72px;
    --reading-scale: 1;
}

.article-header {
    margin-bottom: 34px;
}

.article-header h1 {
    font-size: clamp(2.8rem, 8vw, 6.2rem);
}

.feature-image {
    margin: 0 0 38px;
}

.feature-image img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 28px 70px var(--shadow);
}

.feature-image figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.content {
    color: #eadfda;
    font-size: calc(1.14rem * var(--reading-scale));
    transition: font-size 0.18s ease;
}

.reading-tools {
    position: sticky;
    top: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 28px;
    padding: 8px;
    border: 1px solid rgba(197, 154, 72, 0.34);
    border-radius: 999px;
    background: rgba(9, 9, 12, 0.78);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.reading-tools span {
    padding: 0 8px 0 10px;
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.reading-tools button {
    min-width: 42px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(255, 68, 85, 0.38);
    border-radius: 999px;
    color: var(--text);
    background: rgba(201, 31, 45, 0.12);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
}

.reading-tools button:hover {
    border-color: rgba(255, 68, 85, 0.72);
    background: rgba(201, 31, 45, 0.22);
}

.content > * + * {
    margin-top: 1.25em;
}

.content h2,
.content h3 {
    margin-top: 2em;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.1;
}

.content a {
    color: var(--red-soft);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.content blockquote {
    margin: 2em 0;
    padding: 0 0 0 22px;
    border-left: 3px solid var(--red);
    color: var(--text);
    font-size: 1.25rem;
    font-style: italic;
}

.content .kg-card {
    margin: 2.2em 0;
}

.content .kg-width-wide {
    width: min(100vw - 32px, 1040px);
    max-width: min(100vw - 32px, 1040px);
    margin-left: 50%;
    transform: translateX(-50%);
}

.content .kg-width-full {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin-left: 50%;
    transform: translateX(-50%);
}

.content .kg-image,
.content .kg-gallery-image img {
    border-radius: 16px;
    box-shadow: 0 22px 60px var(--shadow);
}

.content .kg-bookmark-card,
.content .kg-callout-card {
    border-radius: 16px;
    overflow: hidden;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 0 0 72px;
    color: var(--muted);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 0 44px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer p {
    margin: 0;
    color: var(--text);
}

@media (max-width: 760px) {
    .site-shell {
        width: min(100% - 24px, 1120px);
    }

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

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

    .hero h1,
    .article-header h1 {
        font-size: clamp(3rem, 16vw, 5.1rem);
    }
}
