@keyframes wiggle {
	0% {
		transform: translate(-2px,-2px)
	}

	to {
		transform: translate(2px,2px)
	}
}

:root {
	--iconsize: clamp(0.82rem, 2.5vw, 1.1em)
}

html {
	font-size: 16px
}

.close-button {
	position: absolute;
	top: 8px;
	left: 12px;
	background: 0 0;
	border: 0;
	font-size: 40px;
	cursor: pointer;
	color: #bbb;
	display: none
}

.close-button:hover {
	color: #b42b2b;
	transition: all .3s ease
}

.box.expanded .close-button {
	display: block
}

#October2024 {
	display: flex;
	align-items: center;
	gap: 4px
}

#toggleBoxes {
	display: inline-block;
	margin: 20px auto;
	padding: 8px 16px;
	font-size: clamp(.9rem,2.5vw,1.1rem);
	font-weight: 700;
	background-color: #282828;
	color: #f6f6f6;
	border: 2px solid #f6f6f6;
	border-radius: 12px;
	box-shadow: 0 4px 10px rgba(197,197,197,.1);
	cursor: pointer;
	transition: all .3s ease;
	text-align: center
}

#toggleBoxes:hover {
	background-color: #c7c7c7;
	color: #1f1f1f;
	border: 2px solid #fff;
	box-shadow: 0 6px 15px rgba(0,0,0,.2);
	transform: translateY(-2px)
}

#toggleBoxes:active {
	background-color: #8b8a8a;
	color: #151515;
	box-shadow: 0 4px 10px rgba(0,0,0,.1);
	transform: translateY(0)
}

#toggleBoxes:focus {
	outline: 0;
	box-shadow: 0 0 0 3px rgba(66,139,255,.4)
}

header {
	background-color: rgba(26,26,26,.96);
	box-shadow: 0 2px 5px rgba(118,118,118,.1),0 8px 20px rgba(151,151,151,.05);
	font-size: clamp(.82rem,2.5vw,1.1em);
	padding: 8px 20px;
	width: 82%;
	position: fixed;
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	top: 0;
	z-index: 1000
}

.nav-list {
	list-style: none;
	display: flex;
	justify-content: space-around;
	padding: 0;
	margin: 0
}

.nav-list li a {
	text-decoration: none;
	color: #e6e6e6;
	font-weight: 400;
	transition: color .3s
}

.nav-list li a:hover {
	font-weight: 700;
	color: #428bff
}

.about-link::before,.homes-link::before,.journal-link::before,.sources-link::before {
	display: inline-block;
	width: var(--iconsize);
	height: var(--iconsize);
	background-size: contain;
	background-position: center;
	margin-right: 4px;
	vertical-align: bottom
}

.homes-link::before {
	content: "";
	background-image: url(white-house.svg)
}

.journal-link::before {
	content: "";
	background-image: url(whitepen.svg)
}

.sources-link::before {
	content: "";
	background-image: url(white-box.svg)
}

.about-link::before {
	content: "";
	background-image: url(whiteusers.svg)
}

body,h1 {
	color: #e6e6e6
}

h1 {
	font-family: "Trattatello";
	line-height: 1;
	font-size: clamp(2rem,16vw,4rem);
	position: relative;
	text-align: center;
	margin: 60px 0 0
}

body {
	font-family: "iA Writer Mono",monospace;
	background-color: rgba(26,26,26,.96);
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	height: 100%;
	overflow-x: hidden;
	flex-direction: column
}

h2 {
	font-size: clamp(1.4rem,8vw,2rem);
	margin-top: 20px
}

a:not(.no-resize) {
	font-size: clamp(1rem,2.5vw,1.3em)
}

