:root {
    --accent: #07bbbc;
    --secondary: #7576ac;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    font-size: 1.125rem;
    line-height: 1.75rem;
    margin: 0;
}

body:has(>.links) {
    background-color: #292929;
    color: white;
}

a {
    color: inherit;
}

article {
    width: 90%;
    max-width: 48rem;
    margin: 0 auto;
    h1 {
        font-size: 3.052em
    }

    h2 {
        font-size: 2.441em
    }

    h3 {
        font-size: 1.953em
    }

    h4 {
        font-size: 1.563em
    }

    h5 {
        font-size: 1.25em
    }
}

main {
    padding: 2em;
}

@media screen and (max-width: 600px) {
    main {
        padding: 1em;
    }
}

main section {
    width: 100rem;
    max-width: 100%;
    margin: 0 auto;
    color: white;
    background: var(--bg);
}

section {
    position: relative;
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

section:not(.hero)>* {
    padding: 2.5em;
}

section h2 {
    color: inherit;
    font-size: 3rem;
    margin: 0;
    line-height: normal;
}

section h2 a {
    --block: white;
    color: inherit;
    background: linear-gradient(to top, var(--block) 50%, transparent 50%);
    background-size: 100% 200%;
    background-position: 0 0%;
    background-repeat: no-repeat;
    transition: .25s;
    text-decoration: none;
}

section h2 a:hover {
    color: var(--bg);
    background-position: 0 100%;
}

main section#projects {
    --bg: var(--accent);
}

main section#docsify {
    --bg: #2ECE53;
}

main section#bluesky {
    --bg: #0285FF;
}

main section#contact {
    --bg: var(--secondary);
}

main section#posts {
    --bg: #000;
    color: #ffffff;
}

main section#posts .lists {
    padding: 0;
}

main section#my-links {
    color: #fff;
    --bg: #6A00FF;
    height: auto;
}

main section#my-links a {
    display: flex;
    gap: 1.75rem;
    height: 12rem;
    text-decoration: none;
}

main section#my-links:hover {
    opacity: .5;
}

main section#my-links a {
    font-size: 3rem;
}

main section#posts .lists .list {
    color: black;
    padding: 1.5em 2.25em;
    height: 11em;
    text-shadow: 0 0 .25rem rgba(255, 255, 255, 1);
}

section .scroll {
    overflow-x: auto;
}

pre {
    overflow-y: auto;
}

.hero {
    background: conic-gradient(from 90deg at 50% 50%, var(--secondary) 14%, var(--accent) 14%, var(--secondary) 99.995%, var(--accent) 100%);
}

.hero,
.post-detail {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;
}

.post-detail {
    background-color: rgba(0, 0, 0, .35);
    background-blend-mode: darken;
}

.post-detail>div {
    position: absolute;
    padding: 0;
    color: white;
    padding: 5em;
    text-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.5);
}

.post-detail h1 {
    font-size: 5rem;
    line-height: normal;
    margin: 0 0 .5em;
    padding: 0;
}

.hero::before {
    content: "L";
    pointer-events: none;
    user-select: none;
    display: block;
    position: absolute;
    margin-top: -5.65rem;
    margin-left: 3.25rem;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 700;
    line-height: normal;
    color: white;
    text-shadow: -5px -5px 1.5rem rgba(0, 0, 0, 0.25);
}

.social {
    position: absolute;
    top: 2.5em;
    left: 2.45em;
}

.social a {
    display: inline-block;
    text-decoration: none;
    padding: 0 .45em;
    transition: .25s;
}

.social:hover a {
    opacity: .5;
}

.social a:hover {
    opacity: 1;
}

.social a:active {
    transform: scale(.8);
}

.info {
    color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2.5em;
    max-width: 24rem;
}

.info h1 {
    font-size: 3em;
}

.lists a.list {
    display: block;
    color: white;
    text-decoration: none;
    padding: .75em 1.5em .75em 0;
    transition: .25s;
}

.lists:has(a.list:hover) a.list {
    opacity: .5;
}

.lists a.list:hover {
    opacity: 1 !important;
}

a.list:active,
.links li a:active {
    transform: scale(.9);
}

.lists a.list .name {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: .5em;
    line-height: normal;
    transition: .25s;
}

.lists a.list .description {
    transition: .25s;
}

.lists a.list:hover .name {
    transform: translate3D(0, -6px, 0);
}

.lists a.list:hover .description {
    transform: translate3D(0, 6px, 0);
}

.links {
    text-align: center;
    height: auto;
}

.links>h1 {
    display: block;
    line-height: normal;
    font-size: 3rem;
    padding: 0 !important;
    margin: 0 0 1em;
}

.links>img {
    border-radius: 50%;
}

.links :is(ul, li) {
    list-style-type: none;
    padding: 0;
}

