:root {
    --bg: #0b0d12;
    --panel: #131823;
    --text: #f5f7fb;
    --muted: #b4bccd;
    --accent: #cf5a5a;
    --max-width: 940px;
    --content-width: 760px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.55;
    font-size: 18px;
}

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

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

.site-header {
    background: linear-gradient(to bottom, #06080f, #0a0d15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-header__inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 24px 22px 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.site-title-link {
    font-size: clamp(2rem, 3.7vw, 2.6rem);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.site-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 18px;
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.site-nav__item a {
    color: var(--muted);
}

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

.home-layout,
.content-feed,
.single-entry {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 28px 22px 92px;
}

.home-hero {
    position: relative;
    background: #0f121b;
    margin-top: 10px;
}

.home-hero__image {
    width: 100%;
    min-height: 235px;
    object-fit: cover;
    opacity: 0.82;
}

.home-hero__overlay {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #f0f2f7;
}

.home-hero__placeholder {
    padding: 28px 14px;
    color: var(--muted);
}

.section-title {
    margin: 0 0 20px;
    color: var(--text);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.home-bio,
.home-projects,
.home-contact {
    margin-top: 56px;
}

.home-bio__content,
.home-contact__content {
    color: var(--muted);
    font-size: 1.95rem;
    line-height: 1.28;
    max-width: 650px;
}

.home-bio__content p,
.home-contact__content p {
    margin-top: 0;
    margin-bottom: 14px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.project-card {
    background: var(--panel);
    overflow: hidden;
}

.project-card h3 {
    margin: 10px 10px 12px;
    font-size: 0.74rem;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.09em;
    line-height: 1.3;
}

.project-card img {
    height: 120px;
    width: 100%;
    object-fit: cover;
}

.home-news {
    margin-top: 56px;
}

.news-item {
    display: grid;
    grid-template-columns: 0.95fr 1.25fr;
    gap: 24px;
    margin-bottom: 34px;
    align-items: start;
}

.news-item__content .section-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.news-item__content h3 {
    margin: 0 0 10px;
    font-size: 1.22rem;
    line-height: 1.25;
}

.news-item__content p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.4;
}

.news-item__image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.home-contact a {
    color: var(--accent);
}

.social-nav .nav {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 12px;
}

.social-nav .nav a {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.feed-grid {
    display: grid;
    gap: 14px;
}

.feed-card {
    background: var(--panel);
    padding: 20px;
}

.single-entry__header h1 {
    margin-top: 0;
}

.single-entry__content {
    color: var(--muted);
    font-size: 1.08rem;
}

/* Ghost Koenig editor card/content support */
.gh-content {
    width: 100%;
}

.gh-content .kg-card {
    margin: 0.8rem 0;
}

.gh-content .kg-width-wide {
    width: min(100%, calc(var(--content-width) + 140px));
    margin-left: auto;
    margin-right: auto;
}

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

.gh-content .kg-image,
.gh-content .kg-gallery-image img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 760px) {
    .site-header__inner {
        align-items: center;
    }

    .news-item {
        grid-template-columns: 1fr;
    }

    .home-bio__content,
    .home-contact__content {
        font-size: 1.4rem;
    }

    .section-title,
    .news-item__content .section-title {
        font-size: 1.5rem;
    }

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