@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;600;700&display=swap");

/* Reset */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Variables */
html {
  --base-font-size: 18px;
  min-height: 100%;
}

body {
  --bg-color: #0b0f10;
  --bg-content-color: #0f1417;
  --bg-code: #0f1619;
  --body-color: #e4ecef;
  --accent-color: #7cf58c;
  --accent-soft: rgba(124, 245, 140, 0.12);
  --inline-code-bg: rgba(255, 255, 255, 0.08);
  --title-color: #d6ffe1;
  --link-color: var(--accent-color);
  --border-color: rgba(255, 255, 255, 0.08);
  --space: 3.5rem;
  --content-width: 860px;
  --header-height: 80px;
  --radius: 5px;
  --btn-tag-color: var(--accent-color);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 650px) {
  html {
    --base-font-size: 17px;
  }

  body {
    --space: 1.5rem;
    --header-height: 60px;
  }
}

/* Base */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-color);
  color: var(--body-color);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Ctext x='12' y='32' fill='rgba(124,245,140,0.04)' font-family='SFMono-Regular,Menlo,monospace' font-size='14' letter-spacing='2'%3E0101001101010010 0110%3C/text%3E%3Ctext x='24' y='92' fill='rgba(124,245,140,0.04)' font-family='SFMono-Regular,Menlo,monospace' font-size='14' letter-spacing='2'%3E1010010100110101%3C/text%3E%3Ctext x='8' y='152' fill='rgba(124,245,140,0.04)' font-family='SFMono-Regular,Menlo,monospace' font-size='14' letter-spacing='2'%3E1101001010010100%3C/text%3E%3Ctext x='36' y='212' fill='rgba(124,245,140,0.04)' font-family='SFMono-Regular,Menlo,monospace' font-size='14' letter-spacing='2'%3E0011010100100101%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 260px 260px;
  background-attachment: fixed;
  transition: color 0.6s, background-color 0.6s;
  font-family: "Lato", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

a:not(.button) {
  color: var(--link-color);
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}

a:not(.button):hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
}

blockquote {
  font-size: 0.9em;
  margin: 1.5em 0;
  padding: 0.75em 1.25em;
  border-left: 4px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
}

blockquote p:last-child {
  margin-bottom: 0;
}

iframe {
  height: 80% !important;
}

