:root {
	--ink-blue: #1a237e;
	--paper: #f5f2e8;
	--aged-paper: #e8e4d9;
	--accent-red: #8b0000;
	--gold: #b8860b;
	--shadow: rgba(0, 0, 0, 0.2);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
	background-color: var(--paper);
	color: #333;
	line-height: 1.6;
	background-image: url('/cdn/ubg.gif');
	padding: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

a:hover {
	color: var(--accent-red) !important;
	text-decoration: underline !important;
}

.justify {
	text-align: justify;
}

.content-header {
	text-align: center;
	margin-bottom: 40px;
	padding: 30px;
	background-color: white;
	box-shadow: 0 4px 6px var(--shadow);
	position: relative;
	overflow: hidden;
}

.content-header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(to right, var(--gold), var(--accent-red));
}

.content-header h1 {
	font-size: 1.33em !important;
	color: var(--accent-red);
	margin-bottom: 15px;
}

.content-header p {
	font-size: 1em;
	max-width: 800px;
	margin: 0 auto;
	text-align: justify;
}

.content-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 25px;
	margin-bottom: 40px;
}

.content-section {
	background: white;
	padding: 25px;
	box-shadow: 0 3px 10px var(--shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border-top: 4px solid var(--accent-red);
	position: relative;
}

.content-section:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 15px var(--shadow);
}

.content-section a {
	color: var(--ink-blue);
	text-decoration: none;
	transition: color 0.2s;
}

.main-nav {
	background: white;
	padding: 15px;
	box-shadow: 0 4px 6px var(--shadow);
	margin-top: 40px;
}

.nav-links {
	list-style: none;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 20px;
}

.nav-links li {
	margin: 0;
}

.nav-links a {
	color: var(--ink-blue);
	text-decoration: none;
	display: flex;
	align-items: center;
	padding: 10px 15px;
	transition: all 0.3s ease;
	border-left: 3px solid transparent;
}

.nav-links a:hover {
	background: rgba(255, 255, 255, 0.1);
	border-left: 3px solid var(--gold);
}

.content-section {
	animation: fadeIn 0.5s ease-out;
}

.work .main-content {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
}

.work-content {
	background: white;
	padding: 40px;
	box-shadow: 0 4px 6px var(--shadow);
	margin-bottom: 30px;
	position: relative;
	overflow: hidden;
}

.work-content::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(to right, var(--gold), var(--accent-red));
}

.work-header {
	text-align: center;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid #ddd;
}

.work-header h1 {
	color: var(--accent-red);
	font-size: 1.8em;
	margin: 0;
	font-weight: normal;
}

.work-header h2 {
	margin-bottom: 15px;
	padding-bottom: 10px;
	font-size: 1em;
	font-style: italic;
	text-align: center;
}

.poem-text {
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
	font-size: 1.1em;
	line-height: 1.8;
	text-align: left;
	margin: 30px 0;
}

.poem-text p {
	margin: 20px 0;
	color: #333;
}

.work-footer {
	margin-top: 40px;
	text-align: center;
}

.work-footer hr {
	border: none;
	height: 1px;
	background: linear-gradient(to right, transparent, var(--gold), transparent);
	margin: 30px 0 20px 0;
}

.work-date {
	color: var(--ink-blue);
	font-style: italic;
}

.work-date small {
	font-size: 1em;
}

.work .main-nav {
	background: white;
	padding: 15px;
	box-shadow: 0 4px 6px var(--shadow);
}

.work-content {
	animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	body {
		padding: 10px;
	}

	.content-header h1 {
		font-size: 1.2em;
	}

	.content-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.content-section {
		padding: 20px;
	}

	.nav-links {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}

	.nav-links a {
		justify-content: center;
		border-left: none;
		border-bottom: 3px solid transparent;
	}

	.nav-links a:hover {
		border-left: none;
		border-bottom: 3px solid var(--gold);
	}
	
	.work .main-content {
		padding: 10px;
	}
	
	.work-content {
		padding: 25px 20px;
	}
	
	.work-header h1 {
		font-size: 1.5em;
	}
	
	.poem-text {
		font-size: 1em;
		line-height: 1.6;
		text-align: center;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}