body {
	font-family: system-ui, sans-serif;
	margin: 0;
	line-height: 1.6;
	background: #f9fafb;
	color: #111;

	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

header {
	background: #1a365d;   /* deep navy blue */
	color: #f9fafb;
	padding: 1rem;

	display: flex;
	flex-direction: column;
	align-items: center;   /* center horizontally */
}

.logo-container {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap:wrap;
	line-height: 1;
}

.logo-container .title-text {
	display:flex;
	flex-direction:column;
}

.logo-container .subtitle {
	flex-basis:100%;
}

.logo {
	/* background-color: #fff; */
	height: 100px;   /* adjust size as needed */
	width: auto;
	/*   clip-path: inset(40px 0px 45px 0px); /* top, right, bottom, left */

}

header h1 {
	font-family: serif;
	margin: 0;
	margin-top: 1rem;
	font-size: 3rem;
	color: #f9fafb; /* still inherits header color */
}

nav {
	display: flex;
	gap: 1rem;
}


/* Hide checkbox */
.nav-toggle {
	display: none;
}

/* Button style */
.nav-toggle-label {
	display: none; /* hidden on desktop */
	background: #2c5282;
	color: #fff;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	cursor: pointer;
	margin-bottom: 0.5rem;
	font-weight: bold;
}

/* Nav styles */
nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 1rem;
}

nav a {
	color: #f9fafb;
	text-decoration: none;
	/* margin-right: 1rem; */
}
nav a:hover {
	text-decoration: underline;
}

h2, h3 {
	color: #1a365d;  /* trustworthy navy for main titles */
}

a {
	color: #2c5282;  /* lighter blue for links */
}

main {
	flex: 1;
	max-width: 800px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.project-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
}

.project {
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	padding: 1rem;
}

.project h2 {
	margin-top: 0;
	font-size: 1.2rem;
}

footer {
	background: #f1f1f1;
	color: #1a365d;   /* echo header for brand cohesion */
	padding: 1rem;
	border-top: 1px solid #ddd;
	text-align: center;
}

.post-nav {
	display: flex;
	justify-content: space-between;
	margin: 2rem 0;
	font-size: 0.95rem;
}

.post-nav a {
	color: #2c5282;
	text-decoration: none;
	font-weight: bold;
}

.post-nav a:hover {
	text-decoration: underline;
}




/* Responsive rules */

@media (max-width: 600px) {
	.logo-container {
		flex-direction: row;          /* back to horizontal */
		align-items: center;          /* still vertically centered */
		justify-content: center;      /* keep it centered if the container is narrow */
		text-align: center;             /* align text left for a more conventional header */
		gap: 0.75rem;
	}

	/* Show button */
	.nav-toggle-label {
		display: block;
	}

	nav ul {
		flex-direction: column;
		align-items: center;
		gap: 0.75rem;
		display: none; /* hidden by default */
	}

	/* Show menu when checked */
	.nav-toggle:checked + .nav-toggle-label + nav ul {
		display: flex;
	}

	.logo {
		height: 100px; /* smaller logo */
	}
	nav {
		flex-direction: column;
		align-items: center;
		gap: 0.5rem;
	}
	nav a {
		display: block;
		padding: 0.25rem 0;
	}
}


