/* Import fonts */
@font-face {
	font-family: "Instrument Sans";
	src: url("./assets/fonts/InstrumentSans-VariableFont_wdth\,wght.ttf");
	font-weight: 400 700;
	font-style: normal;
}
@font-face {
	font-family: "Instrument Sans";
	src: url("./assets/fonts/InstrumentSans-Italic-VariableFont_wdth\,wght.ttf");
	font-weight: 400 700;
	font-style: italic;
}
@font-face {
	font-family: "Instrument Serif";
	src: url("./assets/fonts/InstrumentSerif-Regular.ttf");
	font-style: normal;
}
@font-face {
	font-family: "Instrument Serif";
	src: url("./assets/fonts/InstrumentSerif-Italic.ttf");
	font-style: italic;
}

/* Variables */
:root {
	--yellow: #FAE246;
	--green: #7BDB7E;
	--teal: #72E9D5;
	--blue: #006DC5;
	--white: white;
	--black: black;
	font-size: clamp(10px, 3vw, 16px);
}

/* Overrides */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	scroll-behavior: smooth;
}
body {
	font-family: "Instrument Sans", sans-serif;
	font-weight: 400;
	font-variation-settings: "wght" 400, "wdth" 100;
	background-color: var(--white);
	color: var(--black);
}
h1, h2, h3, h4, h5, h6 {
	font-weight: normal;
	font-family: "Instrument Serif", serif;
}
::-moz-selection {
	color: var(--black);
	background: var(--teal);
}
::selection {
	color: var(--black);
	background: var(--teal);
}

/* Header */
.header {
	margin: 0 auto;
	padding: 40px;
	display: flex;
	min-height: 100dvh;
	width: 100vw;
	flex-direction: column;
	justify-content: end;
	position: relative;
	overflow: hidden;
}
.header-content {
	font-size: 1.4rem;
	line-height: 1.4em;
	display: flex;
	flex-direction: column;
	max-width: 1800px;
	gap: .7em;
	width: 100%;
	margin: 0 auto;
}
.header-title {
	font-size: 10rem;
	letter-spacing: -0.04em;
	line-height: 1em;
	margin-bottom: 40px;
}
@media (max-width: 1200px) {
	.header-title {
		font-size: 5rem;
		margin-bottom: 20px;
	}
}
.header-slogan {
	/* font-size: 2.2rem; */
	text-wrap: balance;
	/* line-height: 1.1em; */
	font-weight: 700;
	font-variation-settings: "wght" 700, "wdth" 100;
}
.header-content p {
	max-width: 40em;
}
.header-content p a {
	color: var(--black);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .3em;
	transition: text-underline-offset .2s, opacity .2s;
}
.header-content p a:hover {
	text-underline-offset: .5em;
}
.header-content p a:active {
	opacity: .25;
}
.header-circle {
	background: url("./assets/graphics/gradient.jpg");
	background-size: cover;
	position: absolute;
	top: 0;
	right: 0;
	width: 100vw;
	transform: translate(25%, -55%);
	aspect-ratio: 1/1;
	border-radius: 50%;
	min-width: 800px;
	z-index: -1;
	overflow: hidden;
	animation: header-circle forwards 5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes header-circle {
	0% {
		opacity: 0;
		filter: saturate(0%);
		transform: translate(25%, -55%) rotate(360deg) scale(.75);
	}
	30% {
		opacity: .1;
		filter: saturate(25%);
	}
	100% {
		opacity: 1;
		filter: saturate(100%);
	}
}
.header-circle::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	/* background: linear-gradient(10deg, var(--yellow) 25%, var(--green) 50%, var(--blue) 100%); */
	background: url("./assets/graphics/gradient.jpg");
	background-size: cover;
	opacity: .5;
	animation: header-circle-inside 10s infinite linear;
}
@keyframes header-circle-inside {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}
@media (max-width: 600px) {
	.header-circle {
		left: 0;
		right: unset;
		transform: translate(0, -50%);
	}
}

