:root {
    --bg: #fff;
    --bg2: #f8f8f8;
    --text: #242424;
    --muted: #777;
    --accent: #f06543;
    --line: #e8e8e8
}

:root[data-theme=dark] {
    --bg: #161616;
    --bg2: #1f1f1f;
    --text: #e8e8e8;
    --muted: #999;
    --line: #2e2e2e
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px
}


body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 Inter, system-ui, sans-serif
}

a {
    color: var(--text);
    text-decoration-color: var(--accent);
    text-underline-offset: 3px
}

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

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

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

.skip {
    position: absolute;
    left: -999px
}

.skip:focus {
    left: 8px;
    top: 8px;
    background: var(--bg);
    padding: 6px;
    z-index: 9
}

.layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 40px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px
}

.side {
    position: sticky;
    top: 0;
    align-self: start;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 32px 0;
    font-size: 14px;
    line-height: 1.55
}

.side::-webkit-scrollbar {
    display: none
}

/* Controlling profile photo width and height with this */
.photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg2);
    border: 1px solid var(--line)
}

.side h1 {
    font-size: 22px;
    margin: 16px 0 0;
    font-weight: 600
}

.tagline {
    color: var(--accent);
    font-weight: 500;
    margin: 8px 0 12px
}

.small {
    font-size: 13px;
    margin: 16px 0 6px;
    font-weight: 600
}

#side-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 4px
}

#side-interests li {
    font-size: 12px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 0 7px
}

.muted {
    color: var(--muted);
    font-size: 14px
}

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

.links li {
    display: inline-block;
    margin: 0 14px 4px 0
}

.btn,
.theme {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 12px;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 4px;
    font: inherit;
    font-size: 13px;
    text-decoration: none;
    background: none;
    cursor: pointer
}

.btn:hover,
.theme:hover {
    background: var(--accent);
    color: #fff
}

.theme {
    margin-left: 8px;
    border-color: var(--line);
    color: var(--muted)
}

.content {
    padding: 0 0 64px;
    min-width: 0
}

.nav {
    position: sticky;
    top: 0;
    background: var(--bg);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    padding: 18px 0 12px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    z-index: 5
}

.nav a {
    text-decoration: none;
    color: var(--muted);
    padding-bottom: 2px;
    border-bottom: 2px solid transparent
}

.nav a.on {
    color: var(--text);
    border-color: var(--accent)
}

section {
    padding: 40px 0 8px;
    border-bottom: 1px solid var(--line)
}

section:last-of-type {
    border: 0
}

h2 {
    font-size: 20px;
    margin: 0 0 18px;
    font-weight: 600
}

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

.tags li,
.kw span {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 2px 9px;
    font-size: 13px
}

.tags li small {
    display: block;
    color: var(--muted);
    font-size: 12px
}

.entry {
    margin: 0 0 28px;
    max-width: 70ch
}

.entry h3 {
    font-size: 16px;
    margin: 0 0 2px;
    font-weight: 600
}

.meta {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 6px
}

.entry p {
    margin: 6px 0
}

.badge {
    display: inline-block;
    font-size: 12px;
    padding: 0 7px;
    border: 1px solid var(--line);
    border-radius: 3px;
    margin-right: 6px;
    color: var(--muted)
}

.badge.pub {
    border-color: var(--accent);
    color: var(--accent)
}

.badge.ph {
    border-style: dashed
}

.kw {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0
}

.kw span {
    font-size: 12px;
    color: var(--muted)
}

.ln a {
    margin-right: 14px;
    font-size: 14px
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px
}

.filters button {
    font: inherit;
    font-size: 13px;
    background: none;
    border: 1px solid var(--line);
    color: var(--muted);
    border-radius: 3px;
    padding: 2px 10px;
    cursor: pointer
}

.filters button[aria-pressed=true] {
    border-color: var(--accent);
    color: var(--accent)
}

.empty {
    color: var(--muted);
    font-style: italic
}

.oss-head {
    display: flex;
    gap: 16px;
    align-items: center
}

.oss-head img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 1px solid var(--line)
}

footer {
    padding-top: 24px
}

@media(max-width:860px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 0
    }

    .side {
        position: static;
        max-height: none;
        padding: 28px 0 16px;
        border-bottom: 1px solid var(--line)
    }

    .nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap
    }
}

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