/* ===========================
   Graphite Color Scheme
   Compiled from SCSS sources
   =========================== */



/* --- Global --- */

body {
    background-color: #ffffff;
    color: #404040;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #fb542b;
}

pre {
    background: #272822;
    border-radius: 4px;
    padding: 0;
    overflow: auto;
}

pre code {
    font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 75%;
    display: block;
    padding: 10px;
    background: inherit;
    color: inherit;
}

code {
    font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 75%;
    background: #f8f8f8;
    border: 1px solid #e4e4e4;
    border-radius: 3px;
    padding: 2px 5px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@-ms-viewport {
    width: device-width;
}

/* --- Header --- */

.header {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 0 20px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 760px;
}

.headerWrapper {
    overflow: auto;
    box-sizing: border-box;
    background-color: #ffffff;
    border-bottom: 1px solid #f2f2f2;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

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

.headerLinks ul li {
    display: inline;
    margin: 5px;
}

.headerLinks ul li a {
    color: #404040;
    text-decoration: none;
}

.terminal {
    color: #404040;
    text-decoration: none;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 2px;
    background-color: #fb542b;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* --- Footer --- */

.footer {
    background-color: #ffffff;
    border-top: 1px solid #f2f2f2;
    color: #808080;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9em;
    width: 100%;
}

.footer a {
    color: #fb542b;
}

/* --- Posts --- */

.postDate {
    float: right;
    color: #808080;
}

.postTitle {
    color: #fb542b;
    text-decoration: none;
    text-transform: capitalize;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.2em;
    float: left;
}

.postHeader {
    overflow: hidden;
}

.postsList {
    margin-top: 20px;
}

.postListItem {
    padding: 20px;
    background-color: #f8f8f8;
    border: 1px solid #e4e4e4;
    margin-bottom: 20px;
}

.postExcerpt {
    text-align: initial;
    text-decoration: none;
    color: #404040;
}

.headerContainer {
    display: flex;
    justify-content: space-between;
}

.noDecoration {
    text-decoration: none;
}

a,
a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
}

/* --- Social --- */

.socialNavbar ul {
    list-style: none;
    padding: 0;
}

.socialNavbar ul li {
    display: inline;
}

.socialNavbar a {
    color: #404040;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    margin: 10px;
}

/* --- Single Post --- */

.postWrapper {
    text-align: left;
}

.postWrapper h1 {
    line-height: 1em;
}

.postMetadata {
    font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    display: block;
    background: #f8f8f8;
    border: 1px solid #e4e4e4;
    padding: 10px;
}

dt,
dd {
    line-height: 1.5;
}

dl {
    display: grid;
    grid-template-columns: max-content auto;
}

dt {
    grid-column-start: 1;
}

dd {
    grid-column-start: 2;
}

dt::after {
    content: ":";
}

/* --- List --- */

.listHeader,
.listContent {
    text-align: left;
}

/* --- Index --- */

.indexWrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.indexHeader {
    font-size: 2.5em;
    line-height: 1em;
}

.container {
    max-width: 90%;
    width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    flex-grow: 1;
    line-height: 1.75em;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    margin-right: 15px;
    font-size: 1.2em;
    transition: color 0.3s;
}

.social-links img {
    width: 20px;
    height: 20px;
    filter: invert(40%) sepia(95%) saturate(2000%) hue-rotate(351deg) brightness(100%) contrast(97%);
}

.social-links a:hover img {
    opacity: 0.6;
}

/* --- Base Layout --- */

.content {
    text-align: center;
    flex: 1 auto;
    display: flex;
    justify-content: center;
}

.content img {
    max-width: 100%;
}

.vertical {
    flex-direction: column;
    align-items: center;
}

.flexWrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    flex: 1 auto;
}

.main {
    height: 100%;
    padding: 20px;
}

@media only screen and (min-width: 992px) {
    .main {
        width: 760px;
    }
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    .social-links a {
        font-size: 1.1em;
        margin-right: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 1.5em;
    }

    p {
        font-size: 0.9em;
    }

    .social-links a {
        font-size: 1em;
        margin-right: 10px;
    }

    .footer {
        font-size: 0.8em;
    }
}