/* Articles */
.main {
	/* margin-bottom: 25vh; */
}
.article {
	display: flex;
	justify-content: center;
	padding: 120px 40px;
	margin: 120px 0;
	position: relative;
}
.article-shaded::before {
	content: "";
	background: linear-gradient(30deg, var(--yellow), var(--green), var(--teal), var(--blue));
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	pointer-events: none;
	opacity: .5;
	filter: blur(80px);
}
.article-2col .article-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 40px;
}
.article-content {
	max-width: 1400px;
	width: 100%;
}
@media (max-width: 1200px) {
	.article {
		margin-top: 120px;
	}
	.article-2col .article-content {
		display: block;
	}
}
@media (max-width: 1200px) {
	.article::before {
		margin-bottom: 120px;
	}
}
.article-heading-link {
	display: block;
	text-decoration: none;
	color: var(--black);
	transition: opacity .2s;
}
.article-heading {
	font-size: 5rem;
	position: relative;
	line-height: 1em;
	letter-spacing: -0.03em;
	text-wrap: balance;
	margin-bottom: 120px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .5em;
}
.article-2col .article-heading {
	align-items: start;
	text-align: left;
}
@media (max-width: 1200px) {
	.article-heading {
		font-size: 5rem;
		margin-bottom: 80px;
	}
	.article-2col .article-heading {
		align-items: center;
		text-align: center;
	}
}
.article-heading-number {
	width: 1.4em;
	height: 1.4em;
	font-size: .6em;
	padding-top: .08em;
	border-radius: 4px;
	display: flex;
	border: 1px solid var(--black);
	align-items: center;
	justify-content: center;
	position: relative;
	transition: background-color .2s, color .2s;
}
.article-heading-number::before {
	content: "";
	background: linear-gradient(30deg, var(--yellow), var(--green), var(--teal), var(--blue));
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	filter: blur(25px);
	border-radius: 50%;
	z-index: -1;
	transform: scale(4);
	animation: article-heading-number-before 5s infinite linear;
	pointer-events: none;
}
.article-shaded .article-heading-number::before {
	display: none;
}
@keyframes article-heading-number-before {
	0% {
		transform: scaleX(4) scaleY(2) rotate(0deg);
	}
	100% {
		transform: scaleX(4) scaleY(2) rotate(360deg);
	}
}
.article-heading-link:hover .article-heading-number {
	background-color: var(--black);
	color: var(--white);
}
.article-heading-link:active {
	opacity: .25;
}
.article-body p,
.article-body > ul,
.article-body > ol,
.article-body > blockquote {
	font-size: 1.4rem;
	margin: 0 auto;
	margin-top: 1.4em;
	line-height: 1.4em;
	max-width: 32em;
	text-wrap: pretty;
}
.article-body p a,
.article-body ul a,
.article-body ol a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .3em;
	color: var(--black);
	transition: text-underline-offset .2s, opacity .2s;
}
.article-body p a::after,
.article-body ul a::after,
.article-body ol a::after {
	content: " ↗";
}
.article-body p a:hover,
.article-body ul a:hover,
.article-body ol a:hover {
	text-underline-offset: .5em;
}
.article-body p a:active,
.article-body ul a:active,
.article-body ol a:active {
	opacity: .25;
}
.article-body ul {
	list-style: none;
	margin-top: 1.4em;
	display: flex;
	line-height: 1.4em;
	flex-direction: column;
	gap: 1.4em;
	padding: 1.4em;
	border-radius: 4px;
	position: relative;
	border: 1px solid rgba(0,0,0,.1);
}
.article-body ol {
	list-style: none;
	counter-reset: item;
	display: flex;
	flex-direction: column;
	gap: 1.4em;
	line-height: 1.4em;
	margin-top: 1.4em;
	padding: 1.4em;
	border-radius: 4px;
	position: relative;
	background-color: var(--white);
	border: 1px solid rgba(0,0,0,.1);
}
.article-body ol li {
	counter-increment: item;
}
.article-body ol li:before {
	content: counter(item);
	display: block;
	width: min-content;
	margin-bottom: .8em;
	font-weight: 700;
	font-variation-settings: "wght" 700, "wdth" 100;
	font-size: .8em;
	font-feature-settings: "tnum" 1;
	line-height: 1.2em;
}
.article-body blockquote {
	display: flex;
	flex-direction: column;
	/* gap: 1.4em; */
	line-height: 1.4em;
	margin-top: 1.4em;
	padding: 0 1.4em 1.4em 1.4em;
	border-radius: 4px;
	position: relative;
	border: 1px solid rgba(0,0,0,.1);
}
.article-body blockquote > * {
	width: 100%;
}

