/*
 * Úvodní stránka „Web právě přestavujeme“ (coming-soon.php).
 * Závisí na main.css (písma, barvy).
 *
 * Přenesené 1:1 z Filipova index.html. Názvy tříd i hodnoty jsou schválně
 * stejné jako v originálu, aby šly další úpravy z artifactu porovnat
 * a přenést bez překládání. Každá odchylka má komentář „Oproti originálu“.
 */

/*
 * Serif je jen na téhle stránce, nový web má jediné písmo Geist.
 * Hedvig je variabilní s osou opsz (optická velikost jako v originálu).
 */
@font-face {
	font-family: "Hedvig Letters Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/hedvig-letters-serif-latin-ext-opsz-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Hedvig Letters Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/hedvig-letters-serif-latin-opsz-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Tokeny z prvního návrhu. Jsou na .cs-body, ne v :root, protože nový web
 * má v main.css stejné názvy (--line, --ink) s jinými hodnotami.
 */
.cs-body {
	--void:      #000000;
	--navy:      #14243a;
	--navy-deep: #080f1a;
	--ink:       #ececec;
	--muted:     #a7b0bd;
	--line:      #4a5566;
	--sans:      "Geist", "Helvetica Neue", Arial, sans-serif;
	--serif:     "Hedvig Letters Serif", Georgia, "Times New Roman", serif;
	--ease-soft: cubic-bezier(.25, .1, .25, 1);
	--t-fast:    200ms;
	--focus-ring: var(--ink);

	font-family: var(--sans);
	font-size: initial;
	line-height: normal;
	background: var(--void);
	color: var(--ink);
	color-scheme: dark;
}

.cs-body a {
	color: inherit;
}

/* Jeden tmavý vzhled: černý rám po obvodu, uvnitř noční modrá se vzdalující se mřížkou */
.frame {
	--inset: 14px;
	--tab-h: 40px;
	--tab-w: 206px;
	--cut:   20px;

	position: relative;
	display: flex;
	flex-direction: column;
	/*
	 * Oproti originálu: tam je height: 100 % a obsah absolutně uvnitř okna.
	 * Na nízkém displeji nebo při velkém přiblížení se pak patička s adresou
	 * tiše ořízla. Tady je výška minimální, takže když se obsah nevejde,
	 * stránka se prostě posune. Když se vejde, vypadá na pixel stejně.
	 */
	min-height: max(560px, 100vh);
	min-height: max(560px, 100svh);
	padding: var(--inset) max(var(--inset), env(safe-area-inset-right, 0px)) var(--inset) max(var(--inset), env(safe-area-inset-left, 0px));
}

.logo {
	position: absolute;
	z-index: 5;
	top: var(--inset);
	left: max(var(--inset), env(safe-area-inset-left, 0px));
	display: flex;
	align-items: center;
	height: var(--tab-h);
	padding-left: 14px;
	color: var(--ink);
	font: 500 13px / 1 var(--sans);
	letter-spacing: .1em;
	text-transform: uppercase;
}

.logo .short {
	display: none;
}

.window {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	overflow: hidden;
	background: radial-gradient(ellipse 90% 60% at 50% 38%, var(--navy) 0%, var(--navy-deep) 100%);
	clip-path: polygon(
		0 var(--tab-h),
		calc(var(--tab-w) - var(--tab-h)) var(--tab-h),
		var(--tab-w) 0,
		calc(100% - var(--cut)) 0,
		100% var(--cut),
		100% calc(100% - var(--cut)),
		calc(100% - var(--cut)) 100%,
		var(--cut) 100%,
		0 calc(100% - var(--cut))
	);
}

canvas.grid {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.fog {
	position: absolute;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(170, 190, 215, .06), transparent);
	pointer-events: none;
}

.fog.a {
	left: -20%;
	top: 28%;
	width: 85%;
	height: 38%;
	animation: drift 46s ease-in-out infinite alternate;
}

.fog.b {
	right: -25%;
	top: 40%;
	width: 90%;
	height: 34%;
	animation: drift 58s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
	to {
		transform: translateX(24%) scaleX(1.15);
	}
}

.shade {
	position: absolute;
	inset: 0;
	background: radial-gradient(110% 85% at 50% 45%, transparent 30%, rgba(1, 3, 8, .6) 70%, rgba(0, 2, 6, .92) 100%);
	pointer-events: none;
}

/* Oproti originálu: v toku stránky místo position: absolute – viz komentář u .frame. */
.content {
	position: relative;
	z-index: 2;
	display: grid;
	flex: 1;
	grid-template-rows: 1fr auto;
	padding: calc(var(--tab-h) + 24px) 24px 28px;
}

.center {
	display: grid;
	align-self: center;
	justify-self: center;
	justify-items: center;
	gap: 44px;
	max-width: 720px;
	text-align: center;
}

.name-row {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
	font-weight: 400;
}

.name {
	font: 500 15px / 1.2 var(--sans);
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.role {
	font: 400 15px / 1.2 var(--serif);
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Kótovací čára se šikmými značkami na koncích, jako na výkresu */
.dim {
	position: relative;
	flex: none;
	width: 168px;
	height: 1px;
	background: var(--line);
}

.dim::before,
.dim::after {
	content: "";
	position: absolute;
	top: -6px;
	width: 1px;
	height: 13px;
	background: var(--line);
	transform: rotate(45deg);
}

.dim::before {
	left: 0;
}

.dim::after {
	right: 0;
}

.msg {
	display: grid;
	gap: 14px;
}

.msg h2 {
	margin: 0;
	font: 500 clamp(28px, 4vw, 44px) / 1.08 var(--sans);
	letter-spacing: -.035em;
	text-wrap: balance;
}

.msg p {
	max-width: 34em;
	margin: 0;
	color: var(--muted);
	font: 400 17px / 1.6 var(--sans);
}

.contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 36px;
	font: 500 13px / 1.4 var(--sans);
	letter-spacing: .06em;
	text-transform: uppercase;
}

.contact a {
	border-bottom: 1px solid transparent;
	text-decoration: none;
	transition: border-color var(--t-fast) var(--ease-soft);
}

.contact a:hover {
	border-bottom-color: var(--ink);
}

.facts {
	display: grid;
	justify-self: center;
	gap: 6px;
	color: var(--muted);
	font: 400 12px / 1.5 var(--sans);
	font-variant-numeric: tabular-nums;
	letter-spacing: .06em;
	text-align: center;
	text-transform: uppercase;
}

.facts .credit {
	margin-top: 10px;
	letter-spacing: .02em;
	text-transform: none;
}

.facts .credit a {
	color: var(--ink);
	text-decoration: none;
}

.facts .credit a:hover {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.frame {
		--inset: 10px;
		--tab-w: 76px;
		--tab-h: 36px;
		--cut:   14px;
	}

	/*
	 * Oproti originálu: plný název se schová jen vizuálně (.sr-only), ne přes
	 * display: none. Čtečka obrazovky tak dál přečte „Dimenze projekt“
	 * a ne „Dp“ (to má aria-hidden). aria-label na obyčejném spanu
	 * z originálu čtečky spolehlivě nečtou.
	 */
	.logo .full {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.logo .short {
		display: inline;
		letter-spacing: 0;
		text-transform: none;
	}

	.name-row {
		flex-direction: column;
		gap: 14px;
	}

	.dim {
		width: 1px;
		height: 40px;
	}

	.dim::before,
	.dim::after {
		display: none;
	}

	.center {
		gap: 32px;
	}

	.content {
		padding-inline: 16px;
	}
}

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