@font-face {
	font-family: "Jacket Sans";
	src: url("../fonts/JacketSansVariable.woff2") format("woff2-variations"),
			 url("../fonts/JacketSansVariable.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Jacket Sans";
	src: url("../fonts/JacketSansVariable-Italic.woff2") format("woff2-variations"),
			 url("../fonts/JacketSansVariable-Italic.woff2") format("woff2");
	font-weight: 400 800;
	font-style: italic;
	font-display: swap;
}

:root {
	--foreground: #eee;
	--accent: #fdc300;
}

* {
	margin: 0;
	padding: 0;
}

*, html {
		scroll-behavior: smooth !important;
}


body {
	background: #121212;
	color: var(--foreground);
	font-family: "Jacket Sans", system-ui, sans-serif;
	line-height: 1.6;
	margin: 20dvh 10dvw;
	--webkit-font-smoothing: antialiased;
}

[id] {
	scroll-margin-block-start: 5rlh;
}

img {
	max-width: 100%;
	height: 100%;
	display: block;
	margin-block: 1rlh;
}

/* ::selection {
	background: var(--foreground);
	color: var(--accent);
} */

a {
	color: inherit;
	font-weight: 500;
	transition: all .2s ease-in-out;
	text-decoration-thickness: 1.25px;
	text-underline-offset: 2.5px;
}

a.button {
	color: #121212;
	background: var(--accent);
	display: inline-block;
	text-decoration: none;
	line-height: 2.5;
	padding-inline: 2ch;
	border-radius: 6ch;
	box-shadow: 0 0 0 #fff;
	font-weight: 700;

	&.flex {
		display: inline-flex;
	}

	&:hover {
		/* color: #fff; */
		box-shadow: 0 0 18px var(--accent);
	}

	&.secondary {
		background: #13131320;
		border: 1px solid #13131310;
		color: var(--foreground);

		&:hover {
			background: var(--foreground);
			color: #fff;
		}
	}
}

h1, h2, h3 {
	text-wrap: balance;
}

strong {
	font-weight: 700;
}

h1 {
	letter-spacing: -0.03rem;
	line-height: 1.2;
	font-weight: 770;
	font-variation-settings: "opsz" 32;
}

h2 {
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02rem;
	font-variation-settings: "opsz" 32;
}

h3 {
	font-weight: 700;
}

h4 {
	font-weight: 600;
	opacity: .7;
	font-size: .875rem;
}

.logo {
	margin-inline-start: -1.5rem;
}

main ul {
	padding-inline-start: 2rlh;
}


.flex {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rlh;
}

/* Main positioning - sidebar switch */

/* body {
	display: flex;
	flex-wrap: wrap;
}

header {
	container-type: inline-size;
	container-name: nav;	
	flex-grow: 1;
}

main {
	flex-grow: 4;
	flex-basis: calc((60rem - 100%) * 999);
	padding-inline: max(1.5rlh, calc((100% - 78rem) / 2));
	padding-block-start: 2rlh;
} */

/* Other layout rules */

header {
	background: linear-gradient(180deg, #fdc300 50%, #fdc30000 100%);
	padding-inline: 1.5rlh;
	padding-block-end: 3rlh;
	margin-block-end: -3rlh;
	position: sticky;
	top: 0;
	
	nav {
		display: flex;
		flex-wrap: wrap;
		gap: 1rlh;
		align-items: center;
		justify-content: space-between;
		padding-block-start: .5rlh;
		
		.logo {
			margin-inline-start: -.33rlh;
			flex: 1 1;
		}
		
		ul {
			display: flex;
			flex-wrap: wrap;
			list-style-type: none;
			gap: .25rlh;
			flex: 2;
			
			a {
				font-weight: 700;		
				text-decoration: none;
				letter-spacing: -0.005rem;
				
				&:hover, &:focus {
					text-decoration: underline;
				}
			}
			
			li {
				&:after {
					content: "/";
					margin-inline: .25rlh;
				}
				&:last-of-type:after {
					content: unset;
				}
			}
		}
	}
}

@container nav (width < 50vw) {
	nav.anchors {			
		flex-direction: column;
		align-items: start;
		max-width: max-content;
		margin-inline: auto;
		position: sticky;
		top: 2rlh;
		padding-block-start: unset;
			
			ul {
				flex-direction: column;
			}
	
	}
}

.flow {
	> * + * {
		margin-block-start: 1rlh;
	}
}

.flow {
	h3 + *,
	h4 + *  {
		margin-block-start: .5rlh;
	}
	figure + * {
		margin-block-start: 2rlh;
	}
	* + h3 {
		margin-block-start: 3rlh;
	}
		* + h2 {
		margin-block-start: 4rlh;
	}

	h3 + h4 {
		margin-block-start: 0;
	}
}

main {
	ul ul,
	ul:not(.main-nav) li + li {
		margin-block: .5rlh;
	}
}

/* Icon sprite: keeps the sprite out of the flow and stops
	 <use> instances from being squashed by flexbox. */
.sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.icon {
	flex: none;
}

.shadow img {
	box-shadow: 0 2px 6px rgba(22,23,29,.5),0 8px 16px rgba(22,23,29,.35);
	border-radius: 1.4vw;
}

figcaption:before {
	content: "▲";
	opacity: 0.4;
	font-size: .875rem;
	margin-inline-end: .5rem;
}

table {
	border-collapse: collapse;

	caption {
		text-align: left;
		font-weight: 600;
	}

	th {
		font-weight: 500;
		text-align: left;
		padding: .5rlh;
		vertical-align: top;
	}

	td {
		padding: .5rlh;
		vertical-align: top;
	}

		span {
			border: 1px solid #00000030;
			border-radius: .4rem;
			padding: .15rem .5rem;
			background: #ffffff40;
		}
}

p, figcaption, main ul {
	max-width: 70ch;
}

ul {
	margin-inline-start: 3ch;
	margin-block-end: 1rlh;
}

include-html {
	display: block;
}

.expand  {
	margin-inline: -4%;
	
	figcaption {
		padding-inline: 4%;
	}
}

footer {
	padding-block: 3rlh 5rlh;
	
	p {
		color: #aaa;
	}
}
