/* Import fonts */
/* latin */
@font-face {
    font-family: "D-DIN";
    font-style: normal;
    font-weight: normal;
    src: url(/assets/fonts/D-DIN.otf) format("opentype");
    /* unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; */
}

@font-face {
    font-family: "D-DIN";
    font-style: normal;
    font-weight: bold;
    src: url(/assets/fonts/D-DIN-Bold.otf) format("opentype");
    /* unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; */
}

@font-face {
    font-family: "D-DIN";
    font-style: italic;
    font-weight: normal;
    src: url(/assets/fonts/D-DIN-Italic.otf) format("opentype");
    /* unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; */
}

/** Reset some basic elements */

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
hr,
dl,
dd,
ol,
ul,
figure {
    margin: 0;
    padding: 0;
}

/** Basic styling */
body {
    font:
        350 12pt/1.5 "D-DIN",
        sans-serif;
    color: #111;
    background-color: #fdfdfd;
    -webkit-text-size-adjust: 100%;
    -webkit-font-feature-settings: "kern" 1;
    -moz-font-feature-settings: "kern" 1;
    -o-font-feature-settings: "kern" 1;
    font-feature-settings: "kern" 1;
    font-kerning: normal;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/** Set `margin-bottom` to maintain vertical rhythm */
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
ul,
ol,
dl,
figure,
.highlight {
    margin-bottom: 15px;
}

/** `main` element */
main {
    display: block;
    /* Default value of `display` of `main` element is 'inline' in IE 11. */
}

/** Images */
img {
    max-width: 100%;
    vertical-align: middle;
}

/** Figures */
figure > img {
    display: block;
}

figcaption {
    font-size: 10.5pt;
}

/** Lists */
ul,
ol {
    margin-left: 30px;
}

li > ul,
li > ol {
    margin-bottom: 0;
}

/** Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    font-stretch: semi-condensed;
}

/** Links */
a {
    color: #f84116;
    text-decoration: none;
}

a:visited {
    color: #bc2806;
}

a:hover {
    color: #111;
    text-decoration: underline;
}

.social-media-list a:hover {
    text-decoration: none;
}

.social-media-list a:hover .username {
    text-decoration: underline;
}

/** Blockquotes */
blockquote {
    color: #828282;
    border-left: 4px solid #e8e8e8;
    padding-left: 15px;
    font-size: 13.5pt;
}

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

/** Code formatting */

pre {
    padding: 8px 12px;
    overflow-x: auto;
    font-family: "Berkeley Mono", "Source Code Pro", monospace;
    background: none;
    border: none;
    border-radius: 0;
    border: 1.4px solid #111;
}

/** Wrapper */
.wrapper {
    max-width: -webkit-calc(800px - (30px * 2));
    max-width: calc(800px - (30px * 2));
    margin-right: auto;
    margin-left: auto;
    padding-right: 30px;
    padding-left: 30px;
}

@media screen and (max-width: 800px) {
    .wrapper {
        max-width: -webkit-calc(800px - (30px));
        max-width: calc(800px - (30px));
        padding-right: 15px;
        padding-left: 15px;
    }
}

/** Clearfix */
.footer-col-wrapper:after,
.wrapper:after {
    content: "";
    display: table;
    clear: both;
}

/** Icons */
.svg-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    fill: #828282;
    padding-right: 5px;
    vertical-align: text-top;
}

.social-media-list li + li {
    padding-top: 5px;
}

/** Tables */
table {
    margin-bottom: 30px;
    width: 100%;
    text-align: left;
    color: #3f3f3f;
    border-collapse: collapse;
    border: 1px solid #e8e8e8;
}

table tr:nth-child(even) {
    background-color: #f7f7f7;
}

table th,
table td {
    padding: 10px 15px;
}

table th {
    background-color: #f0f0f0;
    border: 1px solid #dedede;
    border-bottom-color: #c9c9c9;
}

table td {
    border: 1px solid #e8e8e8;
}

/** Site header */
.site-header {
    border-top: 5px solid #424242;
    border-bottom: 1px solid #e8e8e8;
    min-height: 55.95px;
    position: relative;
}

.site-header .wrapper {
    /* display: flex; */
    grid-auto-flow: row;
    align-items: baseline;
}

.site-title {
    font-size: 19.5pt;
    font-weight: 300;
    line-height: 40.5pt;
    letter-spacing: -1px;
    margin-bottom: 0;
    white-space: nowrap;
    width: fit-content;
    margin-right: 20px;
    display: inline-block;
}

.site-title,
.site-title:visited {
    color: #424242;
}

.site-nav {
    display: inline-block;
}

.site-nav .page-link {
    color: #111;
    line-height: 1.5;
}

.site-nav .page-link:not(:last-child) {
    margin-right: 20px;
}

/** Site footer */
.site-footer {
    border-top: 1px solid #e8e8e8;
    padding: 30px 0;
}

.footer-heading {
    font-size: 13.5pt;
    margin-bottom: 15px;
}

.contact-list,
.social-media-list {
    list-style: none;
    margin-left: 0;
}

.footer-col-wrapper {
    font-size: 11.25pt;
    color: #828282;
    margin-left: -15px;
}

.footer-col {
    float: left;
    margin-bottom: 15px;
    padding-left: 15px;
}

.footer-col-1 {
    width: calc(30% - (30px / 2));
}

.footer-col-2 {
    width: calc(40% - (30px / 2));
}

.footer-col-3 {
    width: calc(30% - (30px / 2));
}

@media screen and (max-width: 800px) {
    .footer-col-1,
    .footer-col-2 {
        width: -webkit-calc(50% - (30px / 2));
        width: calc(50% - (30px / 2));
    }

    .footer-col-3 {
        width: -webkit-calc(100% - (30px / 2));
        width: calc(100% - (30px / 2));
    }
}

