/* Originally written and designed by Will Field-Thompson for willft.com */

/* FONTS */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/Spectral-SemiBold.ttf) format('truetype');
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/Spectral-ExtraBoldItalic.ttf) format('truetype');
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/Spectral-Regular.ttf) format('truetype');
}

/* GENERAL */

:root {
    max-width: 100%;
    font-family:'Spectral', serif;
    --title-color: #2E3840;
    --click-color: #3873FF;
    --button-color: #3873FB;
    --link-color: #003570;
    --code-block-bg: #1a1a1a;
    --code-block-fg: white;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Spectral', serif;
    font-weight: 600;
    color: var(--title-color);
    margin: 4px 0 0 0;
}

h1 {
    font-weight: 800;
}

#big-name {
    font-style: italic;
    font-size: 2.2em;
    margin: 0;
}

p, p>*, span:not(code *), li {
    font-size: 16px;
    font-size-adjust: ex-height 0.49;
}

p:not(.gist *):not(.blogpost *) {
    margin: 0;
}

.gist {
    margin-top: 16px;
}

.blogpost {
    max-width: 750px;
}

.blogpost-metadata .date {
    color: rgb(from var(--title-color) r g b / 80%);
}

nav.blogpost-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 750px;
}

@media (max-width:750px) {
    nav.blogpost-nav {
        flex-direction: column;
        align-items: flex-start;
    }
}

div.highlight {
    border: 1px solid lightgray;
    border-radius: 1px;
    padding: 0 10px 0 10px;
    overflow: scroll;
}

#back-button {
    color: gray;
}

.small-only {
    display: none;
    border: 0 0 0 0;
}

.printer-only {
    display: none;
}

.no-printer {
    display:initial;
}

/***

   ANCHORS

 ***/

a {
    color:var(--link-color);
    font-weight: bold;
    text-decoration:none;
    transition: color .2s;
}

a:hover:not(#menu-button) {
    color:var(--click-color);
}

a.button {
    white-space: nowrap;
    border:solid 1px var(--button-color);
    border-radius:2px;
    background-color:var(--click-color);
    color:#FFF;
    padding:4px;
    cursor:pointer;
    line-height:2em;
    transition: color .2s ease, background-color .2s ease;
}

a.button:hover {
    background-color:#FFF;
}

ul {
    list-style-type: circle;
    margin: 0;

}

.text-centered {
    text-align:center;
}

body {
    border-radius:2px;
    padding:10px;
    margin-left:auto;
    margin-right:auto;
    margin-bottom:8px;
    padding-top:80px;
    width:70%
}

.content>div.body {
    margin-left:12px;
    margin-right:12px;
    text-align:left;
}

hr {
    border: 0;
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.border-box {
    border:solid 2px #5B717F;
    border-radius:2px;
}

.side-image {
    float:left;
    margin-right:20px;
    margin-bottom:20px;
    border-radius:2px;
    width:120px;
    height:120px;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.main-side {
    min-height:150px;
}

.shadow-box {
    box-shadow: 0px 0px 2px #888888;
    border-radius:2px;
}

.center-all {
    padding: 0px;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

img.rounded {
    border-radius: 5px;
}

ul.site-nav {
    list-style-type: none;
    padding: 0;
    margin: 24px;
}

ul.site-nav li {
    display: inline;
}

ul.site-nav li a {
    border-radius: 4px;
    background-color: var(--link-color);
    color: white;
    padding: 0 8px;
}

ul.site-nav li a:hover:not(#menu-button) {
    background-color: var(--button-color);
    color: white;
}

ul.site-nav li + li {
    padding-left: 14px;
}

.contact-info {
    --bar-padding: 8px;
    padding-right: var(--bar-padding);
}

.contact-info + .contact-info {
    border: none;
    border-left: 1px solid var(--title-color);
    padding-left: var(--bar-padding);
}

.multicolumn {
    columns: 2;
}

.multicolumn li {
    break-inside: avoid;
}

ul.hide-bullets {
    list-style-type: none;
    padding-left: 20px;
}

ul.hide-indent {
    list-style-type: none;
    padding-left: 0;
}
