:root {
  --bg-color: #fff;
  --font-color: #333;
  --line-color: #f1f1f1;
  --link-color: #2a689d;
  --link-color-hover: #2a6496;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--font-color);
  font-family: Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans",
    Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

ol,
ul,
p {
  margin-bottom: 1rem;
}

a {
  color: var(--link-color);
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.home-layout h2 {
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  font-family: Futura, Inter, Roboto, "Helvetica Neue", "Arial Nova",
    "Nimbus Sans", Arial, sans-serif;
  border-top: 0.25rem solid;
  padding-top: 0.25rem;
  margin-top: 0;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

a:hover,
a:focus {
  color: var(--link-color-hover);
  text-decoration: underline;
}

.container,
main {
  padding: 1rem;
}

@media (width >= 50rem) {
  .container,
  main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 2rem;
  }

  .container {
    display: flex;
    align-items: center;
    grid-gap: 1rem;
    flex-wrap: wrap;
  }
}

@media (width >= 50rem) {
  header {
    padding-top: 1rem;
  }
}

header .container {
  grid-gap: 1rem;
}

header .title-container {
  display: flex;
  align-items: center;
  grid-gap: 1rem;
}

header .header-title {
  color: var(--font-color);
  display: block;
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  font-family: Futura, Inter, Roboto, "Helvetica Neue", "Arial Nova",
    "Nimbus Sans", Arial, sans-serif;
  text-decoration: none;
}

header .header-title:hover {
  color: var(--font-color);
  text-decoration: none;
}

header ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  grid-gap: 1rem;
  align-items: center;
}

@media (width <= 50rem) {
  header ul li:first-child {
    display: none;
  }
}

hr {
  border-style: solid;
  border-width: 0.25rem;
  margin: 0.5rem 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img[width][height]:not(.emoji) {
  width: 100%;
  height: auto;
}

img {
  max-width: 100%;
}

img.emoji {
  display: inline-block;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

.post-header {
  border-top: 0.25rem solid;
  padding: 1rem 0 2rem;
}

.post-header h1 {
  margin-bottom: 1rem;
}

.post-header-category {
  text-transform: capitalize;
}

footer {
  display: flex;
}

footer .container {
  margin-top: 2rem;
  margin-bottom: 2rem;
  background-color: white;
  max-width: 50rem;
}

@media (width >= 50rem) {
  footer .container {
    text-align: center;
    justify-content: center;
  }
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  padding: 0.25rem 0;
}

@media (width >= 50rem) {
  .footer-links {
    display: flex;
    grid-gap: 1rem;
    justify-content: center;
  }

  .footer-links a {
    padding: 0;
  }
}

.icon-link {
  display: flex;
  align-items: center;
  grid-gap: 0.5rem;
  text-decoration: none;
}

.icon-link svg {
  width: 1.25rem;
}

.footer-bio-group {
  display: flex;
  grid-gap: 1rem;
}

.shape-long {
  display: grid;
  grid-template-columns: repeat(9, 1rem);
  grid-template-rows: 1rem;
  grid-gap: 1px;
  margin: 3rem auto 0;
  justify-content: center;
}

.shape {
  display: grid;
  grid-template-columns: 1rem 1rem;
  grid-template-rows: 1rem 1rem;
  grid-gap: 1px;
}

.shape-long div,
.shape div {
  width: 1rem;
  height: 1rem;
  background: var(--font-color);
}

.shape-1 {
  border-radius: 100% 0 0;
}

.shape-2 {
  border-radius: 0 100% 0 0;
}

.shape-3 {
  border-radius: 0 0 0 100%;
}

.shape-4 {
  border-radius: 0 0 100%;
}

.posts {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.posts li {
  margin-bottom: 1.5rem;
}

.home-layout {
  display: flex;
  grid-gap: 1rem;
  flex-direction: column;
}

@media (width >= 50rem) {
  .home-layout {
    grid-gap: 3rem;
    flex-direction: row;
  }

  .home-now-reading {
    display: flex;
    grid-gap: 0.5rem;
  }
}

.home-now-reading img {
  max-height: 9rem;
}

.home-right,
.home-left {
  background-color: var(--bg-color);
}

.nav-category a {
  padding: 0.25rem 0;
}

@media (width >= 50rem) {
  .nav-category-container {
    display: flex;
    grid-gap: 1rem;
  }

  .nav-category a {
    padding: 0;
  }
}

.nav-category {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (width >= 50rem) {
  .nav-category {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    grid-gap: 1.5rem;
  }
}

.nav-category li a {
  margin-bottom: 0;
  display: flex;
  grid-gap: 0.5rem;
  align-items: center;
  text-decoration: none;
}

.playlist,
.book-list {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  padding: 0;
  list-style: none;
  margin: 0 0 1rem;
}

.book-list .book {
  display: flex;
}

.book-list .book-img {
  flex-shrink: 0;
  width: 75px;
  margin-right: 0.5em;
}

.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.collection-items {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  margin: 1em auto;
  list-style: none;
  padding: 0;
}

.collection-items .collection-item {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
}

.collection-items .collection-item img {
  margin-bottom: 0;
}

.collection-items .collection-item .collection-item-img-recipe {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.collection-items .collection-item-meta {
  color: var(--text-accent);
}

.collection-items--large {
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}

.btn {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  border: 1px solid;
  display: inline-flex;
  grid-gap: 0.25rem;
  padding: 0.25rem 1rem;
  text-decoration: none;
  border-radius: 2rem;
}

iframe,
.photos,
.photos img,
picture {
  margin-bottom: 1rem;
}

.img-half:not(.photos .img-half) {
  max-width: 500px;
}

.photos {
  display: grid;
  grid-gap: 1em;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.photos picture,
.photos .caption,
.photos video,
.photos iframe {
  grid-column: span 12;
}

@media (width >= 50rem) {
  .playlist-container {
    display: flex;
    grid-gap: 2em;
  }

  .playlist-container .playlist {
    flex-grow: 1;
  }

  .playlist-media {
    max-width: 19rem;
  }

  .photos .img-half {
    grid-column: span 6;
  }

  .photos > .img-half:nth-child(1):last-child {
    grid-column: 4 / span 6;
  }

  .photos .img-thirds {
    grid-column: span 4;
  }

  .photos .img-fourths {
    grid-column: span 3;
  }

  .photos .img-split-wide,
  .photos .img-wide {
    grid-column: span 7;
  }

  .photos .img-split-tall,
  .photos .img-tall {
    grid-column: span 5;
  }
}

picture {
  display: block;
  margin: 0 auto;
}

figcaption {
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  margin-bottom: 1.25rem;
}

blockquote {
  border-left: 0.5rem solid;
  margin-left: 1em;
  padding-left: 1em;
  font-style: italic;
}

code,
pre {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas,
    "DejaVu Sans Mono", monospace;
  white-space: pre-wrap;
  word-break: break-word;
  word-spacing: normal;
  border-radius: 0.25rem;
  font-size: 1rem;
  background-color: #ddd;
}

pre {
  max-height: 400px;
  margin: 1em 0;
  padding: 1em;
  overflow: auto;
}

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

code {
  padding: 0 0.25em;

  a & {
    color: inherit;
  }
}

.prev-next-btns-container {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  grid-gap: 0.5rem;
}

.prev-next-btns {
  display: flex;
  grid-gap: 1rem;
  justify-content: center;
}

.badge {
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  border-radius: 0.5rem;
  background-color: var(--line-color);
}

.book-tags {
  display: flex;
  flex-wrap: wrap;
  grid-gap: 0.5rem;
}

.book-recommend {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  background: var(--line-color);
  border-radius: 100%;
  justify-content: center;
}

.book-recommend svg {
  width: 1em;
}

.playlist-meta {
  text-align: center;
  margin: 1rem 0;
}

.track-name {
  font-weight: 900;
}

.books {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
  max-width: 1000px;
  list-style: none;
  padding: 0;
}

.post-map-header-image {
  width: 100%;
  height: 6.5rem;
  position: absolute;
  z-index: -1;
  margin-right: auto;
  margin-left: auto;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* https://github.com/dracula/pygments/blob/master/dracula.css */
.highlight .hll {
  background-color: #e7ee98;
}

.highlight {
  background: #282a36;
  color: #f6f6f4;
  border-radius: 0.25rem;
}

.highlight code {
  color: #f6f6f4;
}

.highlight .c {
  color: #9db5ff;
} /* Comment */
.highlight .err {
  color: #f6f6f4;
} /* Error */
.highlight .g {
  color: #f6f6f4;
} /* Generic */
.highlight .k {
  color: #f286c4;
} /* Keyword */
.highlight .l {
  color: #f6f6f4;
} /* Literal */
.highlight .n {
  color: #f6f6f4;
} /* Name */
.highlight .o {
  color: #f286c4;
} /* Operator */
.highlight .x {
  color: #f6f6f4;
} /* Other */
.highlight .p {
  color: #f6f6f4;
} /* Punctuation */
.highlight .ch {
  color: #7b7f8b;
} /* Comment.Hashbang */
.highlight .cm {
  color: #7b7f8b;
} /* Comment.Multiline */
.highlight .cp {
  color: #f286c4;
} /* Comment.Preproc */
.highlight .cpf {
  color: #7b7f8b;
} /* Comment.PreprocFile */
.highlight .c1 {
  color: #7b7f8b;
} /* Comment.Single */
.highlight .cs {
  color: #7b7f8b;
} /* Comment.Special */
.highlight .gd {
  color: #8b080b;
} /* Generic.Deleted */
.highlight .ge {
  color: #f6f6f4;
  text-decoration: underline;
} /* Generic.Emph */
.highlight .gr {
  color: #f6f6f4;
} /* Generic.Error */
.highlight .gh {
  color: #f6f6f4;
  font-weight: bold;
} /* Generic.Heading */
.highlight .gi {
  color: #f6f6f4;
  font-weight: bold;
} /* Generic.Inserted */
.highlight .go {
  color: #44475a;
} /* Generic.Output */
.highlight .gp {
  color: #f6f6f4;
} /* Generic.Prompt */
.highlight .gs {
  color: #f6f6f4;
} /* Generic.Strong */
.highlight .gu {
  color: #f6f6f4;
  font-weight: bold;
} /* Generic.Subheading */
.highlight .gt {
  color: #f6f6f4;
} /* Generic.Traceback */
.highlight .kc {
  color: #f286c4;
} /* Keyword.Constant */
.highlight .kd {
  color: #97e1f1;
  font-style: italic;
} /* Keyword.Declaration */
.highlight .kn {
  color: #f286c4;
} /* Keyword.Namespace */
.highlight .kp {
  color: #f286c4;
} /* Keyword.Pseudo */
.highlight .kr {
  color: #f286c4;
} /* Keyword.Reserved */
.highlight .kt {
  color: #97e1f1;
} /* Keyword.Type */
.highlight .ld {
  color: #f6f6f4;
} /* Literal.Date */
.highlight .m {
  color: #bf9eee;
} /* Literal.Number */
.highlight .s {
  color: #e7ee98;
} /* Literal.String */
.highlight .na {
  color: #97e1f1;
} /* Name.Attribute */
.highlight .nb {
  color: #97e1f1;
  font-style: italic;
} /* Name.Builtin */
.highlight .nc {
  color: #62e884;
} /* Name.Class */
.highlight .no {
  color: #f6f6f4;
} /* Name.Constant */
.highlight .nd {
  color: #f6f6f4;
} /* Name.Decorator */
.highlight .ni {
  color: #f6f6f4;
} /* Name.Entity */
.highlight .ne {
  color: #f6f6f4;
} /* Name.Exception */
.highlight .nf {
  color: #62e884;
} /* Name.Function */
.highlight .nl {
  color: #97e1f1;
  font-style: italic;
} /* Name.Label */
.highlight .nn {
  color: #f6f6f4;
} /* Name.Namespace */
.highlight .nx {
  color: #f6f6f4;
}

.highlight .pi {
  color: #f286c4;
}

/* Name.Other */
.highlight .py {
  color: #f6f6f4;
} /* Name.Property */
.highlight .nt {
  color: #f286c4;
} /* Name.Tag */
.highlight .nv {
  color: #e7ee98;
} /* Name.Variable */
.highlight .ow {
  color: #f286c4;
} /* Operator.Word */
.highlight .w {
  color: #f6f6f4;
} /* Text.Whitespace */
.highlight .mb {
  color: #bf9eee;
} /* Literal.Number.Bin */
.highlight .mf {
  color: #bf9eee;
} /* Literal.Number.Float */
.highlight .mh {
  color: #bf9eee;
} /* Literal.Number.Hex */
.highlight .mi {
  color: #bf9eee;
} /* Literal.Number.Integer */
.highlight .mo {
  color: #bf9eee;
} /* Literal.Number.Oct */
.highlight .sa {
  color: #e7ee98;
} /* Literal.String.Affix */
.highlight .sb {
  color: #e7ee98;
} /* Literal.String.Backtick */
.highlight .sc {
  color: #e7ee98;
} /* Literal.String.Char */
.highlight .dl {
  color: #e7ee98;
} /* Literal.String.Delimiter */
.highlight .sd {
  color: #e7ee98;
} /* Literal.String.Doc */
.highlight .s2 {
  color: #e7ee98;
} /* Literal.String.Double */
.highlight .se {
  color: #e7ee98;
} /* Literal.String.Escape */
.highlight .sh {
  color: #e7ee98;
} /* Literal.String.Heredoc */
.highlight .si {
  color: #e7ee98;
} /* Literal.String.Interpol */
.highlight .sx {
  color: #e7ee98;
} /* Literal.String.Other */
.highlight .sr {
  color: #e7ee98;
} /* Literal.String.Regex */
.highlight .s1 {
  color: #e7ee98;
} /* Literal.String.Single */
.highlight .ss {
  color: #e7ee98;
} /* Literal.String.Symbol */
.highlight .bp {
  color: #f6f6f4;
  font-style: italic;
} /* Name.Builtin.Pseudo */
.highlight .fm {
  color: #62e884;
} /* Name.Function.Magic */
.highlight .vc {
  color: #97e1f1;
  font-style: italic;
} /* Name.Variable.Class */
.highlight .vg {
  color: #97e1f1;
  font-style: italic;
} /* Name.Variable.Global */
.highlight .vi {
  color: #97e1f1;
  font-style: italic;
} /* Name.Variable.Instance */
.highlight .vm {
  color: #97e1f1;
  font-style: italic;
} /* Name.Variable.Magic */
.highlight .il {
  color: #bf9eee;
} /* Literal.Number.Integer.Long */
