body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    background-color: #FFFEF5;
    color: #000000;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
}

header {
    border-bottom: none;
    padding-bottom: 8px;
    margin-bottom: 0;
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 2.8em;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8B7355;
    text-shadow:
        2px 2px 0px rgba(0, 0, 0, 0.15),
        inset -1px -1px 2px rgba(0, 0, 0, 0.3),
        inset 1px 1px 2px rgba(255, 255, 255, 0.4);
    -webkit-text-stroke: 0.5px rgba(139, 115, 85, 0.3);
}

#atari-game {
    width: 100%;
    height: 25px;
    display: block;
    margin: 10px 0 25px 0;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

header p {
    margin: 4px 0 0 0;
    font-size: 0.95em;
    font-style: italic;
    color: #666;
}

footer {
    border-top: 1px solid #ccc;
    margin-top: 40px;
    padding-top: 10px;
    font-size: 0.9em;
    color: #555;
}

nav {
    margin-bottom: 30px;
}

nav a {
    text-decoration: none;
    color: #0000ee;
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.1em;
}

nav a:hover,
nav a:focus {
    text-decoration: underline;
}

nav a.rss-link {
    color: #ff6600;
}

nav a.rss-link::before {
    content: "📡 ";
}

nav a.rss-link:hover {
    color: #cc5200;
}

main h1,
main h2,
main h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

main h2 {
    font-size: 1.8em;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

main h3 {
    font-size: 1.4em;
}

main p {
    margin-bottom: 1em;
}

main a {
    color: #0000ee;
    text-decoration: none;
}

main a:hover,
main a:focus {
    text-decoration: underline;
}

main ul {
    padding-left: 40px;
}

main ol ol,
main ol ul,
main ul ol,
main ul ul {
    padding-left: 0;
    margin-left: 0;
}

main table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
    margin-bottom: 1em;
}

main th,
main td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

main thead {
    background-color: #f4f4f4;
}

code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    padding: 2px 4px;
    font-size: 0.95em;
    border-radius: 3px;
}

pre {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    padding: 15px;
    overflow-x: auto;
    font-size: 0.95em;
    line-height: 1.4;
}

pre code {
    border: none;
    padding: 0;
    background-color: transparent;
}

.article-list {
    list-style: none;
    padding-left: 0;
}

.article-list li {
    margin-bottom: 20px;
}

.article-list h3 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.article-list h3 a {
    font-weight: bold;
}

.article-date,
.post-date {
    font-style: italic;
    color: #555;
    margin-top: 0;
    margin-bottom: 10px;
    display: block;
}

.category {
    margin-bottom: 30px;
}

.category .article-list li {
    margin-bottom: 10px;
}

.about-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 20px;
}

.about-text {
    flex: 3;
    min-width: 300px;
    padding-right: 20px;
}

.about-image {
    flex: 1;
    min-width: 150px;
    text-align: right;
}

.profile-img {
    width: 100%;
    max-width: 180px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 50%;
}

.about-section {
    margin-top: 20px;
}

.about-section ul {
    list-style: none;
    padding-left: 0;
}

.about-section li {
    margin-bottom: 15px;
    line-height: 1.5;
}

.about-section li strong {
    font-size: 1.1em;
    color: #000;
}

.category-description {
    font-style: italic;
    color: #555;
    border-left: 3px solid #ccc;
    padding-left: 15px;
    margin-top: -5px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    text-decoration: none;
    color: #0000ee;
    font-weight: bold;
}

.social-links a:hover {
    text-decoration: underline;
}

.articles-dense-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 20px;
}

.dense-article-link {
    display: block;
    padding: 6px 0;
    color: #0000ee;
    text-decoration: none;
    font-size: 0.9em;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dense-article-link:hover {
    text-decoration: underline;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #ccc;
    margin-top: 40px;
    padding-top: 20px;
}

.article-nav .nav-prev,
.article-nav .nav-next {
    max-width: 45%;
    font-size: 0.95em;
    color: #0000ee;
    text-decoration: none;
}

.article-nav .nav-next {
    text-align: right;
    margin-left: auto;
}

.article-nav a:hover {
    text-decoration: underline;
}

.related-articles {
    border-top: 1px solid #ccc;
    margin-top: 30px;
    padding-top: 20px;
}

.related-articles h2 {
    font-size: 1.3em;
    margin-top: 0;
    border-bottom: none;
}

.related-articles ul {
    list-style: none;
    padding-left: 0;
}

.related-articles li {
    margin-bottom: 8px;
}

.related-articles a {
    color: #0000ee;
    text-decoration: none;
}

.related-articles a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .articles-dense-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    .articles-dense-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    body {
        padding: 15px;
        box-sizing: border-box;
    }

    main,
    .article-list,
    .article-list li,
    .article-list h3,
    article {
        text-align: left;
    }

    .article-list h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .category-description {
        text-align: left;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    nav a {
        margin-right: 0;
    }
}