/* BASIC */

/* Vars */
:root {
	--base-font-size: min(5vw, 2.5em);
	--small-font-size: calc(var(--base-font-size) * .666);
	--smaller-font-size: calc(var(--base-font-size) * .45);
	--smaller-font-size: 1em;
	--base-line-height: 1.2;
	--base-line-small: calc(var(--base-line-height) * 1.125);
	--normal-font: Arial, Helvetica, sans-serif;
	--em-baseline-offset: .012em;
}
.theme-light {
	--fg-color: .1 .1 .1;
	--bg-color: .9 .9 .9;
}
.theme-dark {
	--fg-color: .9 .9 .9;
	--bg-color: .1 .1 .1;
}
.theme-dark img {
	mix-blend-mode: exclusion;
}

/* Reset */
* {
	padding: 0;
	margin: 0;
	font-family: inherit;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
	text-indent: 0; 
}





/* GENERAL */

/* Body */
body {
	font-family: var(--normal-font);
	font-size: 1em;
	line-height: var(--base-line-height);
	color: color(display-p3 var(--fg-color));
	background-color: color(display-p3 var(--bg-color));
	padding-bottom: 30vh;
}

/* Containers */
main {
	width: 120%;
	transform: scaleX(.75);
	/* transform-origin: 0 0; */
	margin: .5vh;
	margin-top: calc(.625 * var(--base-font-size));
	margin-left: calc(-10% * .75);
}
#Projector {
	background-repeat: no-repeat;
	background-size: cover;
	z-index: -1;
}

/* Lists */
main section:not(:first-child) {
	margin-top: calc(var(--base-font-size) * var(--base-line-height));
}
main section ol {
	list-style-type: lower-alpha;
	list-style-type: none;
	font-size: var(--base-font-size);
}
main section.font-small ol { 
	font-size: var(--small-font-size); 
}
main section.font-small ol li {
	line-height: var(--base-line-small) !important;
}
main section.font-smaller ol { 
	font-size: var(--smaller-font-size); 
}
main section ol li {
	position: relative;
	text-indent: -1.5em;
	padding-left: 1.5em;
	z-index: 10;
}
main section ol li:hover {
	z-index: 100;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-weight: 400;
}

/* Links */
a {
	text-decoration-thickness: .05em;
}
a.no-decoration,
a[href=" "] {
	text-decoration: none;
}
a[href=" "]::before { content: "‘"; }
a[href=" "]::after  { content: "’"; }
a.font-inter {
	font-family: 'Inter Regular', sans-serif;
}

/* Locations */
span.loc {
	font-family: 'DM Mono Light', monospace;
	font-size: .333em;
	/* line-height: 0; */
	display: none;
}
li:hover span.loc {
	/* display: inline-block; */
}
span.loc::before { content: "("; }
span.loc::after  { content: ")"; }

/* Image wrapper: basic */
.img-wrapper {
	display: inline-block;
	position: absolute;
	left: 0;
	top: 1.25em;
	opacity: 0.5;
}
.img-wrapper img {
	transform-origin: 0 0;
	transform: scaleX(1.333);
	height: 0;
	width: auto;
	/* display: none; */
}
.img-wrapper img ~ p {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	padding: .25em .666em .333em;
	box-sizing: border-box;
	max-width: 100%;
	font-size: .475em;
	color: white;
	text-shadow: .75px 0px hsla(0, 0%, 10%, .333), 0px .75px hsla(0, 0%, 10%, .333), -.75px 0px hsla(0, 0%, 10%, .333), 0px -.75px hsla(0, 0%, 10%, .333);
	display: none;
}

/* Image wrapper: hover or .visible */
li:has(.img-wrapper.visible) {
	z-index: 1000;
}
.img-wrapper.visible,
body:not(.has-visible) a.project-link:hover ~ .img-wrapper {
	opacity: 1;
	height: 50vh;
	width: fit-content;
}
.img-wrapper.visible > img,
body:not(.has-visible) a.project-link:hover ~ .img-wrapper > img {
	height: 50vh;
}
.img-wrapper.visible > *,
body:not(.has-visible) a.project-link:hover ~ .img-wrapper > * {
	display: block;
}
.img-wrapper.visible > img {
	box-shadow: 0 .25em .75em -.125em black;
}





/* PROJECTOR */

#Projector {
	transition: opacity 75ms ease-out;
}





/* SWITCHES */

/* Desktop */
@media screen and (orientation: landscape) {
	#Projector {
		position: absolute;
		top: 0;
		right: 0;
		height: 100%;
		width: 100vh;
		background-position: 100% 100%;
	}	
}

/* Mobile */
@media screen and (orientation: portrait) {
	section#Title,
	p.section-head,
	section#Recent ol li {
		font-size: var(--base-font-size);
		font-size: .825rem;
	}
	section#Recent span.loc {
		font-size: .5em;
		line-height: 2;
	}
	#Projector {
		position: fixed;
		bottom: 0;
		left: 0;
		height: 100vw;
		width: 100vw;
		background-position: center 100%;
	}
}





/* INTERACTION SWITCHES */

.img-wrapper,
.img-wrapper img,
.img-wrapper img ~ p {
	display: none !important;
}
