/*
Theme Name: omontes-theme
Theme URI: https://omontes.com
Description: Tema ultra-minimalista de alto rendimiento inspirado en el diseño de Naval Ravikant.
Author: Óscar Montes
Author URI: https://omontes.com
Version: 1.0
*/

/* 1. CONFIGURACIÓN BASE */
body {
    background-color: #ffffff;
    color: #444444; 
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px; 
    font-weight: 500; 
    line-height: 1.65;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px; 
    width: 92%;
    margin: 60px auto;
}

/* 2. HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 120px;
}

header a {
    text-decoration: none;
    color: #db0042; 
    font-weight: 700;
    font-size: 22px; 
    text-transform: lowercase;
    letter-spacing: -0.03em;
}

nav ul, nav li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

nav ul { display: flex !important; gap: 35px; }

nav a {
    text-decoration: none;
    color: #888888; 
    font-size: 17px; 
    font-weight: 400; 
    text-transform: lowercase;
    transition: color 0.2s;
}

nav a:hover { color: #111; }

/* 3. COLUMNA DE CONTENIDO (850px) */
main {
    max-width: 850px; 
    margin: 0 auto;
}

.post-item {
    margin-bottom: 90px;
}

.post-meta {
    font-size: 0.7em;
    color: #bbbbbb;
    margin-bottom: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post-item h2 {
    font-size: 1.45em;
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.post-item h2 a {
    text-decoration: none;
    color: #000000; 
}

.post-item h2 a:hover {
    color: #db0042;
}

.post-excerpt {
    color: #555555;
    font-size: 1.05em;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.85em;
    color: #bbbbbb;
    text-decoration: none;
}

/* 4. CONTENIDO INDIVIDUAL */
h1 {
    font-size: 2.1em;
    color: #000000; 
    line-height: 1.2;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.post-content p {
    margin-bottom: 1.7em;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    margin: 35px 0;
}

/* 5. FOOTER */
footer {
    max-width: 850px;
    margin: 150px auto 60px auto;
    font-size: 0.85em;
    color: #bbbbbb;
    font-weight: 400;
}

/* 6. MODO OSCURO */
@media (prefers-color-scheme: dark) {
    body { background-color: #111111; color: #999999; }
    header a { color: #ff1a5c; } 
    h1, .post-item h2 a { color: #eeeeee; }
    nav a, .post-meta, footer { color: #666666; }
    .post-excerpt { color: #999999; }
}