/*
Workaround for a weird iOS text rendering issue -- https://stackoverflow.com/q/65849072
*/
@media screen and (max-device-width: 480px) {
    body {
        -webkit-text-size-adjust: none;
    }
}

body {
    display: flex;
    flex-direction: column;
    line-height: 1.5em;
    min-height: 100vh;
    max-width: 920px;
    margin: auto;

    padding-left: 1rem;
    padding-right: 1rem;

    font-family:
        -apple-system,
        system-ui,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
}

main {
    width: 100%;
    margin-bottom: 2.6rem;
    flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    line-height: normal;
}

a {
    color: #1565c0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus {
    text-decoration: underline;
}

.nav-header {
    width: 100%;
    max-width: 850px;
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;

}

.nav-header>nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    column-gap: 1rem;
}

.nav-header a {
    font-size: 17px;
    font-weight: 600;
    color: rgba(0, 0, 0, .8);
}

.nav-header a:hover {
    color: rgba(0, 0, 0, .8);
    text-decoration: underline;
}

.nav-header .nav-title {
    flex-grow: 2;
    letter-spacing: .05rem;
    text-transform: uppercase;
}

.avatar img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 50%;
}

.container.list {
    /* width: 100%; this adds horisontal scroll on iOS wtf */
    padding-right: 2ch;
}

article {
    margin-left: auto;
    margin-right: auto;
    max-width: 780px;
}

article>header {
    margin-bottom: 1.5rem;
}

article>header>.title {
    margin-bottom: 0.25rem;
}

.heading-link {
    font-size: 90%;
    margin-left: 0.2rem;
    text-decoration: none;
}

.posted-on {
    font-size: 1.2rem;
    color: #828282;
}

body>footer {
    text-align: center;
    margin-bottom: 2rem;
}

img {
    max-width: 100%;
    height: auto;
}

.error {
    text-align: center;
}

.about h1 {
    margin-top: 1.25rem;
}

.feather-icon {
    display: inline-flex;
    align-self: center;
    margin-right: 0.2rem;
}
.feather-icon svg {
    top: .125em;
    position: relative;
    width: 1em;
    height: 1em;
}

.about {
    text-align: center;
}

.about ul {
    margin: 1.5rem 0 1rem 0;
    padding: 0;
}

.about ul li {
    display: inline-block;
}

.about ul li a {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    font-size: 1.6rem;
    color: #212121;
}

.list ul {
    margin: 2.5rem 0 1.6rem 0;
    list-style: none;
    padding: 0;
}

.list ul li {
    margin-bottom: 0.6rem;
}

@media only screen and (min-width: 768.1px) {
    .list ul li {
        display: flex;
    }
}

.list ul li .date {
    color: #828282;

    flex: 1;
    text-align: right;
    margin-right: 2rem;
}

@media only screen and (max-width: 768px) {
    .list ul li .date {
        display: block;
        text-align: left;
    }
}

.list ul li .title {
    font-size: 1.3rem;
    flex: 2;
}

.list ul li .title a {
    color: inherit;
}

.error h1 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 2.8rem;
}

.error h2 {
    margin-top: 1.25rem;
    margin-bottom: 3.2rem;
    font-size: 2rem;
}

blockquote {
    border-left: 2px solid #048eff;
    padding-left: 1rem;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

pre {
    overflow-x: auto;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e8ec;
    border-radius: 4px;
    background-color: #fbfdff !important;
}

code {
    font-size: 90%;
    font-family: SFMono-Regular,
        Consolas,
        Liberation Mono,
        Menlo,
        monospace;
}

p code,
li code {
    white-space: nowrap;
    padding: 2px 4px;
    margin: 0px 2px;

    border: 1px solid #bbbbbb;
    border-radius: 5px;
    background-color: #f7f7f7;
}

sup {
    line-height: 1;
    font-size: 75%;
}

a.footnote-ref::before {
    content: '[';
}

a.footnote-ref::after {
    content: ']';
}
