:root {
    color-scheme: dark;
    --bg: #0d0e12;
    --line: rgba(101, 103, 114, 0.28);
    --text: #e2ddd6;
    --muted: #656772;
    --accent: #4c73ff;
    --accent-strong: #4c73ff;
    --accent-contrast: #4c73ff;
    --width: 980px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family:
        "IBM Plex Mono", "SFMono-Regular", "SF Mono", "Menlo", "Consolas",
        "Liberation Mono", monospace;
    line-height: 1.65;
    position: relative;
    isolation: isolate;
}

body::before {
    content: none;
}

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

a:hover {
    color: var(--accent-contrast);
}

code {
    color: var(--accent-strong);
    font-family: inherit;
    font-size: 0.96em;
}

footer code {
    display: inline-block;
    font-family: inherit;
    font-size: 0.8em;
    background: linear-gradient(
        90deg,
        rgba(76, 115, 255, 0.88),
        rgba(143, 180, 255, 0.22) 76%,
        rgba(143, 180, 255, 0.08) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

p a code {
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid rgba(169, 172, 183, 0.35);
    padding-bottom: 0.08rem;
}

p a:hover code {
    color: var(--accent-strong);
    border-bottom-color: rgba(73, 193, 255, 0.5);
}

.contact-list a {
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid rgba(169, 172, 183, 0.35);
    padding-bottom: 0.08rem;
}

.contact-list a:hover {
    color: var(--accent-strong);
    border-bottom-color: rgba(73, 193, 255, 0.5);
}

p {
    margin: 0 0 1rem;
}

h1,
h2,
h3 {
    margin: 0 0 1rem;
    line-height: 1.15;
    font-weight: 500;
}

.page-shell {
    width: min(calc(100% - 2rem), var(--width));
    margin: 0 auto;
    padding: 1.5rem 0 4rem;
    position: relative;
    z-index: 1;
}

.page-shell-article {
    --width: 840px;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-header {
    padding: 0.75rem 0 1.5rem;
}

.site-footer {
    padding-top: 2rem;
    margin-top: 2rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.brand,
.site-nav a,
.eyebrow,
.section-label,
.post-meta,
.contact-label {
    text-transform: lowercase;
    letter-spacing: 0.08em;
}

.brand {
    color: var(--text);
    font-size: 0.95rem;
}

.brand::before {
    content: "~/";
    color: var(--accent);
}

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

.site-nav a {
    color: var(--muted);
    font-size: 0.9rem;
}

.site-nav a[aria-current="page"] {
    color: var(--text);
}

.hero {
    padding: 1.75rem 0 1.25rem;
    animation: reveal-up 700ms ease-out both;
}

.hero-compact {
    padding-top: 2.5rem;
}

.eyebrow,
.hero-command,
.post-meta,
.contact-label {
    color: var(--muted);
    font-size: 0.78rem;
}

.hero-command {
    margin-bottom: 0.35rem;
    letter-spacing: 0.05em;
}

.section-label {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero h1,
.article h1 {
    font-size: clamp(2.6rem, 8vw, 5.2rem);
    max-width: 12ch;
}

.hero h1 {
    font-size: clamp(1.45rem, 3.8vw, 2.3rem);
    margin-bottom: 0;
}

.article h1 {
    max-width: 14ch;
    font-size: clamp(2.4rem, 6vw, 4rem);
}

.hero-copy,
.article-lead {
    max-width: 34rem;
    color: #beb8b0;
    font-size: 1.05rem;
}

.section-block,
.article {
    padding: 0.85rem 0;
    margin-bottom: 0.75rem;
    animation: reveal-up 700ms ease-out both;
}

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

.section-block:nth-of-type(2),
.article:nth-of-type(2) {
    animation-delay: 80ms;
}

.section-block:nth-of-type(3),
.article:nth-of-type(3) {
    animation-delay: 140ms;
}

.section-block:nth-of-type(4),
.article:nth-of-type(4) {
    animation-delay: 200ms;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.section-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(76, 115, 255, 0.48),
        rgba(101, 103, 114, 0.24) 28%,
        transparent 72%
    );
}

.section-label {
    margin-bottom: 0;
    white-space: nowrap;
}

.section-label::before {
    content: "// ";
    color: var(--accent);
}

.post-list {
    display: grid;
    gap: 0;
}

.post-row {
    padding: 1rem 0;
}

.post-row h2,
.post-row h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

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

.contact-list li {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding: 0.45rem 0;
}

.contact-label {
    min-width: 5.5rem;
    color: var(--accent-contrast);
}

.article {
    padding-top: 1.5rem;
}

.article p {
    max-width: 42rem;
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero,
    .section-block,
    .article {
        animation: none;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(calc(100% - 1.25rem), var(--width));
        padding-top: 1rem;
    }

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

    .hero {
        padding-top: 1.25rem;
    }

    .section-block,
    .article {
        padding-top: 1rem;
    }

    .site-footer {
        gap: 0.25rem;
    }

    .contact-list li {
        flex-direction: column;
        gap: 0.15rem;
    }
}
