@import url('https://fonts.googleapis.com/css2?family=Arvo:ital,wght@0,400;0,700;1,400;1,700&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Fauna+One&family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=Noto+Emoji:wght@300..700&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

html {
  --background: rgb(12, 12, 12);
  --text: #f0f0f0;
  --primary: #1774ed;
  --secondary: #edbb17;
  --border-radius: 0px;
  background: var(--background);
  color: var(--text);
}

body {
    font-family: 'IBM Plex Sans', 'Noto Emoji', sans-serif;
    line-height: 1.27;
    font-size: 20px;
}

h1, h2, h3, h4, h5, h6 {
    /* font-family: 'Fauna One', sans-serif; */
    /* font-family: 'Nunito', sans-serif; */
    font-family: 'Arvo', sans-serif;
    margin-bottom: 10px
}

h1 {
    font-size: 54px;
}

h2 {
    font-size: 40px;
}

h3 {
    font-size: 32px;
}

h4 {
    font-size: 24px;
}

h4, h5, h6 {
    font-size: 20px;
}

header h1 {
    margin: 10px 0;
    line-height: 0.9;
}

article, main {
    max-width: 800px;
    margin: 0 auto;
}

a {
    color: var(--primary);
}

code, .codeblock {
    --line-number-width: 24px;
    padding: 0 6px;
    background: color-mix(in lch, var(--background), white 3%);
    font-family: 'DM Mono', monospace, sans-serif;
    border-radius: var(--border-radius);
}

.codeblock {
    padding: 0;
    border-left: 4px solid var(--primary);
    position: relative;
    z-index: 2;
    margin-bottom: 34px;
    font-size: 16px;
}

.codeblock .line-number {
    width: var(--line-number-width);
    text-align: right;
    display: inline-block;

    padding: 0 6px 0 12px;
    margin: 0 6px 0 0;

    user-select: none;
}

.codeblock[data-digits=1] .line-number {
    --line-number-width: 14px;
}

.codeblock[data-digits=3] .line-number {
    --line-number-width: 38px;
}

.codeblock, blockquote {
    border: 1px solid #f0f0f0 !important;
    position: relative;
}

.codeblock .inner {
    display: flex;
    flex-wrap: nowrap;
    padding: 6px 0;
    z-index: 1;
    background: color-mix(in lch, var(--background), white 3%);
    position: relative;
}

.codeblock .gutter {
    display: flex;
    flex-direction: column;;
    overflow: visible;
}

.codeblock[data-name]:before {
    content: attr(data-name);
    position: absolute;
    left: -1px;
    top: 0;
    transform: translateY(-100%);
    padding: 3px 16px;
    background: var(--text);
    color: var(--background);
    border: 1px solid var(--text);
}

.codeblock[data-name] {
    margin-top: calc(26px + 18px);
}

.codeblock[data-name] + .codeblock {
    margin-top: 0 !important;
}

.codeblock pre {
    overflow-x: auto;
    width: 100%;
    padding: 0;
    margin: 0;
    background: inherit;

    scrollbar-width: auto;
    scrollbar-color: var(--text) transparent;
}

.codeblock .actions {
    transition: all 250ms ease-in-out;
    border: 0;
    transform: translateY(100%);
    width: 100%;
    position: relative;
    z-index: 0;
}

.codeblock .actions button {
    transition: transform 250ms ease-in-out;
    background: var(--text);
    color: var(--background);
    border: 1px solid var(--text);
    transform: translateY(-100%);
    padding: 3px 16px;
    float: right;
    font-size: inherit;
    pointer-events: all;
    position: relative;;
}

.codeblock .actions button:active {
    background: color-mix(in lch, var(--text), black 10%);
    border-color: color-mix(in lch, var(--text), black 10%);
    bottom: 3px;
}

.codeblock:hover .actions button {
    transform: translateY(0%);
}

blockquote {
    --background: color-mix(in lch, rgb(12, 12, 12), white 3%);
    font-family: 'Nunito', Arial;
    font-size: 22px;
    background: var(--background);
    margin: 10px 0 10px 0;
    padding: 12px 40px 12px 40px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
    white-space: pre-wrap;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

blockquote cite {
    display: block;
    text-align: right;
}

blockquote::before {
    content: "";
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXF1b3RlLWljb24gbHVjaWRlLXF1b3RlIj48cGF0aCBkPSJNMTYgM2EyIDIgMCAwIDAtMiAydjZhMiAyIDAgMCAwIDIgMiAxIDEgMCAwIDEgMSAxdjFhMiAyIDAgMCAxLTIgMiAxIDEgMCAwIDAtMSAxdjJhMSAxIDAgMCAwIDEgMSA2IDYgMCAwIDAgNi02VjVhMiAyIDAgMCAwLTItMnoiLz48cGF0aCBkPSJNNSAzYTIgMiAwIDAgMC0yIDJ2NmEyIDIgMCAwIDAgMiAyIDEgMSAwIDAgMSAxIDF2MWEyIDIgMCAwIDEtMiAyIDEgMSAwIDAgMC0xIDF2MmExIDEgMCAwIDAgMSAxIDYgNiAwIDAgMCA2LTZWNWEyIDIgMCAwIDAtMi0yeiIvPjwvc3ZnPg==);
    position: absolute;
    right: 0;
    top: 50%;
    height: 100%;
    aspect-ratio: 1 / 1;
    background-repeat: no-repeat;
    background-size: contain;
    transform: rotate(-21deg) translate(30%, -15%);
    filter: invert(1);
    opacity: 0.012;
    z-index: -1;
}

#metadata {
    display: flex;
    gap: 6px;
}

.tags a {
    font-family: 'Nunito';
    font-weight: bold;
}

body {
    padding: 80px 0 80px 0;
}

hr {
    margin: 40px 0;
    appearance: none;
    border: 0;
    border-bottom: 3px dashed color-mix(in lch, var(--background), white 15%);
}

@media (max-width: 800px) {
    body {
        padding: 1rem;
    }
}
