@import "reset.css";

@font-face {
	font-family: 'Comfort Brush';
	src: url('../fonts/Comforter_Brush/ComforterBrush-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

html {
	--color-logo-bg: #FFFFFF;
	--color-logo-skin: #FFF6F0;
	--color-logo-parchment: #EDE2D9;
	--color-logo-parchment-dark: #FFE2D4;
	--color-logo-gold: #F7C938;
	--color-logo-ginger-light: #CA7E45;
	--color-logo-ginger-dark: #AB560A;
	--color-logo-leather: #5E2A00;
	--color-logo-jacket: #266675;
	--color-logo-hair: #65BAAB;
	--color-logo-beard-light: #585858;
	--color-logo-beard-dark: #474747;
	
	font-size: 16px;
	
	--heading-h1-size: 1.625rem;
	--heading-h1-line: 1.5;
	--heading-h2-size: 1.4875rem;
	--heading-h2-line: 1.375;
	--heading-h3-size: 1.375rem;
	--heading-h3-line: 1.250;
	--heading-h4-size: 1.250rem;
	--heading-h4-line: 1.250;
	--heading-h5-size: 1.125rem;
	--heading-h5-line: 1.125;
	--heading-h6-size: 1rem;
	--heading-h6-line: 1.125;
	
	--font-weight-black: 900;
	--font-weight-bold: 700;
	--font-weight-semi-bold: 500;
	--font-weight-regular: 400;
	--font-weight-light: 300;
}

body {
	width: 100%;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	background-color: var(--color-logo-bg);
}

img {
	max-width: 100%;
	height: auto;
}

main {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
}

h1, .h1 {
	font-size: var(--heading-h1-size);
	line-height: var(--heading-h1-line);
	font-weight: var(--font-weight-black);
}

h2, .h2 {
	font-size: var(--heading-h2-size);
	line-height: var(--heading-h2-line);
	font-weight: var(--font-weight-bold);
}

h3, .h3 {
	font-size: var(--heading-h3-size);
	line-height: var(--heading-h3-line);
	font-weight: var(--font-weight-bold);
}

h4, .h4 {
	font-size: var(--heading-h4-size);
	line-height: var(--heading-h4-line);
	font-weight: var(--font-weight-semi-bold);
}

h5, .h5 {
	font-size: var(--heading-h5-size);
	line-height: var(--heading-h5-line);
	font-weight: var(--font-weight-semi-bold);
}

h6, .h6 {
	font-size: var(--heading-h6-size);
	line-height: var(--heading-h6-line);
	font-weight: var(--font-weight-semi-bold);
}

a {
	font-size: var(--heading-h6-size);
	line-height: var(--heading-h6-line);
	font-weight: var(--font-weight-regular);
	color: var(--color-logo-jacket);
	text-decoration: none;
	
	&:hover {
		text-decoration: underline;
		color: var(--color-logo-hair);
	}
}

p {
	font-size: var(--heading-h6-size);
	line-height: var(--heading-h6-line);
	font-weight: var(--font-weight-regular);
	margin: 0;
	padding: 0;
}

ul, ol {
	padding: 0;
	margin: 0;
}

ol {
	list-style: none;
	counter-reset: number;
	& > li {
		position: relative;
		margin-inline-start: calc(3rem);
		margin-block-end: 0.5rem;
		&:before {
			counter-increment: number;
			content: counters(number, ".") ". ";
			position: absolute;
			inset-inline-end: calc(100% + 0.5rem);
			inset-block-start: 0;
		}
		& > p {
			display: inline-block;
			margin-block-end: 0.5rem;
		}
	}
}

ul {
	list-style: disc;
	& > li {
		margin-inline-start: 1.5rem;
		margin-block-end: 0.5rem;
	}
}

ol > li > ol,
ul > li > ul,
ol > li > ul,
ul > li > ol {
	margin-inline-start: 1rem;
}

/* LANG MENU */

a:has(.header-lang) {
	padding: 0;
	margin: 0;
	display: inline-block;
	height: 1.5rem;
}

.header-lang {
	height: 1.5rem;
	width: auto;
	&.inactive {
		opacity: 0.5;
		filter: grayscale(100%);
	}
}

/* PAGES */
.home-page {
	article {
		flex-grow: 1;
		max-width: 600px;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		gap: 1rem;
	}
	
	section {
		text-align: center;
		padding-inline: 1rem;
	}
	
	.family-comforter-brush {
		font-family: 'Comfort Brush', cursive;
	}
	
	.teaser {
		font-size: 2rem;
		line-height: 1.5;
	}
}

.tos,
.rules {
	padding-inline: 1rem;
}

/* HEADER */
header {
	flex-shrink: 0;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: nowrap;
	padding: 1rem;
}

.header-left {
	flex-grow: 1;
	flex-shrink: 0;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 0.5rem;
}

.header-right {
	flex-grow: 1;
	flex-shrink: 0;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.5rem;
}

/* FOOTER */

footer {
	flex-shrink: 0;
	width: 100%;
	
	section {
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		flex-wrap: nowrap;
		padding: 1rem;
	}
	
	.footer-left {
		flex-grow: 1;
		flex-shrink: 0;
	}
	
	.footer-right {
		flex-grow: 1;
		flex-shrink: 0;
	}
	
	p {
		font-size: 0.8rem;
		text-align: center;
	}
}

