@font-face {
  font-family: 'Press Start 2P';
  src: url('./fonts/PressStart2P-Regular.ttf') format('TrueType');
}

@font-face {
  font-family: 'dinkie';
  src: url('./fonts/DinkieBitmap-9px.woff2') format('woff2');
}

@font-face {
  font-family: 'dinkie';
  font-style: italic;
  src: url('./fonts/DinkieBitmap-9pxItalic.woff2') format('woff2');
}

@font-face {
  font-family: 'dinkie code';
  src: url('./fonts/DinkieBitmap-9pxCode.woff2') format('woff2');
}

:root {
  --background-color: #111;
  --foreground-color: #fff;
  --foreground-secondary-color: #eee;
  --border-color: #fff;
  --border-color-dark: rgba(255, 255, 255, 0.1);
  --item-gap: 24px;
}

html {
  padding: 0;
  margin: 0;
}

body {
  background-color: var(--background-color);
  padding: 0;
  margin: 0px;
  font-family: helvetica neue,arial,hiragino sans gb,microsoft yahei,sans-serif;
}

color-box {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  filter: drop-shadow(0px 3px 20px rgba(0, 0, 0, 0.5));
}

#nav {
  margin-bottom: 20px;
  text-align: center;
}

a.nav-current:link, a.nav-current:visited {
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
}

a.nav-current:hover {
  text-decoration: underline;
}

.nav-inner {
  display: inline-flex;
  gap: 18px;
  font-size: 18px;
  font-family: "dinkie";
  font-weight: bold;
  margin: 0 auto;
  flex-wrap: wrap;
}

.nav-inner>span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon {
  image-rendering: pixelated;
  vertical-align: sub;
  width: 24px;
  height: 24px;
  object-fit: contain;
  border: none;
}

.site-avatar-image {
  border-top: 2px solid #666;
  border-left: 2px solid #666;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  background-color: #e0e0e0;
  vertical-align: bottom;
}

.social-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  image-rendering: pixelated;
  vertical-align: sub;
}

a:link, a:visited, a:active {
  color: #639bff;
  text-decoration: none;
}

a:hover {
  color: #639bff;
  text-decoration: underline;
}

code {
  font-family: 'dinkie code';
  font-size: 0.9em;
  white-space: pre;
  white-space: pre-wrap;
  word-break: break-all;
  word-wrap: break-word;
}

h1 {
  color: var(--foreground-color);
  font-size: 2em;
  padding: 0px 4px;
  line-height: 120%;
}

img {
  max-width: 100%;
}

hr {
  border: none;
  height: 2px;
  color: var(--border-color);
  background-color: var(--border-color);
  margin-top: 1em;
  margin-bottom: 1em;
}

.post-info {
  margin: 20px 0;
  text-align: center;
}

.post-info-inner {
  margin: 0 auto;
  display: inline-flex;
  gap: 8px;
  font-size: 16px;
  color: var(--foreground-secondary-color);
  color: rgba(255, 255, 255, 1);
  font-size: 18px;
  font-family: "dinkie";
}

.wrapper {
  padding: 20px;
}

.main {
  max-width: calc(800px - env(safe-area-inset-left) - env(safe-area-inset-left));
  margin: 0 auto;
}

.content {
  line-height: 160%;
  font-size: 18px;
  color: var(--foreground-color);
  word-break: break-word;
  word-wrap: break-word;
}

.breadcrumb {
  line-height: 160%;
  font-size: 18px;
  color: var(--foreground-color);
  margin-bottom: 20px;
  font-family: 'dinkie';
}

.chevron {
  margin: 0px 8px;
}

p:first-child, ul:first-child, pre:first-child {
  margin-top: 0;
}

p:last-child, ul:last-child, pre:last-child, .audio-container:last-child {
  margin-bottom: 0;
}

.bottom {
  margin-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 14px;
  font-family: "dinkie";
}

.site-header {
  margin-bottom: 20px;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-avatar {
}

.site-avatar img {
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
  vertical-align: bottom;
  margin-bottom: 4px;
}

.site-info {
  flex: 1;
}

.site-title {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 20px;
  text-align: left;
}

.site-about {
  font-size: 12px;
  line-height: 160%;
  text-align: left;
}

.video-container {
  width: 100%;
  padding-top: 56.25%;
  height: 0;
  position: relative;
  border-radius: 2px;
}

.video {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 2px;
}

.audio-container {
  margin-bottom: 20px;
  line-height: 100%;
}

.audio {
  width: 100%;
}

.items {
  display: flex;
  flex-direction: column;
  gap: var(--item-gap);
}

.item-date {
  font-size: 16px;
  color: rgba(255, 255, 255, 1);
}

.item-title {
  font-size: 24px;
}

.pages-container {
  display: flex;
  margin-top: 20px;
  gap: 16px;
}

.pages-info {
  flex: 1;
  text-align: center;
}

.page-placeholder, #page-next, #page-prev {
  min-width: 80px;
}

#page-next, #page-prev {
  display: flex;
  align-items: center;
  gap: 8px;
}

span.dot {
  color: var(--foreground-color);
}

span.next {
  display: inline-block;
  width: 22px;
  height: 24px;
  background-image: url('next.png');
  background-size: 22px 24px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  
}

span.prev {
  display: inline-block;
  width: 22px;
  height: 24px;
  background-image: url('prev.png');
  background-size: 22px 24px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.tag-cloud {
  column-count: 3;
  column-rule: 2px solid var(--border-color-dark);
  column-gap: 40px;
  line-height: 2;
}

.tag-cloud-item {
  display: block;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.tag-cloud-item-count {
  display: block;
  background-color: var(--border-color);
  font-size: 0.75em;
  color: var(--background-color);
  padding: 1px 4px 1px 4px;
  border-radius: 20px;
  line-height: 1;
}

.tag-container {
  margin: 0px auto 40px auto;
  border-bottom: 2px solid var(--border-color-dark);
  padding-bottom: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.tag-caption {
  font-size: 1em;
  display: flex;
  gap: 8px;
  align-items: center;
}

.tag-title {
  font-size: 2em;
  font-weight: 500;
  margin-bottom: 10px;
}

.tag-count {
  font-size: 1em;
  color: var(--foreground-secondary-color);
}

.archive-container {
  margin: 0px auto 40px auto;
  border-bottom: 2px solid var(--border-color-dark);
  padding-bottom: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.archive-title {
  font-size: 2em;
  font-weight: 500;
}

.archive-count {
  font-size: 1em;
  color: var(--foreground-secondary-color);
}

.archive-list {
  column-count: 3;
  column-rule: 2px solid var(--border-color-dark);
  column-gap: 40px;
  line-height: 1.2;
}

.archive-list-item {
  display: block;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 10px;
}

.archive-list-header {
  display: block;
  font-size: 1.1em;
  font-weight: 500;
  margin-bottom: 10px;
  margin-top: 20px;
  color: var(--foreground-secondary-color);
}

.archive-list-header:first-child {
  margin-top: 0px;
}

.archive-list-item a {
  line-break: initial;
}

@media (max-width: 600px) {
  .site-title {
    font-size: 16px;
  }

  h1 {
    font-size: 1.5em;
    padding: 0px 4px;
    line-height: 120%;
  }

  .tag-cloud, .archive-list {
    column-count: 2;
    column-gap: 30px;
  }
}

@media (max-width: 400px) {
  .tag-cloud, .archive-list {
    column-count: 1;
    column-gap: 24px;
  }
}