/*
Theme Name: Knyaz Showreel
Theme URI: https://knyaz.uk
Author: knyaz.uk
Description: One-page full-screen showreel on black. Set the video, email and links in Appearance → Customize → Showreel.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: knyaz-showreel
*/

@font-face {
	font-family: "Inter Tight";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/inter-tight-latin-500-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Inter Tight";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("assets/fonts/inter-tight-latin-800-normal.woff2") format("woff2");
}

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

html, body {
	margin: 0;
	height: 100%;
	background: #000;
	color: #fff;
	font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

a { color: #fff; text-decoration: none; transition: color .2s; }
a:hover, a:focus-visible { color: #bdbdbd; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

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

/* ---------- Hero ---------- */
.hero {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100svh;
	min-height: 560px;
	overflow: hidden;
	background: #000;
}

.hero__media {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: .85;
}

.hero__shade {
	position: absolute; inset: 0;
	background: linear-gradient(180deg,
		rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%,
		rgba(0,0,0,0) 65%, rgba(0,0,0,.8) 100%);
	pointer-events: none;
}

/* Header */
.hero__header {
	position: relative; z-index: 2;
	display: flex; justify-content: space-between; align-items: center;
	flex-wrap: wrap; gap: 16px;
	padding: 32px 48px;
}
.logo { font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.nav { display: flex; gap: 32px; font-size: 14px; font-weight: 500; letter-spacing: .08em; }

/* Play */
.play {
	position: absolute; z-index: 2; left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	display: flex; flex-direction: column; align-items: center; gap: 20px;
	background: none; border: 0; padding: 0; color: #fff; cursor: pointer;
	font: inherit;
}
.play__circle {
	width: 112px; height: 112px; border-radius: 999px;
	border: 1.5px solid rgba(255,255,255,.9);
	background: rgba(0,0,0,.25);
	display: flex; align-items: center; justify-content: center;
	transition: transform .25s ease, background .25s ease;
}
.play__circle svg { margin-left: 6px; }
.play:hover .play__circle, .play:focus-visible .play__circle { transform: scale(1.06); background: rgba(255,255,255,.12); }
.play__label { font-size: 13px; font-weight: 500; letter-spacing: .2em; }

/* Footer */
.hero__footer {
	position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
	display: flex; justify-content: space-between; align-items: flex-end;
	flex-wrap: wrap; gap: 16px;
	padding: 40px 48px;
}
.title {
	margin: 0; font-weight: 800; font-size: 64px; line-height: .95;
	letter-spacing: -.02em; white-space: pre-line;
}
.meta {
	display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
	font-size: 14px; color: #d9d9d9;
}
.meta__social { display: flex; gap: 20px; }
.meta__social a { color: #d9d9d9; }

/* ---------- Video dialog ---------- */
.reel-dialog {
	width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
	margin: 0; padding: 0; border: 0;
	background: #000; color: #fff;
}
.reel-dialog::backdrop { background: #000; }
.reel-dialog__inner {
	position: relative; width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	padding: 72px 24px 24px;
}
.reel-dialog__frame {
	width: min(100%, calc((100vh - 96px) * 16 / 9));
	aspect-ratio: 16 / 9;
	background: #000;
}
.reel-dialog__frame video,
.reel-dialog__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.reel-dialog__close {
	position: absolute; top: 20px; right: 24px;
	width: 44px; height: 44px; border-radius: 999px;
	border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.reel-dialog__close:hover { background: rgba(255,255,255,.12); }

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
	.hero__header { padding: 20px 20px; }
	.nav { gap: 20px; font-size: 12px; }
	.hero__footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
	.title { font-size: 44px; }
	.meta { align-items: flex-start; }
	.play__circle { width: 88px; height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
	.play__circle { transition: none; }
}
