/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #808080;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

.skip-to-content:hover {
    background: #000;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #808080;
    color: #333;
    line-height: 1.6;
}

.site {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-left: 3px solid #000;
    border-right: 3px solid #000;
    min-height: 100vh;
}

.site-header {
    border-bottom: 1px solid #ddd;
    padding: 1rem 2rem;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.site-nav {
    margin-top: 0.5rem;
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 1rem 2rem 0;
    border-top: 1px solid #ddd;
}

.site-nav a {
    color: #000;
    text-decoration: none;
    margin-right: 1rem;
}

.site-nav a:hover {
    text-decoration: underline;
}

.site-nav a.active {
    font-weight: bold;
    text-decoration: underline;
}

.site-main {
    padding: 2rem 2rem 1rem;
}

.site-footer {
    border-top: 1px solid #ddd;
    padding: 1rem 2rem;
    text-align: center;
    color: #555;
    font-size: 0.875rem;
}

/* Post list (homepage) */
article + article {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

article h2 a {
    color: #000;
    text-decoration: underline;
}

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

article h1 a {
    color: #000;
    text-decoration: underline;
}

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

article time {
    display: block;
    color: #555;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Single post */
.post-content, .page-content {
    margin-top: 1rem;
}

.content h2 {
    font-size: 2em;
}

.post-content h2, .page-content h2 {
    font-size: 1.5em;
}

.post-content h3, .page-content h3 {
    font-size: 1.17em;
}

.post-content h4, .page-content h4 {
    font-size: 1em;
}

.post-content h2, .post-content h3, .post-content h4,
.page-content h2, .page-content h3, .page-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-content p, .page-content p {
    margin-bottom: 1rem;
}

.post-content a, .page-content a {
    color: #0066cc;
}

.post-content img, .page-content img {
    max-width: 100%;
    height: auto;
}

.post-content blockquote, .page-content blockquote {
    border-left: 3px solid #ddd;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #555;
}

.post-content pre, .page-content pre {
    background: #f5f5f5;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 3px;
}

.post-content code, .page-content code {
    font-size: 0.9em;
}

.post-content ul, .post-content ol,
.page-content ul, .page-content ol {
    padding-left: 2em;
    margin-bottom: 2.6rem;
}

.post-content iframe {
    max-width: 100%;
    margin: 1rem 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 1rem 2rem 0;
    border-top: 1px solid #ddd;
}

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

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

/* Post navigation (prev/next) */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 1rem 2rem 0;
    border-top: 1px solid #ddd;
}

.post-nav a {
    color: #0066cc;
    text-decoration: none;
    max-width: 45%;
}

.post-nav a:hover {
    text-decoration: underline;
}

/* Tag/Category list */
.post-list {
    list-style: none;
}

.post-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.post-list li a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.post-list li a:hover {
    text-decoration: underline;
}

.post-list li time {
    display: inline;
    color: #555;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}
