@import "parts/_code.scss";
@import "parts/_header.scss";
@import "parts/_image.scss";
@import "parts/misc.scss";
@import "parts/table.scss";
@import "parts/tags.scss";

:root {
  /* Used for: block comment, hr, ... */
  --border-color: var(--bg-1);

  // Fonts defined via fonts.nix
  --system-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html {
  background-color: var(--bg-0);
  color: var(--text-0);
  font-family: var(--text-font);
  line-height: 1.6em;
  scrollbar-color: var(--primary-color) var(--bg-0);
}

.content {
  max-width: 944px;
  margin: 0 auto;
  padding: 0 24px;
  word-wrap: break-word;
}

@media all and (min-width:640px) {
  html {
    font-size: 16.5px;
  }
}

@media all and (min-width:720px) {
  html {
    font-size: 17px;
  }
}

@media all and (min-width:960px) {
  html {
    font-size: 18px;
  }
}

// Logo
div.brand>* {
  padding: 0 0.25em;
}

div.brand:hover img#logo {
  filter: brightness(0) invert(1);
}

img#logo {
  border: none;
  height: 0.75em;
  width: 0.75em;
  padding-right: 0.25em;
}

// Nav links
nav a {
  margin-left: 0.7em;
  font-family: var(--code-font);
}

// Footer
.content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

div.inner {
  flex-grow: 1;
}

header,
footer {
  flex-grow: 0;
  flex-shrink: 0;
}

footer {
  margin: 2em;
  color: var(--text-1);
  font-size: 0.75em;
  display: flex;

  #site-info {
    flex: 1 0;
  }

  #copyright {
    align-items: flex-end;
  }
}

// Post list
li.post-list-item {
  list-style-type: none;
}