@font-face {
  font-family: "NCND";
  src: url("../font/ncnd.woff2");
  font-style: normal;
  font-stretch: normal;
  font-weight: 250 900;
}

:root {
	--wght: 250;
	--vmin: 1vmin;
	--vh: 1vh;
	--vw: 1vw;
	--digits: 4 + 1;
	
}
@supports (font-size: 1svmin) {
	:root {
		--vmin: 1svmin;
		--vh: 1svh;
		--vw: 1svw;
	}
}

body {
	font-family: "NCND", monospace;
	display: grid;
	height: calc(100 * var(--vh));
	margin: 0;
	padding: 0;
	align-content: end;
	justify-content: center;
	background: silver;
}
div {
	width: min-content;
	display: grid;
	background: whitesmoke;
	border: solid;
	border-width: 1px 1px 0;
	font-size: clamp(3.5em, calc(10 * var(--vmin)), 10em);
	padding: calc(7.5 * var(--vmin)) calc(15 * var(--vmin));
	padding: .75em 1.5em;
}
@media (max-width: 24em) {
	div {
		font-size: clamp(3em, calc(10 * var(--vmin)), 10em);
	}
}
@media (width: 480px) and (height: 800px) {
	div {
		font-size: clamp(6.5em, calc(10 * var(--vmin)), 10em);
		padding: .5em;
	}
}

time {
	line-height: .8;
	position: relative;
	z-index: calc(1440 - var(--index) );
	white-space: nowrap;
}
time:nth-last-of-type(n + 3) {
	
}
time:nth-last-of-type(n + 3) span span {
	font-feature-settings: "ss02" on;
	opacity: 1;
}
time:nth-last-of-type(2) > span {
	//animation: delete .1s calc( var(--index) * .2s + .5s ) forwards;
}
time:nth-last-of-type(2) > span span {
	animation: 
		appear .1s calc( var(--index) * .2s + .5s ) forwards,
		delete .1s calc( var(--index) * .2s + .5s ) forwards;
}
time:last-of-type {
	z-index: 1;
	max-height: 0;
	animation: scrollTo .5s 1.7s forwards;
}
time:last-of-type:first-of-type {
	z-index: 1;
	max-height: 0;
	animation: scrollTo .5s forwards;
}

span {
	font-variation-settings: "wght" var(--wght);
	position: relative;
}
span span {
	position: absolute;
	z-index: 0;
	left: 0;
	opacity: 0;
}
time:last-of-type > span {
	opacity: 0;
	animation: appear .1s calc( var(--index) * .2s + 2s ) forwards;
}
time:last-of-type:first-of-type > span {
	opacity: 0;
	animation: appear .1s calc( var(--index) * .2s + .7s ) forwards;
}
time > span:first-of-type {
	--index: 1;
}
time > span:nth-of-type(2) {
	--index: 2;
}
time > span:nth-of-type(3) {
	--index: 3;
}
time > span:nth-of-type(4) {
	--index: 4;
}
time > span:nth-of-type(5) {
	--index: 5;
}
del {
	font-feature-settings: "ss02" on;
}

@keyframes appear {
	0% {
		opacity: 0;
	}
	99%, 100% {
		opacity: 1;
	}
}
@keyframes scrollTo {
	0% {
		max-height: 0;
	}
	100% {
		max-height: 1em;
	}
}
@keyframes delete {
	100% {
		font-feature-settings: "ss02" on;
	}
}