/* stylelint-disable no-descending-specificity */
:root {
    --font-body: "Go", verdana, sans-serif;
    --font-mono: "Go Mono", monospace;
    --page-width: 720px;
    --color-page-background: #01242e;
    --color-heading: #eee;
    --color-body: #ddd;
    --color-link: #8cc2dd;
    --color-link-hover: #98e5d7;
    --color-code-background: #00181e;

}

html {
    background: #222;
    background-image: url("/assets/chrome/spectre.svg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body {
    font-family: var(--font-body);
    max-width: var(--page-width);
    margin: 2rem auto;
    background: var(--color-page-background);
    border: 2px solid #fff3;
    line-height: 1.5;
    font-size: 1rem;
    color: var(--color-body);
    padding: 5px 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #fff3;
    padding: 10px 0;
}

.title {
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;

    &:hover, &:focus {
        font-style: italic;
    }

    & h1 {
        margin: 0;
        font-size: 1.5rem;
    }

    &::before {
        content: "";
        background-image: url("/assets/chrome/bdn-icon-128.png");
        background-size: 100% 100%;
        display: inline-block;
        width: 38px;
        height: 38px;
        margin-right: .75rem;
        margin-bottom: 6px;
    }
}

nav {
    & ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
    }

    & li {
        padding: 4px;
    }
}



a {
    color: var(--color-link);

    &:hover, &:focus {
        color: var(--color-link-hover);
        text-decoration: none;
    }
}

footer {
    padding: 20px 0;
    border-top: 2px solid #fff3;
}

.final-footer {
    font-size: .8rem;
    opacity: .5;
}

.badges {
    display: flex;
    gap: 10px;
}

.badges img {
    image-rendering: pixelated;
    width: 88px;
    height: 31px;
}

pre, code {
    background: var(--color-code-background);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

code {
    padding: 2px 4px;
    border: 1px solid #fff2;
}

pre {
    padding: 10px;
    border: 1px solid #fff2;

    & > code {
        padding: 0;
        background: none;
        border: none;
    }
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

blockquote {
    border-left: 5px solid #ffffff42;
    background: #ffffff0f;
    padding: 5px;
    padding-left: 10px;
    margin-left: 4px;
    font-style: italic;

    & p:last-child {
        margin-bottom: 0;
    }
}

h1,h2,h3,h4,h5,h6 {
    line-height: 1;
    margin-bottom: .5rem;
}

table {
	/* border-collapse sets the table's elements to share borders, rather than floating as separate "boxes". */
	border-collapse: collapse;
	width: 100%
}

td,
th {
	border: 1px solid #ffffff20;
	text-align: left;
	padding: .5rem;
}

th {
	background: #ffffff30;
}

tr:nth-child(even) {
	/* Set every other cell slightly darker. Improves readability. */
	background: #ffffff10;
}

table caption {
	font-weight: bold;
	margin-bottom: .5rem;
}

article {
    margin: 1rem 0;
}

.notice {
    border: 1px solid goldenrod;
    background: #daa52042;
    margin: 1rem;
    padding: 1rem;
}