/* COLOR VARIABLES */
:root {
	/* Primary colors */
	--color-background: #ffffff;
	--color-text: #1a1a1a;

	/* Accent colors */
	--color-accent-primary: #8c1515; /* A rich burgundy red */
	--color-accent-secondary: #2f4858; /* A deep blue-gray */

	/* Subtle colors */
	--color-gray-light: #f5f5f5;
	--color-gray-medium: #e0e0e0;
	--color-gray-dark: #696969;

	/* Font families */
	--font-primary: "Georgia", serif;
	--font-secondary: "Helvetica", sans-serif;
}

/* RESET & BASE STYLES */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 100%; /* 16px by default */
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	font-weight: 400;
	line-height: 1.75;
	color: var(--color-text);
	background-color: var(--color-background);
	max-width: 38rem;
	margin: 0 auto;
	padding: 2rem 1.5rem;
}

/* TYPOGRAPHY RAMP */
h1,
h2,
h3,
h4,
h5 {
	font-family: var(--font-primary);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
}

h1 {
	font-size: 2.5rem; /* 40px */
	margin-top: 0;
	letter-spacing: -0.025em;
}

h2 {
	font-size: 2rem; /* 32px */
	letter-spacing: -0.0125em;
}

h3 {
	font-size: 1.75rem; /* 28px */
}

h4 {
	font-size: 1.5rem; /* 24px */
}

h5 {
	font-size: 1.25rem; /* 20px */
	font-weight: 500;
}

p {
	font-size: 1.125rem; /* 18px */
	margin-bottom: 1rem;
}

small,
.text-small {
	font-size: 0.875rem; /* 14px */
	letter-spacing: 0.01em;
}

/* LINKS */
a {
	color: var(--color-accent-primary);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-bottom 0.2s ease;
}

a:hover,
a:focus {
	border-bottom: 1px solid var(--color-accent-primary);
}

/* NAVIGATION */
nav {
	margin-bottom: 3rem;
	font-family: var(--font-secondary);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

nav ul {
	list-style: none;
	display: flex;
	gap: 1.5rem;
}

nav a {
	color: var(--color-text);
	font-weight: 500;
}

nav a:hover,
nav a:focus,
nav a.active {
	color: var(--color-accent-primary);
	border-bottom: none;
}

/* UTILITY CLASSES */
.text-center {
	text-align: center;
}

.highlight {
	color: var(--color-accent-primary);
}

.subtle {
	color: var(--color-gray-dark);
}

.bg-subtle {
	background-color: var(--color-gray-light);
	padding: 1.5rem;
}

button {
	display: block;
	font-family: var(--font-secondary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.875rem;
	padding: 0.5rem 1rem;
	background-color: var(--color-accent-secondary);
	color: white;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

button.primary {
	background-color: var(--color-accent-primary);
}

button:hover {
	background-color: var(--color-accent-secondary);
}

button.ghost {
	background: none;
	padding: 0;
	color: var(--font-primary);
}

button:disabled {
	opacity: 0.5;
	cursor: auto;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
	html {
		font-size: 95%; /* Slightly smaller on tablets */
	}

	body {
		padding: 1.5rem 1rem;
	}

	.container {
		margin: 2rem auto;
		padding: 0 0.5rem;
	}
}

@media (max-width: 480px) {
	html {
		font-size: 90%; /* Even smaller on phones */
	}

	body {
		padding: 1rem 0.75rem;
	}

	h1 {
		font-size: 2rem;
	}

	.title {
		font-size: 1.75rem;
	}

	nav ul {
		flex-direction: column;
		gap: 0.75rem;
	}
}

/* PRINT STYLES */
@media print {
	body {
		font-size: 12pt;
		line-height: 1.5;
		color: black;
		background: white;
	}

	.container {
		margin: 1in auto;
		max-width: 6in;
	}

	a {
		color: black;
		text-decoration: none;
	}

	nav {
		display: none;
	}
}
