src/DustedCodes/CSS/site.css
/* --------------------------
  Default elements
-------------------------- */

/*Fixing monospace handling across browsers*/
pre,
code,
kbd,
samp {
    font-family: var(--font-code);
    font-size: 1em;
}

body {
    display: flex;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
    -ms-align-content: flex-start;
    -webkit-align-content: flex-start;
    align-content: flex-start;
    margin: 0;
    padding: 0;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
    font-size: 1.3em;
    font-family: var(--font-text);
    background-color: var(--col-dark);
    color: var(--col-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-text);
    font-weight: 700;
    color: var(--col-light);
}

h1 {
    margin: 1em 0;
    font-size: 3.4em;
    text-align: center;
}

h2 {
    font-size: 2.6em;
    font-weight: 800;
}

h3 {
    font-size: 1.6em;
    font-weight: 800;
}

h4 {
    font-size: 1.2em;
    font-weight: 800;
}

h5 {
    font-size: 1em;
}

h6 {
    font-size: .8em;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: .5em;
}

p {
    line-height: 2em;
    color: var(--col-normal);
}

a {
    color: var(--col-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code {
    display: inline-block;
    padding: .1em .4em;
    -ms-border-radius: 4px;
    border-radius: 4px;
    font-family: var(--font-code);
    font-size: .8em;
    line-height: 1.8em;
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: var(--col-faint);
    color: var(--col-code);
}

pre {
    width: auto;
    overflow-x: auto;
}

pre > code {
    display: block;
    padding: .5em 0 .5em 1em;
    font-size: .75em;
    background-color: var(--col-faint);
    color: var(--col-normal);
}

a > code::before {
    display: inline-block;
    position: relative;
    margin-right: 5px;
    width: 18px;
    height: 18px;
    top: .25em;
    content: ' ';
    background: url(/images/link-888888.svg) no-repeat;
}

a > code:hover {
    color: var(--col-accent);
}

h6 + pre {
    margin-top: .5em;
}

img {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border-radius: 6px;
    -moz-border-radius: 6px;
}

kbd {
    border: 1px solid var(--col-faded);
    font-family: var(--font-code);
    padding: .2em .5em;
    -ms-border-radius: 3px;
    border-radius: 3px;
    font-size: .85em;
}

del {
    text-decoration: none;
    position: relative;
}

del:before {
    content: ' ';
    font-size: inherit;
    display: block;
    position: absolute;
    right: 0;
    left: 0;
    top: 50%;
    bottom: 50%;
    border-top: .075em solid var(--error-bg-color);
    transform: rotate(10deg);
}

del:after {
    content: ' ';
    font-size: inherit;
    display: block;
    position: absolute;
    right: 0;
    left: 0;
    top: 50%;
    bottom: 50%;
    border-top: .075em solid var(--error-bg-color);
    transform: rotate(-10deg);
}

table {
    display: block;
}

td, th {
    text-align: center;
    font-size: .95em;
    padding: .5em;
}

th:first-child {
    text-align: left;
}

tr:nth-child(odd)  { background-color: var(--col-dark); }
tr:nth-child(even) { background-color: var(--col-faint); }

blockquote {
    color: var(--col-normal);
    background: var(--col-faint);
    border-left: 5px solid var(--col-light);
    margin: 1.5em 0;
    padding: .6em 1em;
    border-radius: 3px 0 0 3px;
    -moz-border-radius: 3px 0 0 3px;
    -webkit-border-radius: 3px 0 0 3px;
}

blockquote > header {
    margin-bottom: -10px;
}

blockquote > header > h1,
blockquote > header > h2,
blockquote > header > h3,
blockquote > header > h4,
blockquote > header > h5,
blockquote > header > h6 {
    margin-top: 0;
}

blockquote > p {
    line-height: 1.7em;
    font-size: .9em;
}

blockquote > p:first-child {
    margin-top: 0;
}

blockquote > p:last-child {
    margin-bottom: 0;
}

blockquote > footer {
    margin: 0 0 0.3em 0;
    padding: 0;
}

blockquote > footer > cite {
    font-family: var(--font-text);
    font-size: .85em;
    font-weight: 600;
    font-style: italic;
}

blockquote > footer > cite > a:before {
    content: '> ';
}

article {
    font-size: 1.1em;
}

article > header {
    margin-bottom: 3em;
}

article li {
    margin: .2em 0;
    line-height: 2em;
}

form {
    margin: 2em 0;
}

label {
    display: block;
    margin: 2em .2em .3em .2em;
    font-size: .7em;
    text-transform: uppercase;
    font-weight: 300;
    font-family: var(--font-special);
    color: var(--col-normal);
}

button {
    display: flex;
    flex-flow: row wrap;
    justify-items: center;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    margin-top: 2em;
    width: 100%;
    padding: .75em 1em;
    border-radius: 10px;
    -moz-border-radius: 10px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    font-family: var(--font-text);
    border: 2px solid var(--col-accent-dark);
    background: var(--col-dark);
    color: var(--col-accent-dark);
}

button:hover {
    border: 2px solid var(--col-strong);
    background: var(--col-faint);
    color: var(--col-strong);
}

button svg {
    width: 40px;
    height: 40px;
    fill: var(--col-accent-dark);
    margin-right: 20px;
}

button:hover svg {
    fill: var(--col-strong);
}

input, textarea, button {
    -webkit-appearance: none;
    -moz-appearance: none;
}

input,
textarea {
    display: block;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: .75em;
    border: 2px solid var(--col-faint);
    border-radius: 4px;
    -moz-border-radius: 4px;
    background: transparent;
    font-size: 1em;
    color: var(--col-light);
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

textarea {
    min-height: 100px;
}

input[type=text]:focus,
input[type=tel]:focus,
input[type=email]:focus,
textarea:focus {
    outline: none;
    border: 2px solid var(--col-light);
}

::placeholder {
    color: var(--col-faded);
    font-style: italic;
    font-weight: 400;
    font-size: .8em;
}
::-webkit-input-placeholder {
    color: var(--col-faded);
    font-style: italic;
    font-weight: 400;
    font-size: .8em;
}
::-moz-placeholder {
    color: var(--col-faded);
    font-style: italic;
    font-weight: 400;
    font-size: .8em;
}
:-ms-input-placeholder {
    color: var(--col-faded);
    font-style: italic;
    font-weight: 400;
    font-size: .8em;
}
:-moz-placeholder {
    color: var(--col-faded);
    font-style: italic;
    font-weight: 400;
    font-size: .8em;
}

iframe.youTubeVideo {
    width: 100%;
    min-height: 350px;
    box-sizing: border-box;
    border: none;
}

/* --------------------------
  Master page
-------------------------- */

body > main,
#inner-nav ,
#inner-header,
#inner-footer {
    margin: 1em auto;
    padding: 0 20px;
    width: 100%;
    max-width: 840px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

#inner-header h2:hover {
    color: var(--col-accent);
}

body > header,
body > footer {
    font-family: var(--font-text);
}

body > header {
    font-size: 1.2em;
    order: 0;
}

nav {
    order: 1;
}

body > main {
    order: 2;
    border-top: 1px solid var(--col-faint);
    border-bottom: 1px solid var(--col-faint);
}

body > footer {
    order: 3;
}

body > header a {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    margin-top: 5em;
}

body > header a:link,
body > header a:visited,
body > header a:hover,
body > header a:active {
    color: var(--col-light);
    font-size: .6em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .8px;
}

body > header h1 {
    display: flex;
    align-items: center;
}

body > header h1 > svg {
    margin: 0 7px 0 10px;
    width: 50px;
    height: 50px;
    fill: var(--col-strong);
}

body > header h1 > span {
    color: var(--col-light);
}

body > header h1 {
    margin: 0 0 .5em 0;
    font-family: var(--font-logo);
    font-weight: 900;
    font-size: 2.4em;
}

body > header h2 {
    margin: 0;
    font-family: var(--font-logo);
    font-size: 1em;
    font-weight: 400;
    color: var(--col-normal);
    letter-spacing: .18em;
}

#inner-header a hgroup:hover {
    color: var(--col-accent);
}

#inner-header a hgroup:hover h1 > svg {
    fill: var(--col-accent);
}

