@import url("/static/libertinus.css");

:root {
    --bg: #fafafa;
    --fg: #292524;
    --emph: #e84644;
    --subtle: #b0aba7;
}

@media (prefers-color-scheme: dark) {
    :root {
	--fg: #fafafa;
	--bg: #292524;
	--emph: #ff6e6e;
    }
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-size: 1.15em;
    font-family: Libertinus Serif;
    padding: 0 5%;

    display: flex;
    flex-direction: row;
}

main {
    margin: auto;
    max-width: 50em;
}

a {
    color: var(--emph);
}

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

#backlinks {
    /* Place a border around the backlinks that only shows on the bottom and left sides. */
    float: right;
    border: 1px solid var(--subtle);
    border-right: 0;
    border-top: 0;
    border-radius: 3px;

    /* Give the backlinks a bit of room to breathe. */
    padding-left: 1.5em;
    padding-bottom: 0.5em;

    /* Give the edge of the navbar some space as well. */
    margin-right: 5%;

    /* No bullet points for backlink items. */
    list-style: none;

    /* Don't expand vertically. */
    height: 100%;
}

#backlinks > hr {
    border: none;
    border-top: 1px dotted var(--subtle);
}

@media screen and (max-width: 480px) {
  main {
      padding: 0 10%;
  }
}
