/*
Theme Name: Puntos de Experiencia Journal
Theme URI: https://puntosdeexperiencia.com/
Description: Branded editorial child theme for Puntos de Experiencia.
Author: Puntos de Experiencia
Version: 1.0.1
Template: twentytwentyfive
Text Domain: pde-journal
License: GPL-2.0-or-later
*/

:root {
	--pde-yellow: #ffd800;
	--pde-yellow-soft: #fff4a8;
	--pde-ink: #151515;
	--pde-ink-soft: #343434;
	--pde-paper: #fffdf5;
	--pde-muted: #706e68;
	--pde-line: #ddd8c9;
	--pde-shadow: 0 18px 50px rgba(21, 21, 21, 0.09);
}

html {
	scroll-behavior: smooth;
}

body {
	text-rendering: optimizeLegibility;
}

.wp-site-blocks {
	padding-block: 0;
}

a {
	text-underline-offset: 0.18em;
}

:where(a, button, input, textarea, select):focus-visible {
	outline: 3px solid var(--pde-yellow);
	outline-offset: 4px;
}

.pde-site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--pde-line);
	background: rgba(255, 253, 245, 0.96);
	box-shadow: 0 5px 22px rgba(21, 21, 21, 0.04);
}

.pde-header-inner {
	min-height: 92px;
}

.pde-brand-lockup {
	min-width: max-content;
}

.pde-brand-lockup .pde-brand-logo img {
	border-radius: 0;
}

.pde-brand-logo {
	margin: 0;
}

.pde-brand-logo a,
.pde-brand-logo img {
	display: block;
}

.pde-brand-lockup .wp-block-site-title a {
	text-decoration: none;
}

.pde-site-header .wp-block-navigation-item__content {
	text-decoration: none;
	text-decoration-thickness: 2px;
}

.pde-site-header .wp-block-navigation-item__content:hover,
.pde-site-header .current-menu-item > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-decoration-color: var(--pde-yellow);
}

.pde-site-header .wp-block-navigation__responsive-container-open,
.pde-site-header .wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
}

.pde-main {
	min-width: 0;
}

.pde-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 85% 20%, rgba(255, 216, 0, 0.22) 0 6rem, transparent 6.1rem),
		linear-gradient(135deg, #111 0%, #1e1e1e 58%, #292600 100%);
}

.pde-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.18;
	background-image:
		linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
	background-size: 42px 42px;
	mask-image: linear-gradient(90deg, transparent, #000 55%);
}

.pde-hero > * {
	position: relative;
}

.pde-kicker,
.pde-card-kicker {
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.pde-kicker {
	color: var(--pde-yellow);
}

.pde-hero h1 {
	max-width: 14ch;
	text-wrap: balance;
}

.pde-hero-copy {
	max-width: 42rem;
}

.pde-hero-card {
	transform: rotate(1.5deg);
	border: 2px solid var(--pde-ink);
	background: var(--pde-yellow);
	box-shadow: 12px 12px 0 #fff;
}

.pde-hero-card h2 {
	text-wrap: balance;
}

.pde-section-title {
	text-wrap: balance;
}

.pde-topic-card {
	height: 100%;
	border: 1px solid var(--pde-line);
	border-top: 7px solid var(--pde-yellow);
	background: #fff;
	box-shadow: var(--pde-shadow);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.pde-topic-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 24px 55px rgba(21, 21, 21, 0.14);
}

.pde-topic-number {
	color: #8b7700;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
}

.pde-card-grid.wp-block-post-template {
	align-items: stretch;
}

.pde-card-grid > li {
	display: flex;
}

.pde-post-card {
	display: flex;
	flex: 1;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--pde-line);
	background: #fff;
	box-shadow: 0 12px 32px rgba(21, 21, 21, 0.07);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.pde-post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--pde-shadow);
}

.pde-post-card .wp-block-post-featured-image {
	margin: 0;
	background: var(--pde-yellow-soft);
}