/* Form controls */
input,
textarea,
select {
  background: #0f1417;
  color: var(--body-color);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.65em 0.75em;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

button,
.button {
  background: var(--accent-color);
  color: #0b0f10;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.55em 1em;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

button:hover,
.button:hover {
  background: var(--accent-color);
  box-shadow: none;
}

button:active,
.button:active {
  transform: translateY(1px);
}

/* Typography */
html {
  font-size: var(--base-font-size);
}

body {
  font-weight: 400;
  line-height: 1.45;
}

p {
  margin-bottom: 1.25em;
}

h1,
h2,
h3,
h4,
h5 {
  transition: color 0.6s;
  color: var(--title-color);
  margin: 2.75rem 0 1rem;
  font-weight: 600;
  line-height: 1.15;
}

h1 {
  margin-top: 0;
  font-size: 1.802em;
}

h2 {
  font-size: 1.602em;
}

h3 {
  font-size: 1.424em;
}

h4 {
  font-size: 1.266em;
}

h5 {
  font-size: 1.125em;
}

small {
  font-size: 0.889em;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

ul {
  list-style-type: disc;
  margin-left: 1.25em;
  margin-bottom: 1.25em;
}

ul li {
  margin-bottom: 0.6em;
}

ol {
  list-style-type: decimal;
  margin-left: 1.25em;
  margin-bottom: 1.25em;
}

ol li {
  margin-bottom: 0.6em;
}

pre {
  font-size: 0.85em !important;
  background: var(--bg-code);
  padding: 1em;
  border-radius: 5px;
  overflow: auto;
}

/* Utilities */
.text-center {
  text-align: center;
}

.space-bottom {
  margin-bottom: var(--space);
}

.font-italic {
  font-style: italic;
}

.font-small {
  font-size: 0.9em;
}

.mb-1 {
  margin-bottom: 1em;
}

/* Fontello */
@font-face {
  font-family: "fontello";
  src: url("../font/fontello.eot?91402431");
  src: url("../font/fontello.eot?91402431#iefix") format("embedded-opentype"), url("../font/fontello.woff2?91402431") format("woff2"), url("../font/fontello.woff?91402431") format("woff"), url("../font/fontello.ttf?91402431") format("truetype"), url("../font/fontello.svg?91402431#fontello") format("svg");
  font-weight: normal;
  font-style: normal;
}

[class^="icon-"]:before,
[class*=" icon-"]:before {
  font-family: "fontello";
  font-style: normal;
  font-weight: normal;
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: 0.2em;
  text-align: center;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
  margin-left: 0.2em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-rss:before {
  content: "\e800";
}

.icon-paper-plane:before {
  content: "\e801";
}

.icon-github:before {
  content: "\f055";
}

.icon-twitter:before {
  content: "\f058";
}

.icon-linkedin:before {
  content: "\f05c";
}

.icon-info-circled-alt:before {
  content: "\f086";
}

/* Layout */
#app {
  font-family: "Lato", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.main {
  width: 95%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 15px 0;
  flex: 1 0 auto;
}

.footer {
  padding: calc(var(--space) / 2);
  text-align: center;
  font-size: 0.8em;
}

.footer>span {
  margin: 0 0.35em;
}

.footer a {
  color: currentColor;
}

.hackernoon a {
  color: #e4ecef;
  padding: 0;
  text-decoration: none;
  transition: background-position 120ms ease-in-out, padding 120ms ease-in-out;
  background-size: 100% 200%;
  background-position: 0 0;
  word-break: break-word;
}

.hackernoon a:hover {
  padding: 2px 0 4px 0;
  background-image: linear-gradient(transparent 0%, transparent calc(50% - 8px), rgba(255, 255, 255, 0.08) calc(50% - 8px), rgba(255, 255, 255, 0.08) 100%);
  background-position: 0 100%;
}

/* Navigation */
.nav__container {
  height: 100%;
  width: 95%;
  max-width: 900px;
  margin: 0 auto;
}

nav .menu__button {
  font-size: 0.8em;
}

nav {
  background: #0f1417;
  color: var(--body-color);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

nav a {
  color: var(--body-color);
  background: transparent !important;
  box-shadow: none !important;
}

nav .menu a,
nav .menu .menu__button {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.4em 0.8em;
}

nav .brand {
  color: var(--accent-color);
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  position: relative;
  padding-right: 0.8em;
  display: inline-flex;
  align-items: center;
}
nav .brand::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 0.25em;
  background: var(--accent-color);
  vertical-align: middle;
  animation: blink-caret 1.1s steps(2, start) infinite;
}
.caret-paused nav .brand::after {
  animation-play-state: paused;
  opacity: 0.6;
}
@keyframes blink-caret {
  0%, 50% {
    opacity: 1;
  }
  50.01%, 100% {
    opacity: 0;
  }
}

nav .menu__button {
  border: 1px solid transparent;
  padding: 0.25em 0.6em;
}

nav .menu__button:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

nav .menu__rss {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

nav {
  background: #0f1417;
  color: var(--body-color);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

nav a {
  color: var(--body-color);
}

nav .burger {
  color: var(--body-color);
  border-color: transparent;
}

nav .burger~.menu {
  background: #0f1417 !important;
  box-shadow: none;
}

nav .burger~.menu>* {
  color: var(--body-color);
}

nav .burger~.menu .menu__button {
  border-color: transparent;
}

nav .show:checked~.burger {
  background: var(--accent-soft);
}

/* Author */
.author {
  margin: 0 auto;
  text-align: center;
  padding: calc(var(--space) / 2) 0;
}

.author__image {
  border-radius: 100%;
  width: 90px;
  height: 90px;
  margin-bottom: 1em;
}

.author__intro {
  font-weight: bolder;
  opacity: 0.8;
  margin-right: 0.6em;
  margin-bottom: 0;
}

.author__tagline {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 1em;
}

.author__site-title {
  font-size: 1.5em;
}

.author__links {
  margin-top: -0.5em;
}

.author__links a {
  color: var(--link-color);
  margin: 0 0.5em;
}

.author__links a:hover {
  opacity: 0.6;
}

/* Post list prompt lines */
.prompt-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 0.75em 1em;
  margin-bottom: 0.3em;
  color: #e9f2f3;
  background: #0f1417;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-decoration: none;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.prompt-line__left {
  display: block;
  min-width: 0;
}

.prompt-line__prompt {
  color: var(--accent-color);
  white-space: nowrap;
  margin-right: 0.45em;
}

.prompt-line__path {
  color: var(--accent-color);
  white-space: normal;
  display: inline;
}

.prompt-line__date {
  color: #cbd6d9;
  font-size: 0.9em;
  white-space: nowrap;
}
.breadcrumb {
  margin: 0 0 1em;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--accent-color);
  font-size: 0.95em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35em;
  opacity: 0.75;
}
.breadcrumb a {
  color: var(--accent-color);
  text-decoration: none;
}
.breadcrumb a:hover {
  opacity: 0.8;
}
.breadcrumb__sep {
  color: var(--body-color);
}
.breadcrumb__current {
  color: var(--body-color);
  opacity: 0.85;
}

/* Posts */
.post-title {
  padding: calc(var(--space) / 2) 0 calc(var(--space) / 2);
  text-align: center;
}

.post-title__text {
  display: inline-block;
  padding: 0.2em 0.4em;
  margin: 0;
  background: transparent;
  color: #7cf58c;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  box-shadow: none;
}

.post-title__text::before {
  content: "$ ";
  color: var(--accent-color);
}

.post {
  background: #0f1417;
  color: #e4ecef;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  font-family: "Lato", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 1.5em;
  border-radius: 0 0 10px 10px;
  position: relative;
  overflow: hidden;
}

.prompt-line--post {
  margin: 0 0 1em;
  border-radius: 8px;
  border: 0;
  padding: 0 0 0.4em;
  background: transparent;
}

.post__header {
  width: calc(100% + var(--space) * 2);
  margin-left: calc(var(--space) * -1);
  margin-top: calc(var(--space) * -1);
  margin-bottom: calc(var(--space) / 2);
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.post__header img {
  width: 100%;
}

.post__content h2:first-child {
  margin-top: 0;
}

.post__content p:first-of-type {
  font-size: 1.2em;
}

.post__content h1,
.post__content h2,
.post__content h3,
.post__content h4,
.post__content h5 {
  color: #b6ffd0;
}

.post__content {
  font-family: "Lato", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
}

.post__content a:not(.button) {
  color: var(--accent-color);
  text-decoration: underline;
}

.post__content pre {
  background: #0f1619;
  color: #f6e7d2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85em;
}

.post__content code {
  background: var(--accent-soft);
  color: #d6ffe1;
}
.post__content :not(pre) > code {
  background: var(--inline-code-bg);
  color: inherit;
  padding: 0.1em 0.25em;
  border-radius: 4px;
}

.post-comments {
  padding: calc(var(--space) / 2);
}

.post-comments:empty {
  display: none;
}

.post-author {
  margin-top: calc(var(--space) / 2);
}

.notify-card {
  width: 320px;
  max-width: 100%;
  flex: 0 0 auto;
  align-self: flex-start;
  flex-direction: row;
}

/* About */
.about {
  margin: 0 auto;
  text-align: center;
  padding: calc(var(--space) / 2) 0;
}
.about-panel {
  background: #0f1417;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.prompt-line--about {
  margin-bottom: 1.25em;
  border: 0;
  background: transparent;
  padding: 0 0 0.4em;
}
.about__content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5em;
  align-items: center;
  text-align: left;
}

.about__image {
  width: 8rem;
  height: 8rem;
  margin-bottom: 1.5em;
  border-radius: 12px;
  object-fit: cover;
  justify-self: end;
  grid-column: 2;
  grid-row: 1;
}

.about__title {
  margin: 0 0 0.4em;
  color: var(--title-color);
}
.about__text p {
  margin-top: 0;
}
.about__list {
  margin: 0 0 1em 1.2em;
}
.about__list li {
  margin-bottom: 0.4em;
}

.terminal-output {
  background: transparent;
  color: var(--body-color);
  border: 0;
  border-radius: 0;
  padding: 0;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 0;
}
.terminal-output a {
  color: var(--accent-color);
  text-decoration: none;
}
.terminal-output a:hover {
  opacity: 0.85;
}
.about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em 1.2em;
}
.about__links a {
  color: var(--accent-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.about__links a:hover {
  opacity: 0.8;
}

.mr-4 {
  margin-right: 1em;
}

/* Mobile tweaks */
@media screen and (max-width: 720px) {
  body {
    background-attachment: scroll;
  }

  .main {
    width: 100%;
    padding: 70px 12px 0;
  }

  nav .nav__container {
    width: 100%;
    padding: 0 10px;
  }

  .post-card {
    padding: 0.75em 0.9em;
    margin-bottom: calc(var(--space) / 3);
  }

  .post-title {
    padding: calc(var(--space) / 3) 0;
  }

  .post-title__text {
    font-size: 1.2em;
  }

  .post {
    padding: 1em;
  }

  .post__content pre {
    font-size: 0.9em;
  }

  .prompt-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35em;
  }

  .prompt-line__prompt,
  .prompt-line__path {
    font-size: 0.95em;
  }

  .prompt-line__path {
    white-space: normal;
  }

  .prompt-line__date {
    font-size: 0.85em;
  }

  .prompt-line--post {
    margin: 0 0 1em;
    width: 100%;
    border-radius: 8px;
    border: 0;
  }

  input,
  textarea,
  select,
  button,
  label:not(.burger) .button {
    width: 100%;
  }

  .author {
    padding-top: var(--space);
  }
  .about__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about__image {
    margin: 0 auto 1.5em;
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
  }
  .about__text {
    text-align: center;
    grid-column: auto;
    grid-row: auto;
  }
  .about__links {
    justify-content: center;
  }
}
