/*
Theme Name: Mytheme — Portfolio Pedro
Author: Portfolio Pedro
Description: Tema editorial para portfólio de Pedro.
Version: 1.0.26
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: mytheme
*/

/* Helvetica Neue is self-hosted to keep its rendering consistent across devices. */
@font-face {
	font-family: "Helvetica Neue";
	src: url("assets/fonts/HelveticaNeueRoman.woff2") format("woff2");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Helvetica Neue";
	src: url("assets/fonts/HelveticaNeueLight.otf") format("opentype");
	font-style: normal;
	font-weight: 300;
	font-display: swap;
}

@font-face {
	font-family: "Helvetica Neue";
	src: url("assets/fonts/HelveticaNeueItalic.woff2") format("woff2");
	font-style: italic;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Helvetica Neue";
	src: url("assets/fonts/HelveticaNeueBold.woff2") format("woff2");
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}

@font-face {
	font-family: "Helvetica Neue";
	src: url("assets/fonts/HelveticaNeueMedium.otf") format("opentype");
	font-style: normal;
	font-weight: 500;
	font-display: swap;
}

:root {
	--canvas: #fff;
	--text: #2e2e2e;
	--muted: #c3c1c1;
	--link: #222;
	--overlay: rgba(15, 15, 15, 0.7);
	--on-media: #fff;
	--rule: rgba(34, 34, 34, 0.22);
	--hero-bg: #111312;
	--hero-text: #f5f4ef;
	--hero-overlay: rgba(6, 8, 7, 0.25);
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 20px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;
	--space-9: 96px;
}

* {
	box-sizing: border-box;
}
html {
	background: var(--canvas);
	/* The reference scales the rem base from the viewport height. */
	font-size: 1.44vh;
}
body {
	margin: 0;
	color: var(--text);
	background: var(--canvas);
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}
img,
video {
	max-width: 100%;
}
a {
	color: inherit;
}
a:focus-visible,
button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 96px;
	padding: 0 35px;
	background: #fff;
	position: relative;
	z-index: 5;
	font-size: 20px;
	line-height: 26px;
}
.site-header__nav {
	display: flex;
	gap: 24px;
	align-items: center;
	min-height: 44px;
}
.site-header__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--muted);
	text-decoration: none;
}
.site-header__link:hover,
.site-header__link:focus-visible,
.site-header__link[aria-current="page"] {
	color: var(--link);
}
.site-header__link[aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
.site-header__brand {
	color: var(--link);
	text-decoration: none;
}
.site-header__home-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--link);
	text-decoration: none;
}
.site-header__home-link:hover,
.site-header__home-link:focus-visible {
	color: var(--text);
}

