@grey: #666;


* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	text-decoration: none;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizelegibility;
	-moz-osx-font-smoothing: grayscale;
	line-height: inherit;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}

*:focus {
	outline: 3px dashed #333;
	outline-offset: 10px;
	border-radius: 3px;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

img {
	border: 0;
}

main, header, nav, section {
	display: block;
}

body {
	background-color: #000;
	overflow-x: hidden;
	color: #fff;
	font-family: sans-serif;
	font-weight: bold;
	font-size: 40px;
	line-height: 1.2em;
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 30px;
	#logo {
		display: block;
		height: 40px;
		&:hover {
			opacity: 0.5;
		}
	}
}

#right-menu {
	display: flex;
	align-items: center;
	gap: 30px;
	a:hover {
		text-decoration: underline;
		text-decoration-thickness: 4px;
		text-underline-offset: 6px;
	}
}

#instagram-icon {
	display: block;
	height: 30px;
}

#main-info {
	padding: 20px 30px;
	max-width: 1200px;
	font-size: 120%;
	line-height: 1.2em;
	margin: 150px auto 200px;
	h1 {
		text-wrap: balance;
		text-transform: initial;
	}
	a {
		color: @grey;
		text-decoration-thickness: 3px;
		text-underline-offset: 6px;
		text-decoration: underline;
		&:hover {
			color: #fff;
		}
	}
}
#list-info {
	padding: 20px 30px;
	max-width: 1200px;
	margin: 0 auto;
	h1 {
		text-wrap: balance;
	}
	a {
		text-decoration: underline;
		text-decoration-thickness: 3px;
		text-underline-offset: 6px;
	}
}

h1, h2, h3 {
	font-size: inherit;
}

h1 {
	text-transform: uppercase;
}

#categories {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	padding: 20px 30px;
	.category {
		background-color: #111;
		padding: 20px;
		height: 50vh;
		position: relative;
		.info {
			position: relative;
			z-index: 1;
			h2 {
				margin-bottom: 0.5em;
			}
			p {
				font-size: 75%;
				line-height: 1.2em;
				max-width: 36ch;
				text-wrap: balance;
			}
			p + p {
				margin-top: 0.5em;
			}
			a {
				text-decoration: underline;
				text-decoration-thickness: 3px;
				text-underline-offset: 6px;
			}
		}
		.background {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			z-index: 0;
			video, img {
				display: block;
				width: 100%;
				height: 100%;
				object-fit: cover;
			}
		}
	}
}


#works {
	padding: 20px 30px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 60px;
	max-width: 1200px;
	margin: 100px auto 0;
	.work {
		display: grid;
		grid-template-columns: 450px 1fr;
		gap: 60px;
		width: 100%;
		.media {
			video, img {
				display: block;
				width: 100%;
			}
		}
		.details {
			color: @grey;
		}
		h2 {
			text-wrap: balance;
		}
		.description {
			max-width: 36ch;
			text-wrap: balance;
			margin: 1em 0;
		}
		a {
			text-decoration: underline;
			text-decoration-thickness: 3px;
			text-underline-offset: 6px;
		}
	}
}

footer {
	padding: 20px 30px;
	font-size: 75%;
	line-height: 1.2em;
	margin-top: 200px;
	h3 {
		display: inline-block;
		margin-right: 0.5em;
	}
	h3:not(:first-child) {
		margin-left: 1em;
	}
	a {
		display: inline-block;
		margin-right: 0.5em;
		color: @grey;
		&:hover {
			color: #fff;
		}
	}

	#copyrights {
		margin-top: 0.5em;
	}
}