* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Atkinson Hyperlegible', sans-serif;
}

@font-face {
    font-family: 'Open Sans';
    src: url('./OpenSans-VariableFont_wdth,wght.ttf');
}

@font-face {
    font-family: 'Atkinson Hyperlegible';
    src: url('./Atkinson_Hyperlegible/AtkinsonHyperlegible-Regular.ttf');
}

@font-face {
    font-family: 'Atkinson Hyperlegible';
    src: url('./Atkinson_Hyperlegible/AtkinsonHyperlegible-Italic.ttf');
    font-style: italic;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Bold';
    src: url('./Atkinson_Hyperlegible/AtkinsonHyperlegible-Bold.ttf');
}

@font-face {
    font-family: 'Atkinson Hyperlegible Bold';
    src: url('./Atkinson_Hyperlegible/AtkinsonHyperlegible-BoldItalic.ttf');
    font-style: italic;
}

body {
    background-color: #FBF0D9;
    padding: 2rem;
    color: rgba(0, 18, 32, 0.9);
    font-size: 1.1rem;
}

h1,
p {
    padding: 0.15rem;
    margin: 0;
}

h1 {
    font-weight: 500;
    font-family: 'Atkinson Hyperlegible Bold', sans-serif;
}

a {
    color: #555;
}

.pub-date {
    color: #999;
}

.home-section {
    margin: auto;
}

#content {
    margin: auto;
}

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

#content p {
    margin: 1rem 0;
}

#content figcaption {
    font-style: italic;
}

#content pre {
    font-size: small;
}

#content p code {
    color: #cdcce4;
    font-size: smaller;
    background-color: #22272e;
    padding: 2px 4px;
    border-radius: 3px;
}

#content blockquote {
    border-left: 6px solid #bcbcbc;
    padding-left: 1rem;
    color: #666;
}

.content-date {
    font-size: smaller;
    margin-bottom: 1rem;
    color: #777;
}

#vertical-video {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 177.78%;
}

#vertical-video > video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#horizontal-video {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 60%;
}

#horizontal-video > video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (min-width: 601px) {
    .home-section, #content {
        max-width: 65vw;
    }

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

@media (min-width: 1025px) {
    .home-section, #content {
        max-width: 45vw;
    }
}

/* Media query for videos */
@media (min-width: 800px) {
    #vertical-video {
        max-width: 500px;
        padding-top: 90%;
    }

    #horizontal-video {
        max-width: 100%;
    }
}

@media (min-width: 1024px) {
    #vertical-video {
        max-width: 600px;
        padding-top: 45%;
    }

    #horizontal-video {
        max-width: 100%;
    }
}