:root {
  --accent: #0d0;
  --primary: #ccc;
  --secondary: #aaa;
  --tertiary: #777;
  --bg: #222;
  --panel: #ffffff08;
  --panel-border: #ffffff14;
}

@keyframes cursor {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--secondary);
  font-family: Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  letter-spacing: 0.008em;
}

strong,
h1,
h2,
h3,
h4 {
  color: #ddd;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

img,
iframe,
canvas {
  max-width: 100%;
}

blockquote {
  margin: 12px 0;
  padding-left: 1em;
  border-left: 3px solid var(--accent);
  color: var(--tertiary);
}

pre {
  padding: 14px;
  overflow-x: auto;
  border-radius: 10px;
  background: #0002;
}

code {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

p code,
li code {
  padding: 0 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.18);
}

table {
  width: 100%;
  margin: 40px 0;
  border-collapse: collapse;
  line-height: 1.5;
}

th,
td {
  padding: 4px 8px;
  border: 1px solid var(--tertiary);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--accent);
  white-space: nowrap;
}

tr:nth-child(odd) > td {
  background: #fcfcfc11;
}

li::marker {
  color: var(--accent);
}

.logo__cursor {
  display: inline-block;
  width: 10px;
  height: 1rem;
  margin-left: 5px;
  border-radius: 1px;
  background: var(--accent);
  animation: cursor 1s infinite;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 8px;
  padding: 8px 64px;
  border-bottom: 1px solid var(--accent);
}

.navigation .logo {
  color: var(--primary);
  font-size: 30px;
  font-weight: 700;
  white-space: nowrap;
}

.navigation .menu {
  display: flex;
  gap: 8px;
}

.navigation .menu a {
  padding: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
}

.main {
  width: 100%;
  margin: 100px auto 0;
}

.profile {
  margin: 60px auto 0;
  padding: 0 24px;
  text-align: center;
}

.profile .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.profile h1 {
  margin: 0;
  color: #00ff0d;
  font-size: 30px;
  font-weight: 800;
}

.profile p {
  margin-top: 8px;
  color: #757575;
  font-size: 20px;
}

#list-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

#list-page .item {
  margin-top: 24px;
  padding: 16px 24px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--panel);
}

#list-page .item a {
  display: block;
}

#list-page .title {
  margin: 0;
  color: var(--primary);
  font-size: 28px;
  line-height: 1.3;
}

#list-page .date,
#single .tip {
  color: var(--tertiary);
  font-family: monospace;
  font-size: 14px;
}

#list-page .summary {
  margin-top: 12px;
  color: var(--secondary);
}

#single {
  max-width: 800px;
  margin: 60px auto 0;
  padding: 0 64px;
}

#single .title {
  text-align: center;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.4;
}

#single .tip {
  margin-top: 18px;
  text-align: center;
}

#single .tip .split {
  margin: 0 6px;
}

#single .content {
  margin-top: 36px;
}

#single .content h1:target,
#single .content h2:target,
#single .content h3:target,
#single .content h4:target {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

#comment {
  margin-top: 64px;
}

.entry-isdraft {
  color: var(--accent);
  font-size: 14px;
}

#footer {
  margin: 80px 120px;
  font-size: 14px;
  color: #bbb;
}

#social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#social a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.social-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#footer .copyright {
  margin: 20px auto;
  font-size: 15px;
}

@media (max-width: 700px) {
  .navigation {
    flex-direction: column;
    padding: 12px 24px;
  }

  .main {
    margin-top: 48px;
  }

  #list-page .item {
    padding: 16px;
  }

  #list-page .title {
    font-size: 24px;
  }

  #single {
    margin-top: 20px;
    padding: 0 18px;
  }

  #single .title {
    font-size: 24px;
    line-height: 1.35;
  }

  #footer {
    margin: 80px 24px;
  }
}
