
/* Colour Variables */
:root {
	--bkg-docs:           hsl(40 38% 89%);
	--bkg-footer:         hsl(30 20% 29%);
	--bkg-header:         hsl(132 11% 55%);
	--bkg-intro:          hsl(54 100% 98%);
	
	--text-headers-l:     hsl(40 40% 55%);
	--text-headers-d:     hsl(40 35% 45%);
	
	--text-body:          hsl(0 0% 0%);
	--text-footer:        hsl(0 0% 100%);
	
	--link-body:          hsl(0 0% 10%);
	--link-body-h:        hsl(40 40% 35%);
	--button-body:        hsl(132 11% 55%);
	--button-body-h:      hsl(30 20% 29%);
	--button-body-text:   hsl(0 0% 100%);
	--button-body-text-h: hsl(40 55% 80%);
}



/* Base Wrapper, Grid & Utility Classes */
.container {
	max-width: 48rem;
	margin: 0 auto;
	padding: 1.5rem 1.5rem 2.5rem 1.5rem;
}

.row {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	@media (width >= 640px) { flex-direction: row; }
}

.col  { flex-basis: 33.33%; }

.desktop-only {
	display: none;
	@media (width >= 640px) { display: block; }
}



/* Base Typography */
p, a {
	font-family: "Source Sans 3", sans-serif;
	font-optical-sizing: auto;
	font-style: normal;
	line-height: 1.6;
}

h1, h2 {
	font-family: "Playfair Display", serif;
	font-optical-sizing: auto;
	font-weight: 600;
	font-style: normal;
	text-align: center;
}

h1 {
	color: var(--text-headers-d);
	font-size: 2rem;
	line-height: 1.2;
	margin-bottom: 1.5rem;

	@media (width >= 640px) {
		font-size: 3.125rem;
		margin-bottom: 2.25rem;
	}
}

h2 {
	color: var(--text-headers-d);
	font-size: 1.25rem;
	line-height: 1.2;
	margin-bottom: 2rem;
	
	@media (width >= 640px) {
		font-size: 1.5rem;
		margin-bottom: 3rem;
	}
}



/* Header Styles */
header {
	padding: 0.5rem;
	background-color: var(--bkg-docs);

	.logotyp {
		margin: 0 auto;
		width: 4.5rem;
		height: auto;
	}
}



/* Intro Section Styles */
.intro {
	display: flex;
	background-color: var(--bkg-intro);

	.intro__text {
		column-count: 1;
		@media (width >= 640px) {
			column-count: 2;
			column-gap: 2.5rem;
		}
	}
}

.intro p {
	font-weight: 320;
	font-size: 0.938rem;
	text-align: justify;
	hyphens: auto;

	color: var(--text-body);
	margin-bottom: 0.5rem;
}

.intro img {
	margin: 0 auto 2.5rem auto;
}


/* Docs Section Styles */
.docs {
	background-color: var(--bkg-docs);
	text-align: center;
		@media (width >= 640px) { text-align: left }
}

.docs p {
	text-align: justify;
	font-weight: 450;
	margin-bottom: 2rem;
}

.link {
	font-weight: 450;
	line-height: 1.2;
	color: var(--text-body);
	text-decoration: none;
	transition: color 0.25s ease-in;

	&:is(:hover, :active, :focus-visible) {
		color: hsl(40 40% 35%)
	}
}

.button {
	font-family: "Playfair Display", serif;
	font-weight: 500;

	display: inline-block;
	text-decoration: none;
	padding: 0.75rem 2rem;
	margin-bottom: 0.5rem;
	color: var(--button-body-text);
	background-color: var(--button-body);

	transition: background-color 0.25s ease-in, color 0.25s ease-in;
	
	&:is(:hover, :active, :focus-visible) {
		color: var(--button-body-text-h);
		background-color: var(--button-body-h);
	}
}

ul {
	list-style: none;
	margin: 0 0 2rem 0;
	padding: 0;

	li { margin-bottom: 0.5rem; }
}



/* Footer Section Styles */
footer {
	padding-bottom: 3rem;
	background-color: var(--bkg-footer);

	h2 { color: var(--text-footer) }

	p {
		text-align: center;
		font-weight: 320;
		color: var(--text-footer);
		margin-bottom: 1rem;

		@media (width >= 640px) { text-align: left; }

		&.footer__title {
			font-weight: 500;
			margin-bottom: 1rem;
		}
	}

	.link--footer {
		font-weight: 450;
		line-height: 1.2;
		color: var(--text-footer);
		text-decoration: none;
		transition: color 0.25s ease-in;
		
		&:is(:hover, :active, :focus-visible) {
			color: hsl(from var(--text-footer) h s l / 0.5)
		}
	}
}