/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #fff;
    padding: 2rem 1rem;
}

/* Main Content Container */
main {
    max-width: 700px;
    margin: 0 auto;
}

/* Typography */
h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #111;
}

h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #111;
}

h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: #111;
}

p {
    margin-bottom: 1rem;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Code Blocks */
code {
    font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
    font-size: 0.9em;
    background: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

pre {
    background: #f5f5f5;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
}

pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
}

/* Lists */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Header/Navigation */
header {
    margin-bottom: 2rem;
}

.site-title {
    font-size: 2.0rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #666;
}

.back-link:hover {
    color: #0066cc;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid #e0e0e0;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #666;
    font-style: italic;
}

/* Horizontal Rule */
hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2rem 0;
}

.puzzle-list {
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.header-img {
    max-width: 400px;
    display: block;
    margin: 0 auto 
}

/* Footer */
footer {
    padding-top: 2rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

footer a {
    color: #666;
}

footer a:hover {
    color: #0066cc;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}
