@import "./assets/fonts.css";

* {
	box-sizing: border-box;
}

:root {
	--highlight: hsl(30, 100%, 50%);
	--contrast-1: hsl(20, 95%, 38%);
	--contrast-2: hsl(350, 95%, 38%);
	--background: hsl(20, 100%, 80%);
    interpolate-size: allow-keywords;
}

html {
    width: 100%;
	min-height: 100dvh;
	scrollbar-gutter: stable both-edges;
}
body {
	margin: 0;
	font-family: "Lato", sans-serif;
}
p, li {
	line-height: 1.5em;
}

a {
	color: var(--contrast-1);
	text-decoration: inherit;

	&:visited {
		color: var(--contrast-2);
	}
}

button {
	margin: 0;
	background: none;
	border: none;
}
button, a:is(.button-text, .button-icon) {
	display: block;
	color: inherit;
	:is(img, svg) {
		display: block;
	}
}
.button-icon {
	padding: 8px;
}
.button-text {
	padding: 8px 12px;
}
.icon {
	width: 32px;
	height: 32px;
}

.top-header {
	position: fixed;
	z-index: 10;
	height: 50px;
	min-height: 50px;
	width: 100%;
	overflow: hidden;
	border-bottom: 2px solid var(--highlight);
	transition: height 200ms ease;
	background: #FFF;
}
.top-header.show {
	height: auto;
}

.header-mobile {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.header-links {
	max-width: 240px;
	margin: auto;
}

.title {
	display: grid;
	place-items: center;
	height: 48px;
	margin: 0 8px;

	a {
		color: inherit;
	}
}

.media-list {
	display: flex;
	justify-content: space-evenly;
}

.bottom-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 16px;
}

.main-content {
	max-width: min(1140px, calc(100% - 16px));
	min-height: calc(100dvh - 134px);
	padding-top: 50px;
	margin: 0 auto;
	
}

@media screen and (min-width: 641px) {
	.top-header {
		height: auto;
	}
	#header-toggler {
		display: none;
	}
	.header-mobile {
		position: absolute;
		top: 0;
		left: 50%;
		translate: -50% 0;
		width: fit-content;
		justify-content: center;
	}
	.header-links {
		display: flex;
		flex-direction: column;
		max-width: none;
	}
	.header-links .ribbon {
		order: -1;
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		max-width: 1140px;
		margin: auto;
	}
	.header-links .ribbon .media-list {
		order: -1;
	}
	.header-links .navbar {
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.bottom-footer {
		flex-direction: row;
		justify-content: space-evenly;
		height: 80px;
	}
	.main-content {
		padding-top: 84px;
		min-height: calc(100dvh - 80px);
	}
}
