html {
	--black: #222222;
	--white: #FFFBFF;
	--yellow: #FFBE02;
	--green: #27A662;
	--grey: #F2F2F2;
	
	--box-background-colour: #FFFBFF;
	--box-shadow-colour: #22222233;

	/* font size of the first, big, serif "T" in the text logo, to be used when the width of the screen matters */
	--base-width: min(12rem, 17vw);
	/* font size of normal text */
	--base-font-size: 1.2rem;
	/* thickness of the border between page sections */
	--border-thickness: 0.15rem;

	/* minimum distance between the left edge of the screen to text */
	--base-horizontal-padding: calc(var(--base-width) * 0.5);

	height: 100%;
}

body {
	/* use min-height instead of height so that navbar is still sticky */
	min-height: 100%;
	/* to make sure the footer is still at the bottom of the page if the page does not contain enough content */
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin: 0;

	background-color: var(--white);
	
	color: var(--black);
	font-size: var(--base-font-size);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

main {
	flex-grow: 1;

	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
section {
	flex-grow: 1;
}

h1 {
	font-size: min(16vw, 4.2em);
	font-weight: 400;
	text-transform: capitalize;
}
h2 {
	font-weight: 600;
	font-size: clamp(1em, 2.6em, 12vw);
}
h2:first-child {
	/* remove the awkward space at the start of each <section> */
	margin-top: 0;
}
h3 {
	font-weight: 600;
	font-size: clamp(1em, 1.6em, 8vw);
}
h4 {
	font-weight: 700;
	font-size: var(--base-font-size);
}

p {
	line-height: 1.4;
	width: 100%;
}
.note {
	font-size: 0.8em;
	font-style: italic;
}

a {
	color: var(--green);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0% 100%;
	background-repeat: no-repeat;
	background-size: 100% 0.1em;

	transition-duration: 0.3s;
}
a:hover {
	filter: brightness(130%);
	background-size: 0 0.1em;
}
a.footnote, a.reversefootnote {
	background-image: none;
}

blockquote {
	border-left: 0.2em solid var(--grey);
	padding-left: 1em;

	font-style: italic;
}

ol.special-list {
	list-style: none;
	counter-reset: counter;
}
ol.special-list > li {
	counter-increment: counter;
}
ol.special-list > li > p {
	display: inline-block;
}
ol.special-list > li::before {
	content: counter(counter) ") ";
}
ol.special-list > li:not(:first-child) {
	margin-top: 1em;
}

/* targets <li>s that contain a <h3> (because the parent <ol.special-list> would be a subsequent sibling of a <h2>) */

h2 ~ ol.special-list > li::before {
	font-weight: 400;
	font-size: clamp(1em, 1.6em, 8vw);
}
/* reset values because the ~ selector selects subsequent siblings separated by elements */
h3 ~ ol.special-list > li::before {
	font-size: inherit;
}

@media (width <= 900px) {
	h2 ~ ol.special-list {
		padding-left: 0;
	}
	h3 ~ ol.special-list {
		padding-left: 1em;
	}
}

h2 ~ ol.special-list > li > h3 {
	display: inline-block;
}
h2 ~ ol.special-list > li > h3:first-child {
	margin-top: 0;
}
h2 ~ ol.special-list > li > h3 ~ p:first-of-type {
	margin-top: 0;
}

ol.special-list ul {
	line-height: 1.4;
}
ol.special-list > li > ul:not(.box-list) > li:first-child {
	margin-top: 0.5em;
}

section {
	padding: calc(var(--base-font-size) * 2.5) var(--base-horizontal-padding);
	border-bottom: var(--border-thickness) solid var(--yellow);
}
section.background-gradient {
	background: linear-gradient(135deg,rgba(255, 190, 2, 0.35) 0%, rgba(255, 251, 255, 1) 40%, rgba(255, 251, 255, 1) 60%, rgba(39, 166, 98, 0.35) 100%);
}
section > .text-container {
	/* maximum of 80 characters per line, based on https://www.w3.org/WAI/tutorials/page-structure/styling/#line-length */
	max-width: 80ch;
}

#motto, #summary {
	display: block;
	margin-bottom: calc(var(--base-font-size) * 2)
}
#motto {
	font-weight: 500;
	font-size: calc(var(--base-font-size) * 2);
}
#summary {
	font-size: var(--base-font-size);
}


ul.box-list {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--base-font-size);
	margin: calc(var(--base-font-size) * 2) 0;

	padding-left: 0;
	list-style-type: none;
}
ul.box-list > li {
	display: block;
	padding: calc(var(--base-font-size) * 2);
	background-color: var(--box-background-colour);
	box-shadow: var(--box-shadow-colour) 0 0.4rem 1.6rem 0;

	transition-duration: 0.3s;
}
ul.box-list > li:hover {
	transform: scale(1.05);
}
ul.box-list h3, ul.box-list h4 {
	margin-top: 0;
}
ul.box-list p {
	margin: 0;
}
ul.box-list.horizontal {
	flex-direction: row;
}
ul.box-list.horizontal > li {
	flex-grow: 1;
}

ul#core-philosophy-list > li > h3::before {
	margin-right: calc(var(--base-font-size) * 0.5);
}
ul#core-philosophy-list > li#accessibility > h3::before {
	content: url("../assets/icons/accessibility_new_24dp_000000_FILL0_wght400_GRAD0_opsz24.svg")
}
ul#core-philosophy-list > li#impact > h3::before {
	content: url("../assets/icons/explosion_24dp_000000_FILL0_wght400_GRAD0_opsz24.svg")
}
ul#core-philosophy-list > li#creativity > h3::before {
	content: url("../assets/icons/lightbulb_2_24dp_000000_FILL0_wght400_GRAD0_opsz24.svg")
}