:root {
    --blue-900: #A9A9A9;
    --blue-800: #696969;
    --blue-700: #222222;
    --blue-50: #eff6ff;
    --text: #111827;
    --muted: #6b7280;
    --line: rgba(17, 24, 39, 0.08);
    --content-width: 920px;
    --body-width: 760px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a:hover {
    color: var(--blue-800);
}

.site-header,
.site-footer {
    width: 100%;
    background: linear-gradient(180deg, var(--blue-800), var(--blue-900));
    color: white;
}

.site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-inner {
    width: min(var(--content-width), calc(100% - 32px));
    margin: 0 auto;
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.brand-title {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-tagline {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82);
}

.site-nav,
.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-nav a,
.footer-links a {
    color: white;
    font-weight: 700;
    padding: 0;
    transition: opacity 160ms ease, text-decoration-color 160ms ease;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.42);
    text-underline-offset: 0.18em;
}

.site-nav a:hover,
.footer-links a:hover {
    color: white;
    opacity: 0.92;
    background: transparent;
}

.site-main {
    flex: 1;
    padding: 28px 0 40px;
}

.page-content,
.archive-section {
    width: min(var(--body-width), 100%);
    margin: 0 auto;
}

.page-content {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.archive-section {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

.archive-section + .archive-section {
    margin-top: 28px;
}

.entry-content > :first-child,
.page-content > :first-child {
    margin-top: 0;
}

.entry-content > :last-child,
.page-content > :last-child {
    margin-bottom: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.post-content h1,
.archive-section h2,
.page-content h1 {
    margin: 0 0 0.75rem;
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.entry-content h1,
.post-content h1,
.page-content h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.entry-content h2,
.archive-section h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.entry-content h3 {
    font-size: 1.2rem;
}

.entry-content p,
.archive-section p,
.post-excerpt,
.muted {
    margin: 0 0 1rem;
    color: var(--text);
    font-size: 1rem;
}

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

.eyebrow {
    margin: 0 0 0.5rem;
    color: var(--blue-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.entry-content a,
.archive-note a,
.post-link,
.back-link {
    color: var(--blue-800);
    font-weight: 700;
}

.entry-content a:hover,
.archive-note a:hover,
.post-link:hover,
.back-link:hover {
    color: var(--blue-700);
}

.entry-content blockquote {
    margin: 1.25rem 0;
    padding: 0 0 0 16px;
    border-left: 3px solid var(--blue-700);
    color: var(--muted);
}

.entry-content code,
.archive-note code,
.muted code {
    padding: 0.12rem 0.35rem;
    border-radius: 6px;
    background: var(--blue-50);
    color: var(--blue-800);
    font-size: 0.92em;
}

.entry-content pre {
    overflow-x: auto;
    margin: 1rem 0;
    padding: 16px;
    border: 1px solid var(--line);
    background: #0f172a;
    color: #e5e7eb;
}

.entry-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.post-header {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-list-item {
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.post-list-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.post-link {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 1.02rem;
}

.post-date {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

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

.back-link {
    display: inline-block;
    margin-bottom: 18px;
}

.footer-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 720px) {
    .site-inner {
        width: min(100% - 20px, var(--content-width));
    }

    .header-inner,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-main {
        padding: 22px 0 32px;
    }

    .entry-content h1,
    .post-content h1,
    .page-content h1 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }
}
