html {
	font-family: "PT Sans", Verdana, Helvetica, Arial, sans-serif;
	font-size: 16px;
	
	/* Base typography and backgrounds */
	--main-color: #5d4037; /* warm brown text (p, ul, ol) */
	--main-background-color: #fff8e1; /* light eggy yellow background */
	
	/* Headings and accents */
	--heading-color: #d84315; /* bold red/orange for headings */
	--link-color: #bf360c; /* chicken-red for links */
	--link-hover-color: #e64a19;
	
	/* Header styling */
	--header-background-color: #fff;
	--header-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
	
	/* Front page H1 */
	--front-h1-color: #F89432; /* warm sunrise orange */
	
	--overlay-color: #fff;        /* light elements background */
	--underlay-color: #ddd;        /* borders, shadows, etc. */
}

@media (prefers-color-scheme: dark) {
	html {
		/* Dark mode background and text */
		--main-background-color: #222;  /* dark background */
		--main-color: #ddd;             /* light text */
		
		/* Adjust headings and links for contrast */
		--heading-color: #ff8a65;       /* lighter, warm coral */
		--link-color: #ffab91;
		--link-hover-color: #ff7043;
		
		/* Header styling */
		--header-background-color: #333;
		--header-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
		
		/* Front page H1 */
		--front-h1-color: #ffa726;
		
		/* For dark mode, use darker overlays and lighter underlays */
		--overlay-color: #333;
		--underlay-color: #444;
		
		/* Ensure the document background is dark */
		background-color: var(--main-background-color);
	}
}

pre {
	tab-size: 2;
}

@media (min-width: 40em) {
	html {
		font-size: 18px;
	}
	
	pre {
		tab-size: 4;
	}
}

@media (min-width: 80em) {
	html {
		font-size: 20px;
	}
	
	pre {
		tab-size: 4;
	}
}

body {
	padding: 0;
	margin: 0;
	background-color: var(--main-background-color);
}

body > header {
	margin: 1rem 0;
	background-color: var(--header-background-color);
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
	padding: 0.2rem;
}

body > header img {
	display: block;
	margin: auto;
	height: 6rem;
}

p, ul, ol {
	color: var(--main-color);
}

/* Update headings to a bold red/orange reminiscent of a chicken's comb */
h1, h2, h3, h4, h5, h6 {
	margin: 2rem 1rem 1rem 1rem;
	color: var(--heading-color);
}

h1 {
	margin-bottom: 4rem;
}

h2 {
	margin-top: 6rem;
}

img {
	border: none;
}

/* Update links to a complementary chicken-red */
a {
	color: var(--link-color);
}

a:hover {
	color: var(--link-hover-color);
}

p, ul, ol, dl, h3 {
	margin: 2rem;
}

li {
	margin: 0.2rem;
}

li > ul, li > ol {
	margin: 0;
}

pre {
	overflow: auto;
	padding: 1rem 2rem;
	font-size: 0.8rem;
}

h3 {
	border-bottom: 1px solid #ccf;
}

ul {
	margin-bottom: 1rem;
}

h2, h3, h4, h5, h6 {
	font-weight: normal;
}

/* Front page h1 updated to use a bright, chicken-inspired color */
body.front h1 {
	font-weight: normal;
	font-size: 300%;
	color: var(--front-h1-color);
	text-align: center;
}

footer {
	text-align: center;
	margin: 1rem 0;
	font-size: 0.65rem;
	color: #aaa;
	padding: 0.2rem;
}

footer span {
	display: inline-block;
	vertical-align: top;
}

nav {
	position: absolute;
	margin: 2.5rem;
	font-size: 0.8rem;
	color: #aaa;
}

form fieldset {
	border: 0;
}

form fieldset textarea {
	box-sizing: border-box;
	width: 100%;
	height: 10rem;
}

form fieldset.footer {
	text-align: right;
}

/* Remove default list styling and center the items */
ul.cameras {
	list-style: none;
	padding: 0;
	margin: 1rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

/* Style each list item as a container */
ul.cameras li {
	margin: 0.5rem;
}

/* Style the link to fill the entire li */
ul.cameras li a {
	display: block;
	background-color: var(--overlay-color);
	border: 1px solid var(--underlay-color);
	border-radius: 0.5rem;
	padding: 0.5rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-decoration: none;
	text-align: center;
}

/* Hover effect for the link */
ul.cameras li a:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 8px var(--underlay-color);
}
