:root {
    --blur: 14px;
    --text-colour: #303030;
    --faded-colour: #505050;
    --link-colour: #000099;
}

@font-face {
    font-family: "Inter";
    src: url("/fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
}

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

h1 {
    margin-bottom: 0;
}

pre {
    overflow-x: auto;
}

body {
    background-image: url("/images/background.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 2rem;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    color: var(--text-colour);
}

footer.panel {
    font-size: 0.7em;
    font-style: italic;
    padding: 0 0.5rem;
}

.panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    box-sizing: border-box;
}

.layout {
    width: 100%;
    max-width: 900px;

    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.site-title {
    margin: 0;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-nav ul {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-colour);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.site-nav a:hover {
    opacity: 1;
}

.site-nav a[aria-current="page"] {
    opacity: 1;
    font-weight: bold;
    text-shadow: 0 0 10px white
}

.post-date {
    font-size: 0.7em;
    font-style: italic;
    color: var(--faded-colour);
}

.title-date {
    font-size: 0.5em;
}

.post-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.code-comment {
    color: darkgreen;
}

.code-keyword {
    color: darkviolet;
}

.code-literal {
    color: crimson;
}

.code-magenta {
    color: magenta;
}

.post-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

figure {
    margin: 0;
}

figure img {
    display: block;
}

figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.8;
}

video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
