/* 
Thank you, Roman
https://codepen.io/kizu/pen/OJdzpmB
*/


@font-face {
	font-family: "Kosmik";
	src: url("../fonts/LTRKosmik-Regular.woff2");
	font-style: normal;
	font-stretch: normal;
	font-weight: normal;
}

@font-face {
	font-family: "Kosmik";
	src: url("../fonts/LTRKosmik-Bold.woff2");
	font-style: normal;
	font-stretch: normal;
	font-weight: bold;
}

:root {
	--div-width: 42;
	--bg: transparent;
	--fg: transparent;
	--border-width: .4; 
	--unit: 1vmin;
}
@media (min-aspect-ratio: 1) {
	:root {
		--unit: 1vmax;
	}
}


body {
  display: grid;
  margin: 0;
  min-height: 100vw;
  place-items: center;
  font-family: "Kosmik", sans-serif;
  font-feature-settings: "ss03";
  color: var(--fg);
  background: black;
  overflow: hidden;
  rotate: calc(var(--deg) * 1deg);
}


ol {
	grid-area: 1 / 1;
	width: calc( var(--div-width) * (2 * var(--unit)) );
	//aspect-ratio: 1;
	
	display: grid;
	place-items: center;
	margin: 0;
	padding: 0;
	rotate: calc( var(--hour) * 30deg );
}
li {
	font-size: calc(1.999396 * var(--unit));
	grid-area: 1 / 1;
	margin: 0;
	padding: 0;
	list-style-type: none;
	list-style-position: inside;
	width: 1em;
	height: 1em;
	box-sizing: border-box;
	transform: 
		rotate( calc(var(--index) * 6deg ) )
		translateY( calc( var(--div-width) * -1 * var(--unit) ) );
}
li:nth-of-type(5n) {
	list-style: none;
	transform: 
		rotate( calc(var(--index) * 6deg ) )
		translateY( calc( var(--div-width) * -1 * var(--unit) ) )
		rotate( calc(var(--index) * -6deg - var(--hour) * 30deg ) );
	font-size: calc(20 * var(--unit));
	line-height: 1;
	width: 300vmax;
	position: absolute;
	background: hsl( 
		calc( var(--index) * 6 ),
		calc( var(--day) * 100% + 30%),
		calc(40% + (var(--light) / .6) * 1%)  
	);
	mix-blend-mode: soft-light;
}

