* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.fira-mono-regular {
	font-family: "Fira Mono", monospace;
	font-weight: 400;
	font-style: normal;
}

.fira-mono-medium {
	font-family: "Fira Mono", monospace;
	font-weight: 500;
	font-style: normal;
}

.fira-mono-bold {
	font-family: "Fira Mono", monospace;
	font-weight: 700;
	font-style: normal;
}

.lora {
	font-family: "Lora", serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
}

body {
	display: flex;
	flex-direction: row;
	justify-content: center;
	font-family: "Lora", serif;
	font-size: 18px;
	line-height: 1.6;
	color: #333;
	background-color: #f5f5f5;
}

/* sidebar */
.ad-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	height: 100vh;
	aspect-ratio: 1 / 4;
	margin-top: 1em;
	/* sticky */
	position: -webkit-sticky;
	position: sticky;
	top: 0;
}

.ad {
	display: flex;
	flex-direction: column;
	gap: 0em;
	text-align: center;
}

.ad > p {
	font-size: 0.9em;
	padding: 0;
	margin: 0;
}

main {
	display: flex;
	flex-direction: column;
	gap: 1em;
	max-width: 100vw;
	width: 900px;
	padding: 1em;
}

.header {
	display: flex;
	flex-direction: column;

	margin-top: 1em;
}

.header > h1 {
	font-size: 2em;
	font-weight: 400;
	color: #000;
}

.nav {
	display: flex;
	flex-direction: row;
	gap: 1em;
}

h1 > span {
	color: #6c6c6c;
}

div.marquee {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	border-width: 1px;
	border-style: solid;
	border-left: #000;
	border-right: #000;
	font-family: "Fira Mono", monospace;
	text-transform: uppercase;
	font-weight: 500;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

div.marquee > div {
	flex: 0 0 auto;
	scroll-snap-align: start;
	margin: 0 0.5em;
	padding: 0.5em;
}

div.marquee::-webkit-scrollbar {
	display: none;
}

div.hero-article {
	display: flex;
	flex-direction: row;
	gap: 0.5em;
}

div.hero-article > img {
	width: 480px;
	aspect-ratio: 8 / 5;
	object-fit: cover;
}

div.hero-article__content {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	padding: 0em 0em 0em 0.3em;
	text-align: justify;
}

div.hero-article__content > h2 {
	line-height: 1.2;
}

div.hero-article > div > a {
	margin-top: auto;
}

div.article-grid {
	display: grid;
	/* 3 columns */
	grid-template-columns: repeat(3, 1fr);
	gap: 1em;
}

div.article-grid__item {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

div.article-grid__content > h3 {
	font-size: 0.9em;
	line-height: 1.2;
}

div.article-grid__item > img {
	width: 100%;
	aspect-ratio: 8 / 5;
	object-fit: cover;
}

a {
	color: #000;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

div.article , article {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

div.article > img, article > img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	margin-bottom: 1em;
}

div.article__title {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	line-height: 1.2;
}

div.article__title > h2 {
	font-size: 2em;
}

div.article__content {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

footer {
	display: flex;
	flex-direction: column;
	gap: 1em;
	border-top: 1px solid #000;
	padding-top: 1em;
}

footer a {
	text-decoration: wavy underline;
}

footer a:hover {
	text-decoration: wavy underline;
	color: rgb(0, 84, 139);
}

.article-list {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

div.article-list__item {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 1em;
}

div.article-list__item > img {
	width: 100%;
	aspect-ratio: 8 / 5;
	object-fit: cover;
}

div.article-list__content {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	text-align: justify;
}

div.article-list__content > h3 {
	line-height: 1.2;
}

div.article-list__content > p {
	margin-top: auto;
}

div.about {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

@media (max-width: 900px) {
	.header > h1 {
		font-size: 1.5em;
	}

	div.hero-article {
		flex-direction: column;
	}

	div.hero-article__content {
		padding: 0em 0em 0em 0em;
	}

	div.hero-article > img {
		width: 100%;
	}

	div.article-grid {
		grid-template-columns: 1fr 1fr;
	}

	div.article-grid__item > img {
		width: 100%;
	}

	div.article-list {
		gap: 2em;
	}

	div.article-list__item {
		grid-template-columns: 1fr;
	}

	.ad-container {
		display: none;
	}
}

div.new {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

div.new > form {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

div.new > form input {
	font-family: "Fira Mono", monospace;
	padding: 0.5em;

	border-width: 1px;
	border-style: solid;
	border-color: #000;
	background-color: #fff;
}

div.new > form select {
	font-family: "Fira Mono", monospace;
	padding: 0.5em;

	border-width: 1px;
	border-style: solid;
	border-color: #000;
	background-color: #fff;
}

div.new > form textarea {
	font-family: "Fira Mono", monospace;
	padding: 0.5em;
	font-size: 0.7em;
	resize: vertical;

	border-width: 1px;
	border-style: solid;
	border-color: #000;
	background-color: #fff;
}

div.new > form > .submits {
	width: 100%;
	display: flex;
	flex-direction: row;
	gap: 1em;
}

div.new > form > .submits > input {
	width: 100%;
}

div.new > form > .submits > button {
	font-family: "Fira Mono", monospace;
	padding: 0.5em 1em;

	border-width: 1px;
	border-style: solid;
	border-color: #000;
	background-color: #fff;
}

div.new > form > .submits > button:hover {
	background-color: #000;
	color: #fff;
	cursor: pointer;
}

.pagination {
	display: flex;
	flex-direction: row;
	gap: 1em;
}

.pagination > a {
	font-family: "Fira Mono", monospace;
	padding: 0.5em 1em;

	border-width: 1px;
	border-style: solid;
	border-color: #000;
}

.pagination > a:hover {
	background-color: #000;
	color: #fff;
	cursor: pointer;
	text-decoration: none;
}

.pagination > .active {
	font-family: "Fira Mono", monospace;
	padding: 0.5em 1em;

	border-width: 1px;
	border-style: solid;
	border-color: #000;
	background-color: #000;
	color: #fff;
}
