/*
Theme Name: Pamella Nazario
Author: Pamella Nazario
Description: Tema do portfólio de Pamella Nazario — Brand, Design & AI Strategy.
Version: 0.6.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: pamella-nazario
*/

:root {
	--bg: #ffffff;
	--fg: #0a0a0a;
	--muted: #1a1a1a;
	--gutter: clamp(16px, 6.5vw, 130px);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	height: 100%;
}

body {
	background: var(--bg);
	color: var(--muted);
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.hero {
	min-height: 100vh;
	min-height: 100svh;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	padding: 0 var(--gutter);
}

.hero__name {
	margin: 0;
	font-family: "Inter Tight", "Inter", sans-serif;
	font-weight: 500;
	font-size: clamp(56px, 9.5vw, 190px);
	line-height: 0.9;
	letter-spacing: -0.045em;
	color: var(--fg);
	text-align: center;
	white-space: nowrap;
}

.hero__label {
	margin: 0;
	font-size: clamp(14px, 1.15vw, 22px);
	font-weight: 400;
	letter-spacing: 0.005em;
	white-space: nowrap;
}

.hero__label--left {
	justify-self: start;
}

.hero__label--right {
	justify-self: end;
	text-align: right;
}

.hero__name,
.hero__label {
	opacity: 0;
	transform: translateY(12px);
	animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero__label--left {
	animation-delay: 0.25s;
}

.hero__label--right {
	animation-delay: 0.35s;
}

@keyframes rise {
	to {
		opacity: 1;
		transform: none;
	}
}

/* LinkedIn centralizado no pé da tela, como um rodapé (coming soon) */

.is-coming-soon .hero {
	position: relative;
}

.hero__link {
	position: absolute;
	bottom: clamp(20px, 3.5vh, 40px);
	left: 50%;
	transform: translateX(-50%);
	font-size: clamp(14px, 1.15vw, 22px);
	color: var(--muted);
	text-decoration: none;
	white-space: nowrap;
	opacity: 0;
	animation: rise-link 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s forwards;
}

.hero__link:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

@keyframes rise-link {
	from {
		opacity: 0;
		transform: translate(-50%, 12px);
	}
	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero__link {
		animation: none;
		opacity: 1;
	}
}

/* Traço que segue o mouse (assets/pencil.js) — o próprio cursor é a ponta do lápis */

.has-pencil body {
	-webkit-user-select: none;
	user-select: none;
}

.pencil-canvas {
	position: fixed;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

/* "Brand / Design / AI" girando + "Strategy" fixo (assets/roller.js) */

.tagline {
	display: inline-flex;
	align-items: baseline;
	gap: 0.3em;
}

.roller {
	display: inline-grid;
	justify-items: end;
	overflow: hidden;
	line-height: 1.25;
	/* compensa o line-height para alinhar com "Strategy" */
	margin: -0.125em 0;
	padding: 0.125em 0;
}

.roller__word {
	grid-area: 1 / 1;
	transform: translateY(110%);
	transition: transform 0.7s cubic-bezier(0.7, 0, 0.2, 1);
}

.roller__word.is-current {
	transform: none;
}

.roller__word.is-out {
	transform: translateY(-110%);
}

.roller__word.is-reset {
	transition: none;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.hero__name,
	.hero__label {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 1024px) {
	.hero {
		grid-template-columns: 1fr;
		justify-items: center;
		align-content: center;
		gap: 20px;
		text-align: center;
	}

	.hero__name {
		order: -1;
		white-space: normal;
	}

	.hero__label--left,
	.hero__label--right {
		justify-self: center;
		text-align: center;
	}
}
