/* ==========================================================================
   1. BASE STYLES & RESET (Applies to all devices / Mobile baseline)
   ========================================================================== */
* {
	margin: 0;
	padding: 0;
	box-box-sizing: border-box;
}

body {
	font-family: "Open Sans", sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #fff;
	font-size: 1.1em;
}

.container {
	width: 80%;
	padding: 0;
	margin: 0 auto;
}

/* Mobile-first layout: Everything stacks vertically */
.grid-layout {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.site-header {
	background-color: #fff;
	color: #995454;
	padding: 20px 0;
	/*border-bottom-color: #DEDEDE;
	border-bottom-width: 2px;*/
	border-bottom: 2px solid #DEDEDE;
}

.site-nav ul {
	list-style: none;
	margin-top: 10px;
}

.site-nav a {
	color: #fff;
	text-decoration: none;
	display: block;
	padding: 8px 0;
}

.primary-content {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
}

.sidebar {
	background: #F8EBE6;
	padding: 20px;
	border-radius: 8px;
	font-size: 0.9em;
}

.site-footer {
	background: #995454;
	color: #fff;
	text-align: center;
	padding: 20px 0;
	margin-top: 40px;
	font-size: 0.8em;
}
a {
	color: #995454;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab',serif;
  font-weight: 600;
  color: #995454;
  line-height: 1.2;
  padding-bottom: .5em; 
}
  
.header-bottom-edge {
	height: 30px;
	background: #F8EBE6;
}
  
.header-bottom-edge-shape {
	fill: #F8EBE6;
	display: flex;
}

/* ==========================================================================
   2. BREAKPOINTS (Progressive Enhancement)
   ========================================================================== */

/* --- Small Devices / Landscape Phones (576px and up) --- */
@media (min-width: 576px) {
	body {
		font-size: 1.2em;
	}
	.container {
		width: 90%;
		max-width: 540px;
	}
}

/* --- Medium Devices / Tablets (768px and up) --- */
@media (min-width: 768px) {
	body {
		font-size: 1.3em;
	}
	.container {
		width: 80%;
		max-width: 720px;
	}
	
	/* Navigation changes to a horizontal row on tablets */
	.site-header .container {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.site-nav ul {
		display: flex;
		gap: 20px;
		margin-top: 0;
	}
}

/* --- Large Devices / Laptops & Desktops (992px and up) --- */
@media (min-width: 992px) {
	.container {
		width: 80%;
		max-width: 1080px;
	}

	/* Change content stacking to a multi-column side-by-side grid */
	.grid-layout {
		flex-direction: row;
	}

	.primary-content {
		flex: 3; /* Takes up 75% of space */
	}

	.sidebar {
		flex: 1; /* Takes up 25% of space */
		margin-top: 2em;
	}
}

/* --- Extra Large Devices / Large Screens (1200px and up) --- */
@media (min-width: 1200px) {
	.container {
		width: 80%;
		max-width: 1140px;
	}
}
