/* See

https://visme.co/blog/website-color-schemes/

Each prefix represents a theme taken from that page.

Also, I decided to take some more colors from the representative site
itself: https://www.awwwards.com/sites/veille-reputation-squad, and
even add a few that made sense (e.g. cyan.)
*/
:root {
    --gorgeous-contrast-1: #61892f;
    --gorgeous-contrast-2: #86c232;
    --gorgeous-contrast-3: #222629;
    --gorgeous-contrast-4: #474b4f;
    --gorgeous-contrast-5: #6b6e70;
    --gorgeous-contrast-6: #fff083;
    --gorgeous-contrast-7: #e9e9e9;
    --gorgeous-contrast-8: #49c5b6;
    --gorgeous-contrast-9: cyan;
    --gorgeous-contrast-10: hsl(300deg 100% 50%);
    --gorgeous-contrast-11: hsl(300deg 100% 50% / .4);
    --flower: "🙦";
}

/* Reset all margins, since this affects how the nav is displayed,
   depending on the page. */
body, ul, p, span, h1 {
    margin: 0;
}

ul {
    padding-left: 0;
}

/* Limit the body element to 30 times the font size. */
html {
    background-color: var(--gorgeous-contrast-3);
    font-family: sans-serif;
    font-size: 1.2rem;
    font-family: Helvetica;

    @media (max-width: 67em) {
        font-size: 1rem;
    }
}

p {
    color: var(--gorgeous-contrast-7);
}

ul li {
    list-style-type: var(--flower);
    padding-left: 5px;
}

ul li::marker {
    color: var(--gorgeous-contrast-2);
}

main {
    max-width: 40em;
    margin: 1rem auto;
}

nav {
    position: fixed;
    @media (max-width: 67em) {
        position: static;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

nav ul {
    margin: 10px;
    margin-left: 20px;
    padding: 0px;
}

h1, h2 {
    color: var(--gorgeous-contrast-2)
}

li {
    color: var(--gorgeous-contrast-7);
}

pre, code {
    color: var(--gorgeous-contrast-6);
}

/* Fit images to column. */
img {
    width: 100%;
}

/* Styling for links. */
a, a:hover, a:visited {
    color: var(--gorgeous-contrast-9);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

fieldset {
    margin: 10px 20px;
    color: var(--gorgeous-contrast-6);
    border-color: var(--gorgeous-contrast-6);
}

section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 1rem;
}

details {
    transition: 0.2s background linear;
    border-radius: 5px;
    padding: 5px;
}

ul.listing {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

details:hover {
  background: var(--gorgeous-contrast-4);
}

details > summary {
    list-style-type: var(--flower);
    transition: 1s;
}

details > summary::marker {
    color: var(--gorgeous-contrast-2);
}

/* Custom classes */
li.published {
    margin-bottom: 20px;
}

.meta, .created, .updated {
    color: var(--gorgeous-contrast-6);
}

.updated {
    font-style: italic;
}

.tag {
    color: var(--gorgeous-contrast-6);
    text-decoration: underline;
}

div.tags {
    margin-bottom: 10px;
}

/* We don't want the Archives title text to turn blue just because
   we're using an anchor tag there. */
h1.page-title > a {
    color: inherit;
}

/* Posts are allowed to have more conventional, often default styles
   applied to them, since they don't fall under any special UI
   concern; they're just text for mere mortals to consume. */
.post-content p, h1, ul {
    margin: 1rem;
}

main.project-gallery {
    display: flex;
    gap: 1rem;
}

.project-entry {
    text-align: center;
    border: 5px solid var(--gorgeous-contrast-9);
    border-radius: 10px;
    border-color: var(--gorgeous-contrast-10);
    padding: 1rem;
    transition: 0.2s background linear;
    background: var(--gorgeous-contrast-11);
}

.project-entry:hover {
    background: var(--gorgeous-contrast-10);
}

.project-entry > h2 {
    margin: 0;
}


.repo-icon {
    filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(87deg) brightness(119%) contrast(119%);
}
