@import url(__reset.css);

:root {
	--clr-primary: #fff;
	--clr-secondary: #1d1d1d;
	--fs: 1.125em;
	--lh: 1.32;
	/* utilities */
	--cell-padding: 0.85em 1em;
	--cell-padding-x: 1em;
	--cell-padding-y: 0.85em;
	--cell-border: 0.125em solid var(--clr-secondary);

	--ff-primary: "adaptive-mono", monospace;
	--ff-secondary: "prohibition", sans-serif;

	@media (prefers-color-scheme: dark) {
		--clr-primary: #1d1d1d;
		--clr-secondary: #fff;
	}

	@media (min-width: min(64em, 1024px)) {
		--cell-padding-x: 2em;
		--cell-padding-y: 2em;
	}
}

html {
	display: flex;
	height: 100lvh;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

body {
	display: flex;
	margin: auto auto;
	width: min(100%, 1512px);
	height: min(100lvh, 982px);
	color: var(--clr-secondary);
	font-family: "adaptive-mono", monospace;
	font-size: var(--fs);
	font-weight: 400;
	font-style: normal;
	line-height: var(--lh);
	background-color: var(--clr-primary);
	flex-direction: column;
	@media (min-width: min(64em, 1024px)) {
		display: grid;
		grid-template-columns: auto 1fr;
		grid-template-rows: 1fr auto;
	}

	@media (min-width: min(100em, 1600px)) {
		border: var(--cell-border);
	}
}

#logo {
	width: 4rem;
	& path {
		fill: var(--clr-secondary);
	}
}

header {
	display: flex;
	border-bottom: var(--cell-border);
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
	flex-direction: column;

	@media (min-width: min(25em, 400px)) {
		flex-direction: row;
	}

	@media (min-width: min(64em, 1024px)) {
		position: relative;
		border-right: var(--cell-border);
		border-bottom: 0;
		flex-direction: column;
		grid-row: 1 / span 2;
	}

	& a {
		display: inline-flex;
		font-size: min(1.5em, 24px);
		gap: 0.5em;
	}

	& svg {
		& path {
			fill: var(--clr-secondary);
		}
	}
}

nav {
	@media (min-width: min(64em, 1024px)) {
		position: relative;
		width: 100%;
		height: 100%;
	}

	& a {
		display: flex;

		@media (min-width: min(64em, 1024px)) {
			position: absolute;
			top: 50%;
			left: 50%;
			transform: rotate(90deg) translate(-50%, -50%);
			transform-origin: left top;
		}
	}

	& svg {
		width: 2rem;
		height: 2rem;
	}
}

.cell {
	padding: var(--cell-padding-y) var(--cell-padding-x);
}

main {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 30rem;
	border-bottom: var(--cell-border);

	&:after {
		position: absolute;
		width: calc(100% - calc(var(--cell-padding-x) * 2));
		height: calc(100% - calc(var(--cell-padding-y) * 2));
		background: no-repeat center top / cover;
		background-image: url(../img/background__xl__c.jpg);
		transform: translate(-50%, -50%);
		content: "";
		inset: 50% 0 0 50%;
	}
}

footer {
	text-align: center;
	grid-row: 2 / span 1;
	grid-column: 2 / span 1;
	@media (min-width: min(48em, 1024px)) {
		display: grid;
		text-align: left;
		align-items: center;
		grid-template-columns: 1fr 1fr;
	}
}

h1 {
	font-family: var(--ff-secondary);
	font-size: 3.5em;
	font-weight: 400;
	line-height: 1.02;
	text-align: center;
}

#headwrap {
	border-bottom: var(--cell-border);
	padding-block: 0.85em 1.25em;

	@media (min-width: min(48em, 1024px)) {
		border-right: var(--cell-border);
		border-bottom: 0;
		padding-block: 2em;
	}
}
