:root {
    /* Catppuccin Mocha Mauve */
    --crust: #11111b;
    --mantle: #181825;
    --base: #1e1e2e;
    --surface0: #313244;
    --surface1: #45475a;
    --surface2: #585b70;
    --overlay0: #6c7086;
    --text: #cdd6f4;
    --subtext1: #bac2de;
    --subtext0: #a6adc8;
    --mauve: #cba6f7;
    --lavender: #b4befe;

    /* Commonly used vars*/
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .28);
    --content-width: 860px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--crust);
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 0%, rgba(203, 166, 247, .10), transparent 34rem),
        radial-gradient(circle at 90% 30%, rgba(180, 190, 254, .06), transparent 32rem),
        var(--base);
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

img {
    display: block;
    max-width: 100%;
}

.bunny-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.bunny-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.mica-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: .7;
}

.mica-orb {
    position: absolute;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .10;
}

.mica-orb-a {
    top: -14rem;
    left: 10%;
    background: var(--mauve);
}

.mica-orb-b {
    top: 35%;
    right: -15rem;
    background: var(--lavender);
}

.mica-orb-c {
    bottom: -20rem;
    left: 30%;
    background: #89b4fa;
}

.site-shell {
    width: min(100% - 32px, 1120px);
    margin: 0 auto;
    padding-top: 16px;
}

.site-header {
    position: sticky;
    top: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
    margin: 0 0 54px;
    padding: 10px 12px 10px 20px;
    border: 1px solid rgba(205, 214, 244, .08);
    border-radius: var(--radius-lg);
    background: rgba(30, 30, 46, .72);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
    backdrop-filter: blur(28px) saturate(130%);
    -webkit-backdrop-filter: blur(28px) saturate(130%);
    transition: background .25s var(--ease), box-shadow .25s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(24, 24, 37, .86);
    box-shadow: var(--shadow);
}

.brand {
    min-width: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.brand-mark {
    display: block;
    overflow: hidden;
    max-width: 340px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-logo {
    max-height: 36px;
    width: auto;
}

.site-nav .nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav .nav a {
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--subtext0);
    font-size: .9rem;
    transition: color .2s var(--ease), background .2s var(--ease);
}

.site-nav .nav a:hover,
.site-nav .nav-current a {
    color: var(--text);
    background: rgba(203, 166, 247, .10);
}

.site-main {
    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.hero,
.archive-header {
    margin: 0 0 42px;
    padding: 18px 4px;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--mauve);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero h1,
.archive-header h1 {
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -.055em;
}

.hero p,
.archive-header p {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--subtext0);
    font-size: 1.1rem;
}

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

.post-card {
    overflow: hidden;
    border: 1px solid rgba(205, 214, 244, .07);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(69, 71, 90, .24), rgba(30, 30, 46, .62));
    box-shadow: 0 8px 30px rgba(0, 0, 0, .14);
    backdrop-filter: blur(24px) saturate(125%);
    -webkit-backdrop-filter: blur(24px) saturate(125%);
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(203, 166, 247, .22);
    box-shadow: var(--shadow);
}

.post-card-image {
    display: block;
    aspect-ratio: 2.15 / 1;
    overflow: hidden;
    background: var(--surface0);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.post-card:hover .post-card-image img {
    transform: scale(1.025);
}

.post-card-body {
    padding: 26px 28px 30px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: var(--subtext0);
    font-size: .78rem;
}

.post-meta a:hover {
    color: var(--mauve);
}

.meta-separator {
    color: var(--overlay0);
}

.post-card h2 {
    margin: 8px 0 8px;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.2;
    letter-spacing: -.035em;
}

.post-card h2 a:hover {
    color: var(--mauve);
}

.post-excerpt {
    margin: 0 0 18px;
    color: var(--subtext0);
}

.read-more {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--mauve);
    font-size: .9rem;
    font-weight: 650;
}

.read-more span {
    transition: transform .2s var(--ease);
}

.read-more:hover span {
    transform: translateX(3px);
}

.article {
    padding-bottom: 70px;
}

.article-header {
    margin-bottom: 38px;
}

.article-header h1 {
    margin: 10px 0 18px;
    font-size: clamp(2.4rem, 7vw, 4.6rem);
    line-height: 1.06;
    letter-spacing: -.055em;
}

.article-excerpt {
    margin: 0;
    color: var(--subtext0);
    font-size: 1.18rem;
}

.author-line {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    color: var(--subtext0);
    font-size: .9rem;
}

.author-line a {
    color: var(--text);
}

.author-line a:hover {
    color: var(--mauve);
}

