/*
Theme Name:   Idunn
Theme URI:    https://idunneditorial.com
Description:  Tema hijo de Twenty Twenty-Five para Idunn Editorial. Tokens en theme.json; aquí solo lo que theme.json no expresa (textura de papel, letreros, hojas).
Author:       Idunn Editorial
Template:     twentytwentyfive
Version:      0.2.1
Requires at least: 6.7
Requires PHP: 8.1
Text Domain:  idunn
Domain Path:  /languages
*/

/* ── Papel: grano muy suave sobre el crema, sin imágenes externas ─────────── */
body {
	background-image:
		radial-gradient(circle at 12% 8%, rgba(147, 169, 142, .10), transparent 38%),
		radial-gradient(circle at 88% 92%, rgba(217, 162, 59, .08), transparent 42%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .16 0 0 0 0 .12 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-attachment: fixed;
}

/* ── Títulos de sección con hoja ──────────────────────────────────────────── */
.is-style-con-hoja::after {
	content: "";
	display: inline-block;
	width: .85em; height: .85em;
	margin-left: .35em;
	vertical-align: -.05em;
	background: var(--wp--preset--color--musgo);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 3C9 3 4 9 4 16c0 1.7.4 3.2 1 4.5.4-3.4 2.3-7.4 7-10-3.8 3.1-5.3 6.6-5.7 10.3C7.6 21.6 9.2 22 11 22c7 0 11-6 9-19z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 3C9 3 4 9 4 16c0 1.7.4 3.2 1 4.5.4-3.4 2.3-7.4 7-10-3.8 3.1-5.3 6.6-5.7 10.3C7.6 21.6 9.2 22 11 22c7 0 11-6 9-19z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Tarjeta de papel (grupos, tarjetas de entradas) ─────────────────────── */
.is-style-papel {
	background: var(--wp--preset--color--accent-5);
	border-radius: var(--wp--custom--radio--tarjeta);
	box-shadow: var(--wp--custom--sombra--papel);
}

/* ── Botón letrero de madera ──────────────────────────────────────────────── */
.wp-block-button.is-style-letrero .wp-block-button__link {
	background: linear-gradient(180deg, #8a5c38, var(--wp--preset--color--accent-3));
	color: var(--wp--preset--color--base);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 3px 0 #5b3a21;
	transform: rotate(-1deg);
}
.wp-block-button.is-style-letrero .wp-block-button__link:hover { transform: rotate(0deg) translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 0 #5b3a21; }
.wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid currentColor; background: transparent; color: var(--wp--preset--color--accent-1); }

/* ── Imagen con borde de foto pegada ─────────────────────────────────────── */
.is-style-foto-pegada img {
	border-radius: var(--wp--custom--radio--tarjeta);
	border: 8px solid #fffdf8;
	box-shadow: var(--wp--custom--sombra--papel);
	transform: rotate(1.2deg);
}

/* ── Retratos redondos de personajes ─────────────────────────────────────── */
.idunn-retrato img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; background: #fffdf8; box-shadow: var(--wp--custom--sombra--papel); }

/* ── Tarjetas del listado de entradas ────────────────────────────────────── */
.idunn-tarjetas .wp-block-post { background: var(--wp--preset--color--accent-5); border-radius: var(--wp--custom--radio--tarjeta); box-shadow: var(--wp--custom--sombra--papel); overflow: hidden; }
.idunn-tarjetas .wp-block-post-featured-image img { aspect-ratio: 16/10; object-fit: cover; }
.idunn-tarjetas .wp-block-post > :not(.wp-block-post-featured-image) { padding-inline: 1.1rem; }
.idunn-tarjetas .wp-block-post > :last-child { padding-bottom: 1.1rem; }

/* ── Frase manuscrita ────────────────────────────────────────────────────── */
.idunn-letrero { font-family: var(--wp--preset--font-family--letrero); color: var(--wp--preset--color--accent-3); line-height: 1.25; }
