/* Markdown */
:root {
    --maincolor: #ff0000d6;
    --bordercl: rebeccapurple;
    --callouctcolor: dodgerblue;
    --hovercolor: #ff0000d6;
    --darkMaincolor: #bd93f9;
    --darkBlue: dodgerblue;
    --font-family: "Berkley Mono", monospace;
}

html {
    color: #232333;
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.6em;
}

body {
    background-color: #f5f5f5;
    display: block;
    margin: 8px;
}

* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

::selection {
    background: var(--maincolor);
    color: #fff;
}

p {
    /* font-family: 'Roboto', sans-serif; */
    line-height: 1.5;
}

hr {
    border: 0;
    border-top: 3px dotted var(--bordercl);
    margin: 1em 0;
}

blockquote {
    border-left: 3px solid var(--bordercl);
    color: #737373;
    margin: 0;
    padding-left: 1em;
}

a {
    border-bottom: 3px solid var(--maincolor);
    color: inherit;
    text-decoration: none;
}

a:hover {
    background-color: var(--maincolor);
    color: #fff;
}

ul {
    list-style: none;
    padding-left: 2ch;
}

ul li {
    text-indent: -2ch;
}

ul > li::before {
    content: "* ";
    font-weight: bold;
}

/* Images */
img {
    /* border: 3px solid #ececec; */
    /* max-width: 100%; */
    width: 100%;
    height: 100%;
}

figure {
    box-sizing: border-box;
    display: inline-block;
    margin: 0;
    max-width: 100%;
}

figure img {
    max-height: 500px;
}

@media screen and (min-width: 600px) {
    figure {
        padding: 0 40px;
    }
}

figure h4 {
    font-size: 1rem;
    margin: 0;
    margin-bottom: 1em;
}

figure h4::before {
    content: "↳ ";
}

/* Code blocks */
code {
    font-family: "Monaspace Neon", monospace;
    background-color: #0b0a0a50;
    padding: 0.1em 0.2em;
}

pre {
    background-color: #ececec;
    line-height: 1.4;
    overflow-x: auto;
    padding: 1em;
}

.highlight pre ::selection {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
}

pre code {
    background-color: transparent;
    color: inherit;
    font-size: 100%;
    padding: 0;
}

/* Containers */
.content {
    margin-bottom: 4em;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    padding: 0 1ch;
    word-wrap: break-word;
}

/* Header */
header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 1em 0;
}

header .main {
    font-size: 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 1.2rem;
    margin-top: 2em;
}

h1::before {
    color: var(--maincolor);
    content: "# ";
}

h2::before {
    color: var(--maincolor);
    content: "## ";
}

h3::before {
    color: var(--maincolor);
    content: "### ";
}

h4::before {
    color: var(--maincolor);
    content: "#### ";
}

h5::before {
    color: var(--maincolor);
    content: "##### ";
}

h6::before {
    color: var(--maincolor);
    content: "###### ";
}

.meta {
    color: #999;
    letter-spacing: -0.5px;
}

/* Footer */
footer {
    margin-top: 1em;
}

/* Common */
.title h1 {
    margin-bottom: 0;
}

time {
    color: grey;
}

/* Posts */
article .title {
    margin-bottom: 1em;
}

/* Callout */
.callout {
    background-color: var(--callouctcolor);
    color: #fff;
    padding: 1em;
}

.callout p {
    font-family: "Monaspace Neon", monospace;
    margin: 0;
}

.callout a {
    border-bottom: 3px solid #fff;
}

.callout a:hover {
    background-color: #fff;
    color: var(--callouctcolor);
}

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

.tag-cloud .tags li::before {
    font-family: "Phosphor-Bold";
    content: "\e672";
    display: inline-block;
    margin-right: 0.3em;
}

.tags li::before {
    font-family: "Phosphor-Bold";
    content: "\e672 ";
    margin-right: 0.4em;
}

.tags a {
    border-bottom: 3px solid var(--maincolor);
}

.tags a:hover {
    color: white;
    background-color: var(--maincolor);
}

svg {
    max-height: 15px;
}

.soc:hover {
    color: white;
}

.draft-label {
    color: var(--bordercl);
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
    margin-left: 6px;
    background-color: #f9f2f4;
}

