@font-face {
  font-family: "IBM Plex Sans";

  src: url("/fonts/2ac48ff63800/IBMPlexSans-Regular.ttf");
}

@font-face {
  font-family: "IBM Plex Serif";

  src: url("/fonts/c7474816f890/IBMPlexSerif-Regular.ttf");
}

:root {
    /* === colours === */
    /* dark mode */
    --colour-bg-grey: #181a1b;
    --colour-bg-darkgrey: #18181a;
    --colour-text-white: #e8e6e3;
    /* light mode */
    --colour-bg-sepia: #f6efdb;
    --colour-bg-darksepia: #eae5d2;
    --colour-text-black: #16110e;
    /* universal */
    --red: #b0000f;
    --green: #007000;
    --yellow: #906200;
    --blue: #375cc6;
    --magenta: #a23ea4;
    --cyan: #3f69af;
    /* sizes */
    --body-text-size: 18px;
    --subtitle-size: 20px;
    --title-text-size: 50px;
    
    color-scheme: light dark;
    &:has(#theme-toggle:checked) {
        color-scheme: light
    }
    &:has(#theme-toggle:not{:checked}) {
        color-scheme: dark
    }
    background: light-dark(var(--colour-bg-sepia), var(--colour-bg-grey));
    font-size: var(--body-text-size);
}


body {
    font-family: "IBM Plex Serif";
    line-height: 1.4;
}

.wrapper {
    min-height: 80vh;
    margin: 0px 8svw;
}

.warwlf {
    max-height: 500px;
}

.theme-toggle {
    input {
        opacity: 0;
        position: absolute;
        pointer-events: none;
    }
    cursor: pointer;
    font-weight: bold;
}

.topbar {
    border-bottom: 2px solid;
    border-color: light-dark(var(--colour-text-black), var(--colour-text-white));
    margin: 0svw;
    padding: 0svw;

    display: flex;
    flex-wrap: flex;
    justify-content: space-between;
    align-items: center;

    max-height: 60px;
    
    a {
        text-decoration-color: light-dark(var(--colour-text-black), var(--colour-text-white));
        text-decoration-thickness: 3px;
        text-underline-offset: 5px;
        color: light-dark(var(--colour-text-black), var(--colour-text-white));
    }
}

.foot {
    border-top: 2px solid;
    border-color: light-dark(var(--colour-text-black), var(--colour-text-white));
    padding: 0svw 20px;
    text-align: center;
}

.title {
    text-transform: uppercase;
}

.distribute {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

/* if a ul has a class it probably has its own stylings */
ul[class],
ol[class] {
    list-style: none;
    margin-inline: 0;
    padding: 0;
}

.post-meta {
    position: relative;
    border: 2px solid;
    border-color: light-dark(var(--colour-text-black), var(--colour-text-white));
    min-width:  450px;
    max-width: 470px;
    min-height: 250px;
    margin-left: -260px;
    margin-right: 18px;
    float: left;
    background: light-dark(var(--colour-bg-darksepia), var(--colour-bg-darkgrey));
    text-wrap: wrap;
    display: flex;
    flex-direction: column;
    font-size: var(--subtitle-size);
    font-weight: bold;

    p {
        margin: 0;
    }
    h1 {
        text-align: center;
        margin: 16px 2svw;
        font-size: var(--title-text-size);
        text-transform: uppercase;
    }
    .post-meta__columns {
        margin: 16px;
        display: flex;
        flex-direction: row;
        align-self: stretch;
    }
    .post-meta__dates {
        align-self: end;
        flex: 1;
    }
    .post-meta__tags {
        align-self: end;
        text-align: right;
        max-width: 200px;
        flex: 2;
    }
};


.article-wrapper {
    background: black;
    margin: 0px 18svw;
    display: flex;
    justify-content: center;
    align-items: center;
}
.article {
    border-left: 2px solid;
    border-color: light-dark(var(--colour-text-black), var(--colour-text-white));
    /* width: 35svw; */
    padding: 20px 2svw;
    max-width: 80ch;
    min-height: 80vh;
    p {
        margin: 0svw, 1rem;
    }

}

.article > * {
    text-wrap: stable;
}


/* big-screen styles */
@media (width > 760px) {
  sidenote {
    float:left;
    clear:left;
    margin-left: max(-23vw, -360px);
    text-align:left;
    top:-3rem;
    width:20vw;
    margin-top:1rem;
    max-width: 300px;
  }
  .article {
    margin-left: 22svw;
  }
}
/* small-screen styles */
@media (width <= 760px) {
    .article  {
        display: flex;
        flex-flow: column nowrap;
        padding-left: unset;
        margin-left: 0svw;
    }

    .article-body {
        padding-left: 2svw;
    }

    sidenote {
        float:left;
        text-align:left;
        width:100%;
        margin:.33rem 0;
        padding-left:15%
    }

    .post-meta {
        margin-left: -6svw;
        word-wrap: break-word;
        min-width: 200px;
    }

    .post-meta__tags {
        word-break: break-word;
        word-wrap: break-word;
    }
}


.article-body > sidenote {
    padding:unset;
    order:1;
}

@supports (text-wrap: pretty) {
    .article > * {
        text-wrap: pretty;
    }    
}


sidenote {
  font-size: 16px;
  position:relative
}


