/* =========================================================
   Portada · P2 Cartel Shōwa
   - Presentación sin caja: "Hey!" gigante, el texto completo, etiquetas
     de lo que hago y retrato; ようこそ en vertical a la derecha (.hv-kana, layout-c.css).
   - Cinta "Now ▸" con lo último (trabajos en turquesa, diario en rojo).
   - Trabajos en mosaico editorial y el diario en índice (layout-c.css).
   ========================================================= */

.hv-front {
	--hv-ink: var(--wp--preset--color--base, #1B1B1B);
	--hv-accent: var(--wp--preset--color--accent-3, #D12735); /* acento del tema */
	--hv-red: var(--wp--preset--color--diary, #D12735);
	--hv-teal: var(--wp--preset--color--works, #2ED8CA);

	padding-top: 0;
	padding-bottom: 0; /* el hueco hasta el footer es el mismo que el del header */
}
.hv-front > * {
	margin-block: 0 !important;
}

/* ---------- Presentación (sin caja, sobre el fondo de la web) ---------- */

.hv-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
	gap: clamp(32px, 4vw, 56px);
	align-items: end;
}
.hv-hero > * {
	margin: 0 !important;
}
.hv-hero__text > * {
	margin: 0;
}

.hv-hero__hey {
	margin: -0.06em 0 0.22em !important; /* aire bajo el "Hey!" para que no pise el texto */
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--dela-gothic-one);
	font-size: clamp(96px, 14vw, 190px) !important;
	font-weight: 400;
	line-height: 0.9 !important;
	letter-spacing: -0.03em;
}
.hv-hero__bang {
	display: inline-block;
	color: var(--hv-red);
	transform-origin: 50% 90%;
	animation: hv-bang 2.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}
@keyframes hv-bang {
	0% { transform: rotate(0); }
	15% { transform: rotate(14deg); }
	30% { transform: rotate(-8deg); }
	45% { transform: rotate(4deg); }
	60%, 100% { transform: rotate(0); }
}

.hv-hero__sub {
	max-width: 34ch; /* el texto llega hasta la foto */
	margin-bottom: 28px !important;
	text-wrap: pretty;
	color: var(--wp--preset--color--contrast);
	font-size: clamp(22px, 2.3vw, 30px);
	font-weight: 300;
	line-height: 1.3;
}
.hv-hero__sub strong {
	color: var(--hv-accent);
	font-weight: 900;
}

.hv-hero__body {
	max-width: none; /* ocupa toda la columna, hasta la foto */
	margin-bottom: 18px !important;
	color: var(--wp--preset--color--accent-4, #CBCBCB);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
}
.hv-hero__body a {
	color: var(--wp--preset--color--contrast) !important;
	text-decoration: underline !important;
	text-decoration-color: var(--hv-accent) !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 3px;
	background: none !important;
	transition: text-decoration-color 0.25s, text-decoration-thickness 0.25s;
}
.hv-hero__body a:is(:hover, :focus-visible) {
	text-decoration-color: var(--hv-red) !important;
	text-decoration-thickness: 3px !important;
}

.hv-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 30px !important;
}
.hv-hero__chips a {
	padding: 8px 12px;
	border: 2px solid var(--hv-accent);
	border-radius: 99px;
	color: var(--hv-accent) !important;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	text-decoration: none !important;
	transition: background-color 0.25s, color 0.25s;
}
.hv-hero__chips a:is(:hover, :focus-visible) {
	background: var(--hv-accent) !important;
	color: #fff !important;
}

/* Retrato (ようこそ va encima, ver .hv-kana en layout-c.css) */
.hv-hero__r {
	position: relative;
}
.hv-hero__photo {
	margin: 0 !important;
}
.hv-hero__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 2px;
}

/* ---------- Cinta "Now" ---------- */

.hv-ticker {
	display: flex;
	align-items: center;
	gap: 40px;
	margin: 28px 0 56px !important;
	padding: 14px 0;
	overflow-x: auto;
	border-block: 1px solid #2c2c2c;
	scrollbar-width: none;
	white-space: nowrap;
}
.hv-ticker::-webkit-scrollbar {
	display: none;
}
.hv-ticker > * {
	flex: none;
	margin: 0 !important;
}
.hv-ticker__now,
.hv-ticker .wp-block-post-title {
	font-family: var(--wp--preset--font-family--dela-gothic-one);
	font-size: 22px !important;
	font-weight: 400 !important;
	line-height: 1;
	letter-spacing: 0;
}
.hv-ticker__now {
	color: #3a3a3a;
	text-transform: uppercase;
}
.hv-ticker .wp-block-post-template {
	display: flex;
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hv-ticker .wp-block-post-template > li {
	display: flex;
	align-items: center;
	gap: 40px;
	margin: 0 !important;
}
.hv-ticker .wp-block-post-template > li::before {
	content: "✦";
	color: #3a3a3a;
	font-size: 18px;
}
.hv-ticker .wp-block-post-title {
	margin: 0;
}
.hv-ticker .wp-block-post-title a {
	text-decoration: none !important;
	transition: opacity 0.25s;
}
.hv-ticker__q--works .wp-block-post-title a {
	color: var(--hv-teal) !important;
}
.hv-ticker__q--diary .wp-block-post-title a {
	color: var(--hv-red) !important;
}
.hv-ticker .wp-block-post-title a:is(:hover, :focus-visible) {
	opacity: 0.7;
}

/* ---------- Cabeceras de sección ---------- */

.hv-front-works {
	--hv-section: var(--hv-teal);
	--hv-section-ink: var(--hv-ink);
	margin-bottom: 64px !important;
}
.hv-front-diary {
	--hv-section: var(--hv-red);
	--hv-section-ink: #fff;
}

.hv-sech {
	align-items: baseline !important;
	margin-bottom: 16px;
}
.hv-sech > * {
	margin: 0 !important;
}
.hv-sech__t {
	font-size: 34px !important;
	line-height: 1.1;
}
.hv-sech__more a {
	display: inline-block;
	padding-bottom: 5px;
	border-bottom: 2px solid var(--hv-section);
	color: var(--wp--preset--color--contrast) !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	background: none !important;
	white-space: nowrap;
}

/* ---------- Trabajos: mosaico editorial ----------
   Sin cajas ni números: uno grande a la izquierda, dos apilados a su lado
   y tres en fila debajo. Título en Zen 900 con el año en Dela al lado y
   el tipo de trabajo en turquesa. Al pasar el ratón la foto se acerca y
   una raya turquesa crece bajo el título. */

.hv-cards.wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 40px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hv-cards > li {
	display: flex;
	margin: 0 !important;
	grid-column: span 4;
}
.hv-cards > li:nth-child(1) {
	grid-column: 1 / 8;
	grid-row: 1 / 3;
}
.hv-cards > li:nth-child(2),
.hv-cards > li:nth-child(3) {
	grid-column: 8 / 13;
}

.hv-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0 !important;
}
.hv-card > * {
	margin: 0 !important;
}

/* Foto */
.hv-card__ph {
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border-radius: 2px;
	background: #222;
}
.hv-cards > li:nth-child(1) .hv-card__ph {
	flex: 1;
	aspect-ratio: auto;
	min-height: 320px;
}
.hv-card__ph a {
	display: block;
	height: 100%;
}
.hv-card__ph img {
	display: block;
	width: 100%;
	height: 100% !important;
	aspect-ratio: auto !important;
	object-fit: cover;
	border-radius: 0 !important;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.hv-card:hover .hv-card__ph img,
.hv-card:focus-within .hv-card__ph img {
	transform: scale(1.04);
}

/* Título + año + tipo */
.hv-card__info {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"t y"
		"k k";
	gap: 4px 16px;
	align-items: baseline;
	padding-top: 14px;
}
.hv-card__info > * {
	margin: 0 !important;
}

.hv-card__title {
	grid-area: t;
	font-family: var(--wp--preset--font-family--zen-kaku-gothic-new);
	font-size: 20px !important;
	font-weight: 900 !important;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.hv-cards > li:nth-child(1) .hv-card__title {
	font-size: clamp(22px, 2.4vw, 30px) !important;
}
/* Raya turquesa que crece bajo el título (fondo del enlace) */
.hv-card__title a {
	padding-bottom: 3px;
	color: #f3f3f3 !important;
	text-decoration: none !important;
	background: linear-gradient(var(--hv-teal), var(--hv-teal)) 0 100% / 0 2px no-repeat !important;
	transition: background-size 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hv-card:hover .hv-card__title a,
.hv-card:focus-within .hv-card__title a {
	background-size: 100% 2px !important;
}
/* Toda la tarjeta es clicable: el enlace del título la cubre */
.hv-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.hv-card__year {
	grid-area: y;
	color: #5c5c5c;
	font-family: var(--wp--preset--font-family--dela-gothic-one) !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1;
	letter-spacing: 0;
}
.hv-cards > li:nth-child(1) .hv-card__year {
	font-size: 24px !important;
}

.hv-card__type {
	grid-area: k;
	min-width: 0;
	overflow-wrap: anywhere;
	position: relative;
	z-index: 2;
	color: var(--hv-teal);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.hv-card__type a {
	white-space: normal !important;
	color: inherit !important;
	text-decoration: none !important;
	background: none !important;
}
.hv-card__type a:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--contrast) !important;
}
.hv-card__type .wp-block-post-terms__separator {
	color: #5c5c5c;
}

/* El diario de la portada usa filas algo más compactas */
.hv-front-diary .hv-index .hv-row {
	grid-template-columns: 90px minmax(0, 1fr) 150px;
	gap: 20px;
	padding: 13px 0;
}
.hv-front-diary .hv-index .hv-row__date {
	font-size: 22px !important;
}
.hv-front-diary .hv-index .hv-row__title {
	font-size: 22px !important; /* igual que la fecha */
	margin-bottom: 6px !important;
}

/* ---------- Tableta ---------- */

@media (max-width: 1000px) {
	.hv-cards.wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 20px;
	}
	.hv-cards > li,
	.hv-cards > li:nth-child(2),
	.hv-cards > li:nth-child(3) {
		grid-column: auto;
	}
	.hv-cards > li:nth-child(1) {
		grid-column: 1 / -1;
		grid-row: auto;
	}
	.hv-cards > li:nth-child(1) .hv-card__ph {
		flex: none;
		aspect-ratio: 16 / 9;
		min-height: 0;
	}
}

/* ---------- Móvil ---------- */

@media (max-width: 781px) {
	.hv-hero {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.hv-hero__r {
		order: -1;
		width: 100%;
	}
	.hv-hero__photo img {
		aspect-ratio: 4 / 5;
	}
	.hv-hero__hey {
		font-size: 96px !important;
	}
	.hv-hero__sub {
		font-size: 22px;
	}

	.hv-ticker {
		gap: 24px;
		margin: 20px 0 40px !important;
	}
	.hv-ticker .wp-block-post-template,
	.hv-ticker .wp-block-post-template > li {
		gap: 24px;
	}
	.hv-ticker__now,
	.hv-ticker .wp-block-post-title {
		font-size: 17px !important;
	}

	.hv-sech__t {
		font-size: 26px !important;
	}
	.hv-cards.wp-block-post-template {
		gap: 26px 14px;
	}
	.hv-cards > li:nth-child(n + 6) {
		display: none;
	}
	.hv-card__info {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas:
			"t t"
			"y k";
		gap: 4px 8px;
		padding-top: 10px;
	}
	.hv-card__title {
		font-size: 15px !important;
	}
	.hv-card__year {
		font-size: 13px !important;
	}
	.hv-cards > li:nth-child(1) .hv-card__title {
		font-size: 22px !important;
	}
	.hv-cards > li:nth-child(1) .hv-card__year {
		font-size: 18px !important;
	}

	/* El diario vuelve al formato de índice móvil de layout-c.css */
	.hv-front-diary .hv-index .hv-row {
		grid-template-columns: minmax(0, 1fr) 104px;
		gap: 4px 16px;
		padding: 14px 0;
	}
	.hv-front-diary .hv-index .hv-row__date {
		font-size: 18px !important;
	}
	.hv-front-diary .hv-index .hv-row__title {
		font-size: 17px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hv-card__ph img {
		transition: none;
	}
	.hv-hero__bang {
		animation: none;
	}
}
