/*
Theme Name: dvk26
Version: 1.0.0
*/

:root {
	--color-background: oklch(10% 0 0);
	--color-background-secondary: oklch(20% 0 0);
	--color-text: oklch(70% 0 0);
	--color-text-secondary: oklch(80% 0 0);
	--color-headings: oklch(90% 0 0);
	--border-radius: 4px;
	--font-stack: "Inter", "Helvetica Neue", "Nimbus Sans", Arial, sans-serif;

}

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

body {
	font-family: var(--font-stack);
	background: var(--color-background);
	color: var(--color-text);
	padding: 1rem;
	font-size: 16px;
	line-height: 1.5;
	text-rendering: optimizeLegibility;
}

.container { 
	max-width: 540px; 
}

.site-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	color: var(--color-text);
	border: 1px solid var(--color-text);
	border-radius: var(--border-radius);
	text-decoration: none;
	transition: color .4s ease, text-decoration-color .4s ease, border-color .4s ease;
}
.site-logo:hover,
.site-logo:focus {
	color: var(--color-headings);
	border-color: var(--color-headings);
}
.site-logo svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* post content */
h1, h2, h3, h4, h5, h6 {
	color: var(--color-headings);
	line-height: 1.2;
}
h1 {
	font-size: 1.19rem;
	margin-top: 2rem;
}
h2 {
 	font-size: 1.12rem;
}
h3 {
	font-size: 1.06rem;
}
h4, h5, h6 { font-size: 1rem; }
h2, h3, h4, h5, h6 {
	margin-top: 3rem;
}

a {
	color: var(--color-text-secondary);
	text-underline-offset: 5px;
	text-decoration-color: var(--color-text-secondary);
	transition: color .4s ease, text-decoration-color .4s ease;
}
a:hover,
a:focus {
	color: var(--color-headings);
	text-decoration-color: var(--color-headings);
}

p, li, figure, .wp-block-image, hr, blockquote, pre code, .e-content > div, .e-content > img, .e-content > table, .e-content > a, .e-content > center {
	margin-top: 1rem;
}

hr {
	border: 1px solid var(--color-background-secondary) !important;
	height: 0;
	outline: 0;
	margin: 2rem 0;
	display: block;
}

ul, ol {
	margin-left: 1.1rem;
}

img { 
	max-width: 100%; 
	height: auto; 
	border-radius: var(--border-radius); 
	border: 1px solid var(--color-background-secondary); 
}
a img { border: 0; }

blockquote {
	border-left: var(--border-radius) solid var(--color-text-secondary);
	padding-left: 1rem;
}

table {
	border-spacing: 0;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 1rem;
	width: 100%;
}
thead, tfoot, tbody, tr { border: 0 !important; }
td, th {
	border: 2px solid var(--color-background-secondary) !important;
	text-align: right;
	word-break: break-all;
	padding: .5rem;
	font-size: .8rem;
}

pre code {
	display: block;
	background: var(--color-background-secondary);
font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
	font-size: 0.8rem;
	padding: 1rem;
	border-radius: var(--border-radius);
	overflow-x: auto !important;
	white-space: pre !important;
}
pre code::-webkit-scrollbar {
  height: 0;              /* height of horizontal scrollbar ← You're missing this */
  border: 0;
}

code {
	font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
	color: var(--color-text-secondary);
}
.wp-element-caption {
	font-size: 0.8rem;
}


/* post nav */
.posts-navigation,
.post-navigation {
	margin-top: 3rem;
	font-size: 0.8rem;
}

.post-navigation 
.nav-previous:before {
	display: block;
	content: "Previous post";
}
.nav-next { 
	margin-top: 1rem;
}
.post-navigation 
.nav-next:before {
	display: block;
	content: "Next post";
}

/* post list */
.post-list {
	margin-top: 2rem;
}
.post-list ol {
	list-style: none;
	margin-left: 0;
}
.post-list li {
	margin-top: 0.5rem;
}
.post-list a {
	color: inherit; 
	text-decoration-color: transparent;
	transition: color .4s ease, text-decoration-color .4s ease;
}
.post-list a:hover,
.post-list a:focus {
	color: var(--color-headings);
	text-decoration-color: var(--color-headings);
} 

/* util */
.text-sm { font-size: 0.8rem !important; }
.ms { margin-top: 1rem !important; }
.mm { margin-top: 2rem !important; }
.ml { margin-top: 3rem !important; }

/* media queries */
@media (min-width: 576px) {
	body{ padding: 2rem; }
}
@media (min-width: 768px) {
	body { padding: 3rem; }
}
@view-transition {
  navigation: auto;
}
