/*
 * Base styles
 */

:root {
  --bg: #fbfaef;
  --brand: #ec8667;
  --link: #1440f1;
  --blue: #9fb2ff;
  --light-blue: #e0e6ff;
  --coffee: #dedcc4;
}

body {
  background: var(--bg);
  font-family: "IBM Plex Mono", monospace;
}

/*
 * Layout styles
 */

body {
  min-height: 100vh;
  max-width: 768px;
  margin: 0 auto;
}

/*
 * Header
 */

header {
  color: var(--brand);
}

header .logo {
  display: flex;
  justify-content: center;
  margin: 1em 0;
}

/*
 *  Navbar
 */

nav {
  display: flex;
  justify-content: space-between;

  padding: 0 2em;

  border-bottom: 1px dashed var(--coffee);
  border-top: 1px dashed var(--coffee);
}

nav ul {
  display: flex;
  align-items: center;
}

nav ul > li {
  padding: 1em 2em;
  border-left: 1px dashed var(--coffee);
}

nav ul > li:last-child {
  border-right: 1px dashed var(--coffee);
}

@media only screen and (max-width: 576px) {
  nav {
    justify-content: center;
  }

  nav .social {
    display: none;
  }
}

/*
 * Footer
 */

footer {
  margin-bottom: 2rem;
  margin-top: 2em;
  padding: 1em;
  text-align: center;
  border-bottom: 1px dashed var(--coffee);
  border-top: 1px dashed var(--coffee);
}

/*
 * Typography
 */

.content {
  margin: 0 auto;
  padding: 1.5em;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  font-weight: 400;
}

.content h1:first-child {
  margin-top: 0;
}

/*
 * Code blocks
 */

.content pre {
  background: transparent;
}

.content code {
  font-weight: 400;
  background-color: #fff;
  border: 1px solid var(--light-blue);
  padding: 3px 6px;
}

.content code::before,
.content code::after {
  content: none;
}

.content pre code {
  background: #fff;
  color: var(--tw-prose-code);
  border-radius: 1px;
  border: 3px solid var(--blue);
  box-shadow: 6px 6px 0 var(--blue);
  margin: 0px 6px 6px 0px;
}
