/* Minimal theme - RFC style */

/* System fonts only */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    color: #111;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin: 1.5em 0 0.5em;
    line-height: 1.2;
}

h1 { font-size: 1.8em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.2em; }

/* Links - classic web colors */
a { color: #00e; text-decoration: underline; }
a:visited { color: #551a8b; }
a:hover { text-decoration: none; }

/* Header */
header {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ccc;
}

header h1 {
    margin: 0;
    font-size: 1.5em;
}

header h1 a {
    color: #000;
    text-decoration: none;
}

header nav {
    margin-top: 0.5rem;
}

header nav a {
    margin-right: 1rem;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #ccc;
    color: #666;
    font-size: 0.9em;
}

/* Code */
pre, code {
    font-family: monospace;
    font-size: 0.9em;
}

pre {
    background: #f5f5f5;
    padding: 1rem;
    overflow-x: auto;
    border: 1px solid #ddd;
}

code {
    background: #f5f5f5;
    padding: 0.1em 0.3em;
}

pre code {
    background: none;
    padding: 0;
}

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

li {
    margin: 0.5em 0;
}

/* Article metadata */
article header time {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 1rem;
}

/* Post list */
section ul {
    list-style: none;
    padding: 0;
}

section li {
    margin: 0.8rem 0;
}

section time {
    display: inline-block;
    min-width: 6rem;
    color: #666;
    font-family: monospace;
    font-size: 0.9em;
}

/* Tables */
table {
    border-collapse: collapse;
    margin: 1.5em 0;
}

th, td {
    padding: 0.5em 1em;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background: #f5f5f5;
    font-weight: bold;
}

/* Blockquotes */
blockquote {
    margin: 1.5em 0;
    padding-left: 1.5em;
    border-left: 3px solid #ccc;
    color: #666;
}

/* Horizontal rules */
hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 2em 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* External link indicator */
a[href^="http"]:not([href*="sonirico.dev"]):not(:has(img))::after {
    content: "";
    display: inline-block;
    width: 0.65em;
    height: 0.65em;
    margin-left: 0.15em;
    vertical-align: 0.1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 1h5v5L8.86 3.85 4.7 8 4 7.3l4.15-4.16zm-4 2h2v1H3v5h5V7h1v2a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Tech links */
a:has(.tech-icon) {
    text-decoration: none;
    color: inherit;
}
a:has(.tech-icon):visited {
    color: inherit;
}

/* Tech icons */
.tech-icon {
    height: 1em;
    width: 1em;
    vertical-align: middle;
    margin-left: 0.2em;
    display: inline-block;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 1rem;
        font-size: 14px;
    }

    section time {
        display: block;
        min-width: 0;
    }
}
