/*
 * Solarized Light Theme for Hugo
 * A responsive theme using the Solarized Light color palette
 * 
 * Solarized Light Colors:
 * - Base: #fdf6e3 (background)
 * - Emphasis: #eee8d5 (lighter background)
 * - Text: #586e75 (base text)
 * - Comments: #93a1a1
 * - Red: #dc322f
 * - Orange: #cb4b16
 * - Yellow: #b58900
 * - Green: #859900
 * - Cyan: #2aa198
 * - Blue: #268bd2
 * - Violet: #6c71c4
 * - Magenta: #d33682
 */

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

* {
	box-sizing: border-box;
}

html {
	font-size: 16px;
}

body {
	background-color: #fdf6e3;
	color: #586e75;
	font-family: 'Georgia', 'Garamond', serif;
	line-height: 1.6;
	margin: 0;
	padding: 0;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
	color: #2c3e50;
	margin-top: 1.5em;
	margin-bottom: 0.5em;
	line-height: 1.2;
	font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
	margin: 0.5em 0 1em 0;
}

a {
	color: #268bd2;
	text-decoration: none;
	transition: text-decoration 0.2s ease;
}

a:hover {
	text-decoration: underline;
}

a:visited {
	color: #d33682;
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

header {
	background-color: #fdf6e3;
	padding: 2rem 1rem;
	margin-bottom: 2rem;
}

header h1 {
	font-size: 3rem;
	text-align: center;
	margin: 0;
	color: #2c3e50;
}

header p {
	text-align: center;
	color: #93a1a1;
	margin: 0.5rem 0 0 0;
	font-style: italic;
}

nav {
	background-color: #eee8d5;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	border-top: 1px solid #d4cfc8;
	border-bottom: 1px solid #d4cfc8;
}

nav a {
	display: block;
	padding: 1rem 1.5rem;
	font-size: 1.25rem;
	color: #2c3e50;
	text-decoration: none;
	transition: text-decoration 0.2s ease;
	border-right: 1px solid #d4cfc8;
}

nav a:last-child {
	border-right: none;
}

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

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */

main {
	max-width: 800px;
	margin: 0 auto 3rem;
	padding: 0 1.5rem;
}

article {
	margin-bottom: 2rem;
}

article header {
	border: none;
	margin: 0 0 2rem 0;
	padding: 0;
}

article h1 {
	margin-top: 2rem;
	font-size: 2rem;
	text-align: center;
}

article .meta {
	text-align: center;
	color: #93a1a1;
	font-size: 0.95rem;
	margin: 1rem 0;
}

.blog-meta {
	text-align: left;
	color: #93a1a1;
	font-size: 0.95rem;
	margin: 0.5rem 0 1rem 0;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
	background-color: #eee8d5;
	border-top: 1px solid #d4cfc8;
	padding: 2rem;
	text-align: center;
	margin-top: 3rem;
	color: #93a1a1;
	font-size: 0.95rem;
}

footer a {
	color: #268bd2;
}

/* ============================================================================
   LISTS & TABLES
   ============================================================================ */

ul, ol {
	margin: 0.1rem 0;
	padding-left: 2rem;
}

li {
	margin-bottom: 0.1rem;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

table th, table td {
	padding: 0.75rem;
	text-align: left;
	border-bottom: 1px solid #eee8d5;
}

table th {
	background-color: #eee8d5;
	font-weight: 600;
	color: #2c3e50;
}

table tbody tr:hover {
	background-color: #f9f6f0;
}

/* ============================================================================
   CODE & PREFORMATTED TEXT
   ============================================================================ */

code {
	background-color: #eee8d5;
	color: #cb4b16;
	padding: 0.2rem 0.4rem;
	border-radius: 3px;
	font-family: 'Courier New', 'Monaco', monospace;
	font-size: 0.9rem;
}

pre {
	background-color: #eee8d5;
	border-left: 4px solid #268bd2;
	padding: 1rem;
	overflow-x: auto;
	margin: 1rem 0;
	border-radius: 4px;
}

pre code {
	background-color: transparent;
	color: #586e75;
	padding: 0;
	border-radius: 0;
}

/* ============================================================================
   BLOCKQUOTES
   ============================================================================ */

blockquote {
	border-left: 4px solid #268bd2;
	color: #93a1a1;
	margin: 1.5rem 0;
	padding-left: 1.5rem;
	padding-right: 1rem;
	font-style: italic;
}

blockquote p {
	margin: 0.5rem 0;
}

/* ============================================================================
   IMAGES & FIGURES
   ============================================================================ */

img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 1.5rem auto;
	border-radius: 4px;
}

figure {
	margin: 1.5rem 0;
	text-align: center;
}

figcaption {
	font-size: 0.9rem;
	color: #93a1a1;
	margin-top: 0.5rem;
	font-style: italic;
}

img.album-cover {
	width: 100%;
	max-width: 400px;
	margin: 1.5rem auto;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

img.cert-badge {
	width: 80px;
	margin: 1rem auto;
	border-radius: 4px;
}

img.text-icon {
	height: 1em;
	width: auto;
	display: inline;
	margin: 0;
	vertical-align: middle;
}

img#profile {
	width: 200px;
	margin: 1rem auto;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   CUSTOM CLASSES
   ============================================================================ */

.highlight {
	background-color: #b58900;
	color: #fdf6e3;
	padding: 0.2rem 0.4rem;
	border-radius: 3px;
}

.track-list {
	width: 100%;
	border-collapse: collapse;
}

.track-list th, .track-list td {
	padding: 0.75rem;
	text-align: center;
	border-bottom: 1px solid #eee8d5;
}

.track-list th {
	background-color: #eee8d5;
	font-weight: 600;
}

/* Custom list styles */
ol.refs {
	list-style: none;
	padding-left: 0;
	counter-reset: step_counter;
}

ol.refs li {
	counter-increment: step_counter;
	padding-left: 2rem;
	margin-bottom: 0.75rem;
}

ol.refs li:before {
	content: "[" counter(step_counter) "] ";
	position: absolute;
	margin-left: -2rem;
}

ol.notes {
	list-style: none;
	padding-left: 0;
	counter-reset: note_counter;
}

ol.notes li {
	counter-increment: note_counter;
	padding-left: 2rem;
	margin-bottom: 0.75rem;
}

ol.notes li:before {
	content: "(" counter(note_counter) ") ";
	position: absolute;
	margin-left: -2rem;
}

ol.roman-numerals {
	list-style-type: upper-roman;
}

sup {
	font-size: 0.75rem;
	line-height: 0;
	vertical-align: super;
}

/* ============================================================================
   PAGINATION & ARCHIVE
   ============================================================================ */

.pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin: 2rem 0;
	flex-wrap: wrap;
}

.pagination a, .pagination span {
	padding: 0.5rem 1rem;
	border: 1px solid #eee8d5;
	border-radius: 4px;
	background-color: #fdf6e3;
	color: #268bd2;
	text-decoration: none;
	transition: all 0.2s ease;
}

.pagination a:hover {
	background-color: #eee8d5;
	border-color: #268bd2;
}

.pagination .active {
	background-color: #268bd2;
	color: #fdf6e3;
	border-color: #268bd2;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Tablets: 768px and up */
@media (max-width: 768px) {
	html {
		font-size: 15px;
	}

	header {
		padding: 1.5rem 1rem;
		margin-bottom: 1.5rem;
	}

	header h1 {
		font-size: 2.2rem;
	}

	h1 { font-size: 2rem; }
	h2 { font-size: 1.6rem; }
	h3 { font-size: 1.4rem; }
	h4 { font-size: 1.2rem; }
	h5 { font-size: 1rem; }

	nav {
		flex-wrap: wrap;
	}

	nav a {
		padding: 0.8rem 1rem;
		font-size: 0.95rem;
		flex: 1 1 auto;
		border-right: none;
		border-bottom: 1px solid #d4cfc8;
	}

	nav a:nth-child(odd):not(:last-child) {
		border-right: 1px solid #d4cfc8;
	}

	nav a:nth-last-child(-n+2) {
		border-bottom: none;
	}

	main {
		max-width: 100%;
		padding: 0 1rem;
		margin: 0 0 2rem;
	}

	article h1 {
		font-size: 1.5rem;
	}

	img.album-cover {
		max-width: 300px;
	}

	img#profile {
		width: 150px;
	}

	footer {
		padding: 1.5rem 1rem;
	}
}

/* Mobile: 480px and up */
@media (max-width: 480px) {
	html {
		font-size: 14px;
	}

	header {
		padding: 1rem;
		margin-bottom: 1rem;
	}

	header h1 {
		font-size: 1.8rem;
	}

	h1 { font-size: 1.6rem; }
	h2 { font-size: 1.4rem; }
	h3 { font-size: 1.2rem; }
	h4 { font-size: 1.1rem; }
	h5 { font-size: 1rem; }

	nav {
		flex-direction: column;
	}

	nav a {
		padding: 0.75rem;
		font-size: 0.9rem;
		width: 100%;
		border-right: none;
		border-bottom: 1px solid #d4cfc8;
	}

	nav a:last-child {
		border-bottom: none;
	}

	main {
		padding: 0 0.75rem;
		margin: 0 0 1.5rem;
	}

	article h1 {
		font-size: 1.3rem;
	}

	article .meta {
		font-size: 0.9rem;
	}

	img.album-cover {
		max-width: 250px;
	}

	img#profile {
		width: 120px;
	}

	table {
		font-size: 0.9rem;
	}

	table th, table td {
		padding: 0.5rem 0.25rem;
	}

	code {
		font-size: 0.8rem;
	}

	footer {
		padding: 1rem;
		font-size: 0.9rem;
	}
}
