@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

:root {
	--accent: #2a8a3e;
}

body {
	color: #333;
	font-family: "Open Sans", sans-serif;
	line-height: 1.5;
	max-width: 720px;
	margin: auto;
	padding: 1em;
}

#profile_pic {
  width: 180px;         /* Ajusta el tamaño según lo que necesites */
  height: 180px;
  overflow: hidden;      /* Recorta todo lo que sobresalga */
  border-radius: 50%;    /* Hace que el contenedor sea circular */
  float: right;         /* La alinea a la derecha */
  margin: 0 0 5px 5px;/* Espacio alrededor para que el texto no toque */
  border: 3px solid var(--accent); /* (opcional) borde decorativo */
  box-shadow: 0 0 10px rgba(0,0,0,0.2); /* (opcional) sombra elegante */
}

#profile_pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* Mantiene la proporción y recorta el exceso */
}


h1, h2 {
	color: #000;
	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Cambria, Georgia, serif;
	font-weight: normal;
}

h1 {
	font-size: 3rem;
	margin-top: 2.0rem;
	margin-bottom: 1.0rem;
	line-height: 1.0;
}

h2 {
	font-size: 2rem;
	margin-top: 3rem;
	margin-bottom: 0.5rem;
}

h3 {
	font-weight: normal;
}

th {
	padding: 0 1rem;
	text-align: right;
	font-weight: 600;
}

li {
	margin: 1rem 0;
}

a {
	color: var(--accent);
	text-decoration: none;
}

p a:active, p a:focus, p a:hover,
td a:active, td a:focus, td a:hover,
li a:active, li a:focus, li a:hover,
.site-nav a:active, .site-nav a:focus, .site-nav a:hover,
footer a:active, footer a:focus, footer a:hover,
.section-intro a:active, .section-intro a:focus, .section-intro a:hover {
	border-bottom: solid 2px;
}

a:visited {
	color: var(--accent);
}

u {
	text-decoration: none;
	border-bottom: 1px solid black;
}

b {
	font-weight: 600;
}

footer {
	margin-top: 3rem;
	color: #888;
	font-size: 0.9rem;
	text-align: center;
}

.cta-block {
	margin-top: 1.25rem;
	margin-bottom: 1rem;
}

.btn-cta {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	border: 2px solid var(--accent);
	border-radius: 4px;
	color: var(--accent);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.btn-cta:hover,
.btn-cta:focus {
	background-color: var(--accent);
	color: #fff;
}

.btn-cta:visited {
	color: var(--accent);
}

.btn-cta:visited:hover {
	color: #fff;
}

.cta-subtitle {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: #888;
	font-weight: 400;
}

@media (min-width: 768px) {
	.btn-cta {
		font-size: 1rem;
		padding: 0.7rem 1.6rem;
	}
}

/* Writing section */
.section-intro {
	color: #666;
	font-size: 0.95rem;
	margin-bottom: 1.5rem;
}

.post-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 1rem;
}

.post-card {
	display: block;
	padding: 1.25rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	color: #333;
	transition: border-color 0.2s;
}

.post-card:hover,
.post-card:focus {
	border-color: var(--accent);
}

.post-card .post-date {
	display: block;
	font-size: 0.8rem;
	color: #888;
	margin-bottom: 0.4rem;
}

.post-card .post-title {
	display: block;
	font-family: Palatino, "Palatino Linotype", Georgia, serif;
	font-weight: 600;
	font-size: 1.05rem;
	color: #1a1a1a;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

.post-card .post-desc {
	display: block;
	font-size: 0.9rem;
	color: #555;
	line-height: 1.4;
}

.site-header {
	overflow: hidden;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	font-size: 1.05rem;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}

.site-nav a {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

.nav-icon {
	vertical-align: -0.15em;
	margin-right: 0.3rem;
	flex-shrink: 0;
}

@media (max-width: 600px) {
	.site-header {
		display: flex;
		align-items: center;
		gap: 1rem;
	}
	#profile_pic {
		float: none;
		width: 100px;
		height: 100px;
		margin: 0;
		flex-shrink: 0;
	}
	h1 {
		font-size: 1.6rem;
		margin-top: 0;
		margin-bottom: 0;
	}
}

@media (max-width: 520px) {
	.post-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
	.nav-label { display: none; }
	.nav-icon { margin-right: 0; width: 20px; height: 20px; }
	.site-nav { gap: 0.5rem 1.25rem; }
}

