:root {
    --bg: #030303;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent: #ffffff;
    --card-base: #111111;
    --card-hover: #161616;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-main);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

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

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 64px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--text-main);
    text-decoration: none;
    text-transform: none;
}

.brand-link img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand-link span {
    background: linear-gradient(90deg, #d8ffe7 0%, #55ff86 34%, #00e65c 62%, #b7ffd0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-family: "Bitcount Grid Single", monospace;
    font-size: 2rem;
    font-weight: 200;
    letter-spacing: 0.015em;
    line-height: 1;
    text-shadow: 0 0 18px rgba(0, 255, 92, 0.22);
}

.nav-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.site-nav a {
    text-decoration: none;
}

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

.nav-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    opacity: 0.72;
}

.nav-social:hover {
    opacity: 1;
}

.nav-social img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.blog-hero {
    margin-bottom: 52px;
}

.blog-hero h1,
.post-header h1 {
    margin: 0;
    max-width: 780px;
    color: var(--accent);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.blog-hero h1 {
    font-size: clamp(2.15rem, 7vw, 4rem);
}

.blog-hero p,
.post-subtitle {
    max-width: 700px;
    margin: 20px 0 0;
    color: var(--text-muted);
    font-size: 1.04rem;
    line-height: 1.75;
}

.post-list {
    display: grid;
    gap: 20px;
}

.post-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    padding: 18px;
    background: var(--card-base);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
    background: var(--card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.post-card img {
    width: 100%;
    height: 100%;
    min-height: 145px;
    border-radius: 8px;
    object-fit: cover;
    background: #0b0b0b;
}

.post-card img[src$="foundational-model.webp"],
.post-card img[src$="telepath-mac-1024.webp"] {
    object-fit: contain;
    padding: 24px;
}

.post-card time,
.post-meta {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.post-card h2 {
    margin: 8px 0 10px;
    color: var(--accent);
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.post-card p {
    margin: 0;
    color: var(--text-muted);
}

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

.post-header h1 {
    font-size: clamp(2.15rem, 7vw, 4rem);
}

.post-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.hero-image {
    margin: 0 0 42px;
}

.hero-image-icon {
    display: flex;
    justify-content: center;
}

.hero-image img,
.post-content img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: #0b0b0b;
    border: 1px solid var(--border-subtle);
}

.hero-image-icon img {
    width: min(192px, 55vw);
    border-radius: 24px;
}

.post-content {
    max-width: 760px;
    margin: 0 auto;
    color: #e5e7eb;
    font-size: 1.05rem;
}

.post-content h2 {
    margin: 42px 0 12px;
    color: var(--accent);
    font-size: 1.65rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.post-content p {
    margin: 0 0 20px;
}

.post-content em {
    color: var(--text-muted);
}

.post-content a {
    color: var(--accent);
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 3px;
}

.post-content figure {
    margin: 34px 0;
}

.app-store-cta {
    margin: 28px 0;
}

.app-store-cta img {
    width: 180px;
    max-width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.post-content hr {
    border: 0;
    border-top: 1px solid var(--border-subtle);
    margin: 42px 0;
}

.media-note {
    margin: 28px 0;
    padding: 16px 18px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-muted);
    background: var(--card-base);
}

.post-footer {
    max-width: 760px;
    margin: 56px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.site-footer {
    margin-top: 72px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 720px) {
    .post-card {
        display: block;
    }

    .site-header {
        gap: 18px;
    }

    .brand-link {
        gap: 12px;
    }

    .brand-link img {
        width: 38px;
        height: 38px;
    }

    .brand-link span {
        font-size: 2rem;
    }

    .nav-toggle {
        display: inline-flex;
        position: relative;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border-subtle);
        border-radius: 8px;
        padding: 0;
        color: var(--accent);
        background: transparent;
        appearance: none;
        cursor: pointer;
    }

    .nav-toggle:focus-visible {
        border-color: var(--border-hover);
        outline: 2px solid rgba(255, 255, 255, 0.18);
        outline-offset: 3px;
    }

    .nav-toggle span,
    .nav-toggle::before,
    .nav-toggle::after {
        content: "";
        display: block;
        width: 17px;
        height: 1px;
        background: var(--accent);
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .nav-toggle::before {
        transform: translate(-50%, calc(-50% - 6px));
    }

    .nav-toggle::after {
        transform: translate(-50%, calc(-50% + 6px));
    }

    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        min-width: 180px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px;
        border: 1px solid var(--border-subtle);
        border-radius: 8px;
        background: #0b0b0b;
        z-index: 5;
    }

    .site-nav a {
        width: 100%;
        padding: 9px 10px;
    }

    .nav-social {
        justify-content: flex-start;
        height: auto;
    }

    .nav-menu[data-open="true"] .site-nav {
        display: flex;
    }

    .post-card img {
        height: auto;
        margin-bottom: 16px;
    }
}

.product-note {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin: 0 0 28px;
    padding: 18px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-muted);
    background: var(--card-base);
}

.product-note strong {
    color: var(--accent);
}

.product-note-icon {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 12px;
}

@media (max-width: 520px) {
    .product-note {
        display: block;
    }

    .product-note-icon {
        margin-bottom: 12px;
    }
}
