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

a {
    color: inherit;
}

:root {
    --color-text: #2c2c2c;
    --color-text-light: #666;
    --color-background: #fafafa;
    --color-accent: #1a1a1a;
    --color-border: #e0e0e0;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 680px;
}

html {
    font-size: 18px;
    line-height: 1.7;
}

body {
    font-family: var(--font-serif);
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout */
header, main, footer {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

header {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

main {
    flex: 1;
    padding-bottom: 4rem;
}

footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

footer p {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-align: center;
}

footer a {
    color: var(--color-text-light);
    text-decoration: underline;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--color-text);
}

/* Tipografía */
.site-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.site-subtitle {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text-light);
}

h1 {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h2 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

/* Manifesto */
.manifesto {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.manifesto p {
    margin-bottom: 1.25rem;
}

.manifesto p:last-child {
    margin-bottom: 0;
}

/* Lista de posts */
.posts ul {
    list-style: none;
}

.posts li {
    margin-bottom: 1.25rem;
}

.posts a {
    text-decoration: none;
    color: var(--color-text);
    display: block;
    transition: color 0.2s ease;
}

.posts a:hover {
    color: var(--color-text-light);
}

.post-link-title {
    font-size: 1.125rem;
    display: block;
    margin-bottom: 0.25rem;
}

/* Newsletter */
.newsletter {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

/* Medios */
.media {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

.media ul {
    list-style: none;
}

.media li {
    margin-bottom: 1rem;
}

.media a {
    text-decoration: none;
    color: var(--color-text);
    display: block;
    transition: color 0.2s ease;
}

.media a:hover {
    color: var(--color-text-light);
}

.media-title {
    display: block;
    font-size: 1rem;
}

.media-source {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.newsletter p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.newsletter iframe {
    width: 100%;
    height: 150px;
    background: transparent;
}

/* Página de post */
.back-link {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--color-text);
}

.post-header {
    margin-bottom: 3rem;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

/* Contenido del post */
.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--color-text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-body a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-body a:hover {
    color: var(--color-text-light);
}

.post-body img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    display: block;
}

.post-body blockquote {
    border-left: 2px solid var(--color-border);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-light);
}

.post-body ul, .post-body ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body code {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.875em;
    background: var(--color-border);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
}

.post-body pre {
    background: var(--color-accent);
    color: var(--color-background);
    padding: 1.25rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Responsive */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    header {
        padding-top: 2.5rem;
    }

    h1 {
        font-size: 1.625rem;
    }

    .manifesto {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
    }
}
