:root {
  --html-font-size: 16px;  
  --base-font-size: 1rem;
  --line-height: 1.5;
  --scale-factor: 1.3333;
  --leading: 1.5rem;
  --letter-spacing: 0.05em;

  --link-color: #b73333;
  --link-hover-color: #653131;

  --heading-text-color: #222;
  --primary-text-color: #444;
  --secondary-text-color: #666;

  --primary-background: #fefefe;
  --secondary-background: #f5f5f5;

  --success-color: #00B918;
  --warning-color: #FFAF00;
  --error-color: #DB141A;
}


html {
    font-size: 16px;
    line-height: 1.5;
}

body {
    font-family: 'Noway', sans-serif;
    -moz-font-feature-settings: "liga", "clig", "onum", "frac", "kern";
    -webkit-font-feature-settings: "liga", "clig", "onum", "frac", "kern";
    -ms-font-feature-settings: "liga", "clig", "onum", "frac", "kern";
    font-feature-settings: "liga", "clig", "onum", "frac", "kern";
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    font-weight: 300;
    margin: auto;
    letter-spacing: 0.05em;
    font-size: 1rem;
    line-height: 1.5rem;
}

h1,
.h1 {
    font-size: 2.375rem;
    line-height: calc(1.5rem * 1.8);
    margin-top: calc(1.5rem * 1);
    margin-bottom: calc(1.5rem * 0);
}

h2,
.h2 {
    font-size: 2rem;
    line-height: calc(1.5rem * 1.8);
    margin-top: calc(1.5rem * 1);
    margin-bottom: calc(1.5rem * 0.5);
}

h3,
.h3 {
    font-size: 1.5rem;
    line-height: calc(1.5rem * 1.3);
    margin-top: calc(1.5rem * 1);
    margin-bottom: calc(1.5rem * 0.5);
}

h4,
.h4 {
    font-size: 1.3rem;
    line-height: calc(1.5rem * 1.3);
    margin-top: calc(1.5rem * 1);
    margin-bottom: calc(1.5rem * 0.5);
}

h5,
.h5 {
    font-size: 1.2rem;
    line-height: calc(1.5rem * 1.3);
    margin-top: calc(1.5rem * 1);
    margin-bottom: calc(1.5rem * 0.5);
}

p,
ul,
ol,
pre,
table,
blockquote {
    margin-top: calc(1.5rem * 0);
    margin-bottom: calc(1.5rem * 1);
}

ul ul,
ol ol,
ul ol,
ol ul {
    margin-top: calc(1.5rem * 0);
    margin-bottom: calc(1.5rem * 0);
}

a,
b,
i,
strong,
em,
small,
code {
    line-height: calc(1.5rem * 0);
}

pre,
code {
    font-family: 'Hack', monospace;
}

code.hljs {
    font-size: calc(1rem * 0.75);
    line-height: calc(1.5rem * 0.75);
}

small,
sub,
sup,
time,
.panel-header,
hr::before,
footer {
    font-size: calc(1rem * 0.75);
}

