* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	line-height: 1.6;
	padding: 0.75rem;
	color: #4c4f69;
	background-color: #eff1f5;
}

main {
	margin: 0 auto;
}

main.center {
	max-width: 600px;
	text-align: center;
}

@media (min-width: 768px) {
	main {
		max-width: 750px;
	}
}

hr {
	height: 1px;
	color: #7287fd;
	margin: 0.75rem 0;
}

nav > ul {
	list-style: none;
	display: flex;
	gap: 10px;
}

nav > ul > li > a {
	text-decoration: none;
	font-weight: bold;
	color: #7287fd;
}

h1 {
	font-size: 2.5rem;
}

article > p:not(:last-child),
article > pre,
article > blockquote {
	margin-bottom: 2rem;
}

/* HLJS */
code .hljs-keyword {
	color: #8839ef;
}
code .hljs-built_in {
	color: #d20f39;
}
code .hljs-type {
	color: #df8e1d;
}
code .hljs-literal {
	color: #fe640b;
}
code .hljs-number {
	color: #fe640b;
}
code .hljs-operator {
	color: #04a5e5;
}
code .hljs-punctuation {
	color: #5c5f77;
}
code .hljs-property {
	color: #179299;
}
code .hljs-regexp {
	color: #ea76cb;
}
code .hljs-string {
	color: #40a02b;
}
code .hljs-char.escape_ {
	color: #40a02b;
}
code .hljs-subst {
	color: #6c6f85;
}
code .hljs-symbol {
	color: #dd7878;
}
code .hljs-variable {
	color: #8839ef;
}
code .hljs-variable.language_ {
	color: #8839ef;
}
code .hljs-variable.constant_ {
	color: #fe640b;
}
code .hljs-title {
	color: #1e66f5;
}
code .hljs-title.class_ {
	color: #df8e1d;
}
code .hljs-title.function_ {
	color: #1e66f5;
}
code .hljs-params {
	color: #4c4f69;
}
code .hljs-comment {
	color: #7c7f93;
}
code .hljs-doctag {
	color: #d20f39;
}
code .hljs-meta {
	color: #fe640b;
}
code .hljs-section {
	color: #1e66f5;
}
code .hljs-tag {
	color: #179299;
}
code .hljs-name {
	color: #8839ef;
}
code .hljs-attr {
	color: #1e66f5;
}
code .hljs-attribute {
	color: #40a02b;
}
code .hljs-bullet {
	color: #179299;
}
code .hljs-code {
	color: #40a02b;
}
code .hljs-emphasis {
	color: #d20f39;
	font-style: italic;
}
code .hljs-strong {
	color: #d20f39;
	font-weight: bold;
}
code .hljs-formula {
	color: #179299;
}
code .hljs-link {
	color: #209fb5;
	font-style: italic;
}
code .hljs-quote {
	color: #40a02b;
	font-style: italic;
}
code .hljs-selector-tag {
	color: #df8e1d;
}
code .hljs-selector-id {
	color: #1e66f5;
}
code .hljs-selector-class {
	color: #179299;
}
code .hljs-selector-attr {
	color: #8839ef;
}
code .hljs-selector-pseudo {
	color: #179299;
}
code .hljs-template-tag {
	color: #dd7878;
}
code .hljs-template-variable {
	color: #dd7878;
}
code .hljs-addition {
	color: #40a02b;
	background: rgba(64, 160, 43, 0.15);
}
code .hljs-deletion {
	color: #d20f39;
	background: rgba(210, 15, 57, 0.15);
}

/* Blog List */
.blog-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.blog-entry a {
	text-decoration: none;
	color: inherit;
}

.blog-entry h2 {
	margin-bottom: 0.25rem;
	color: #7287fd;
}

.blog-entry h2:hover {
	text-decoration: underline;
}

.blog-entry .metadata {
	font-size: 0.9rem;
	color: #6c6f85;
}

/* Tags */
.tags-section {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid #ccd0da;
}

.tags {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}

.tag {
	background-color: #e6e9ef;
	color: #4c4f69;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.9rem;
	transition: background-color 0.2s;
}

.tag:hover {
	background-color: #dce0e8;
}

/* Related Posts */
.related-posts {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid #ccd0da;
}

.related-posts ul {
	margin-top: 0.5rem;
	padding-left: 1.5rem;
}

/* Tables */
table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 2rem;
}

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

tr:nth-child(even) {
	background-color: rgba(0, 0, 0, 0.02);
}

/* Image Zoom Viewer */
.image-viewer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}

.image-viewer.active {
	display: flex;
}

.image-viewer-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	cursor: pointer;
}

.image-viewer-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: rgba(30, 102, 245, 0.7);
	border: 2px solid rgba(255, 255, 255, 0.3);
	color: white;
	font-size: 2rem;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10001;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		background-color 0.2s,
		border-color 0.2s;
	line-height: 1;
	padding: 0;
}

.image-viewer-close:hover {
	background: rgba(30, 102, 245, 0.9);
	border-color: rgba(255, 255, 255, 0.5);
}

.image-viewer-content {
	position: relative;
	z-index: 10000;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
}

.image-viewer-img {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	user-select: none;
	transition: transform 0.1s ease-out;
	transform-origin: center;
}

img {
	cursor: zoom-in;
	transition: opacity 0.2s;
	max-width: 100%;
	margin: 1rem auto;
}

img:hover {
	opacity: 0.9;
}
