@font-face {
    font-family: 'Geist';
    font-display: swap;
    src: url('/static/fonts/geist.woff2') format('woff2'),         
         url('/static/fonts/geist.ttf') format('truetype'), 
         url("https://fonts.gstatic.com/s/geistmono/v4/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2") format('woff2');
    font-weight: normal;
    font-style: normal;
}

html {
    scrollbar-gutter: stable both-edges;
}

* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5 {
    padding:0;
    margin:0;
}

h1 {
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.6;
}

p {
    opacity: 0.8;
}

body {
    font-family: "Geist", monospace;
    background: #1f1f1f;
    color: #f1f1f1;
    opacity: 1.;
    width: 100%;
    min-height: 100svh;

    padding: 0;
    margin: 0;
    line-height: 160%;
}

.layout {
    padding: 32px 16px;
    margin: auto;
    min-height: 100svh;                        
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 2fr;         
    grid-template-rows: 1fr auto;            
    grid-template-areas:
      "aside main"
      "footer footer";
    & * {
        min-width: 0; // force size constraint propagation
    }
}

aside {
    padding: 16px;
}
main {
    padding: 16px;
}
footer {
    padding: 16px;
}

a {
    color: #f1f1f1;
    opacity: 1;
}
li {
    padding-bottom: 4px;
}

#post {
    overflow-wrap: break-word;
    .header {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "h2 a"
            ".date .date";
        align-items: center;
        padding-bottom: 8px;
        .date {
            opacity: 0.6;
        }
    }
    .content {
        h1, h2, h3, h4, h5 {
            padding:revert;
            margin:revert;
        }
        pre, code {
            font-family: "Geist", monospace;
        }
        pre {
            width: 100%;
            overflow-x: auto;
            padding: 8px 12px;
            background: #191919;
            &::-webkit-scrollbar {
                width: 4px;
                height: 4px;
                margin: 16px;
            }

            &::-webkit-scrollbar-thumb {
                background: #9d9d9d;
            }

            &::-webkit-scrollbar-thumb:hover {
                background: #C4C4C4;
            }
        }
        code:not(pre code) {
            font-size: 1em;
            background: #333;
            padding: 0px 4px;
            border-radius: 4px;
        }
    }
}

