/* Fonts */
@font-face {
  font-family: "Inter";
  src: url("../assets/Inter-Regular.ttf") format('truetype');
}
@font-face {
  font-family: "InterItalic";
  src: url("../assets/Inter-Italic.ttf") format('truetype');
}
@font-face {
  font-family: "InterMedium";
  src: url("../assets/Inter-Medium.ttf") format('truetype');
}
@font-face {
  font-family: "CalSans";
  src: url("../assets/CalSans-SemiBold.ttf") format('truetype');
}

/* Base */
* {
  margin: 0;
  padding: 0;
}
html, body { height: 100%; }

body {
  font-family: Inter, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background-color: #303446; /* Frappe Base */
  color: #c6d0f5; /* Text */
}

/* Links */
a {
  color: #8caaee; /* Blue */
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #81c8be; /* Teal */
}

/* Utility */
.content-wrap, .wrap {
  max-width: 780px;
  padding: 20px;
  margin: 0 auto;
  zoom: 1;
}
.wrap {
  display: flex;
  justify-content: space-between;
}

/* Navbar */
.navbar-link {
  color: #b5bfe2;
  font-size: 14px;
  margin: 5px 2px;
  line-height: 2;
}

.site-title,
.site-title:visited {
  color: #a6d189;
  color: #babbf1;
  font-family: CalSans, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.site-title:hover {
  text-decoration: underline 4px solid #81c8be;
}

.site-nav .page-link {
  margin-left: 20px;
  color: #a5adce;
}

/* Footer */
.site-footer {
  border-top: 1px solid #414559;
  padding: 30px 0 10px;
  background-color: #232634;
}

.footer-heading {
  font-size: 18px;
  font-weight: 300;
  color: #e5c890;
  margin-bottom: 15px;
}

.site-footer li,
.site-footer p {
  font-size: 15px;
  color: #a5adce;
}

/* Page Content */
.page-content {
  padding: 30px 0;
}

/* Home styles */
.home h1 { 
  margin-bottom: 25px; 
  color: #c6d0f5;
}

.home-sub {
  font-size: 18px;
  font-style: italic;
  margin-bottom: 50px;
  color: #b5bfe2;
}

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

.post-date {
  font-size: 14px;
  color: #a5adce;
}

.posts .post-link {
  font-size: 24px;
  font-family: Inter;
  color: #babbf1;
  color: #a6d189;
  text-decoration: none;
}
.post-link:hover {
  text-decoration: underline 4px solid #8caaee;
}

/* Hashtags */
.hashtag, .period {
  font-size: 24px;
  color: #e5c890;
  font-weight: 600;
}

/* Post Styles */
.post-header { 
  text-align: center;
  margin: 10px 0 30px; 
}

.post-header h1 {
  font-family: InterMedium;
  font-size: 36px;
  color: #c6d0f5;
  /* color: #babbf1; */
}

.meta {
  font-size: 16px;
  color: #a5adce;
  color: #949cbb;
}

.post-content { margin: 0 0 30px; }
.post-content > * { margin: 20px 0; }

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  font-family: InterMedium;
  color: #f2d5cf;
  line-height: 1.25;
  font-weight: 400;
  margin: 40px 0 0;
}

.post-content h2 {
  font-size: 32px;
  letter-spacing: -1.25px;
  color: #ef9f76; /* Peach */
}

.post-content h3 {
  font-size: 22px;
  letter-spacing: -1px;
  color: #e5c890; /* Yellow */
}

.post-content h4 {
  font-size: 20px;
  letter-spacing: -1px;
  color: #e5c890;
}

.post-content blockquote {
  border-left: 4px solid #8caaee;
  padding-left: 20px;
  font-size: 18px;
  font-family: InterItalic;
  opacity: .9;
  letter-spacing: -0.6px;
  margin: 30px 0;
  background-color: #414559;
  border-radius: 5px;
  color: #b5bfe2;
}

.post-content blockquote p {
  padding: 20px 0;
}

.post-content ul,
.post-content ol{
  margin-left: 20px;
  padding-left: 20px;
}

.post pre,
.post code {
  border: 1px solid #414559;
  padding: 8px 12px;
  border-radius: 3px;
  font-size: 15px;
  overflow:auto;
}

.post code { padding: 1px 5px; }

.post pre.terminal {
  border: 1px solid #737994;
  background-color: #414559;
  color: #c6d0f5;
  border-radius: 3px;
}

/* Images */
.imgright { float: right; margin-left: 10px; }
.imgcap img {
  border: 1px solid #737994;
  max-width: 100%;
}
.imgcap {
  color: #a5adce;
  font-size: 14px;
  text-align: center;
}

/* Syntax highlighting */
pre.highlight {
  background-color: #414559;
  color: #c6d0f5;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}

code {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  color: #81c8be;
}

.highlight .c { color: #737994 } /* Comment */
.highlight .k { color: #ca9ee6 } /* Keyword */
.highlight .s { color: #81c8be } /* String */
.highlight .n { color: #c6d0f5 } /* Name */
.highlight .o { color: #8caaee } /* Operator */
.highlight .m { color: #e5c890 } /* Number/Literal */
.highlight .p { color: #c6d0f5 } /* Punctuation */

/* Media Queries */
@media screen and (max-width: 750px) {
  .footer-col-1 { width: 50%; }
  .footer-col-2 {
    width: calc(50% - 10px);
    margin-right: 0;
  }
  .site-footer .column.footer-col-3 {
    width: auto;
    float: none;
    clear: both;
  }
}


@media screen and (max-width: 600px) {
  .content-wrap { padding: 0 12px; }

  .site-nav {
    position: fixed;
    z-index: 10;
    top: 14px; right: 8px;
    background-color: #414559;
    border-radius: 5px;
    border: 1px solid #414559;
  }

  body { font-size: 16px; }

  .post-header h1 { font-size: 30px; }
  .post-content h2 { font-size: 28px; }
  .post-content h3 { font-size: 22px; }
  .post-content h4 { font-size: 18px; }
  .post-content blockquote { 
    padding-left: 10px; 
  }

  .site-footer .column {
    float: none;
    clear: both;
    width: auto;
  }
}