#inner-header a hgroup:hover h2 {
    color: var(--col-accent);
}

#nav-links,
#social-links {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

#nav-links {
    margin: 2em 0 0 0;
    font-family: var(--font-special);
}

#nav-links li,
#social-links li {
    display: inline;
}

#nav-links a:link,
#nav-links a:visited {
    display: inline-block;
    margin: .3em 1em;
    padding: .3em .5em;
    color: var(--col-light);
    font-size: .8em;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
}

#nav-links a:hover,
#nav-links a:active {
    color: var(--col-accent);
    text-decoration: none;
}

#social-links a {
    margin: .3em .2em;
}

#social-links svg {
    fill: var(--col-faded);
    width: 20px;
    height: 20px;
    padding: .3em;
}

#social-links svg:hover {
    fill: var(--col-accent);
}

#inner-footer {
    margin-bottom: 4em;
    font-size: .85em;
    text-align: center;
}

#inner-footer h5 {
    margin: 0;
    padding: 0;
    color: var(--col-normal);
    font-size: .75em;
    font-weight: 700;
    word-spacing: 2px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

#inner-footer p {
    margin: .5em 0;
    padding: 0;
    line-height: 1.4em;
    color: var(--col-faded);
    font-family: var(--font-text);
    font-weight: 300;
}

