@import url('style/variables.css');
@import url('style/glitch.css');
@import url('style/blinking.css');
@import url('style/posts.css');
@import url('style/site-head.css');
@import url('style/site-foot.css');

body {
    background-color: var(--color-bg);
    color: var(--color-primary);
    font-family: var(--font);
    font-weight: var(--font-normal);
    line-height: 1.7;
    margin: 0;
    padding: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 500px) {
    body {
        font-size: 0.75em;
    }
}

ul {
    list-style-type: square;
}

b {
    background-color: var(--color-a);
    color: var(--color-bg);
    font-weight: var(--font-bold);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary);
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: var(--font-bold);
}


h1 {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end);
    font-size: 2.5em;
}

h1:after {
    animation: blink-animation .9s infinite;
    content: "█";
    color: var(--color-primary);
    padding-left: 2px;
}

@media (max-width: 500px) {
    h1 {
        font-size: 1.50em;
    }
}

h2 {
  font-size: 2em;
}

@media (max-width: 500px) {
    h2 {
        font-size: 1.5em;
    }
}

h3 {
  font-size: 1.5em;
}

@media (max-width: 500px) {
    h3 {
        font-size: 1.125em;
    }
}

h4,
h5 {
  font-size: 1.2em;
}

@media (max-width: 500px) {
    h4,
    h5 {
        font-size: 0.9em;
    }
}

h6 {
    font-size: 0.8em;
}

@media (max-width: 500px) {
    h6 {
        font-size: 0.6em;
    }
}

a {
    color: var(--color-a);
    border-bottom: none;
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-decoration-style: solid;
    text-decoration-skip-ink: all;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

a:hover {
    background-color: var(--color-a);
    color: var(--color-bg);
}

code {
    font-family: var(--font-code);
    color: var(--color-code);
    padding: 2px 6px;
    border: 2px solid var(--color-code);
}

pre code {
    padding: 0;
}

pre {
    border-radius: var(--radius);
    padding: 1em;
    overflow: auto;
}

blockquote {
    color: var(--color-a);
    border-left: 4px solid var(--color-a);
    padding-left: 2em;
    margin-left: 0;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    padding-right: 0.5em;
    font-style: italic;
}

img {
    max-width: 100%;
    margin: 2vw 0;
    height: auto;
}

s {
    text-decoration-thickness: 2px;
}
