/*
Theme Name: Otografías Child
Description: Tema hijo de Hello Elementor para la cabecera y el blog de Otografías.
Author: Otografías
Template: hello-elementor
Version: 1.0.0
Text Domain: otografias-child
*/

:root {
	--oto-ink: #1c1c1c;
	--oto-muted: #77736a;
	--oto-accent: #aca692;
	--oto-line: #e8e5de;
	--oto-paper: #ffffff;
	--oto-soft: #f6f5f1;
}

body {
	color: var(--oto-ink);
	background: var(--oto-paper);
	font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
}

.oto-skip-link {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	padding: 10px 14px;
	color: #fff;
	background: var(--oto-ink);
	transform: translateY(-160%);
}

.oto-skip-link:focus {
	transform: translateY(0);
}

.oto-site-header {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 122px;
	padding: 20px 24px;
	background: var(--oto-paper);
}

.oto-site-header__logo,
.oto-site-header .custom-logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.oto-site-header__logo img,
.oto-site-header .custom-logo {
	display: block;
	width: min(300px, 72vw);
	height: auto;
}

.oto-blog-hero {
	padding: clamp(42px, 7vw, 90px) 24px clamp(28px, 5vw, 58px);
	text-align: center;
}

.oto-blog-hero__eyebrow {
	margin: 0 0 12px;
	color: var(--oto-muted);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.oto-blog-hero h1 {
	margin: 0;
	color: var(--oto-accent);
	font-size: clamp(2.45rem, 6vw, 4.6rem);
	font-weight: 300;
	letter-spacing: -0.035em;
	line-height: 1.04;
}

.oto-blog-shell,
.oto-single-shell {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
	padding-bottom: clamp(64px, 9vw, 120px);
}

.oto-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 4vw, 54px) clamp(22px, 3vw, 38px);
}

.oto-card {
	min-width: 0;
}

.oto-card__media {
	display: block;
	overflow: hidden;
	margin-bottom: 20px;
	background: var(--oto-soft);
	aspect-ratio: 4 / 3;
}

.oto-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 450ms ease;
}

.oto-card__media:hover img,
.oto-card__media:focus img {
	transform: scale(1.025);
}

.oto-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #efede7, #d9d5ca);
}

.oto-card__meta,
.oto-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin: 0 0 10px;
	color: var(--oto-muted);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.oto-card__meta a,
.oto-single__meta a {
	color: inherit;
	text-decoration: none;
}

.oto-card__title {
	margin: 0 0 12px;
	font-size: clamp(1.25rem, 2vw, 1.65rem);
	font-weight: 400;
	line-height: 1.25;
}

.oto-card__title a {
	color: var(--oto-ink);
	text-decoration: none;
}

.oto-card__title a:hover,
.oto-card__title a:focus,
.oto-card__meta a:hover,
.oto-card__meta a:focus,
.oto-single__meta a:hover,
.oto-single__meta a:focus {
	color: var(--oto-accent);
}

.oto-card__excerpt {
	margin: 0;
	color: #55524c;
	font-size: 0.92rem;
	line-height: 1.65;
}

.oto-pagination {
	margin-top: clamp(50px, 7vw, 84px);
}

.oto-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.oto-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--oto-line);
	color: var(--oto-ink);
	text-decoration: none;
}

.oto-pagination .page-numbers.current,
.oto-pagination a.page-numbers:hover,
.oto-pagination a.page-numbers:focus {
	color: #fff;
	background: var(--oto-ink);
	border-color: var(--oto-ink);
}

.oto-single-shell {
	width: min(880px, calc(100% - 40px));
}

.oto-single__header {
	padding: clamp(44px, 7vw, 88px) 0 clamp(28px, 4vw, 48px);
	text-align: center;
}

.oto-single__title {
	margin: 0;
	color: var(--oto-ink);
	font-size: clamp(2.35rem, 6vw, 4.15rem);
	font-weight: 300;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.oto-single__meta {
	justify-content: center;
	margin-bottom: 15px;
}

.oto-single__featured {
	margin: 0 0 clamp(34px, 5vw, 58px);
}

.oto-single__featured img {
	display: block;
	width: 100%;
	height: auto;
}

.oto-single__content {
	font-size: clamp(1rem, 1.45vw, 1.12rem);
	line-height: 1.82;
}

.oto-single__content > * {
	max-width: 760px;
	margin-right: auto;
	margin-left: auto;
}

.oto-single__content > figure,
.oto-single__content > .wp-block-image,
.oto-single__content > .wp-block-gallery,
.oto-single__content > .gallery,
.oto-single__content > table {
	max-width: 100%;
}

.oto-single__content img,
.oto-single__content video,
.oto-single__content iframe {
	max-width: 100%;
	height: auto;
}

.oto-single__content h2,
.oto-single__content h3,
.oto-single__content h4 {
	margin-top: 2.2em;
	font-weight: 400;
	line-height: 1.25;
}

.oto-single__content a {
	color: #6f6958;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.oto-single__footer {
	max-width: 760px;
	margin: 48px auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--oto-line);
}

.oto-single__tags {
	color: var(--oto-muted);
	font-size: 0.82rem;
	line-height: 1.7;
}

.oto-post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	margin-top: 46px;
}

.oto-post-nav a {
	display: block;
	padding: 22px;
	border: 1px solid var(--oto-line);
	color: var(--oto-ink);
	font-size: 0.88rem;
	line-height: 1.5;
	text-decoration: none;
}

.oto-post-nav a:hover,
.oto-post-nav a:focus {
	border-color: var(--oto-accent);
}

.oto-post-nav__next {
	text-align: right;
}

.oto-related {
	width: 100%;
	margin-top: clamp(58px, 8vw, 96px);
}

.oto-related__heading {
	margin: 0 0 30px;
	color: var(--oto-accent);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 300;
}

.oto-empty {
	padding: 64px 0;
	text-align: center;
}

@media (max-width: 900px) {
	.oto-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.oto-site-header {
		min-height: 96px;
		padding: 16px 20px;
	}

	.oto-post-grid,
	.oto-post-nav {
		grid-template-columns: 1fr;
	}

	.oto-post-nav__next {
		text-align: left;
	}

	.oto-card__excerpt {
		font-size: 0.96rem;
	}
}
