/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

* {
  border: 0 none;
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Adwaita Sans, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif;
  margin: 0;
  outline: 0 none;
  padding: 0;
}

@font-face {
  font-display: swap;
  font-family: "Fira Code";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/FiraCode-Regular-177f28e5.ttf") format("truetype");
}

@media screen and (max-width: 769px) {
  html {
    font-size: 14px;
  }
}


a {
  color: #0277BD;
  text-decoration: none;
}

.container {
  margin: 0 auto;
  max-width: 45rem;
  padding: 0 1rem;
}

.page-header {
  background: linear-gradient(#E1F5FE, #FFFFFF);
  margin-bottom: 5rem;
}

.page-footer {
  margin-top: 5rem;
}

.page-footer p {
  color: #757575;
  font-size: 1.125rem;
}

.posts .post {
  margin-bottom: 3rem;
}

.post header {
  text-align: left;
}

.post footer {
  margin-top: 3rem;
}

.post aside {
  margin-bottom: 3rem;
}

/*** Top menu ***/

nav ul {
  display: flex;
  list-style-type: none;
}

nav ul li:first-child {
  margin-left: -1rem;
}

nav ul li:first-child a {
  padding-left: 1rem;
}

nav ul li:last-child {
  margin-left: auto;
  margin-right: -1rem;
}

nav ul li:last-child a {
  padding-right: 1rem;
}

nav a {
  color: #0277BD;
  display: block;
  font-size: 1.25rem;
  padding: 2.5rem 1.5rem;
}

@media screen and (max-width: 769px) {
  nav a {
    padding: 1.5rem;
  }
}

a.active span,
nav a:hover span {
  border-bottom: 2px solid #0277BD;
  padding: 0.25rem 0;
}

nav a.cta span {
  border-radius: 0.5rem;
  background: linear-gradient(#388E3C, #2E7D32);
  box-shadow: 0 2px 0 #1B5E20;
  color: #ffffff;
  font-size: 1.125rem;
  padding: 0.75rem 1rem;
  text-shadow: 0 -1px 0 #1B5E20;
}

nav a.cta:hover span {
  border-bottom: 0 none;
  background: linear-gradient(#43A047, #388E3C);
  color: #ffffff;
}

/*** Typography ***/

h1 {
  color: #000000;
  font-size: 3.5rem;
  font-weight: 500;
  letter-spacing: -0.0625rem;
  line-height: 1em;
  margin-bottom: 1.5rem;
}

.posts .post h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

@media screen and (max-width: 769px) {
  .post h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
}

h2 {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.375em;
  margin-bottom: 1.25rem;
}

h2 > em {
  background-color: #FFF59D;
  border-radius: 1px;
  font-style: normal;
  font-weight: 600;
  padding: 0.0625rem 0.375rem;
}

p {
  color: #212121;
  font-size: 1.25rem;
  line-height: 1.5em;
  margin-bottom: 1.25rem;
}

span.category-pill {
  border-radius: 0.25rem;
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0.675rem;
  text-transform: uppercase;
}

span.pill-red {
  background-color: #FFEBEE;
  color: #C62828;
}

span.pill-blue {
  background-color: #E3F2FD;
  color: #2196F3;
}

span.pill-purple {
  background-color: #F3E5F5;
  color: #9C27B0;
}

span.pill-green {
  background-color: #E8F5E9;
  color: #4CAF50;
}

span.publication-date {
  color: #757575;
  display: inline-block;
  font-size: 1.125rem;
  padding: 0.5rem 0.675rem;
}

/*** Code blocks ***/

div.highlight {
  margin: 2rem -1rem;
  padding: 1rem;
}

div.highlight code,
div.highlight code span {
  font-family: "Fira Code", monospace;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
}

@media screen and (min-width: 768px) {
  div.highlight {
    border-radius: 0.5rem;
    margin: 2rem 0;
  }
}
