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

:root {
  --bg: #0F1A20;
  --fg: #1ea158;
}

body {
  margin: 0;
  color: var(--fg);
  background-color: var(--bg);
  font-family: 'Source Code Pro', monospace;
  font-size: 13px;
}

h1 { font-size: x-large; }
h2 { font-size: large; }

a {
  text-underline-offset: 6px;
  text-decoration: none;
  color: var(--fg);
  font-size: small;
}

a:visited {
  color: var(--fg);
}

#introduction a {
  text-decoration: underline;
  font-size: inherit;
}

#links a,
#portfolio a,
.content a,
.pagination a {
  text-decoration: underline;
}

summary { font-weight: bold; }

main {
  width: 50%;
  margin: 0 auto 156px;
}

#catchword p {
  text-align: center;
  font-size: small;
  font-style: italic;
  display: inline-block;
  position: relative;
}

#catchword p::before {
  content: "";
  background: var(--fg);
  width: 65%;
  height: 1px;
  display: block;
  position: absolute;
  bottom: -5px;
}

#container {
  margin-top: 40px;
}

#container section article {
  padding-left: 15px;
  border-left: 5px solid var(--fg);
}

#container section article p {
  margin-left: 25px;
}

details[open] summary ~ * {
  animation: sweep .5s ease-in-out;
}

@keyframes sweep {
  0%   { opacity: 0; transform: translateX(-5px); }
  100% { opacity: 1; transform: translateX(0); }
}

#introduction {
  margin-bottom: 40px;
}

#introduction .state {
  color: var(--bg);
  background-color: var(--fg);
  padding: 1px;
  font-weight: bold;
}

#skills-block-1 {
  text-align: center;
  margin-top: 20px;
  margin-left: 20px;
  display: flex;
}

#skills-block-1 figure {
  background-color: var(--fg);
  margin: 0 5px;
  padding: 10px 10px 0;
}

#skills-block-1 figure img {
  width: 35px;
  height: 35px;
}

#skills-block-1 figcaption {
  color: var(--bg);
  padding-bottom: 10px;
}

#skills-block-2 ul { columns: 2; }
#skills-block-2 ul li { font-size: small; }

#portfolio ul li span {
  display: block;
  padding-top: 10px;
  font-style: italic;
  font-size: x-small;
}

#links ul li {
  padding-bottom: 5px;
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--fg);
}

.post-list li a {
  font-weight: bold;
  font-size: medium;
}

.meta {
  display: block;
  font-size: x-small;
  margin-top: 5px;
}

.meta time { margin-right: 10px; }
.meta span { margin-right: 10px; }
.meta .tags a { font-size: x-small; }

.content {
  margin-top: 30px;
  line-height: 1.8;
  font-size: small;
}

.content code {
  background-color: rgba(30, 161, 88, 0.15);
  padding: 2px 5px;
}

.content pre {
  background-color: rgba(30, 161, 88, 0.1);
  padding: 15px;
  overflow-x: auto;
}

.content pre code {
  background: none;
  padding: 0;
}

.content blockquote {
  border-left: 3px solid var(--fg);
  margin-left: 0;
  padding-left: 15px;
  font-style: italic;
}

header {
  display: flex;
  justify-content: space-between;
}

#band-container {
  width: 40vw;
  height: 20vh;
  position: relative;
  overflow: hidden;
}

#band-container .band {
  transform-origin: 0 0;
  border: 1px solid var(--fg);
  width: 100vw;
  height: 25px;
  position: absolute;
  top: 100px;
  left: -40px;
  transform: rotate(-40deg);
}

#band-container a {
  font-size: small;
  font-weight: bold;
  text-decoration: none;
  position: absolute;
  top: 30px;
  left: -5px;
  transform: rotate(-40deg);
}

#band-container a::after {
  content: "|";
  margin-right: 5px;
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% { opacity: 0; }
}

.pagination {
  text-align: center;
  margin-top: 30px;
  font-size: small;
}

@media only screen and (min-width: 601px) and (max-width: 1024px) {
  main { width: 90%; }
}

@media only screen and (max-width: 600px) {
  main { width: 95%; }
}
