* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.main a:visited {
    color: blue;
}

.blog-page {
    position: relative;
    display: flow-root;
    min-height: 100vh;
}

.sidebar {
    position: absolute;
    top: 0;
    right: calc(50% + 24rem);
    margin: 0;
    padding: 0;
}

.sidebar a,
.sidebar a:visited {
    color: black;
}

.blog-content {
    width: min(100%, 42rem);
    margin: 0 auto;
}

.blog-content h1 {
    margin: 0.67em 0 2rem;
    font-size: 2rem;
    line-height: 1.2;
}

.blog-content h2,
.blog-content h3 {
    margin-top: 2rem;
    line-height: 1.3;
}

.blog-content p {
    max-width: 40rem;
}

.blog-content pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 1rem;
    background: #f2f2f2;
}

.post-date {
    margin-top: -1.25rem;
    color: #666;
    font-size: 0.9rem;
}

.post-list {
    margin: 0;
    padding: 0;
}

.post-list li {
    margin-bottom: 0.75rem;
}

@media (max-width: 46rem) {
    .blog-page {
        padding: 3rem 0;
    }

    .sidebar {
        position: static;
        transform: none;
        margin-bottom: 0rem;
        text-align: center;
    }
}