/* Sections */
.section {
	font-size: 1.4rem;
	max-width: 32em;
	margin: 0 auto;
	margin-top: 60px;
	scroll-margin-top: 80px;
}
.section-heading-link {
	text-decoration: none;
	color: var(--black);
	transition: opacity .25s;
	opacity: 1;
}
.section-heading {
	font-size: 1.4rem;
	line-height: 1.4em;
	position: relative;
	font-family: "Instrument Sans", sans-serif;
	font-weight: 700;
	font-variation-settings: "wght" 700, "wdth" 100;
	text-wrap: balance;
}
.section-heading-number {
	position: absolute;
	top: .4em;
	left: -4em;
	font-size: .7em;
	font-feature-settings: "tnum" 1;
	padding: .05em .2em 0 .2em;
	flex-shrink: 0;
	line-height: 1.1em;
	transition: background-color .2s, color .2s;
	border-radius: 4px;
}
@media (max-width: 1200px) {
	.section-heading-number {
		position: relative;
		display: block;
		width: min-content;
		top: 0;
		left: -.2em;
		padding: .05em .2em .05em .2em;
	}
}
.section-heading-link:hover .section-heading-number {
	background-color: var(--black);
	color: var(--white);
}
.section-heading-link:active {
	opacity: .25;
}

/* Menu toggle */
.menu-toggle {
	position: fixed;
	bottom: 0;
	border: unset;
	border-top: 1px solid var(--black);
	background-color: var(--white);
	color: var(--white);
	font-size: 1.4rem;
	padding: .6em .8em;
	line-height: 1em;
	font-family: inherit;
	left: 0;
	right: 0;
	cursor: pointer;
	transition: padding .5s, transform .5s;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.menu-toggle[data-visible="0"] {
	transform: translateY(100%);
}
.menu-toggle:hover {
	padding: 1em .8em;
}
.menu-toggle:active {
	padding: .4em .8em;
}
.menu-toggle-text {
	white-space: nowrap;
	overflow: hidden;
	mix-blend-mode: difference;
	position: relative;
	z-index: 1;
	display: flex;
	width: 100%;
	gap: .8em;
}
.menu-toggle-text-current-number {
	opacity: .5;
	font-feature-settings: "tnum" 1;
}
.menu-toggle-text-current-title {
	opacity: .5;
	overflow: hidden;
	text-overflow: ellipsis;
}
.menu-toggle-text-spacer {
	flex-grow: 1;
}
.menu-toggle-background {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--black);
	transform: scaleX(50%);
	transform-origin: left center;
}
@media (max-width: 800px) {
	.menu-toggle-text-spacer {
		display: none;
	}
	.menu-toggle-text-label {
		display: none;
	}
}
@media (max-width: 600px) {
	.menu-toggle-text-logo {
		display: none;
	}
}

/* Menu */
.menu {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	height: 100dvh;
	outline: 1px solid var(--black);
	transform: translateY(calc(100% + 1px));
	transition: transform .75s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 999;
	background-color: var(--white);
}
.menu[data-active="1"] {
	transform: translateY(0%);
}
.menu-content {
	overflow-y: scroll;
	display: flex;
	flex-direction: column;
	padding: 120px 80px;
	height: 100dvh;
}
@media (max-width: 1200px) {
	.menu-content {
		padding: 40px;
	}
}
.menu-article {
	display: flex;
	gap: 40px;
	color: var(--black);
	text-decoration: none;
	font-weight: normal;
	font-family: "Instrument Serif", serif;
	font-size: 4rem;
	letter-spacing: -0.03em;
	transition: opacity .2s;
	margin: 20px 0;
}
@media (max-width: 1200px) {
	.menu-article {
		font-size: 3rem;
		gap: 20px;
	}
}
.menu-article-number {
	margin-top: .08em;
	width: 1.4em;
	height: 1.4em;
	font-size: .6em;
	padding-top: .08em;
	border-radius: 4px;
	display: flex;
	border: 1px solid var(--black);
	align-items: center;
	justify-content: center;
	position: relative;
	transition: background-color .2s, color .2s;
	flex-shrink: 0;
}
.menu-article-name {
	line-height: 1em;
}
.menu-article:hover .menu-article-number {
	background-color: var(--black);
	color: var(--white);
}
.menu-article:active {
	opacity: .25;
}
.menu-section {
	font-size: 1.4rem;
	display: flex;
	color: var(--black);
	text-decoration: none;
	margin-left: calc(40px + calc(calc(4rem * .6) * 1.4));
	font-weight: 700;
	font-variation-settings: "wght" 700, "wdth" 100;
	line-height: 1em;
	margin-bottom: 10px;
	gap: 20px;
	align-items: start;
	transition: opacity .2s;
}
@media (max-width: 1200px) {
	.menu-section {
		margin-left: calc(20px + calc(calc(3rem * .6) * 1.4));
	}
}
.menu-section-number {
	flex-shrink: 0;
	font-feature-settings: "tnum" 1;
	font-size: .8em;
	border-radius: 4px;
	position: relative;
	top: -.05em;
	transition: color .2s, background-color .2s;
	padding: .05em .2em 0 .2em;
}
.menu-section-name {
	
}
.menu-section:hover .menu-section-number {
	background-color: var(--black);
	color: var(--white);
}
.menu-section:active {
	opacity: .25;
}
.menu-close {
	position: absolute;
	bottom: 0;
	border: unset;
	border-top: 1px solid var(--black);
	background-color: var(--white);
	color: var(--black);
	font-size: 1.4rem;
	padding: .6em .8em;
	line-height: 1em;
	font-family: inherit;
	left: 0;
	right: 0;
	cursor: pointer;
	transition: padding .5s, transform .5s, background-color .2s, color .2s;
	display: flex;
	align-items: center;
	justify-content: end;
	text-align: center;
}
.menu-close:hover {
	padding: 1em .8em;
	background-color: var(--black);
	color: var(--white);
}
.menu-close:active {
	padding: .4em .8em;
}

