@view-transition {
    navigation: auto;
}

@font-face {
    font-family: "Sometype Mono";
    src: url("/public/fonts/SometypeMono-VariableFont_wght.ttf") format("truetype");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Sometype Mono";
    src: url("/public/fonts/SometypeMono-Italic-VariableFont_wght.ttf") format("truetype");
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: all 0.2s ease-out;
}

/* html {
    scroll-behavior: smooth;
} */

body {
    background: #fff;
    font-family: "Sometype Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.cursor-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
}

.cursor-dot {
    position: fixed;
    top: -5px;
    left: -5px;
    width: 1rem;
    height: 1rem;
    background: #ffffff;
    border-radius: 50%;
}


.container {
    width: 100%;
    margin-inline: auto;
    padding-inline: 1rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Small (sm) */
@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

/* Medium (md) */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

/* Large (lg) */
@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

/* Extra Large (xl) */
@media (min-width: 1280px) {
    .container {
        max-width: 1024px;
    }
}


.flex-col {
    display: flex;
    flex-direction: column;
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1 1 0%;
}

.just-between {
    justify-content: space-between;
}



.header {
    padding-block: 1rem;
    margin-top: 1rem;
    font-family: "Space Mono", monospace;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 100;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .header {
        margin-top: 2rem;
    }
}

.block {
    margin-left: .2em;
    width: 0.4em;
    height: .8em;
    background-color: #333;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.content {
    height: max-content;
}

a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    position: relative;
}

a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease-out, left 0.3s ease-out;
}

a:hover::after {
    left: 0;
    width: 100%;
}

.icons {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}


.blogs-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.blog-list {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-block: .3rem;
}

.blog-list>h2 {
    font-size: clamp(.6rem, 4vw, 1.3rem);
    font-weight: 100;
}

.blog-list>time {
    font-size: clamp(.6rem, 3vw, 1rem);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    color: #666;
}






.footer {

    padding: 1rem 0;
    margin-top: auto;
}

.divider {
    border: 0;
    height: 1px;
    background: #e5e5e5;
    margin: 1rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.copyright {
    color: #666;
}

.site-link {
    color: #333;
    text-decoration: none;
}



.socials {
    display: flex;
    align-items: center;
    gap: .1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.social-link:hover {
    background-color: #1e1e1e;
    color: #fff;
}

.social-link::after {
    display: none;
}

.social-link svg {
    width: 1rem;
    height: 1rem;
    display: block;
}



.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    text-align: center;
}

.error-container {
    padding: 2rem;
    max-width: 600px;
}

.error-code {
    font-family: "Space Mono", monospace;
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 700;
    color: #333;
    margin: 0;
}

.error-message {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: #333;
    margin: 1rem 0;
    font-weight: 700;
}

.error-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.home-button-wrapper {
    margin-top: 1.5rem;
}

.home-button {
    color: #333;
    padding: .6rem 1.2rem;
    border: 2px solid #333;
    font-family: "Sometype Mono", monospace;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    cursor: pointer;
    display: inline-block;
}

.home-button:hover {
    background-color: #333;
    color: #fff;
}

.lost-image {
    font-size: clamp(2rem, 8vw, 3rem);
    margin: 1.5rem auto;
    color: #333;
    animation: sway 3s ease-in-out infinite;
}

@keyframes sway {

    0%,
    100% {
        transform: rotate(-.5deg);
    }

    50% {
        transform: rotate(.5deg);
    }
}


/* Article Page */

.article-page {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-nav {
    padding-block: 1.5rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .article-nav {
        margin-top: 2rem;
    }
}

.back-link {
    font-family: "Space Mono", monospace;
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #1e1e1e;
}

.back-link::after {
    display: none;
}

.back-arrow {
    padding-top: 3px;
    display: flex;
    flex-shrink: 0;
}

.back-arrow svg {
    width: auto;
    height: 0.8em;
    display: block;
}

.article-header {
    margin-bottom: 2rem;
}

.article-title {
    font-family: "Space Mono", monospace;
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    font-weight: 700;
    color: #1e1e1e;
    line-height: 1.5;
    margin-bottom: .5rem;
}

.article-date {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    color: #666;
    font-weight: 400;
}

.article-content {
    line-height: 1.3;
    color: #333;
    flex: 1;
}

.article-content p {
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    font-family: "Space Mono", monospace;
    color: #1e1e1e;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h2 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
}

.article-content h3 {
    font-size: clamp(1rem, 3vw, 1.3rem);
}

.article-content hr {
    border: 0;
    border-top: 1px solid #e5e5e5;
    margin-top: 3rem;
    margin-block: 1.5rem;
}

.article-content code {
    background: #f0f0f0;
    padding: .15rem .4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.article-content pre {
    background: #1e1e1e;
    color: #f0f0f0;
    padding: 1.2rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    line-height: 1.2;
    border-radius: .3rem;
}

.article-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: inherit;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: .5rem;
}

.article-content blockquote {
    border-left: 3px solid #333;
    padding-left: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.article-content a {
    color: #333;
    text-decoration: underline;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}



@keyframes wipe-out {
    from {
        clip-path: inset(0 0 0 0);
    }

    to {
        clip-path: inset(0 0 0 100%);
    }
}

@keyframes wipe-in {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

::view-transition-old(root) {
    animation: wipe-out 1s ease-in-out;
    transition: none;
}

::view-transition-new(root) {
    animation: wipe-in 1s ease-in-out;
    transition: none;
}