* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
        sans-serif;
    font-size: 1.15em;
    line-height: 1.6;
    min-height: 100vh;
}

main {
    flex: 1;
    margin: 0 auto;
    max-width: 650px;
    padding: 60px 20px;
    width: 100%;
}

header {
    margin-bottom: 24px;
}

header h1 {
    color: #555;
    font-family: "Redacted Script", cursive;
    font-size: 2.5em;
    font-style: normal;
    font-weight: 400;
    text-align: center;
}

section h2 {
    color: #000;
    font-size: 1.125em;
    font-weight: 600;
    margin-bottom: 16px;
}

.content {
    color: #555;
}

.content p {
    margin-bottom: 12px;
}

.content a {
    color: #0066cc;
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.post-list {
    list-style: none;
    padding-top: 4em;
}

.post-list a {
    border-radius: 6px;
    color: #333;
    display: inline-block;
    margin: 6px 0;
    padding: 12px 0;
    text-decoration: none;
    transition: background-color 0.2s ease;
    width: 100%;
}

.post-list a:hover {
    background-color: #fafafa;
    cursor: pointer;
    margin-left: -16px;
    margin-right: -16px;
    padding: 12px 16px;
    text-decoration: none;
}

.post-list a:visited {
    text-decoration: none;
}

.post-list a span {
    display: block;
}

.post-list a span.post-date {
    color: #bbb;
    font-size: 0.6em;
    font-weight: 500;
    line-height: 1.75em;
    text-transform: uppercase;
}

.post-list a span.post-title {
    line-height: 1.1em;
    margin-bottom: 3px;
}

.back-link {
    font-family: "Newsreader", system-ui;
    font-style: italic;
    margin-bottom: 32px;
}

.back-link a {
    color: #666;
    font-size: 1em;
    text-decoration: none;
}

.back-link a:hover {
    color: #000;
}

article {
    color: #333;
}

article h1 {
    color: #000;
    font-size: 1em;
    font-weight: 500;
    margin: 104px 0px 64px 0px;
}

article p {
    margin-bottom: 16px;
}

article ul,
article ol {
    margin-bottom: 16px;
    margin-left: 24px;
}

article li {
    margin-bottom: 8px;
}

article a {
    color: #0066cc;
    text-decoration: none;
}

article a:hover {
    text-decoration: underline;
}

article code {
    background: #f5f5f5;
    border-radius: 3px;
    font-family:
        "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas,
        "Courier New", monospace;
    font-size: 0.875em;
    padding: 2px 6px;
}

article pre {
    background: #f5f5f5;
    border-radius: 4px;
    display: block;
    margin-bottom: 16px;
    padding: 16px;
    max-width: 100%;
}

article pre code {
    display: block;
    font-size: 0.85em;
    overflow: scroll !important;
}

article pre code.hljs {
    background: none !important;
    padding: 0 !important;
}

article strong {
    font-weight: 500;
}

article blockquote {
    border-left: 2px solid #ddd;
    color: #999;
    font-size: 1sdem;
    margin: 16px 0;
    padding-left: 16px;
}

article .sidenote {
    font-family: "Caveat";
    font-size: 1.125em;
    color: #bbb;
    left: calc(50vw + 340px);
    line-height: 1em;
    position: absolute;
    margin-top: 4px;
    max-width: 200px;
}

article img {
    max-width: 100%;
    height: auto;
}

article hr {
    border-top: none;
    max-width: 75%;
    margin: 32px auto;
}

footer {
    margin-top: 48px;
    padding: 24px 0;
    text-align: center;
}

footer ul {
    display: flex;
    gap: 24px;
    justify-content: center;
    list-style: none;
}

footer a {
    color: #999;
    text-decoration: none;
}

footer a:hover {
    color: #666;
}

@media (max-width: 1080px) {
    main {
        padding: 40px 16px;
    }

    article .sidenote {
        display: none;
    }
}
