/* https://www.joshwcomeau.com/css/custom-css-reset/ */
/*
  1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
  box-sizing: border-box;
}

/*
  2. Remove default margin
*/
* {
  margin: 0;
}

/*
  3. Allow percentage-based heights in the application
*/
html, body {
  height: 100%;
}

/*
  Typographic tweaks!
  4. Add accessible line-height
  5. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/*
  6. Improve media defaults
*/
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/*
  7. Remove built-in form typography styles
*/
input, button, textarea, select {
  font: inherit;
}

/*
  8. Avoid text overflows
*/
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/*
  9. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

:root {
  --color-text-primary: #2d3436;
  --color-text-header: #2d3436;
  --color-text-link: #e74c3c;
  --color-background: #f5f6fa;
}

[data-theme=dark] {
  --color-text-primary: #f5f6fa;
  --color-text-header: #f5f6fa;
  --color-text-link: #e74c3c;
  --color-background: #2d3436;
}

/* Layout */
.l-wrapper {
  margin: 0 auto;
  max-width: 900px;
  min-height: calc(100vh - 40px);
  padding: 0 20px;
}
@media screen and (max-width: 768px) {
  .l-wrapper {
    max-width: 720px;
  }
}
@media screen and (max-width: 480px) {
  .l-wrapper {
    padding: 0 16px;
  }
}
.l-wrapper__main {
  padding-top: 30px;
  padding-bottom: 30px;
}
@media screen and (max-width: 480px) {
  .l-wrapper__main {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
.l-wrapper__footer {
  width: 100%;
  height: 40px;
  margin: 0 auto;
  padding: 0 20px;
}
@media screen and (max-width: 480px) {
  .l-wrapper__footer {
    padding: 0 16px;
  }
}

/* Header Block */
.header {
  padding-top: 35px;
}
.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .header__container {
    flex-direction: column;
    gap: 1rem;
  }
}
.header__left {
  flex: 0 0 auto;
}
.header__right {
  flex: 0 0 auto;
}
@media screen and (max-width: 768px) {
  .header__right {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}
.header__title {
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-header);
}
.header__title::after {
  content: "_";
  display: inline-block;
  animation: blink 1s infinite;
  -webkit-animation: blink 1s infinite; /* For Safari */
}
.header__subtitle {
  margin-top: 10px;
  font-weight: lighter;
}
.header__nav--link {
  margin-left: 20px;
}
@media screen and (max-width: 768px) {
  .header__nav--link {
    margin-left: 0;
  }
}
.header__nav--link:first-child {
  margin-left: 0;
}
.header__nav--active {
  font-weight: bold;
  text-decoration-thickness: 2px;
}

/* Post/Pill Block */
.post__header, .pill__header {
  margin-bottom: 2rem;
}
@media screen and (max-width: 480px) {
  .post__header, .pill__header {
    margin-bottom: 1.5rem;
  }
}
.post__header h2, .pill__header h2 {
  margin-bottom: 0.5rem;
}
.post__meta, .pill__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
  opacity: 0.8;
  font-size: 0.9rem;
}
@media screen and (max-width: 480px) {
  .post__meta, .pill__meta {
    font-size: 0.9rem;
  }
}
.post__content, .pill__content {
  line-height: 35px;
  padding-bottom: 50px;
}
@media screen and (max-width: 768px) {
  .post__content, .pill__content {
    line-height: 1.8;
  }
}
@media screen and (max-width: 480px) {
  .post__content, .pill__content {
    line-height: 1.6;
  }
}
.post__content h1, .post__content h2, .post__content h3, .post__content code, .post__content pre, .pill__content h1, .pill__content h2, .pill__content h3, .pill__content code, .pill__content pre {
  padding: 10px 0;
}
.post__content h2, .pill__content h2 {
  padding: 25px 0;
}
.post__content img, .pill__content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}
@media screen and (max-width: 480px) {
  .post__content img, .pill__content img {
    margin: 1rem 0;
  }
}
.post__content table, .pill__content table {
  width: 100%;
  overflow-x: auto;
  display: block;
  margin: 1rem 0;
}
.post__content ul, .post__content ol, .pill__content ul, .pill__content ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}
@media screen and (max-width: 480px) {
  .post__content ul, .post__content ol, .pill__content ul, .pill__content ol {
    padding-left: 1rem;
  }
}
.post__content blockquote, .pill__content blockquote {
  border-left: 3px solid var(--color-text-link);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
}
@media screen and (max-width: 480px) {
  .post__content blockquote, .pill__content blockquote {
    padding-left: 0.75rem;
  }
}
.post h2, .pill h2 {
  font-size: 1.8rem;
}
@media screen and (max-width: 480px) {
  .post h2, .pill h2 {
    font-size: 1.5rem;
  }
}
.post__list, .pill__list {
  padding: 30px 0;
}
@media screen and (max-width: 480px) {
  .post__list, .pill__list {
    padding: 1rem 0;
  }
}
.post pre, .pill pre {
  overflow-x: auto;
  padding: 1rem;
}
@media screen and (max-width: 480px) {
  .post pre, .pill pre {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}
.post code[class*=language-], .pill code[class*=language-] {
  font-size: 0.9rem;
}
.post__item, .pill__item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
  position: relative;
  line-height: 24px;
  padding-bottom: 5px;
  margin: 5px 0;
}
@media screen and (max-width: 480px) {
  .post__item, .pill__item {
    padding: 0.5rem 0;
  }
}
.post__excerpt, .pill__excerpt {
  font-size: 0.9rem;
  color: var(--color-text-primary);
  opacity: 0.8;
  margin: 0;
  line-height: 1.5;
  font-style: italic;
  padding-top: 5px;
}
.post__nav, .pill__nav {
  padding-top: 100px;
  text-align: center;
}

/* Footer Block */
.footer__text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
@media screen and (max-width: 480px) {
  .footer__text {
    font-size: 0.875rem;
  }
}

/* Utilities */
.u-float--left {
  float: left;
}
.u-float--right {
  float: right;
}
.u-float--center {
  text-align: center;
}

.u-font-weight--light {
  font-weight: 500;
}
.u-font-weight--bold {
  font-weight: bold;
}

/* Theme */
html {
  font-size: 18px;
  margin: 0;
  scroll-behavior: smooth;
}
@media screen and (max-width: 768px) {
  html {
    font-size: 16px;
  }
}
@media screen and (max-width: 480px) {
  html {
    font-size: 15px;
  }
}

::selection {
  background: var(--color-text-link);
  color: var(--color-background);
}

body {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-background);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--color-text-link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--color-text-link);
  transition: all 0.2s ease-in-out;
}
a:hover {
  opacity: 0.8;
  text-decoration-thickness: 2px;
}

#theme-toggle {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-text-primary);
  text-decoration: none;
  height: 24px;
  width: 24px;
  position: relative;
  vertical-align: middle;
  margin-bottom: -6px;
}
#theme-toggle .theme-icon {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.2s ease-in-out;
}
#theme-toggle .sun-icon {
  opacity: 0;
}
#theme-toggle .moon-icon {
  opacity: 1;
}
#theme-toggle:focus {
  outline: 2px solid var(--color-text-link);
  outline-offset: 2px;
}
@media screen and (max-width: 480px) {
  #theme-toggle {
    height: 20px;
    width: 20px;
  }
}

[data-theme=dark] #theme-toggle .sun-icon {
  opacity: 1;
}
[data-theme=dark] #theme-toggle .moon-icon {
  opacity: 0;
}

/* Animations */
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/*# sourceMappingURL=styles.css.map */