.pde-post-card .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.pde-post-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.pde-post-card .wp-block-post-title {
	text-wrap: balance;
}

.pde-post-card .wp-block-post-excerpt {
	flex: 1;
}

.pde-post-card .wp-block-post-terms a,
.pde-article-header .wp-block-post-terms a {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.pde-article-header {
	padding-top: clamp(3rem, 8vw, 7rem);
}

.pde-article-header h1 {
	max-width: 18ch;
	text-wrap: balance;
}

.pde-standfirst {
	max-width: 48rem;
	color: var(--pde-ink-soft);
}

.pde-article-meta {
	color: var(--pde-muted);
}

.pde-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.pde-article-content {
	min-width: 0;
}

.pde-article-content > :where(p, ul, ol) {
	line-height: 1.72;
}

.pde-article-content > h2 {
	margin-top: 2.5em;
	text-wrap: balance;
}

.pde-article-content > h3 {
	margin-top: 2em;
}

.pde-article-content blockquote {
	border-left: 6px solid var(--pde-yellow);
	background: var(--pde-paper);
	padding: 1.25rem 1.5rem;
}

.pde-article-content :where(.wp-block-table, table) {
	max-width: 100%;
}

.pde-article-content .wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* REST-authored articles can contain a bare table rather than a Table block. */
.pde-article-content > table {
	display: block;
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-collapse: collapse;
}

.pde-article-content table :where(th, td) {
	min-width: 9rem;
	padding: 0.8rem;
	border: 1px solid var(--pde-line);
	vertical-align: top;
}

.pde-article-content table th {
	background: var(--pde-ink);
	color: #fff;
	text-align: left;
}

.pde-author-card {
	border: 1px solid var(--pde-line);
	border-left: 7px solid var(--pde-yellow);
	background: var(--pde-paper);
}

.pde-author-card .wp-block-avatar img {
	border-radius: 50%;
}

.pde-post-navigation {
	border-top: 1px solid var(--pde-line);
	border-bottom: 1px solid var(--pde-line);
}

.pde-contact-form {
	max-width: 46rem;
}

.pde-contact-form label {
	display: block;
	font-weight: 700;
}

.pde-contact-form :where(input:not([type="hidden"]), textarea) {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin-top: 0.45rem;
	padding: 0.8rem 0.9rem;
	border: 1px solid var(--pde-line);
	border-radius: 0;
	background: #fff;
	color: var(--pde-ink);
	font: inherit;
}

.pde-contact-form textarea {
	min-height: 12rem;
	resize: vertical;
}

.pde-contact-form button[type="submit"] {
	min-height: 48px;
	padding: 0.75rem 1.25rem;
	border: 2px solid var(--pde-ink);
	border-radius: 0;
	background: var(--pde-yellow);
	color: var(--pde-ink);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.pde-contact-form button[type="submit"]:hover {
	background: var(--pde-ink);
	color: #fff;
}

.pde-archive-hero {
	background: var(--pde-ink);
	color: #fff;
}

.pde-site-footer {
	margin-top: clamp(4rem, 8vw, 8rem);
	background: var(--pde-ink);
	color: #fff;
}

.pde-site-footer a {
	color: #fff;
}

.pde-site-footer .wp-block-navigation-item__content {
	text-decoration-color: var(--pde-yellow);
}

@media (max-width: 781px) {
	.pde-header-inner {
		min-height: 78px;
	}

	.pde-brand-lockup .wp-block-site-title {
		font-size: 1rem !important;
	}

	.pde-hero {
		padding-block: 3.75rem !important;
	}

	.pde-hero-card {
		transform: none;
		box-shadow: 7px 7px 0 #fff;
	}

	.pde-topic-card {
		padding: 1.5rem !important;
	}

	.pde-article-header {
		padding-top: 3rem;
	}

	.pde-article-content table :where(th, td) {
		min-width: 10rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.pde-topic-card,
	.pde-post-card {
		transition: none;
	}
}
