@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Ubuntu+Sans+Mono:ital,wght@0,400..700;1,400..700&display=swap');
// https://piccalil.li/blog/a-modern-css-reset

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
html,
body {
	margin: 0;
	padding: 0;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
section,
dl,
dd,
ul,
li {
  margin: 0;
  padding: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/*variables*/
:root {
	--color-bg-primary: #FBFAF5;
	--color-bg-secondary: #E5E4E2;
	--color-text-primary: #3A3A3A;
	--color-text-secondary: #6e7c8b;
	--color-link-hover: #FFBF00;
	--color-code-bg-primary: #2b303b;
	--color-code-text: #f1a611;
	--color-table-header: #333;
	--font-size-xxl: 2rem;
	--font-size-xl: 1.8rem;
	--font-size-l: 1.6rem;
	--font-size-m: 1rem;
	--font-size-s: 0.75rem;
	--font-size-xs: 0.5rem;
	--spacing-title-l: 1.5rem 0.5rem;
}

@media (min-width: 600px){
	:root {
		--font-size-xxl: 2.5rem;
		--font-size-xl: 2.2rem;
		--font-size-l: 1.7rem;
		--font-size-m: 1rem;
		--font-size-s: 0.75rem;
		--font-size-xs: 0.5rem;
	}
}

body {
	font-family: "Open Sans", serif;
	background: var(--color-bg-secondary);
	color: var(--color-text-primary);
}

h1 {
	font-size: var(--font-size-xxl);
	padding-block: var(--spacing-title-l);
	font-weight: normal;
}

h2 {
	padding-block: var(--spacing-title-l);
	font-size: var(--font-size-xl);
	font-weight: normal;
}
h3 {
	padding-block: var(--spacing-title-l);
	font-size: var(--font-size-l);
	font-weight: normal;
}

ul, li {
	list-style: inside;
}

ol, li {
	list-style: decimal;
}

pre code {
	font-weight: bold;
	padding-inline: 0.2rem;
}


blockquote {
	margin-block: 1rem;
	margin-inline: 2rem;
	padding-left: 1rem;
	font-style: italic;	
	border-left: 2px solid #818589;
}

.section {
	display:flex;
	justify-content: center;
}
.site-header {
	padding-block: 0.5rem;
	padding-left: 1rem;
	font-size: var(--font-size-m);
	font-style: italic;
	background-color: #333;
	color: white;
}


.container {
	min-height: 100vh;
	width: 800px;
	background: var(--color-bg-primary);
}

.content {
	padding-inline: 1rem;
	padding-block: 1rem 1rem;
}

ul {
	padding-block: 1rem;
	}
ul, li {
	padding-left: 1rem;	
}


.navigation {
	/*display: flex;*/
	/*justify-content: center;*/
	/*gap: 1rem;*/
	& ul, li {
		list-style: none;
		padding: 0
	}
	& ul {
		width: 100%;
		display: flex;
		gap: 1rem;
		margin: 0;
		padding: 0;
		overflow: hidden;
		background-color: #333;
	}

	& li a{
		display: block;
		color:white;
		text-align: center;
		padding: 1rem;
		text-decoration: none;
	}

	& li a:hover {
		background-color: #111;
		text-decoration: underline;
		/*color: var(--color-link-hover);*/
		text-underline-offset: 0.5rem;
		text-decoration-color: var(--color-link-hover);
	}
}


.title {
	padding-bottom: 2rem;
}

.blog-post {
	border-left: 2px solid #818589;
	padding-left: 1rem;
	
	& li {
		list-style: none;
		padding-left: 0;
	}

	& li a {
		text-decoration: none;
	}
	& li a:hover {
		border: 3px solid var(--color-link-hover);
		padding: 0.1rem;
		border-radius: 0.2rem;
	}
}

.metadata {
	display: grid;
	margin-bottom: 1rem;
}

.blog-meta-date {
	padding: 0;
	font-size: var(--font-size-s);
	font-weight: bold;
}

.blog-meta-tags {
	font-size: var(--font-size-s);
	color: var(--color-text-secondary);
	font-weight: bold;
}

[class^="language-"] {
	padding-inline: 1rem;
	border-radius: 1rem;
	overflow-x: auto;
	max-width: 100%;
	white-space: pre-wrap;
	word-wrap: break-word;
}

@media (max-width: 450px) {
  pre {
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
  }
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: 14px;
}

th, td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
}

th {
  background-color: var(--color-table-header);
  color: white;
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #f1f1f1;
}

