:root {
  --bg:           #000000;
  --bg-alt:       #1e2124;
  --bg-highlight: #3c4048;
  --fg:           #ffffff;
  --grey:         #7b8496;
  --blue:         #5ea1ff;
  --green:        #5eff6c;
  --cyan:         #5ef1ff;
  --red:          #ff6e5e;
  --yellow:       #f1ff5e;
  --magenta:      #ff5ef1;
  --pink:         #ff5ea0;
  --orange:       #ffbd5e;
  --purple:       #bd5eff;
  --bg25: repeating-conic-gradient(var(--green) 0% 25%, transparent 0% 100%) 1px 0.5px / 2px 2px;
  --bg75: repeating-conic-gradient(transparent 0% 25%, var(--fg) 0% 100%) 1px 0.5px / 2px 2px;
}


@font-face {
  font-family: 'CommitMono';
  src: url('./fonts/CommitMono-400.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'CommitMono';
  src: url('./fonts/CommitMono-700.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: CommitMono;
  font-size: 0.9rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

hr {
  width: 100%;
  color: var(--green);
}

.container {
  max-width: 520px;
  margin: auto;
  padding-top: 50px;
  padding-left: 12px;
  padding-right: 12px;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin-bottom: 16px;
}

.post {
  display: flex;
  justify-content: space-between;
}

.post-date {
  color: var(--orange);
}

.content {
  img {
    max-width: 100%;  
    width: auto;
    height: auto;
  }
}


a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-style: dashed;
}

a:hover,
a:focus {
  outline: none;
  background: var(--bg25);
  color: var(--green);
  animation: flicker 50ms 2;
}

@keyframes flicker {
  0%, 49% { opacity: 0; }
  50%, 100% { opacity: 1; }
}

pre {
  background-color: var(--bg-alt);
  padding: 10px;
  overflow-x: auto;
}

blockquote {
  color: var(--grey);
}

code {
  font-family: CommitMono;
  font-size: 0.8rem;
  color: var(--orange);
}

#vim-help {
  position: fixed;
  bottom: 10px;
  left: 10;
  z-index: 676767;
  background-color: var(--bg);
  font-family: CommitMono;
  font-size: 0.7rem;
  display: grid;
  grid-template-columns: auto auto;
  gap: 5px;
}

.vim-key  { 
  color: var(--purple); 
}
.vim-desc { 
  color: var(--fg); 
}