@media (max-width:620px) {
	h1 {
		font-family: "Trattatello";
		font-size: clamp(1.4rem,16vw,8rem);
		color: #e6e6e6;
		margin: 0;
		text-align: center;
		position: relative;
		top: 40px;
		left: 44%;
		transform: translateX(-50%);
		z-index: -10;
		transition: opacity .5s ease-out;
		width: 100%;
		max-width: 84%;
		line-height: 1
	}

	h2 {
		margin-top: 60px
	}

	header {
		top: auto;
		bottom: 0;
		padding: 12px;
		width: 100%;
		background-color: #1a1a1a;
		font-size: .8rem;
		box-shadow: 0-2px 5px rgba(118,118,118,.1);
		transition: all .4s linear
	}

	header.shrink {
		padding: 0;
		font-size: 0
	}

	.nav-list {
		justify-content: space-around;
		list-style: none;
		display: flex;
		padding: 0;
		margin: 0
	}

	.nav-list a {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-decoration: none;
		color: inherit;
		font-size: inherit
	}

	.about-link::before,.homes-link::before,.journal-link::before,.sources-link::before {
		width: 1.6rem;
		height: 1.6rem
	}
}

.container {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 20px;
	width: 80%;
	max-width: 90%
}

.box {
	background-color: #1a1a1a;
	color: #f6f6f6;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(151,151,151,.1),0 8px 20px rgba(151,151,151,.05);
	padding: 20px;
	text-align: left;
	cursor: pointer;
	transition: transform .3s ease,box-shadow .3s ease
}

.box:not(.expanded):hover {
	transform: scale(1.05);
	box-shadow: 0 8px 20px rgba(172,172,172,.2),0 8px 12px rgba(255,255,255,.2)
}

.box:not(.expanded):hover::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	box-shadow: 0 4px 10px rgba(151,151,151,.1),0 8px 20px rgba(151,151,151,.05);
	pointer-events: none;
	animation: wiggle 3s ease infinite alternate
}

.box.expanded {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	width: 90%;
	height: 80%;
	max-width: 700px;
	max-height: 1000px;
	z-index: 10;
	background-color: #1a1a1a;
	color: #f6f6f6;
	box-shadow: 0 10px 30px rgba(67,67,67,.213);
	transition: all .3s ease;
	overflow-y: auto;
	padding: 20px;
	border-radius: 12px;
	margin-top: 10px;
	margin-bottom: 10px
}

.fold-text.expanded {
	max-height: calc(100vh - 40px);
	overflow: auto
}

.box.expanded:hover {
	transform: translate(-50%,-50%)
}

.close-area {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(49,49,49,.5);
	z-index: 9
}

.content {
	display: none;
	opacity: 0;
	transition: opacity .3s ease
}

.box.expanded .content {
	display: block;
	opacity: 1
}

.title {
	text-align: center;
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 200px;
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%
}

.box.expanded .title {
	text-align: center;
	line-height: normal;
	font-size: 2rem;
	margin-top: 0;
	display: block;
	height: auto
}

@media (max-width:768px) {
	#October2024 {
		flex-direction: column;
		align-items: flex-start
	}

	#toggleBoxes {
		margin-top: 6px
	}

	body {
		margin: 0;
		padding: 0
	}

	.box,.container {
		box-sizing: border-box
	}

	.container {
		grid-template-columns: 1fr;
		gap: 10px;
		width: 100%;
		margin: 0;
		padding: 10px
	}

	.box {
		height: auto;
		padding: 15px;
		font-size: 14px;
		margin-bottom: 20px
	}

	.box .title {
		font-size: 1.5rem;
		line-height: 1.2
	}

	.box.expanded {
		position: fixed;
		top: 50%;
		left: 50%;
		transform: translate(-50%,-50%);
		width: 90%;
		height: 80%;
		max-width: 600px;
		max-height: 80vh;
		z-index: 10;
		box-shadow: 0 10px 30px rgba(0,0,0,.3);
		overflow-y: auto;
		padding: 20px;
		margin-bottom: 100px;
		border-radius: 12px
	}

	.box.expanded .title {
		font-size: 1.8rem;
		line-height: 1.4
	}

	.box:nth-child(-n+3) {
		margin-top: 0
	}
}

p {
	font-size: clamp(1rem,2.5vw,1.3em);
	line-height: 1.6;
	margin-bottom: 20px
}

p+p {
	margin-top: 20px
}