:root {
    --accent: var(--ghost-accent-color, #FF1A75);
    --bg: #0d0d12;
    --surface: #16161f;
    --surface-2: #1d1d29;
    --text: #e9e9f0;
    --text-dim: #a0a0b0;
    --border: #2a2a38;
    --radius: 14px;
    --maxw: 1100px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.gh-site { display: flex; flex-direction: column; min-height: 100vh; }

.gh-container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}
.gh-container--narrow { max-width: 720px; }

/* Header */
.gh-head {
    border-bottom: 1px solid var(--border);
    background: rgba(13,13,18,0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.gh-head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.gh-head-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.gh-head-logo:hover { text-decoration: none; color: var(--accent); }

/* Main */
.gh-main { flex: 1 0 auto; padding: 48px 0 80px; }

/* Feed grid */
.gh-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.gh-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.gh-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.gh-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.gh-card-link:hover { text-decoration: none; }

.gh-card-image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.gh-card-image img { width: 100%; height: 100%; object-fit: cover; }

.gh-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.gh-card-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--accent);
    margin-bottom: 10px;
}
.gh-card-title { margin: 0 0 10px; font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--text); }
.gh-card-excerpt { margin: 0 0 16px; color: var(--text-dim); font-size: 15.5px; line-height: 1.55; }
.gh-card-meta { margin-top: auto; font-size: 13px; color: var(--text-dim); opacity: .8; }

/* Article */
.gh-article { padding: 8px 0; }
.gh-back { display: inline-block; margin-bottom: 24px; font-size: 15px; color: var(--text-dim); }
.gh-back:hover { color: var(--accent); }
.gh-article-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--accent);
    margin-bottom: 12px;
}
.gh-article-title {
    margin: 0 0 14px;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.gh-article-meta { color: var(--text-dim); font-size: 15px; margin-bottom: 32px; }
.gh-article-image { margin: 0 0 36px; border-radius: var(--radius); overflow: hidden; }
.gh-article-image img { width: 100%; }

/* Content typography */
.gh-content { font-size: 18.5px; line-height: 1.75; }
.gh-content > * { margin-top: 0; margin-bottom: 1.4em; }
.gh-content h2 { font-size: 28px; line-height: 1.25; font-weight: 700; margin-top: 1.8em; letter-spacing: -0.01em; }
.gh-content h3 { font-size: 22px; font-weight: 700; margin-top: 1.6em; }
.gh-content a { text-decoration: underline; text-underline-offset: 2px; }
.gh-content ul, .gh-content ol { padding-left: 1.4em; }
.gh-content li { margin-bottom: .5em; }
.gh-content img { border-radius: var(--radius); margin: 1.5em auto; }
.gh-content blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--accent);
    color: var(--text-dim);
    font-style: italic;
}
.gh-content code {
    background: var(--surface-2);
    padding: .15em .4em;
    border-radius: 6px;
    font-size: .9em;
}
.gh-content pre {
    background: var(--surface-2);
    padding: 18px 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    border: 1px solid var(--border);
}
.gh-content pre code { background: none; padding: 0; }
.gh-content hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }

/* Pagination */
.pagination { margin-top: 48px; text-align: center; display: flex; gap: 16px; justify-content: center; align-items: center; }
.pagination a { color: var(--accent); font-weight: 600; }
.pagination .page-number { color: var(--text-dim); font-size: 14px; }

/* Footer */
.gh-foot { flex-shrink: 0; border-top: 1px solid var(--border); padding: 32px 0; margin-top: 40px; }
.gh-foot-inner { color: var(--text-dim); font-size: 14px; text-align: center; }

/* Responsive */
@media (max-width: 600px) {
    body { font-size: 17px; }
    .gh-feed { grid-template-columns: 1fr; gap: 22px; }
    .gh-article-title { font-size: 30px; }
    .gh-content { font-size: 17.5px; }
    .gh-content h2 { font-size: 24px; }
    .gh-main { padding: 32px 0 56px; }
}