/* Forms */
.form {
	font-size: 1.4rem;
	margin: 0 auto;
	margin-top: 1.4em;
	line-height: 1.4em;
	max-width: 32em;
	text-wrap: pretty;
}
.form-label {
	display: block;
	font-size: .8em;
	font-weight: 700;
	font-variation-settings: "wght" 700, "wdth" 100;
}
.form-text-short {
	font-size: 1.4rem;
	line-height: 1.4em;
	display: block;
	font-family: inherit;
	font-weight: 400;
	font-variation-settings: "wght" 400, "wdth" 100;
	width: 100%;
	padding: .6em .8em;
	border: 1px solid rgba(0,0,0,.1);
	border-radius: 4px;
	color: var(--black);
	margin-bottom: 1.4em;
	background-color: transparent;
}
.form-text-short::placeholder {
	opacity: 1;
	color: rgba(0,0,0,.1);
}
.form-text-short:focus {
	border: 1px solid var(--black);
	outline: unset;
}
.form-text-long {
	margin-bottom: 1.4em;
	font-size: 1.4rem;
	line-height: 1.4em;
	display: block;
	font-family: inherit;
	font-weight: 400;
	background-color: transparent;
	font-variation-settings: "wght" 400, "wdth" 100;
	width: 100%;
	padding: .6em .8em;
	height: calc(1.4em * 6);
	border: 1px solid rgba(0,0,0,.1);
	border-radius: 4px;
	color: var(--black);
	resize: none;
}
.form-text-long::placeholder {
	opacity: 1;
	color: rgba(0,0,0,.1);
}
.form-text-long:focus {
	border: 1px solid var(--black);
	outline: unset;
}
.form-button {
	padding: .6em .8em;
	margin-top: 1.4em;
	display: block;
	font-family: inherit;
	font-weight: 400;
	width: 100%;
	font-size: 1.4rem;
	line-height: 1.4em;
	background-color: transparent;
	border-radius: 4px;
	border: 1px solid var(--black);
	color: var(--black);
	font-variation-settings: "wght" 400, "wdth" 100;
	transition: opacity .2s, color .2s, background-color .2s;
	cursor: pointer;
}
.form-button:hover {
	background-color: var(--black);
	color: var(--white);
}
.form-button:active {
	opacity: .25;
}

/* Footer */
.footer {
	height: 50vh;
	position: relative;
	overflow: hidden;
	pointer-events: none;
}
.footer div {
	border-radius: 50%;
	background: url("./assets/graphics/gradient.jpg");
	background-size: cover;
	position: absolute;
	top: 0;
	right: 0;
	width: 100vw;
	aspect-ratio: 1/1;
	transform: scale(2);
	transform-origin: top center;
	border-radius: 50%;
	z-index: -1;
	overflow: hidden;
}
.footer div::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(45deg, var(--yellow) 25%, var(--teal) 50%, var(--teal) 60%, var(--blue) 100%);
	background-size: cover;
	animation: header-circle-inside 20s infinite linear;
}