.links li a {
    display: block;
    background-color: var(--accent);
    color: white;
    font-weight: 600;
    text-decoration: none;
    margin: .5rem auto;
    padding: .75rem 0;
    max-width: 24rem;
    border-radius: .75rem;
    transition: .25s;
}

.links li a:hover {
    background-color: var(--secondary);
}

.links li a.edit:not(:hover) {
    background-color: transparent;
    color: var(--accent);
}

bluesky-profile-feed {
    --font-size: .95em;
    --font-family: inherit;
    --max-feed-height: calc(100vh - 3.25rem);
    padding: 0 !important;
}

.bluesky-embed {
    --text-primary: #000000;
	--text-secondary: #455668;
	--text-link: var(--accent);
	--background-primary: #ffffff;
	--background-secondary: #455668;
	--divider-hover: #a9b7c5;
	--divider: #d4dbe2;
	--button: var(--accent);
	--button-text: #ffffff;
	--button-hover: var(--secondary);
    line-height: 1.3em !important;
    width: 100%;
    height: 100vh;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: white !important;
    color: black !important;
    border: none !important;
}

.bluesky-embed .thumbnail {
    object-fit: cover;
}

.contact {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.contact>.via {
    flex: 1;
    font-size: 3rem;
    gap: 1.75rem;
    text-decoration: none;
    background-color: var(--bg);
}

.contact>.via:hover {
    opacity: .5;
}

.contact>.via:nth-child(1) {
    --bg: #0285FF;
}

.contact>.via:nth-child(2) {
    --bg: #EA4335;
}

.contact>.via,
.my-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 !important;
}

footer {
    text-align: center;
    padding: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.grid>* {
    margin: 0;
    grid-column: span var(--num);
}

.grid>.s1,
.grid.all-s1>* {
    --num: 1;
}

.grid>.s2,
.grid.all-s2>* {
    --num: 2;
}

.grid>.s3,
.grid.all-s3>* {
    --num: 3;
}

.grid>.s4,
.grid.all-s4>* {
    --num: 4;
}

.grid>.s5,
.grid.all-s5>* {
    --num: 5;
}

.grid>.s6,
.grid.all-s6>* {
    --num: 6;
}

.grid>.s7,
.grid.all-s7>* {
    --num: 7;
}

.grid>.s8,
.grid.all-s8>* {
    --num: 8;
}

.grid>.s9,
.grid.all-s9>* {
    --num: 9;
}

.grid>.s10,
.grid.all-s10>* {
    --num: 10;
}

.grid>.s11,
.grid.all-s11>* {
    --num: 11;
}

.grid>.s12,
.grid.all-s12>* {
    --num: 12;
}

@media screen and (min-width: 48em) {

    .grid>.m1,
    .grid.all-m1>* {
        --num: 1;
    }

    .grid>.m2,
    .grid.all-m2>* {
        --num: 2;
    }

    .grid>.m3,
    .grid.all-m3>* {
        --num: 3;
    }

    .grid>.m4,
    .grid.all-m4>* {
        --num: 4;
    }

    .grid>.m5,
    .grid.all-m5>* {
        --num: 5;
    }

    .grid>.m6,
    .grid.all-m6>* {
        --num: 6;
    }

    .grid>.m7,
    .grid.all-m7>* {
        --num: 7;
    }

    .grid>.m8,
    .grid.all-m8>* {
        --num: 8;
    }

    .grid>.m9,
    .grid.all-m9>* {
        --num: 9;
    }

    .grid>.m10,
    .grid.all-m10>* {
        --num: 10;
    }

    .grid>.m11,
    .grid.all-m11>* {
        --num: 11;
    }

    .grid>.m12,
    .grid.all-m12>* {
        --num: 12;
    }
}

@media screen and (min-width: 64em) {

    .grid>.l1,
    .grid.all-l1>* {
        --num: 1;
    }

    .grid>.l2,
    .grid.all-l2>* {
        --num: 2;
    }

    .grid>.l3,
    .grid.all-l3>* {
        --num: 3;
    }

    .grid>.l4,
    .grid.all-l4>* {
        --num: 4;
    }

    .grid>.l5,
    .grid.all-l5>* {
        --num: 5;
    }

    .grid>.l6,
    .grid.all-l6>* {
        --num: 6;
    }

    .grid>.l7,
    .grid.all-l7>* {
        --num: 7;
    }

    .grid>.l8,
    .grid.all-l8>* {
        --num: 8;
    }

    .grid>.l9,
    .grid.all-l9>* {
        --num: 9;
    }

    .grid>.l10,
    .grid.all-l10>* {
        --num: 10;
    }

    .grid>.l11,
    .grid.all-l11>* {
        --num: 11;
    }

    .grid>.l12,
    .grid.all-l12>* {
        --num: 12;
    }
}