.author-avatar,
.author-avatar-large {
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar {
    width: 30px;
    height: 30px;
}

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

.article-hero img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.article-hero figcaption {
    margin-top: 10px;
    color: var(--overlay0);
    text-align: center;
    font-size: .8rem;
}

.gh-content {
    font-size: 1.06rem;
}

.gh-content>* {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.kg-width-wide {
    width: min(100vw - 48px, 1120px);
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

.kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
}

.kg-width-full img,
.kg-width-wide img {
    width: 100%;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.gh-content h2 {
    margin-top: 2.3em;
    font-size: 1.9rem;
}

.gh-content h3 {
    margin-top: 2em;
    font-size: 1.45rem;
}

.gh-content p,
.gh-content li {
    color: var(--subtext1);
}

.gh-content a {
    color: var(--mauve);
    text-decoration: underline;
    text-decoration-color: rgba(203, 166, 247, .4);
    text-underline-offset: 3px;
}

.gh-content a:hover {
    text-decoration-color: var(--mauve);
}

.gh-content blockquote {
    margin-left: 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--mauve);
    color: var(--subtext0);
    font-size: 1.12rem;
}

.gh-content pre,
.gh-content code {
    font-family: "Cascadia Code", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

.gh-content code {
    padding: .15em .4em;
    border-radius: 6px;
    background: var(--surface0);
    color: var(--lavender);
    font-size: .88em;
}

.gh-content pre {
    overflow-x: auto;
    padding: 20px;
    border: 1px solid rgba(205, 214, 244, .07);
    border-radius: var(--radius-md);
    background: var(--crust);
    box-shadow: inset 0 1px rgba(255, 255, 255, .02);
}

.gh-content pre code {
    padding: 0;
    background: transparent;
    color: var(--text);
}

.gh-content img {
    border-radius: var(--radius-md);
}

.gh-content hr {
    border: 0;
    border-top: 1px solid rgba(205, 214, 244, .10);
}

.gh-content table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

.gh-content th,
.gh-content td {
    padding: 10px 14px;
    border: 1px solid var(--surface0);
    text-align: left;
}

.gh-content th {
    background: var(--surface0);
}

.article-footer {
    margin-top: 52px;
    padding-top: 24px;
    border-top: 1px solid rgba(205, 214, 244, .08);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    padding: 6px 10px;
    border: 1px solid rgba(203, 166, 247, .16);
    border-radius: 999px;
    color: var(--mauve);
    background: rgba(203, 166, 247, .07);
    font-size: .78rem;
}

.tag-pill:hover {
    background: rgba(203, 166, 247, .14);
}

.author-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 42px;
    padding: 26px;
    border: 1px solid rgba(205, 214, 244, .07);
    border-radius: var(--radius-lg);
    background: rgba(49, 50, 68, .28);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.author-avatar-large {
    width: 88px;
    height: 88px;
}

.author-header h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -.04em;
}

.author-header p {
    margin: 5px 0 0;
    color: var(--subtext0);
}

.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin: 30px 0 20px;
}

.pagination-link {
    padding: 10px 14px;
    border: 1px solid rgba(205, 214, 244, .08);
    border-radius: var(--radius-sm);
    background: rgba(49, 50, 68, .3);
    color: var(--subtext1);
    transition: background .2s var(--ease), color .2s var(--ease);
}

.pagination-link:last-child {
    justify-self: end;
}

.pagination-link:hover {
    color: var(--text);
    background: rgba(203, 166, 247, .10);
}

.pagination-count {
    color: var(--overlay0);
    font-size: .8rem;
}

.empty-state,
.error-page {
    padding: 70px 30px;
    border: 1px solid rgba(205, 214, 244, .07);
    border-radius: var(--radius-lg);
    background: rgba(49, 50, 68, .22);
    text-align: center;
}

.empty-state h2,
.error-page h1 {
    margin: 0 0 8px;
}

.empty-state p,
.error-page p {
    margin: 0;
    color: var(--subtext0);
}

.error-code {
    color: var(--mauve);
    font-size: 5rem;
    font-weight: 750;
    line-height: 1;
    letter-spacing: -.08em;
}

.button {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 16px;
    border-radius: 11px;
    background: var(--mauve);
    color: var(--crust);
    font-weight: 700;
    box-shadow: 0 7px 20px rgba(203, 166, 247, .18);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 70px auto 24px;
    padding: 20px 4px;
    border-top: 1px solid rgba(205, 214, 244, .07);
    color: var(--overlay0);
    font-size: .78rem;
}

.footer-dot {
    padding: 0 5px;
}

.footer-links {
    display: flex;
    gap: 14px;
}

.footer-links a:hover {
    color: var(--text);
}

@media (max-width: 700px) {
    .site-shell {
        width: min(100% - 20px, 1120px);
        padding-top: 8px;
    }

    .site-header {
        top: 8px;
        margin: 0 0 38px;
        padding-left: 15px;
    }

    .site-nav .nav a {
        padding: 7px 8px;
        font-size: .82rem;
    }

    .hero,
    .archive-header {
        margin-bottom: 28px;
    }

    .post-card-body {
        padding: 22px;
    }

    .article-header h1 {
        font-size: clamp(2.3rem, 12vw, 3.5rem);
    }

    .author-header {
        align-items: flex-start;
    }

    .site-footer {
        flex-direction: column;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

@supports not (backdrop-filter: blur(1px)) {

    .site-header,
    .post-card,
    .author-header {
        background: var(--mantle);
    }
}