:root {
    --bg: #e4e4e4;
    --surface: #f8f8f8;
    --text: #161616;
    --muted: #6b6b6b;
    --border: #d0d0d0;
    --accent: #111111;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.7;
}

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

a:hover {
    opacity: 0.7;
}

.site-shell {
    min-height: 100vh;
}

.site-header {
    padding: 1.25rem 1.25rem 0;
}

.header-inner,
.site-main,
.site-footer {
    max-width: 760px;
    margin: 0 auto;
}

.bold {
    font-weight: bolder;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0 1.25rem;
    border-bottom: 1px solid var(--border);
}

.site-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

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

.site-main {
    padding: 3rem 1.25rem 4rem;
}

.site-footer {
    padding: 0 1.25rem 3rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero {
    padding: 0 0 3rem;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    max-width: 10ch;
}

.hero-text {
    margin-top: 1.25rem;
    max-width: 36rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.section-block + .section-block {
    margin-top: 3rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-heading h2,
.section-block h1 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
}

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

.post-list {
    display: grid;
    gap: 1rem;
}

.post-card {
    padding: 1.1rem 0;
    border-top: 1px solid var(--border);
}

.post-card h2,
.post-card h3 {
    margin: 0.15rem 0 0.35rem;
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

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

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

.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    margin: 0.35rem 0 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.tag {
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.4);
}

.prose {
    max-width: 70ch;
}

.prose h2,
.prose h3,
.prose h4 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.prose p,
.prose ul,
.prose ol {
    margin: 0 0 1rem;
}

.prose code {
    padding: 0.15rem 0.35rem;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.92em;
}

.prose pre {
    overflow-x: auto;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.55);
}

.prose pre code {
    padding: 0;
    background: transparent;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.feature-card {
    display: block;
    padding: 1.4rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.35);
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.6);
    border-color: #bdbdbd;
    opacity: 1;
}

.feature-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

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

.section-intro {
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .link-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-main {
        padding-top: 2rem;
    }

    .hero h1 {
        max-width: none;
    }
}