/* --------------------------
  Unique elements
-------------------------- */

#trending-list,
#blogpost-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2em;
}

#trending-list {
    margin-top: 2em;
}

#trending-list li,
#blogpost-list li {
    line-height: 1.7em;
    text-align: center;
    padding-top: 2em;
    border-top: 1px solid var(--col-faint);
    margin-top: 2em;
}

#trending-list li:first-child,
#blogpost-list li:first-child {
    border-top: none;
}

#trending-list li > div > a,
#blogpost-list li > div > a {
    display: inline-block;
    font-size: 1.4em;
    font-weight: 600;
    color: var(--col-light);
    margin-bottom: .7em;
}

#trending-list li > div > a:hover,
#blogpost-list li > div > a:hover {
    color: var(--col-accent);
    text-decoration: none;
}

#trending-list .blogpost-metadata,
#blogpost-list .blogpost-metadata {
    justify-content: center;
}

#avatar {
    float: left;
    max-width: 260px;
    margin-right: 2em;
    margin-bottom: .5em;
}

#avatar:after {
    content: " ";
    visibility: hidden;
    display: block;
    height: 0;
    clear: both;
}

#comments {
    margin: 2em 0;
}

#contact h1 {
    margin: 1em 0 .5em 0;
}

/* --------------------------
  Classes
-------------------------- */

.tip {
    background: var(--col-faint);
    border-radius: 6px;
    -moz-border-radius: 6px;
    padding: .5em 1em;
    font-style: italic;
    font-size: .95em;
}

.tip > p:first-child {
    margin-top: 0;
}

.tip > p:last-child {
    margin-bottom: 0;
}

.tip strong {
    color: var(--col-strong);
}

.bmc-button {
    width: 100%;
    display: flex;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: 2px solid var(--col-bmc);
    border-radius: 10px;
    margin: 2em 0 2em 0;
    padding: .7em .5em;
    text-decoration: none;
    background: var(--col-dark);
    color: var(--col-bmc);
    font-family: var(--font-accent);
    justify-content: center;
    align-items: center;
    font-style: italic;
    font-size: 1.4em;
    font-weight: 600;
}

.bmc-button svg {
    width: 35px;
    height: 50px;
    margin-right: 20px;
    fill: var(--col-bmc);
}

