/*
Theme Name: Sin Tantas Vueltas
Description: Tema minimalista para WordPress, directo al grano.
Author: ECH
Version: 1.0.0
License: GPL v2 or later
Text Domain: sin-tantas-vueltas
*/

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'Inter', sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #F8F8F8;
}

/* Estilos base que se aplican antes del modo oscuro */
.site-description {
	color: #666;
}

.author-name {
	color: #333;
}

.post-date,
.post-author-header .post-date,
.post-title-section .post-date {
	color: #666;
	font-size: 0.9rem;
}

.author-description {
	color: #666;
}

.post-card {
	border-color: rgba(0,0,0,0.2);
}

.post-card-link {
	color: inherit;
}

.post-card-link:hover {
	color: #2633bd;
}

a {
	color: #2633bd;
}

.post-card-date {
	color: #666;
	font-size: 0.9rem;
}

.post-card-excerpt {
	color: inherit;
}

/* Modo oscuro automático con mayor especificidad */
@media (prefers-color-scheme: dark) {
	body {
		background-color: #222831;
		color: #EEEEEE;
	}
	
	body .site-description {
		color: #aeaba8;
	}
	
	body .author-name {
		color: #aeaba8;
	}
	
	body .post-date,
	body .post-author-header .post-date,
	body .post-title-section .post-date {
		color: #aeaba8;
	}
	
	body .author-description {
		color: #aeaba8;
	}
	
	body .post-card {
		border-color: rgba(255,255,255,0.1);
		/*background: #2a3441;*/
	}
	
	body .post-card-link {
		color: #EEEEEE;
	}

	body .post-card-link:hover {
		color: #F6B17A;
	}
	
	body a {
		color: #F6B17A;
	}
	
	body .post-card-date {
		color: #aeaba8;
	}
	
	body .post-card-excerpt {
		color: #FFFFFF;
	}
}

.container {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 1rem;
}

@media (min-width: 768px) {
	.container {
		padding: 0 2rem;
	}
}

/* Front page styles */
.front-page-header {
	text-align: center;
	padding: 3rem 0;
}

.site-avatar {
	margin-bottom: 1.5rem;
}

.site-avatar img {
	border-radius: 50%;
	width: 100px;
	height: 100px;
}

.site-title {
	margin: 0 0 0.5rem 0;
	font-size: 2rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5em;
	font-family: 'Funnel Display', sans-serif;
}

.site-description {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 300;
}

.page-content {
	margin: 2rem 0;
}

.home .site-main {
	margin-bottom: 4rem;
}

.posts-cards {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.post-card {
	border-bottom: 1px solid rgba(0,0,0,0.2);
	border-radius: 4px;
}

.post-card:last-child {
	border-bottom: 0;
}

.post-card-link {
	display: block;
	padding: 2rem;
	text-align: center;
	text-decoration: none;
	color: inherit;
}

.post-card-title {
	margin: 0 0 1rem 0;
	font-size: 1.7rem;
	font-weight: 600;
	font-family: 'Montserrat', sans-serif;
}

.post-card-excerpt {
	line-height: 1.6;
	font-size: 1.2rem;
}


.single-post {
	margin-top: 2rem;
}

.post-author-header {
	text-align: center;
	margin-bottom: 3rem;
}

.author-avatar {
}

.author-avatar img {
	border-radius: 50%;
	width: 100px;
	height: 100px;
}

.author-name {
	font-size: 1.1rem;
	text-transform: uppercase;
	font-weight: 300;
	margin-bottom: 0.5rem;
	letter-spacing: 0.2em;
}


.post-title-section {
	text-align: center;
	margin-bottom: 3rem;
}


.post-title {
	font-size: 2.5rem;
	font-weight: 600;
	margin: 0;
	line-height: 1.2;
	font-family: 'Montserrat', sans-serif;
}

.entry-content {
	margin-bottom: 3rem;
	line-height: 1.8;
	font-size: 1.22rem;
}

.entry-content p {
	margin: 0;
}

.entry-content p + p,
.entry-content p + pre,
.entry-content pre + p {
	margin-top: 2rem;
}

.author-bio {
	text-align: center;
	padding: 2rem;
	/*border-top: 1px solid #eee;*/
	font-weight: 300;
}

.author-description {
	max-width: 600px;
	margin: 0 auto;
}

.back-to-home {
	position: absolute;
	top: 2rem;
	left: 2rem;
	font-size: 0.9rem;
	color: #666;
	z-index: 100;
	text-decoration: underline;
}

.site-footer {
	text-align: center;
	font-size: 0.9rem;
	padding-bottom: 3rem;
	font-weight: 300;
}

a {
	text-decoration: underline;
}