@font-face {
    font-family: "Rajdhani";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/rajdhani-600.woff2") format("woff2");
}

@font-face {
    font-family: "Rajdhani";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/rajdhani-700.woff2") format("woff2");
}

:root {
    --bg: #ffffff;
    --text: #141414;
    --text-muted: #6b6b6b;
    --border: rgba(0, 0, 0, 0.08);
    --accent: var(--ghost-accent-color, #1f4fff);
    --radius: 6px;
    --gh-font-heading: "Rajdhani", var(--gh-font-body);
    --gh-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--gh-font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.wrap-narrow {
    max-width: 700px;
}

/* Header */

.site-header {
    border-bottom: 1px solid var(--border);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 84px;
}

.site-logo {
    font-family: var(--gh-font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-logo img {
    max-height: 32px;
}

.site-nav {
    display: flex;
    gap: 32px;
    font-family: var(--gh-font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

/* Hero */

.hero {
    padding: 15vh 0 12vh;
    text-align: center;
}

.hero-title {
    font-family: var(--gh-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(3rem, 10vw, 7rem);
    letter-spacing: 0.06em;
    line-height: 1;
    margin: 0 0 28px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 0 auto;
    max-width: 480px;
}

/* Single post / page */

.post {
    padding: 64px 0 96px;
}

.post-header {
    text-align: center;
    margin-bottom: 32px;
}

.post-title {
    font-family: var(--gh-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.1;
    margin: 0 0 12px;
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-meta-sep {
    margin: 0 6px;
}

.post-feature-image {
    border-radius: var(--radius);
    margin: 32px 0;
}

.post-content {
    font-size: 1.1rem;
}

.post-content h2,
.post-content h3 {
    font-family: var(--gh-font-heading);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.post-content a {
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 3px;
}

.post-content a:hover {
    text-decoration-color: var(--accent);
}

.post-content img {
    border-radius: var(--radius);
}

.post-content .kg-width-wide {
    width: 100%;
    max-width: 1080px;
    margin-left: 50%;
    transform: translateX(-50%);
}

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

.post-content .kg-width-full img {
    border-radius: 0;
}

.post-content pre {
    background: #f5f5f5;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    overflow-x: auto;
}

.post-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content blockquote {
    margin: 0;
    padding-left: 20px;
    border-left: 3px solid var(--accent);
    color: var(--text-muted);
}

.post-tags {
    margin-top: 32px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-tags a {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-tags a:hover {
    color: var(--text);
    border-color: var(--accent);
}

/* Error page */

.error-page {
    text-align: center;
    padding: 120px 0;
}

.error-code {
    font-family: var(--gh-font-heading);
    font-weight: 700;
    font-size: 4rem;
    margin: 0;
}

.error-message {
    color: var(--text-muted);
    margin: 8px 0 24px;
}

@media (max-width: 600px) {
    .site-nav { gap: 16px; }
    .hero { padding: 12vh 0 8vh; }
}
