---
---

// Do not remove the abot 2 lines
// Colors
$blue: #4183C4;
$red: #E74C3C;
$pink: #E91E63;
$yellow: #F1C40F;

// Grays
$black: #000;
$darkerGray: #222;
$darkGray: #333;
$gray: #666;
$lightGray: #eee;
$white: #fff;

/***************/
/* MEYER RESET */
/***************/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

code {
  font-family: 'Space Mono', monospace;
  font-size: 0.8em;
  border: 1px dashed #ccc;
  background-color: $lightGray;
  padding: 2px 4px;
}

pre {
  font-family: 'Space Mono', monospace;
  font-size: 0.8em;
  border: 1px solid #ccc;
  background-color: $lightGray;
  padding: 10px;
  overflow-x: auto;
}

pre > code {
  font-family: 'Space Mono', monospace;
  font-size: 0.8em;
  border: 0px;
  padding: 2px 4px;
}

p > strong {
  font-weight: bold;
  color: $red;
}

// HTML5 display-role reset for older browsers
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
// Apply a natural box layout model to all elements
// from: http://www.paulirish.com/2012/box-sizing-border-box-ftw/
*, *:before, *:after {
  -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}

// Mobile breakpoints
@mixin mobile {
  @media screen and (max-width: 640px) {
    @content;
  }
}

/**************/
/* BASE RULES */
/**************/

@import url('https://fonts.googleapis.com/css2?family=Space+Mono&family=DM+Sans:wght@300;400&family=Slackside+One&family=Architects+Daughter&display=swap');

html {
  font-size: 100%;
  height: 100%;
}

body {
  background: #fff;
  text-align: justify;
  font-family: 'Space Mono', serif;
  color: #404040;
  line-height: 2;
  font-weight: 500;
  font-size: 20px;
  height: 100%;
}

.one-half {
  width: 50%;
}

.one-fourth {
  display: flex;
  width: 25%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Mono', sans-serif;
  color: #E34E43;
  font-weight: bold;

  line-height: 2;
  margin: 1em 0 15px;
  padding: 0;
  text-align: left;

  @include mobile {
    line-height: 1.4;
  }
}

h1 {
  font-size: 30px;
  a {
    color: inherit;
  }
}

h2 {
  font-size: 24px;
}

.post {
  margin: 20px;
  max-width: 800px;
  padding: 40px;
  background-color: $white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (min-width: 769px){
	.post h2::before, .post h2::after {
	    content: "";
	    display: inline-block;
	    vertical-align: middle;
	    width: 46px;
	    height: 1px;
	    background: rgb(192, 211, 218);
	    margin: 0px 30px;
	}
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 18px;
  color: #222;
}

p {
  margin: 15px 0;
}

table {
	padding: 0;
}

table tr {
	border-top: 1px solid #cccccc;
	background-color: white;
	margin: 0;
	padding: 0;
}

table tr:nth-child(2n) {
	background-color: #f8f8f8;
}

table tr th {
	font-weight: bold;
	border: 1px solid #cccccc;
	text-align: left;
	margin: 0;
	padding: 6px 13px;
}

table tr td {
	border: 1px solid #cccccc;
	text-align: left;
	margin: 0;
	padding: 6px 13px;
}

table tr th :first-child,
table tr td :first-child {
	margin-top: 0;
}

table tr th :last-child,
table tr td :last-child {
	margin-bottom: 0;
}

a {
  color: $blue;
  text-decoration: none;
	cursor: pointer;
  &:hover, &:active {
    color: $blue;
  }
}

ul, ol {
  margin: 15px 0;
  padding-left: 30px;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

ol ul, ul ol, ul ul, ol ol {
  margin: 0;
}

ul ul, ol ul {
  list-style-type: circle;
}

em, i {
  font-style: italic;
}

strong, b {
  font-weight: bold;
}

img {
  max-width: 100%;
}

p > img {
  text-align: center;
  display: block;
  margin: 0 auto;
}

.date {
  font-style: italic;
  color: $gray;
}

// Specify the color of the selection
::-moz-selection {
  color: $black;
  background: $lightGray;
}
::selection {
  color: $black;
  background: $lightGray;
}

/*********************/
/* LAYOUT / SECTIONS */
/*********************/

.site-info {
  text-align: center;
}

.site-name {
  color: $red;
  text-align: center;
}

.site-avatar {
  float: none;
}

.nav-links {
  display: block;
  text-align: center;
}

.nav-links a {
  border: 1px dashed $red;
  background-color: $blue;
  display: inline-block;
  padding: 2px;
  color: $white;
  font-family: 'Space Mono', sans-serif;

  &:hover {
    background-color: $yellow;
    color: $black;
    border: 1px dashed $black;
  }
}

.archive-list {
  margin-right: 10px;
  padding: 5px 10px;
  border: 1px dashed $gray;
  margin-top: 10px;
  list-style-type: none;
  text-align: left;

  &:hover {
    background-color: $lightGray;
    border: 2px solid $gray;
  }
}

.archive-list a {
  color: $blue;
  text-decoration: none;
  font-weight: bold;

  &:hover {
    color: $pink;
  }
}

.wrapper-main {
  display: flex;
  width: 100%;
  padding-bottom: 134px;
  text-align: left;
}

.hilite {
  background-color: #f0f0f0;
  padding: 2px 4px;
  border-radius: 3px;
}


/// Code

.nt {
  color: $red;
  padding: 0 2px;
  font-weight: bold;
}
