a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
mark,
menu,
nav,
object,
ol,
output,
p,
pre,
q,
ruby,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
tt,
u,
ul,
var,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}
body {
    line-height: 1;
}
ol,
ul {
    list-style: none;
}
blockquote,
q {
    quotes: none;
}
blockquote:after,
blockquote:before,
q:after,
q:before {
    content: "";
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
@font-face {
    font-family: "Inter";
    src: url("/static/fonts/inter.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --bg: rgb(17 19 25);
    --surface: rgb(29 31 38);
    --surface-high: rgb(40 42 48);
    --border: rgb(67 70 83);
    --text: rgb(226 226 235);
    --text-muted: rgb(195 198 213);
    --text-faint: rgb(141 144 158);
    --accent: rgb(177 197 255);
    --button: rgb(0 71 171);
    --on-button: rgb(255 255 255);
    --button-shadow: rgb(0 44 112);
    --code-bg: rgb(13 17 23);
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: rgb(249 249 255);
    --surface: rgb(255 255 255);
    --surface-high: rgb(238 240 248);
    --border: rgb(195 198 213);
    --text: rgb(25 27 34);
    --text-muted: rgb(67 70 83);
    --text-faint: rgb(92 95 110);
    --accent: rgb(0 71 171);
    --button: rgb(0 71 171);
    --on-button: rgb(255 255 255);
    --button-shadow: rgb(25 27 34);
    color-scheme: light;
}

:root {
    font-size: 16px;
}

@media screen and (min-width: 840px) {
    :root {
        font-size: 17px;
    }
}

@media screen and (min-width: 1200px) {
    :root {
        font-size: 18px;
    }
}

* {
    box-sizing: border-box;
}

html {
    background-color: var(--bg);
}

body {
    min-height: 100vh;
    font-family: "Inter", system-ui, sans-serif;
    line-height: 1.5;
    color: var(--text);
    background-color: var(--bg);
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.flex {
    display: flex;
}
.col {
    flex-direction: column;
}
.jc {
    justify-content: center;
}
.ai {
    align-items: center;
}
.sb {
    justify-content: space-between;
}
.wrap {
    flex-wrap: wrap;
}
.fw {
    width: 100%;
}
.fh {
    height: 100%;
}
.gap-1 {
    gap: 1rem;
}
.gap-2 {
    gap: 2rem;
}

.header {
    border-bottom: 2px solid var(--border);
    .header-inner {
        max-width: 60rem;
        height: 3.5rem;
        margin: 0 auto;
        padding: 0 1rem;
        .name {
            font-weight: 800;
            text-decoration: none;
        }
        .nav {
            gap: 1.25rem;
            .nav-link {
                font-size: 0.9rem;
                color: var(--text-muted);
                text-decoration: none;
                &:hover {
                    color: var(--accent);
                }
            }
            .active {
                color: var(--text);
                font-weight: 600;
            }
            .theme-toggle {
                width: 2rem;
                height: 2rem;
                color: var(--text-muted);
                background: none;
                border: 2px solid var(--border);
                cursor: pointer;
                &:hover {
                    color: var(--accent);
                    border-color: var(--accent);
                }
                .sun {
                    display: none;
                }
                [data-theme="light"] & {
                    .sun {
                        display: block;
                    }
                    .moon {
                        display: none;
                    }
                }
            }
        }
    }
}

.main {
    flex: 1;
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer {
    border-top: 2px solid var(--border);
    .footer-inner {
        max-width: 60rem;
        margin: 0 auto;
        padding: 1.5rem 1rem;
        font-size: 0.8rem;
        color: var(--text-faint);
        a {
            text-decoration: none;
            &:hover {
                color: var(--accent);
            }
        }
    }
}

h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
}

.button {
    padding: 0.6rem 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    border: 2px solid var(--border);
    box-shadow: var(--border) 3px 3px 0 0;
    transition: transform 0.15s ease-in-out;
    &:hover {
        transform: translate(-2px, -2px);
        border-color: var(--accent);
    }
}

.primary {
    color: var(--on-button);
    background-color: var(--button);
    border-color: var(--button);
    box-shadow: var(--button-shadow) 3px 3px 0 0;
}

.badge {
    padding: 0.1rem 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.tags {
    gap: 0.5rem;
    list-style: none;
    .tag {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
        color: var(--text-muted);
        background-color: var(--surface-high);
        border: 1px solid var(--border);
        white-space: nowrap;
        &::before {
            content: "";
            width: 0.5rem;
            height: 0.5rem;
            border-radius: 50%;
            background-color: var(--dot, var(--text-faint));
        }
    }
    .tag-csharp {
        --dot: #9b4f96;
    }
    .tag-aspnet,
    .tag-net {
        --dot: #512bd4;
    }
    .tag-typescript {
        --dot: #3178c6;
    }
    .tag-react {
        --dot: #2fb4d8;
    }
    .tag-vuejs {
        --dot: #3ca175;
    }
    .tag-rust {
        --dot: #de8a3c;
    }
    .tag-go {
        --dot: #00add8;
    }
    .tag-lua,
    .tag-neovim {
        --dot: #57a143;
    }
    .tag-sql {
        --dot: #e38c00;
    }
    .tag-wpf,
    .tag-avalonia-ui,
    .tag-blazor {
        --dot: #ab009d;
    }
}

.card {
    gap: 0.75rem;
    padding: 1.5rem;
    min-width: 0;
    text-decoration: none;
    background-color: var(--surface);
    border: 2px solid var(--border);
    box-shadow: var(--border) 3px 3px 0 0;
    transition: transform 0.15s ease-in-out;
    .card-title {
        gap: 0.5rem;
        h3 {
            font-size: 1.05rem;
            overflow-wrap: anywhere;
        }
        .arrow {
            flex-shrink: 0;
            margin-left: auto;
            color: var(--accent);
            transition: transform 0.15s ease-in-out;
        }
    }
    .card-subtitle {
        font-size: 0.875rem;
        line-height: 1.4;
        color: var(--text-muted);
        overflow-wrap: anywhere;
    }
    time {
        font-family: var(--font-mono);
        font-size: 0.75rem;
        color: var(--text-faint);
    }
    &:hover {
        transform: translate(-2px, -2px);
        border-color: var(--accent);
        box-shadow: var(--accent) 4px 4px 0 0;
        .arrow {
            transform: translate(2px, -2px);
        }
    }
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media screen and (min-width: 640px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.prose {
    gap: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.home {
    gap: 4rem;
    padding: 4rem 0;
    .hero {
        gap: 1rem;
        .role {
            font-weight: 500;
            color: var(--accent);
        }
        h1 {
            font-size: 3rem;
        }
        .tagline {
            max-width: 36rem;
            font-size: 1.1rem;
            color: var(--text-muted);
        }
        .buttons {
            margin-top: 1rem;
        }
    }
    .about,
    .stack,
    .featured {
        gap: 1.25rem;
    }
    .about .prose {
        max-width: 42rem;
    }
    .featured .more {
        font-size: 0.9rem;
        color: var(--accent);
        text-decoration: none;
        &:hover {
            text-decoration: underline;
        }
    }
}

.page {
    gap: 2rem;
    padding: 2rem 0 4rem 0;
    .breadcrumb {
        gap: 0.5rem;
        font-size: 0.85rem;
        color: var(--text-faint);
        a {
            text-decoration: none;
            &:hover {
                color: var(--accent);
            }
        }
        [aria-current] {
            color: var(--text-muted);
        }
    }
    .page-title {
        gap: 0.5rem;
        h1 {
            overflow-wrap: anywhere;
        }
        .subheading {
            color: var(--text-muted);
        }
    }
    section {
        gap: 1.25rem;
    }
}

.project {
    max-width: 46rem;
    .block {
        gap: 0.75rem;
        h2 {
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--accent);
        }
        p {
            line-height: 1.7;
            color: var(--text-muted);
        }
        .results {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
            gap: 0.75rem;
            .result {
                gap: 0.4rem;
                min-width: 0;
                padding: 1rem;
                background-color: var(--surface);
                border: 2px solid var(--border);
                .value {
                    font-size: 1.5rem;
                    font-weight: 800;
                    line-height: 1.1;
                    color: var(--accent);
                    overflow-wrap: anywhere;
                }
                .label {
                    font-size: 0.7rem;
                    font-weight: 500;
                    text-transform: uppercase;
                    letter-spacing: 0.08em;
                    color: var(--text-faint);
                }
                .source {
                    font-size: 0.75rem;
                    color: var(--accent);
                    text-decoration: underline;
                }
            }
        }
    }
}

.blog .posts {
    gap: 1.25rem;
    list-style: none;
}

.post-info {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-faint);
}

.post {
    max-width: 46rem;
    .page-title {
        gap: 0.75rem;
    }
    .prose {
        display: flex;
        flex-direction: column;
        h2 {
            margin-top: 1rem;
            color: var(--text);
        }
        a {
            color: var(--accent);
        }
        ul,
        ol {
            padding-left: 1.5rem;
            list-style: disc;
        }
        code {
            font-family: var(--font-mono);
            font-size: 0.875em;
            padding: 0.1rem 0.3rem;
            background-color: var(--surface-high);
        }
        pre {
            padding: 1rem;
            overflow-x: auto;
            font-size: 0.85rem;
            line-height: 1.5;
            background-color: var(--code-bg) !important;
            border: 2px solid var(--border);
            code {
                padding: 0;
                background: none;
            }
        }
        strong {
            font-weight: 700;
            color: var(--text);
        }
        em {
            font-style: italic;
        }
        img {
            max-width: 100%;
            height: auto;
            border: 2px solid var(--border);
        }
    }
}