.bmc-button:hover {
    border: 2px solid var(--col-strong);
    background: var(--col-faint);
    color: var(--col-strong);
    text-decoration: none;
}

.bmc-button:hover svg {
    fill: var(--col-strong);
}

.article-list > h3 {
    display: block;
    text-align: center;
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 1.6em;
    text-transform: uppercase;
}

.article-list > ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-list > ul > li {
    display: block;
    margin: 1.5em 0;
    padding: 0;
    text-align: center;
}

.article-list a:link,
.article-list a:visited {
    margin: 0;
    padding: 0;
    max-width: 510px;
    text-decoration: none;
    color: var(--col-normal);
    font-family: var(--font-text);
    font-size: 1em;
    font-weight: 400;
}

.article-list a:hover,
.article-list a:active {
    color: var(--col-accent);
}

.blogpost-metadata {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    font-size: .9em;
    font-weight: 300;
    color: var(--col-normal);
}

.blogpost-metadata a {
    color: var(--col-normal);
}

.blogpost-metadata a:hover {
    color: var(--col-accent);
}

.blogpost-metadata svg {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    fill: var(--col-faded);
}

.blogpost-metadata div {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    margin: .2em 20px .2em 0;
}

.blogpost-metadata div:last-child {
    margin-right: 0;
}

.tags {
    text-align: left;
}

.tags > a:after {
    content: ',';
}

.tags > a:last-child:after {
    content: '';
}

.tags > a {
    margin-right: .3em;
}

.tags > a:last-child {
    margin-right: 0;
}

.share-links {
    padding: 0;
    margin: 3em 0;
    list-style: none;
    text-align: center;
}

.share-links li {
    display: inline;
}

.share-links svg {
    fill: var(--col-faded);
    width: 22px;
    height: 22px;
    padding: .6em;
}

.share-links svg:hover {
    fill: var(--col-accent);
}

.three-quarters {
    max-width: 75%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.error-view h1,
.error-view p {
    text-align: center;
}

.footnote {
    margin: 1.5em 0;
    font-style: italic;
    font-weight: 300;
    font-size: .9em;
    color: var(--col-text);
}

.success-msg {
    display: flex;
    align-items: center;
    padding: .7em 1em;
    font-size: .8em;
    font-weight: 700;
    border-radius: 6px;
    -moz-border-radius: 6px;
    background: var(--success-bg-color);
    color: var(--success-fg-color);
}

.error-msg {
    display: flex;
    align-items: center;
    padding: .7em 1em;
    font-size: .8em;
    font-weight: 700;
    border-radius: 6px;
    -moz-border-radius: 6px;
    background: var(--error-bg-color);
    color: var(--error-fg-color);
}

.error-msg svg,
.success-msg svg{
    display: inline;
    width: 22px;
    height: 22px;
    padding: 1px;
    fill: #fff;
    margin-right: 10px;
}

/* --------------------------
  Mobile overrides
-------------------------- */

@media all and (max-width: 640px) {

    body > main {
        margin-top: 0;
        border-top: 1px solid var(--col-faint);
        border-bottom: 1px solid var(--col-faint);
    }

    main > article > header > h1 {
        font-size: 2.8em;
    }

    h2 {
        font-size: 2.2em;
    }

    #social-links svg {
        padding: .5em;
    }

    #nav-links a:link {
        margin: .2em;
        padding: .5em 1em;
        max-width: 100%;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        text-align: center;
    }

    #article-list li,
    #article-list li:hover {
        margin: 2.5em 0;
        border: 0;
        padding: 0;
    }

    #avatar {
        margin-bottom: 3em;
        max-width: 100%;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .blogpost-metadata {
        flex-flow: column wrap;
    }

    .blogpost-metadata > div {
        margin: .5em 0;
    }

    .share-links svg {
        padding: .8em;
    }

    .three-quarters {
        max-width: 100%;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
}