.home-hero {
	position: relative;
	min-height: 100svh;
	overflow: hidden;
	color: var(--hero-text);
	background: var(--hero-bg);
}
.home-hero__media,
.home-hero__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.home-hero__media {
	object-fit: cover;
	object-position: var(--home-focus-desktop, center center);
}
.home-hero__poster {
	display: block;
	position: absolute;
	z-index: 1;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	transition: none;
}
.home-hero__poster-image {
	display: block;
	width: 100%;
	height: 100%;
	opacity: 0.72;
	object-fit: cover;
	object-position: var(--home-focus-desktop, center center);
}
.home-hero__poster.is-hidden {
	opacity: 0;
}
.home-hero > video.home-hero__media,
.home-hero > img.home-hero__media {
	opacity: 0.72;
}
.home-hero > video.home-hero__media {
	pointer-events: none;
}
.home-hero > video.home-hero__media::-webkit-media-controls,
.home-hero > video.home-hero__media::-webkit-media-controls-start-playback-button {
	display: none !important;
	-webkit-appearance: none;
}
.home-hero__overlay {
	z-index: 2;
	background: var(--hero-overlay);
}
.home-hero__youtube {
	overflow: hidden;
	background: var(--hero-bg);
}
.home-hero__youtube-poster {
	position: absolute;
	z-index: 2;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	object-fit: cover;
	object-position: var(--home-focus-desktop, center center);
	transition: opacity 500ms ease-in-out;
}
.home-hero__youtube-frame {
	position: absolute;
	z-index: 0;
	inset: auto;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;
	min-width: 177.78vh;
	min-height: 100vh;
	border: 0;
	opacity: 0.63;
	pointer-events: none;
	user-select: none;
	transform: translate(-50%, -50%);
}
.home-hero__youtube.is-playing .home-hero__youtube-poster {
	opacity: 0;
}
.home-hero__noise {
	display: block;
	position: absolute;
	z-index: 10;
	inset: 0;
	pointer-events: none;
	opacity: 1;
	background-repeat: repeat;
	background-size: 512px 512px;
	background-position: center;
	image-rendering: pixelated;
	/* filter: grayscale(1) contrast(1.12); */
	/* mix-blend-mode: overlay; */
}
.home-hero__content {
	position: relative;
	z-index: 11;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	width: 90%;
	min-height: 100svh;
	margin: 0 auto;
	padding: 2.7rem;
	align-content: center;
	align-items: start;
}
.home-hero__identity,
.home-hero__intro {
	max-width: 62ch;
	/* Optical compensation for Helvetica Neue being slightly larger than Karla. */
	font-size: calc(1.6rem - 0.5px);
	line-height: 1.5;
	letter-spacing: 0;
	font-weight: 500;
}
.home-hero__intro {
	padding-left: 10px;
	font-weight: 400;
}
.home-hero__identity {
	align-self: center;
	font-weight: 400;
}
.home-hero__name {
	margin: 0;
	font-size: inherit;
	line-height: 1.35;
	font-weight: 700;
}
.home-hero__role,
.home-hero__intro {
	margin: 0;
	font-weight: 300;
}
.home-hero__intro > :first-child {
	margin-top: 0;
}
.home-hero__intro > :last-child {
	margin-bottom: 0;
}
.home-hero__intro p {
	margin: 0 0 1em;
}
.home-hero__intro a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(245, 244, 239, 0.72);
	text-underline-offset: 4px;
}
.home-hero__intro ul,
.home-hero__intro ol {
	margin: 0 0 1em;
	padding-left: 1.2em;
}
.home-hero__intro h2,
.home-hero__intro h3,
.home-hero__intro h4 {
	margin: 0 0 0.5em;
	font-size: 1em;
	line-height: 1.35;
}
.mytheme-icon {
	display: inline-block;
	flex: 0 0 auto;
	width: 1em;
	height: 1em;
	vertical-align: -0.14em;
}
.home-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-top: 28px;
	color: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(245, 244, 239, 0.72);
	text-underline-offset: 5px;
}
.home-hero__cta .mytheme-icon {
	transition: transform 180ms ease-out;
}
.home-hero__cta:hover .mytheme-icon,
.home-hero__cta:focus-visible .mytheme-icon {
	transform: translate(3px, -3px);
}
.home-hero--enter .home-hero__identity,
.home-hero--enter .home-hero__intro {
	animation: hero-rise 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.home-hero--enter .home-hero__intro {
	animation-delay: 60ms;
}
@keyframes hero-rise {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.projects-page {
	min-height: 100vh;
	background: #fff;
}
.projects-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	align-items: start;
}
.project-card {
	position: relative;
	min-width: 0;
	aspect-ratio: 1;
	overflow: hidden;
	background: #eee;
}
.project-card__link {
	display: block;
	position: relative;
	height: 100%;
	color: #fff;
	text-decoration: none;
}
.project-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.project-card__overlay {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
	color: #fff;
	text-align: center;
	background: var(--overlay);
	opacity: 0;
	transition: opacity 200ms ease-out;
}
.project-card__title {
	display: block;
	font-size: 20px;
	line-height: 28px;
}
.project-card__action {
	display: block;
	margin-top: 5px;
	font-size: 15px;
	line-height: 21px;
	letter-spacing: 0.05em;
}
.project-card__link:hover .project-card__overlay,
.project-card__link:focus-visible .project-card__overlay {
	opacity: 1;
}
.project-card__fallback {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: #555;
	background: #eee;
}
.projects-empty {
	padding: 96px 20px;
	text-align: center;
}

.about-page {
	min-height: 100vh;
	background: #fff;
}
.about-layout {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(32px, 5vw, 96px);
	align-items: start;
	width: min(1200px, calc(100% - 70px));
	margin: 0 auto;
	padding: 64px 0 96px;
}
.about-page__photo {
	min-width: 0;
}
.about-page__photo img {
	display: block;
	width: 100%;
	height: auto;
}
.about-page__content {
	max-width: 60ch;
	padding-top: 2px;
	font-size: 16px;
	line-height: 24px;
}
.about-page__content > :first-child {
	margin-top: 0;
}
.about-page__content > :last-child {
	margin-bottom: 0;
}
.about-page__content a {
	text-underline-offset: 3px;
}
.about-page__content h1,
.about-page__content h2,
.about-page__content h3,
.about-page__content h4 {
	font-size: 20px;
	font-weight: 400;
	line-height: 26px;
}

.project-page {
	background: #fff;
}
.project-layout {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	align-items: start;
	min-height: 100vh;
}
.project-sidebar {
	position: sticky;
	top: 24px;
	z-index: 0;
	align-self: start;
	height: fit-content;
	padding: 32px 28px 40px 32px;
	color: var(--text);
	font-size: 12px;
	line-height: 17.6px;
}
.project-sidebar__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	color: var(--muted);
	font-size: 14px;
	line-height: 21px;
	text-decoration: none;
}
.project-sidebar__back:hover,
.project-sidebar__back:focus-visible {
	color: var(--link);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.project-sidebar__quick-nav {
	display: flex;
	gap: 0;
	margin-bottom: 32px;
	margin-left: -12px;
}
.project-sidebar__quick-nav a {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	color: var(--link);
	text-decoration: none;
}
.project-sidebar__quick-nav a:hover,
.project-sidebar__quick-nav a:focus-visible {
	color: var(--muted);
}
.project-sidebar__quick-nav .mytheme-icon {
	width: 20px;
	height: 20px;
}
.project-sidebar__title {
	margin: 0 0 28px;
	font-size: 20px;
	line-height: 26px;
	font-weight: 400;
}
.project-sidebar__details p {
	margin: 0 0 24px;
}
.project-sidebar__details strong {
	font-weight: 400;
}
.project-sidebar__summary {
	max-width: 25ch;
}
.project-sidebar__credits {
	white-space: normal;
}
.project-main {
	position: relative;
	z-index: 1;
	min-width: 0;
	padding: 38px 64px 0 20px;
}
.project-content {
	width: min(1300px, 100%);
	margin: 0 auto;
}
.project-content > * {
	margin-top: 48px;
	margin-bottom: 48px;
}
.project-content > :first-child {
	margin-top: 0;
}
.project-content > .alignfull {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
}
.portfolio-lightbox-open {
	overflow: hidden;
}
.portfolio-lightbox[hidden] {
	display: none;
}
.portfolio-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 72px clamp(56px, 8vw, 144px) 56px;
	color: #fff;
}
.portfolio-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 15, 15, 0.96);
}
.portfolio-lightbox__figure {
	position: relative;
	z-index: 1;
	display: flex;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.portfolio-lightbox__image {
	display: block;
	width: auto;
	max-width: min(100%, 1600px);
	height: auto;
	max-height: calc(100dvh - 128px);
	object-fit: contain;
}
.portfolio-lightbox__caption {
	max-width: 70ch;
	margin-top: 12px;
	color: rgba(255, 255, 255, 0.76);
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
}
.portfolio-lightbox__button {
	position: fixed;
	z-index: 2;
	display: grid;
	width: 48px;
	height: 48px;
	padding: 0;
	place-items: center;
	border: 0;
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	cursor: pointer;
}
.portfolio-lightbox__button:hover,
.portfolio-lightbox__button:focus-visible {
	background: rgba(255, 255, 255, 0.24);
}
.portfolio-lightbox__button .mytheme-icon {
	width: 22px;
	height: 22px;
}
.portfolio-lightbox__close {
	top: 24px;
	right: 24px;
}
.portfolio-lightbox__previous {
	top: 50%;
	left: 24px;
	transform: translateY(-50%);
}
.portfolio-lightbox__next {
	top: 50%;
	right: 24px;
	transform: translateY(-50%);
}
.project-navigation {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	width: min(1300px, 100%);
	margin: 96px auto;
	padding-top: 24px;
	border-top: 1px solid var(--rule);
	font-size: 15px;
	line-height: 21px;
}
.project-navigation a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}
.project-navigation a:hover,
.project-navigation a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.project-navigation__next {
	text-align: right;
}
.project-index {
	background: #fff;
}