.highlight {
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* table */
table {
    border-spacing: 0;
    border-collapse: collapse;
    margin: 0 auto;
}

table th {
    padding: 6px 13px;
    border: 1px solid #dfe2e5;
    font-size: large;
}

table td {
    padding: 6px 13px;
    border: 1px solid #dfe2e5;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-header .title {
    margin: 0;
}

.not-found-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.not-found-card {
    max-width: 42rem;
    padding: 2rem 1rem;
}

.not-found-code {
    margin: 0;
    font-size: 3rem;
    line-height: 1;
    font-weight: bold;
    color: var(--maincolor);
}

.not-found-title {
    margin: 0.4em 0 0.2em;
    font-size: 2rem;
    line-height: 1.2;
}

.not-found-title::before {
    content: "";
}

.not-found-copy {
    margin: 0 auto 1.2rem;
    max-width: 34rem;
}

.not-found-actions {
    margin: 0 0 1rem;
}

.not-found-actions a {
    margin: 0 0.4rem;
}

.not-found-suggestion-label {
    margin-bottom: 0.4rem;
    color: #666;
}

.not-found-suggestion {
    margin-top: 0;
}

@media screen and (max-width: 600px) {
    .not-found-code {
        font-size: 2.3rem;
    }

    .not-found-title {
        font-size: 1.5rem;
    }
}

.post-header time {
    margin: 0;
}

@supports ((-webkit-mask-image: linear-gradient(#fff, #fff)) or (mask-image: linear-gradient(#fff, #fff))) {
    /* Override two font glyphs with asymmetric mask-based variants. */
    .ph-bold.ph-eyeglasses::before,
    .ph-bold.ph-sunglasses::before {
        content: "";
        display: inline-block;
        width: 1em;
        height: 1em;
        vertical-align: -0.125em;
        background-color: currentColor;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
        -webkit-mask-size: 100% 100%;
        mask-repeat: no-repeat;
        mask-position: center;
        mask-size: 100% 100%;
    }

    .ph-bold.ph-eyeglasses::before {
        width: 1.08em;
        height: 1.08em;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20256%20256%27%3E%3Cpath%20fill%3D%27white%27%20fill-rule%3D%27evenodd%27%20d%3D%27M200%2036a12%2012%200%200%200%200%2024%2012%2012%200%200%201%2012%2012v50.46A47.94%2047.94%200%200%200%20142.75%20148h-29.5A47.94%2047.94%200%200%200%2044%20122.46V72a12%2012%200%200%201%2012-12%2012%2012%200%200%200%200-24A36%2036%200%200%200%2020%2072v92a48%2048%200%200%200%2095.32%208h25.36A48%2048%200%200%200%20236%20164V72A36%2036%200%200%200%20200%2036Z%20M50%20140H86A6%206%200%200%201%2092%20146V182A6%206%200%200%201%2086%20188H50A6%206%200%200%201%2044%20182V146A6%206%200%200%201%2050%20140Z%20M188%20140A24%2024%200%201%201%20188%20188A24%2024%200%201%201%20188%20140Z%20M52%20148H84V152H52Z%20M52%20160H84V164H52Z%20M52%20172H84V176H52Z%20M172%20154H176V174H172Z%20M186%20148H190V180H186Z%20M200%20154H204V174H200Z%27%2F%3E%3C%2Fsvg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20256%20256%27%3E%3Cpath%20fill%3D%27white%27%20fill-rule%3D%27evenodd%27%20d%3D%27M200%2036a12%2012%200%200%200%200%2024%2012%2012%200%200%201%2012%2012v50.46A47.94%2047.94%200%200%200%20142.75%20148h-29.5A47.94%2047.94%200%200%200%2044%20122.46V72a12%2012%200%200%201%2012-12%2012%2012%200%200%200%200-24A36%2036%200%200%200%2020%2072v92a48%2048%200%200%200%2095.32%208h25.36A48%2048%200%200%200%20236%20164V72A36%2036%200%200%200%20200%2036Z%20M50%20140H86A6%206%200%200%201%2092%20146V182A6%206%200%200%201%2086%20188H50A6%206%200%200%201%2044%20182V146A6%206%200%200%201%2050%20140Z%20M188%20140A24%2024%200%201%201%20188%20188A24%2024%200%201%201%20188%20140Z%20M52%20148H84V152H52Z%20M52%20160H84V164H52Z%20M52%20172H84V176H52Z%20M172%20154H176V174H172Z%20M186%20148H190V180H186Z%20M200%20154H204V174H200Z%27%2F%3E%3C%2Fsvg%3E");
    }

    .ph-bold.ph-sunglasses::before {
        width: 1.08em;
        height: 1.08em;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20256%20256%27%3E%3Cpath%20fill%3D%27white%27%20fill-rule%3D%27evenodd%27%20d%3D%27M200%2036a12%2012%200%200%200%200%2024%2012%2012%200%200%201%2012%2012v50.46A47.94%2047.94%200%200%200%20142.75%20148h-29.5A47.94%2047.94%200%200%200%2044%20122.46V72a12%2012%200%200%201%2012-12%2012%2012%200%200%200%200-24A36%2036%200%200%200%2020%2072v92a48%2048%200%200%200%2095.32%208h25.36A48%2048%200%200%200%20236%20164V72A36%2036%200%200%200%20200%2036Z%20M50%20140H86A6%206%200%200%201%2092%20146V182A6%206%200%200%201%2086%20188H50A6%206%200%200%201%2044%20182V146A6%206%200%200%201%2050%20140Z%20M188%20140A24%2024%200%201%201%20188%20188A24%2024%200%201%201%20188%20140Z%27%2F%3E%3C%2Fsvg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20256%20256%27%3E%3Cpath%20fill%3D%27white%27%20fill-rule%3D%27evenodd%27%20d%3D%27M200%2036a12%2012%200%200%200%200%2024%2012%2012%200%200%201%2012%2012v50.46A47.94%2047.94%200%200%200%20142.75%20148h-29.5A47.94%2047.94%200%200%200%2044%20122.46V72a12%2012%200%200%201%2012-12%2012%2012%200%200%200%200-24A36%2036%200%200%200%2020%2072v92a48%2048%200%200%200%2095.32%208h25.36A48%2048%200%200%200%20236%20164V72A36%2036%200%200%200%20200%2036Z%20M50%20140H86A6%206%200%200%201%2092%20146V182A6%206%200%200%201%2086%20188H50A6%206%200%200%201%2044%20182V146A6%206%200%200%201%2050%20140Z%20M188%20140A24%2024%200%201%201%20188%20188A24%2024%200%201%201%20188%20140Z%27%2F%3E%3C%2Fsvg%3E");
    }
}
