:root {
	--orange: rgb(255,75,0);
	--orange-light: rgba(255,75,0, 0.3);
	--grey-light: rgba(245,245,245);
	--grey-light2: rgba(235,235,235);
	--grey-dark: rgb(37, 37, 37);
	--grey-medium: rgb(110,110,100);

	--margin: calc(10px + 1.333vw);
}

@font-face {
	font-family: Slussen;
	src: url("fonts/Slussen-Variable.ttf") format("truetype-variations");
	font-weight: 100 900;
}

@font-face {
	font-family: Slussen Mono;
	src: url("fonts/Slussen-Mono-Variable.ttf") format("truetype-variations");
	font-weight: 100 900;
}

@font-face {
	font-family: Slussen Stencil;
	src: url("fonts/Slussen-Stencil-Variable.ttf") format("truetype-variations");
	font-weight: 100 900;
}

:root {
	font-family: Slussen;
	color: var(--grey-dark);
}

body {
	font-size: 0.75rem;
	position:relative;
	margin:0;
	padding:0;
	overflow:hidden;
}

img {
	display: block;
}

video {
	max-width: 100%;
}

.main {
	padding: 0 var(--margin) 30px;
	position: relative;
	width: 100vw;
	height: 100vh;
	overflow-x: hidden;
	overflow-y: scroll;
	scroll-snap-type: y proximity;  
	scroll-padding: 66px;
}  

.snap {
	scroll-snap-align: start;
}

.snap-end{
	scroll-snap-align: end;
}

.fade-in {
	position: relative;
}

.fade-in > * {
	opacity: 0;
	transition: opacity 0.5s;
}

.fade-in::before {
	z-index: -1;
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--grey-light);
}

.fade-in-white::before {
	background-color: transparent;
}

.fade-in.active > * {
	opacity: 1;
}

.site-header {
	top: 0;
	left: 0;
	position: fixed;
	width: 100%;
	font-size: 0.6875rem;
	font-weight: 600;
	height: 56px;
	background-color: white;
	z-index: 1;
}

.site-header-inner {
	display: grid;
	padding: 20px 10px 20px;
	grid-template-columns: repeat(4, 1fr);
	grid-column-gap: var(--margin);
	margin: 0 var(--margin);
	border-bottom: 1px solid;
}

@media screen and (max-width: 520px) {
	.site-header-inner {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 375px) {
	.site-header-inner {
		display: flex;
		justify-content: space-between;
	}
}

.header-link {
	margin-right: auto;
	transition: color 0.1s;
}

.header-link:hover {
	color: var(--orange);
}

.header-link-accent {
	color: var(--orange);
}

.header-link-accent:hover {
	color: var(--grey-dark);
}


.section-poster {
	position: relative;
	margin-top: calc(56px + (var(--margin) * 0.333));
	height: calc(100vh - 56px - var(--margin));
	margin-bottom: var(--margin);
	max-height: calc(100vw - (var(--margin) * 2));
}

.poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sound-switch {
	position: absolute;
	right: 0;
	top: calc(100% + var(--margin));
	font-weight: 600;
	cursor: pointer;
}

.sound-switch input {
	display: none;
}

.sound-switch label {
	display: flex;
	user-select: none;
	align-items: center;
}

.switch-track {
	width: 21px;
	height: 11px;
	padding: 2px;
	margin-left: 5px;
	border-radius: 10px;
	background-color: var(--grey-light2);
	transition: background-color 0.15s;
}

.switch-thumb {
	position: relative;
	width: 7px;
	height: 7px;
	background-color: var(--grey-medium);
	border-radius: 50%;
	transition: transform 0.1s, background-color 0.15s;
}

.sound-switch input:checked + .switch-track {
	background-color: var(--orange-light);
}

.sound-switch input:checked + .switch-track .switch-thumb {
	transform: translateX(10px);
	background-color: var(--orange);
}


.section-introduction {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-gap: var(--margin);
	margin-bottom: var(--margin);
}

.intro-description {
	font-size: 1rem;
	line-height: 1.25rem;
	grid-column: span 4;
	max-width: 54rem;
	padding-left: 10px;
}


.section-header {
	font-size: 0.75rem;
	font-weight: 600;
	margin-bottom: 1em;
}

.intro-credits {
	grid-column: span 2;
	font-weight: 600;
	padding-right: 10px;
}

.credits-details {
	display: grid;
	grid-template-columns: minmax(10vw, 1fr) 2fr;
}

.accordion summary {
	white-space: nowrap;
	user-select: none;
}

.accordion .icon-arrow-down {
	width: 0.7rem;
	height: auto;
	transition: transform 0.2s;
}

.accordion[open] .icon-arrow-down {
	transform: rotate(180deg);
}

.intro-glyph-set {
	grid-column: span 3;
}

.intro-family {
	grid-column: span 3;
	background-color: var(--grey-light);
	display: flex;
	justify-content: center;
	text-align: center;
	align-items: center;
	font-size: 4.25vw;
	line-height: 1.5;
	font-weight: 700;
}

.section-variable01,
.section-variable02,
.section-variable03 {
	margin-bottom: var(--margin);
}

.variable-tester {
	position: relative;
	background-color: var(--grey-light);
	width: 100%;
	height: calc(100% - 86px);
	display: flex;
	flex-direction: column;
}

.tester-heading {
	height: 65px;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
}

.tester-sample {
	position: relative;
	flex: 1;
	display: flex;
	text-align: center;
	justify-content: center;
	align-items: center;
	width: 100%;
	font-size: calc(15px + 5.25vw);
	z-index: 0;
}

.tester-sample-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	object-fit: contain;
	opacity: 0.7;
}