@media (max-width: 767px) {
	html {
		font-size: 1.44vh;
	}
	.site-header {
		min-height: 120px;
		padding: 20px;
		align-items: flex-end;
		font-size: 20px;
	}
	.site-header__nav {
		gap: 16px;
	}
	.home-hero__media {
		object-position: var(--home-focus-mobile, center center);
	}
	.home-hero__poster-image {
		object-position: var(--home-focus-mobile, center center);
	}
	.home-hero__youtube-poster {
		object-position: var(--home-focus-mobile, center center);
	}
	.home-hero__content {
		display: block;
		width: auto;
		min-height: 100svh;
		padding: 28svh 16px 32px;
	}
	.home-hero__identity,
	.home-hero__intro {
		font-size: calc(1.6rem - 0.5px);
		line-height: 1.5;
	}
	.home-hero__intro {
		padding-left: 0;
	}
	.home-hero__intro {
		margin-top: 24px;
	}
	.home-hero__cta {
		margin-top: 24px;
	}
	.projects-grid {
		grid-template-columns: 1fr;
	}
	.project-card { aspect-ratio: 1; }
	.about-layout {
		display: block;
		width: auto;
		padding: 32px 20px 64px;
	}
	.about-page__photo {
		margin-bottom: 32px;
	}
	.about-page__content {
		max-width: none;
	}
	.project-layout {
		display: block;
		min-height: 0;
	}
	.project-sidebar {
		position: static;
		min-height: 0;
		padding: 24px 20px 8px;
	}
	.project-sidebar__back {
		margin-bottom: 12px;
	}
	.project-sidebar__quick-nav {
		margin-bottom: 20px;
	}
	.project-sidebar__title {
		margin-bottom: 24px;
	}
	.project-sidebar__details {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 20px;
	}
	.project-sidebar__summary,
	.project-sidebar__credits {
		grid-column: 1 / -1;
	}
	.project-main {
		padding: 24px 20px 0;
	}
	.project-content {
		width: auto;
	}
	.project-content > * {
		margin-top: 32px;
		margin-bottom: 32px;
	}
	.project-content > .alignfull {
		width: calc(100% + 40px);
		max-width: none;
		margin-left: -20px;
	}
	.portfolio-lightbox {
		padding: 72px 48px 56px;
	}
	.portfolio-lightbox__image {
		max-height: calc(100dvh - 144px);
	}
	.portfolio-lightbox__close {
		top: 12px;
		right: 12px;
	}
	.portfolio-lightbox__previous {
		left: 12px;
	}
	.portfolio-lightbox__next {
		right: 12px;
	}
	.project-navigation {
		display: block;
		width: auto;
		margin: 64px 0;
	}
	.project-navigation__next {
		margin-top: 24px;
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
	.home-hero--enter .home-hero__identity,
	.home-hero--enter .home-hero__intro {
		animation: none;
	}
}