@media screen and (max-width: 600px) {
    .footer-col {
        float: none;
        width: -webkit-calc(100% - (30px / 2));
        width: calc(100% - (30px / 2));
    }
}

/** Page content */
.page-content {
    padding: 30px 0;
    flex: 1;
}

.page-heading {
    font-size: 24pt;
}

.post-list-heading {
    font-size: 21pt;
}

.post-list {
    margin-left: 0;
    list-style: none;
}

.post-list > li {
    margin-bottom: 30px;
}

.post-meta {
    font-size: 10.5pt;
    color: #828282;
}

.post-link {
    display: block;
    font-size: 18pt;
}

/** Posts */
.post-header {
    margin-bottom: 16px;
    border: 1.4px solid #111;

    padding: 1em;
    padding-bottom: 0;
    margin-left: -1em;
    margin-right: -1em;

    background-color: #eeeeee;

    box-shadow: 5px 5px #333333;
}

.post-title {
    font-size: 31.5pt;
    letter-spacing: -1px;
    line-height: 1;
}

@media screen and (max-width: 800px) {
    .post-title {
        font-size: 27pt;
    }
}

.post-content {
    margin-bottom: 30px;
}

.post-content h2 {
    font-size: 24pt;
}

@media screen and (max-width: 800px) {
    .post-content h2 {
        font-size: 21pt;
    }
}

.post-content h3 {
    font-size: 19.5pt;
}

@media screen and (max-width: 800px) {
    .post-content h3 {
        font-size: 16.5pt;
    }
}

.post-content h4 {
    font-size: 15pt;
}

@media screen and (max-width: 800px) {
    .post-content h4 {
        font-size: 13.5pt;
    }
}

@font-face {
    font-family: "Berkeley Mono";
    src: url(./fonts/BerkeleyMono-Regular.woff2);
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: "Berkeley Mono";
    src: url(./fonts/BerkeleyMono-Italic.woff2);
    font-style: oblique;
    font-weight: normal;
}

@font-face {
    font-family: "Berkeley Mono";
    src: url(./fonts/BerkeleyMono-Bold.woff2);
    font-style: normal;
    font-weight: bold;
}

@font-face {
    font-family: "Berkeley Mono";
    src: url(./fonts/BerkeleyMono-BoldItalic.woff2);
    font-style: oblique;
    font-weight: bold;
}

.post-list .footnotes {
    display: none;
}

section.legal {
    font-size: 8pt;
}

body {
    background-color: #333;
}

br.mobile-linebreak {
    display: none;
}

@media screen and (max-width: 600px) {
    br.mobile-linebreak {
        display: block;
    }
}

main.page-content {
    padding-top: 0;
    padding-bottom: 0;
}

main {
    width: 100%;
    background-color: #828282;
}

main .post-content h1 {
    font-size: 24pt;
    border-bottom: 1px solid #111;
}

main .post-content h2 {
    font-size: 20pt;
    margin-top: 12pt;
    margin-bottom: 4pt;
}

main .post-content h3 {
    font-size: 16pt;
}

main .post-content h4 {
    font-size: 12pt;
}

a.header-anchor {
    font-size: 65%;
    vertical-align: text-top;
    opacity: 25%;
    margin-left: 6px;
}

a.header-anchor:hover {
    opacity: 100%;
}

main p,
main pre {
    margin-bottom: 0.75em;
    font-size: 95%;
}

main.page-content .wrapper {
    background-color: #fdfdfd;
    padding-top: 16pt;
    padding-bottom: 30pt;
    padding-left: 30pt;
    padding-right: 30pt;
}

.site-header,
.site-footer {
    color: #828282;
    background-color: #333;
}

.site-header .site-title .title,
.site-footer .site-title .title {
    font-weight: 500;
    text-shadow:
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black,
        3px 3px 0 #f84116;
    color: #fdfdfd;
    font-size: 32pt;
}

.site-header .site-title a.title:hover,
.site-footer .site-title a.title:hover {
    text-decoration-line: none;
}

.site-header .site-title .subtitle,
.site-footer .site-title .subtitle {
    font-size: 12pt;
    color: #828282;
}

.site-header .site-nav .page-link,
.site-footer .site-nav .page-link {
    color: inherit;
}

blockquote {
    font-style: normal;
    font-size: 12pt;
}

div.footnotes {
    margin-top: 18pt;
    font-size: 9pt;
}

div.footnotes code {
    font-size: 9pt;
}

svg.barchart rect {
    fill: #828282;
    stroke: #424242;
}

section.archives .post-link {
    font-size: 12pt;
}

.pagination a {
    display: block;
}

.pagination a.previous {
    float: left;
}

.pagination a.next {
    float: right;
}

.highlighter-rouge .highlight {
    background: none;
}

span.sponsored {
    position: relative;
    bottom: 0.75em;
    font-size: 66%;
}

table.codenum {
    border: 1.4px solid #111;
    text-indent: 0;
}

table.codenum td {
    border: none;
    padding: 0;
}

table.codenum td:first-child {
    text-align: right;
}

table.codenum pre {
    border: none;
    margin: 0;
    font-family: "Berkeley Mono", "Source Code Pro", monospace;
}

.footnote-definition {
    font-size: 87%;
}

.footnote-definition-label {
    float: left;
    margin-right: 4px;
}

hr {
    margin: 1.25em 0;
}

a:has(> span.wayback-indicator) {
    font-size: 0.8em;
    position: relative;
    top: -0.5em;
}

span.wayback-indicator {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("./ia-logo.svg");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}
