@font-face {
    font-family: 'BrickByte';
    src: url('BrickByte-subset.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    min-height: 100vh;
    padding: 48px 24px;
    line-height: 1.55;
}

main {
    max-width: 720px;
    margin: 0 auto;
}

.site-header {
    text-align: center;
    margin-bottom: 56px;
}

.site-header a {
    text-decoration: none;
    color: inherit;
}

.site-header img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.site-header h1 {
    font-family: 'BrickByte', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 0.05em;
}

article h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

article .updated {
    font-size: 0.875rem;
    color: #86868b;
    margin-bottom: 32px;
}

article h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    scroll-margin-top: 24px;
}

article p {
    font-size: 1rem;
    color: #1d1d1f;
    margin-bottom: 12px;
}

article ul {
    padding-left: 24px;
    margin-bottom: 12px;
}

article li {
    font-size: 1rem;
    color: #1d1d1f;
    margin-bottom: 6px;
}

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

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

footer {
    text-align: center;
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid #d2d2d7;
    font-size: 0.8125rem;
    color: #86868b;
}

footer a {
    color: inherit;
}

footer nav {
    margin-bottom: 12px;
}

footer nav a {
    margin: 0 8px;
}

@media (prefers-color-scheme: dark) {
    body {
        background: #1d1d1f;
        color: #f5f5f7;
    }
    .site-header img {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    }
    article p,
    article li {
        color: #f5f5f7;
    }
    article .updated,
    footer {
        color: #86868b;
    }
    article a {
        color: #2997ff;
    }
    footer {
        border-top-color: #424245;
    }
}