.tester-weight {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 65px;
	text-align: center;
}

.tester-weight .weight {
	display: inline;
}

@media screen and (max-width: 400px) {
	.tester-weight {
		font-size: 2.35vw;
	}
}

.section-gallery01,
.section-gallery02,
.section-gallery03 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: var(--margin);
	margin-bottom: var(--margin);
}

.col-2 {
	grid-column: span 2;
}

.gallery-weights {
	background-color: var(--grey-light);
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 2.36vw;
	line-height: 1.2;
	aspect-ratio: 1;
}

.gallery-weights .number {
	font-feature-settings: 'ss10';
	margin-right: 1em;
}

.gallery01-play {
	background-color: var(--grey-light);
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 2.78vw;
	line-height: 1.2;
	text-align: center;
	font-weight: 600;
	font-stretch: 60%;
}

.section-gallery02 {
	font-family: Slussen Mono;
}

.section-gallery02 .gallery-weights .number {
	font-feature-settings: 'ss08';
}

.gallery03-super {
	font-family: Slussen Stencil;
	font-size: 2.5vw;
	line-height: 1.14;
	font-weight: 200;
	background-color: var(--grey-light);
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;	
}

.gallery03-available {
	font-family: Slussen Stencil;
	font-size: 2.5vw;
	line-height: 1.14;
	font-weight: 400;
	background-color: var(--grey-light);
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;	
}

.gallery03-available a {
	cursor: pointer;
	transition: color 0.1s;
}

.gallery03-available a:hover {
	color: var(--orange);
}

.section-link {
	padding-top: 100px;
	padding-bottom: 85px;
	text-align: center;
}

.site-link {
	padding: 0 var(--margin);
	width: 100%;
	max-width: 30rem;
	height: 82px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9375rem;
	background-color: var(--grey-light);
	border-radius: 82px;
	transition: all 0.15s;
}

.site-link:hover {
	background-color: var(--orange);
	color: white;
}

.section-link .icon-link {
	margin-left: 0.3em;
	width: 1em;
	height: auto;
}


@media screen and (max-width: 1024px) {
	.section-introduction {
		grid-template-columns: repeat(2, 1fr);
	}

	.intro-description {
		grid-column: span 2;
		padding-right: 10px;
	}

	.intro-credits {
		grid-column: span 1;
		padding-left: 10px;
		padding-right: 0;
	}

	.credits-line dt {
		min-width: 20vw;
	}

	.intro-glyph-set {
		grid-column: 1 / span 1;
	}

	.intro-family {
		grid-column: span 1;
	}
}

@media screen and (max-width: 640px) {
	.section-introduction {
		grid-template-columns: repeat(1, 1fr);
	}

	.intro-description {
		grid-column: span 1;
	}

	.intro-family {
		aspect-ratio: 1.65;
		font-size: 8.5vw;
	}

	.section-gallery01,
	.section-gallery02,
	.section-gallery03 {
		grid-template-columns: repeat(1, 1fr);
	}

	.col-2 {
		grid-column: span 1;
	}

	.gallery-weights {
		font-size: 7.08vw;
	}

	.gallery01-play {
		aspect-ratio: 1;
		font-size: 8.34vw;
	}

	.gallery03-super,
	.gallery03-available {
		aspect-ratio: 1;
		font-size: 7.5vw;
	}

}


/* Section Discover */

.section-discover .section-header {
	padding-left: 10px;
}

.carousel .splide__list {
	height: 100%;
} 

.carousel {
	margin-left: -40px;
	margin-right: -40px;
	margin-bottom: var(--margin);
}

.carousel .splide__slide {
	margin-right: 20px;
	transform: translateZ(0);
	border-radius: var(--radius);
	overflow: hidden;
}

.carousel .splide__track {
	object-fit: contain;
	padding-left: 40px!important;
	padding-right: 40px!important;
	height: calc(50vw - 5rem);
}

.font-thumb {
	display: flex;
	position: relative;
	width: calc(33.333% - (40px/3));
	height: 100%;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: 0.3s;
}

.font-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: 0.3s;
}

.font-thumb:hover .font-background {
	transform: scale(105%);
}

.font-name {
	width: 66%;
	max-height: 15%;
	position: relative;
	transition: 0.3s;
}

@media (max-width: 1280px) {
	.carousel .splide__track {
		height: calc(60vw - 5rem);
	}
}

@media (max-width: 1024px) {
	.carousel {
		padding-left: calc(-10px - 3vw);
		padding-right: calc(-10px - 3vw);
	}
}

@media (max-width: 768px) {
	.carousel .splide__track {
		height:  calc(100vw - 2.5rem);
	}
	.font-thumb {
		width: 88%;
	}
}

.site-footer {
	padding-left: 10px;
	font-size: 0.625rem;
	color: var(--grey-medium);
}

.site-footer span {
	white-space: nowrap;
}

.site-footer a {
	transition: color 0.1s;
}

.site-footer a:hover {
	cursor: pointer;
	color: var(--orange);
}

@media screen and (max-width: 576px) {
	.carousel {
		margin-right: calc(-10px - 3vw);
	} 

	.site-footer {
		margin-bottom: 40px;
	}
}