@font-face {
  font-family: "Sour Gummy";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/sour-gummy-400.woff2") format("woff2");
}

@font-face {
  font-family: "Sour Gummy";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/sour-gummy-700.woff2") format("woff2");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fef9f4;
  color: #2d2d2d;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 50rem;
  margin: 0;
  padding: 4rem;
}

a {
  color: #e07a5f;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Logo & Header */

.logo {
  font-family: "Sour Gummy", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.description {
  color: #7a7a7a;
  font-size: 1.2rem;
}

.feeds {
  font-size: 0.85rem;
  color: #a0a0a0;
  margin-bottom: 3rem;
}

.feeds a {
  color: #a0a0a0;
}

.feeds a:hover {
  color: #e07a5f;
}

/* Post List */

h2 {
  font-family: "Sour Gummy", sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: #a0a0a0;
  text-transform: lowercase;
  margin-bottom: 1rem;
}

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

.post-list li {
  margin-bottom: 1.25rem;
}

.post-list a {
  display: block;
  color: #2d2d2d;
  font-weight: 500;
  font-family: "Sour Gummy", sans-serif;
  font-size: 1.35rem;
}

.post-list a:hover {
  color: #e07a5f;
}

.post-list time {
  display: inline;
  font-size: 0.95rem;
  color: #b0b0b0;
}

.post-list .reading-time {
  font-size: 0.85rem;
  color: #b0b0b0;
}

/* Post Page */

nav {
  /*margin-bottom: 2.5rem;*/
}

nav a {
  font-size: 1.1rem;
  color: #a0a0a0;
}

nav a:hover {
  color: #e07a5f;
}

article header {
  margin: 4rem 0;
}

article h1 {
  font-family: "Sour Gummy", sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

article time {
  font-size: 1rem;
  color: #b0b0b0;
}

article .reading-time {
  font-size: 1rem;
  color: #b0b0b0;
}

/* Post Content */

.content h2 {
  font-family: "Sour Gummy", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #2d2d2d;
  text-transform: none;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content h3 {
  font-family: "Sour Gummy", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content {
  font-size: 1.15rem;
}

.content p {
  margin-bottom: 1.25rem;
}

.content ul,
.content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.content li > ul,
.content li > ol {
  margin-bottom: 0;
}

.content li {
  margin-bottom: 0.4rem;
}

.content blockquote {
  border-left: 3px solid #e07a5f;
  padding-left: 1rem;
  color: #7a7a7a;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: #f3ede4;
  padding: 0.15em 0.35em;
  border-radius: 3px;
  font-size: 0.9em;
}

.content pre {
  background: #f3ede4;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.content pre code {
  background: none;
  padding: 0;
  font-size: 0.88em;
  line-height: 1.5;
}

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.content hr {
  border: none;
  border-top: 1px solid #e8ddd0;
  margin: 2rem 0;
}

/* 404 */

.not-found h1 {
  font-family: "Sour Gummy", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.not-found p {
  color: #a0a0a0;
  margin-bottom: 1.5rem;
}

/* Responsive: Tablet */

@media (max-width: 768px) {
  main {
    padding: 3rem;
  }
}

/* Responsive: Mobile */

@media (max-width: 600px) {
  main {
    padding: 2rem;
  }

  .logo {
    font-size: 2rem;
  }

  .feeds {
    margin-bottom: 2rem;
  }

  .post-list a {
    font-size: 1.15rem;
  }

  article h1 {
    font-size: 2.2rem;
  }

  article header {
    margin-bottom: 1.5rem;
  }
}
