@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Code:ital,wght@0,300..800;1,300..800&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap");

:root {
	/* Theme 1 */
	/* --accent-color: #000000;
	--body-background-color: #f8eed9;
	--heading-color: #381b0b; */

	/* Theme 2 */
	--accent-color: #8707ff;
	--body-background-color: #f0f0f0;
	--heading-color: #000000;
}

.instrument-serif-regular {
	font-family: "Instrument Serif", serif;
	font-weight: 400;
	font-style: normal;
}

.jetbrains-mono {
	font-family: "JetBrains Mono", monospace;
	font-optical-sizing: auto;
	font-style: normal;
}

.google-sans-code {
	font-family: "Google Sans Code", monospace;
	font-optical-sizing: auto;
	font-style: normal;
}

* {
	scroll-behavior: smooth;
}

body {
	background-color: var(--body-background-color);
	padding: 1rem;
	max-width: 768px;
	margin: 0 auto;
	font-family: "JetBrains Mono", monospace;
	font-size: 0.9rem;
}

main {
	word-break: break-word;
	margin-top: 2rem;
}

nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0.5rem;
	z-index: 1000;
	padding: 1rem 2rem;
	border: 2px solid #000;
	border-radius: 0.5rem;
	backdrop-filter: blur(8px);
	font-family: monospace;
}

nav .brand {
	font-size: 2rem;
	font-weight: 700;
	color: var(--heading-color) !important;
	text-decoration: none;
	transition: all 0.3s ease;
}

nav .brand:hover {
	transform: translateY(-2px);
}

nav .nav-links {
	display: flex;
	gap: 1rem;
	align-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Instrument Serif", serif;
	font-style: normal;
	font-weight: bold;
	letter-spacing: 0.1rem;
	color: var(--heading-color);
	margin: 0;
}

h1,
h2 {
	text-decoration: underline;
	text-decoration-line: underline;
	text-decoration-color: var(--accent-color);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	text-decoration-style: wavy;
	padding-top: 1rem;
}

h3,
h4,
h5,
h6 {
	padding-top: 1rem;
}

h1 {
	font-size: 5rem;
}

blockquote {
	border-left: 2px solid var(--accent-color);
	padding-left: 1rem;
	margin: 2rem 0;
}

a {
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9rem;
	border-radius: 8px;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
	padding: 0.5rem 0;
	color: var(--accent-color);
}

p > img {
	width: calc(65% - 4px);
	height: auto;
	object-fit: cover;
	border-radius: 8px;
	margin: 0rem auto;
	display: block;
	position: relative;
	border: 2px solid black;
}

em {
	margin: 0.5rem 0;
}

/* ACCENT COLOR */
/* #8707ff */

a:hover {
	text-decoration: underline;
	text-decoration-line: underline;
	text-decoration-color: black;
	text-decoration-thickness: 1px;
	text-decoration-style: wavy;
	text-underline-offset: 2px;
	text-decoration-color: var(--accent-color);
	color: var(--accent-color);
	transform: translateY(-2px);
}

code {
	background-color: #e0e0e0;
	color: var(--accent-color);
	padding: 0.1rem 0.2rem;
	font-size: 0.9rem;
}

pre > code {
	background-color: unset;
	padding: 0;
	color: #fff;
	font-size: 0.8rem;
}

a:active {
	transform: translateY(0);
}

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

pre {
	border: 1px solid #000;
	border-radius: 8px;
	padding: 1rem;
	overflow: auto;
	background-color: rgb(224, 224, 224);
}

table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #000;
	border-radius: 8px;
	padding: 1rem;
}

table th,
table td {
	padding: 0.2rem;
	border: 1px solid #000;
}

table th {
	background-color: #dfbdff;
	color: #000;
}

/* --------------- */

.posts {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.post-card {
	width: 100%;
	border: 1px solid #000;
	padding: 0.5rem;
	border-radius: 8px;
}

/* Responsive design */
@media (max-width: 960px) {
	nav {
		padding: 0.5rem;
		flex-direction: column;
		gap: 0.5rem;
		width: auto;
	}

	nav .nav-links {
		gap: 0.5rem;
	}

	nav .nav-links a {
		font-size: 0.85rem;
		padding: 0.2rem 0.4rem;
	}

	body {
		font-size: 0.85rem;
	}

	nav .brand {
		font-size: 1.5rem;
	}

	a,
	pre > code,
	code {
		font-size: 0.85rem;
	}

	p > img {
		width: calc(100% - 4px);
	}
}
