/* Reset CSS */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Blog CSS */

/* Palette variables */
:root {
  --primary-color: #46b47f;
  --background-color: #f9fbff;
  --text-color: #555555;
}

html {
  scrollbar-color: var(--primary-color) var(--background-color);
  scrollbar-width: auto;
}

a {
  color: var(--primary-color);
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: "Trebuchet MS", sans-serif;
  width: calc(100svw - 2em);
  max-width: 1024px;
  margin: 0 auto;
}

code {
  color: var(--primary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.25em;
  margin-top: 0.5em;
}

h1,
h2 {
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 0.125em;
  text-decoration-color: var(--primary-color);
  margin-bottom: 0.5em;
}

li {
  list-style-position: inside;
}

nav {
  display: flex;
  gap: 1em;
  height: 1em;
  margin-bottom: 1em;
  margin-top: 1em;
}

p {
  line-height: 1.8;
  max-width: 80ch;
  margin-bottom: 0.75em;
}

pre {
  background: var(--background-color);
  border: 1px solid var(--primary-color);
  border-left: 3px solid var(--primary-color);
  padding: 12px 16px;
  overflow-x: auto;
  line-height: 1.45;
  tab-size: 2;
}
pre code {
  color: var(--text-color);
}

.archive {
  list-style: none;
  margin-top: 0.5em;
}

.archive-date {
}

.archive li {
  display: flex;
  gap: 0.5em;
  margin-bottom: 0.5em;
}

.archive li span {
  min-width: 12ch;
}

.date {
  font-style: italic;
  margin-bottom: 0.75em;
}

.main {
  /*border: 1px solid var(--primary-color);*/
  margin-bottom: 1em;
  min-height: calc(100svh - 4em);
  padding: 1em;
}

.readmore,
.back {
  border: 1px solid var(--primary-color);
  display: inline-block;
  margin-top: 1em;
  margin-bottom: 1em;
  padding: 0.25em 0.5em;
  text-decoration: none;
}

.readmore:hover,
.back:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
}

.titlebar {
  text-align: center;
}
