@font-face {
    font-family: "3Dumb";
    src: url("/assets/fonts/23dumb/3Dumb.woff"),
        url("/assets/fonts/23dumb/3Dumb.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "2Dumb";
    src: url("/assets/fonts/23dumb/2Dumb.woff"),
        url("/assets/fonts/23dumb/2Dumb.ttf");
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    margin: 0;
    font-family: "Oldenburg", serif;
    counter-reset: fn;
}

body {
    overflow-x: auto;
}

h2,
h3,
h4,
h5,
h6 {
    font-family: "2Dumb";
}

section > h2,
section > h3,
section > h4,
section > h5,
section > h6 {
    margin-top: 0;
}

section > p {
    font-size: 20px;
}

dt-article div.meta {
    display: inline-block;
    font-size: 0.6em;
    font-family: 'Courier New', monospace;
    background: #000;
    color: #fff;
    padding: 0.5em 1em;
    margin-bottom: 1em;
    
    opacity: 0;
    animation: slideIn 0.5s ease-out 0.3s forwards;

    & time {
        display: block;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    & a {
        color: inherit;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide metadata elements used only for machine consumption */
.p-excerpt,
.u-url {
    display: none;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
