@import 'themes/nord-dark.css';
@import 'themes/everforest-dark.css';

@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');

body {
  display: flex;
  flex-direction: column;
  font-family: 'Source Code Pro';
  height: 100%;
  min-height: 100dvh;
  background-color: var(--color-background);
  margin-inline: auto;
  width: 100%;
  max-width: 80rem;
  min-width: calc(.25rem * 0);
  padding-inline: calc(.25rem * 4);
  box-sizing: border-box;
}

main {
  padding: .5rem;
  flex: 1;
}

footer {
  padding: .5rem;
}

nav {
  display: flex;
  justify-content: flex-start;
  border-bottom: 1px solid var(--color-primary);
}

.nav-link {
  padding: 0.5rem;
}

.theme-menu {
  position: relative;
  margin-left: auto;
}

.theme-menu summary {
  cursor: pointer;
  font-weight: bold;
  color: var(--color-primary);
  list-style: none;
}

.theme-menu summary::-webkit-details-marker {
  display: none;
}

.theme-menu summary:hover,
.theme-menu summary:focus-visible,
.theme-menu[open] summary {
  color: var(--color-primary-contrast);
  background-color: var(--color-primary);
}

.theme-options {
  position: absolute;
  z-index: 1;
  top: 100%;
  right: 0;
  min-width: max-content;
  padding: .25rem;
  border: 1px solid var(--color-primary);
  background-color: var(--color-background);
}

.theme-options button {
  display: block;
  width: 100%;
  padding: .5rem;
  border: 0;
  color: var(--color-primary);
  background: transparent;
  font: inherit;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
}

.theme-options button:hover,
.theme-options button:focus-visible,
.theme-options button[aria-pressed="true"] {
  color: var(--color-primary-contrast);
  background-color: var(--color-primary);
}

a {
  font-weight: bold;
  text-decoration: none;
  color: var(--color-primary);
}

a:hover {
  color: var(--color-primary-contrast);
  background-color: var(--color-primary);
}

.subtitle {
  font-style: italic;
  font-size: small;
  color: var(--color-text-muted);
}

.post {
  border-bottom: 1px solid var(--color-border);
}

h1, h2 {
  color: var(--color-text);
}

.post-h2 {
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 12px; /* Space between the square and text */
}

.post-h2::before {
  content: "";
  flex-shrink: 0;
  width: 14.5px;  /* Width of the square */
  height: 14.5px; /* Height of the square (same as width for a square) */
  background-color: var(--color-primary); /* Color of the square */
  margin-top: 0.35em;
}

p {
  color: var(--color-text);
  line-height: 1.5;
}

ul, ol {
  color: var(--color-text);
}

.title a {
  padding: 0.5rem;
}

.inline-code {
  border-radius: 5px;
  border: 1px solid var(--color-border);
  padding: 2px;
}

