/* --- Global Styles & Variables --- */
:root {
	--bg-color: #1e1e1e;
	--text-color: #dcdcdc;
	--primary-color: #d79921;
	--secondary-color: #d65d0e;
	--border-color: #444444;
	--header-color: #ffffff;

	--font-sans: Roboto, Helvetica, Arial, sans-serif;
	--font-mono: "Roboto Mono", "Liberation Mono", Menlo, Courier, monospace;
}

html {
	box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	background-color: var(--bg-color);
	color: var(--text-color);
	font-family: var(--font-sans);
	line-height: 1.5;
	max-width: 800px;
	margin: 0 auto;
	padding: 2rem;
}


/* --- General Layout --- */

header h1 a {
	color: var(--header-color);
}

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

hr {
	border: none;
	border-top: 1px solid var(--border-color);
	margin-block: 1rem;
}


/* --- Typography & Links --- */
h1, h2, h3, h4, h5, h6 {
	color: var(--header-color);
	line-height: 1.2;
}

a {
	color: var(--primary-color);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a:visited {
	color: var(--secondary-color);
}

img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

/* --- Blog Specific Styles --- */
.post-list {
	list-style-type: none;
	padding-left: 0;
}

article p time {
	color: var(--secondary-color);
	font-size: 0.9em;
}

/* --- Markdown Element Styles --- */
blockquote {
	margin-left: 0;
	padding-left: 1rem;
	border-left: 3px solid var(--primary-color);
}

/* Inline code */
code {
	font-family: var(--font-mono);
	padding: 0.2em 0.4em;
	font-size: 0.85em;
}

/* Code blocks */
pre {
	padding: 1em;
	border-radius: 4px;
	overflow-x: auto;
}

pre code {
	padding: 0;
}

/* Basic table styling */
table {
	width: 100%;
	border-collapse: collapse;
	margin-block: 0rem;
}

th, td {
	padding: 0.5rem;
	border: 1px solid var(--border-color);
	text-align: left;
}