sub,
sup {
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

.primary-subtitle,
.secondary-subtitle {
    font-style: italic;
}

.primary-subtitle {
    margin-top: calc(1.5rem * -1);
}

.secondary-subtitle {
    margin-top: 0;
}

.leading {
    line-height: calc(1.5rem * 1);
    margin-top: calc(1.5rem * 1);
    margin-bottom: calc(1.5rem * 0);
}

b,
strong,
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.panel-title {
    font-weight: 600;
}

i,
em,
.primary-subtitle,
.secondary-subtitle,
.panel-header {
    font-family: 'Noway', sans-serif;
    font-style: italic;
    -moz-font-feature-settings: "liga", "clig", "dlig", "onum", "frac", "kern";
    -webkit-font-feature-settings: "liga", "clig", "dlig", "onum", "frac", "kern";
    -ms-font-feature-settings: "liga", "clig", "dlig", "onum", "frac", "kern";
    font-feature-settings: "liga", "clig", "dlig", "onum", "frac", "kern";
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Noway', sans-serif;
    font-style: normal;
    -moz-font-feature-settings: "liga", "clig", "dlig", "onum", "frac", "kern";
    -webkit-font-feature-settings: "liga", "clig", "dlig", "onum", "frac", "kern";
    -ms-font-feature-settings: "liga", "clig", "dlig", "onum", "frac", "kern";
    font-feature-settings: "liga", "clig", "dlig", "onum", "frac", "kern";
}

.body-text {
    margin-left: 2rem;
}

.home-content .body-text {
    margin-left: 0;
}

.body-text h1,
.body-text h2,
.body-text h3,
.body-text h4,
.body-text h5,
.body-text h6 {
    margin-left: -2rem;
    margin-bottom: 0.8rem;
}

a {
    text-decoration: none;
    display: inline;
}

.content {
    padding: 0 calc(1.5rem * 0.5);
    padding-bottom: calc(1.5rem * 0.25);
}

.container-fluid {
    padding: 0 calc(1.5rem * 0.5);
}

time {
    text-align: right;
    display: block;
}

.sidebar header {
    text-align: center;
}

#theme-switcher {
    font-style: italic;
    cursor: pointer;
}

.main-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.main-header h1 {
    margin-top: 0.1em;
}

.main-header .navlinks {
    text-align: left;
    flex-grow: 1;
}

.logo {
    margin: auto;
    display: block;
    font-size: 2rem;
}

a.logo {
    text-decoration: none;
}

hr {
    border: none;
    margin: 0;
}

hr::before {
    content: '*\00A0\00A0*\00A0\00A0*';
    font-size: 1.5rem;
    display: block;
    text-align: center;
}

.card:last-child .card-footer::after {
    content: none;
}

.card-footer {
    margin: auto;
}

.card-title {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.badge {
    margin-right: 5px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
}

.project-version {
    margin-left: 5px;
    font-size: 75%;
}

.card-footer .action::after {
    content: '\00B7';
}

.card-footer .action:last-child::after {
    content: none;
}

.panel {
    margin-top: calc(1.5rem * 1);
}

.panel-header {
    text-align: right;
}

.panel-body {
    margin-top: calc(1.5rem * -1);
}

.panel-body header {
    text-align: left;
}

footer {
    text-align: center;
}

ul.inline {
    padding-left: 0;
}

ul.inline li {
    display: inline;
}

footer p,
footer ul.inline,
.secondary-subtitle {
    margin-bottom: calc(1.5rem * 0);
}

footer .h3rald {
    font-size: 0.85rem;
    /* Compensate */
    vertical-align: text-bottom;
}

.clearfix {
    clear: both;
}

img {
    max-width: 100%;
}

pre code,
img {
    border-radius: 4px;
}

/*****
 * THEME
 *****/

body {
    background: #fefefe;
    color: #444;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5 {
    color: #222;
}

.primary-subtitle {
    margin-top: 0.5rem;
    color: var(secondary-text-color);
}

a,
a:visited {
    color: #b73333;
}

a:hover {
    color: #653131;
}

.content {
    background: #fefefe;
    color: #444;
}

.main,
.sidebar,
.sidebar .content {
    background: #fefefe;
    color: #444;
}

.sidebar a,
.sidebar a:visited {
    color: #b73333;
}

.sidebar a:hover {
    color: #653131;
}

a.logo,
a.logo:visited,
a.logo:hover {
    color: #222;
}

.sidebar hr,
.main hr,
.panel-header {
    color: #666;
}

.badge {
    color: #222;
    font-variant: small-caps;
}

.badge-success {
    background: #00B918;
}

.badge-warning {
    background: #FFAF00;
}

.badge-error {
    background: #DB141A;
}

code,
pre {
    background-color: #f5f5f5;
    font-size: 0.8rem;
}

pre code,
img {
    border: 1px solid #f5f5f5;
}

