:root {
    --blue: #192893;
    --blueborder: rgba(18, 30, 116, 0.4);
    --text: #c8c9e6;
    --hl: #a0a3d9;
    --bg-dark: #0a1a0f;
    --overlay: rgba(20, 10, 40, 0.3);
    --white: #ffffff;
    --sniggle: rgba(255, 255, 255, 0.8);
    --sniggle-soft: rgba(255, 255, 255, 0.7);
    --panel-bg: rgba(0, 7, 60, 0.38);
    --outerbox-bg: rgba(0, 7, 60, 0.58);
    --blue-border: rgba(76, 125, 175, 0.3);
    --blue-hover-bg: rgba(76, 125, 175, 0.08);
    --schlarp: rgba(76, 125, 175, 0.9);
    --image-border: rgba(126, 155, 225, 0.7);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    background-image: url('nature.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-y: scroll;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 80px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--overlay);
    pointer-events: none;
    z-index: 0;
}

h1, nav, .returnlink, .postsection, .blogsection {
    position: relative;
    z-index: 1;
}

h1 {
    color: var(--white);
    font-family: 'Courier New', monospace;
    font-size: 2.8rem;
    text-align: center;
    margin: 0 0 4px 0;
    text-shadow: 0 0 18px var(--sniggle);
}

nav {
    margin-bottom: 36px;
    text-align: center;
    padding: 0 12px;
}

nav a {
    color: var(--white);
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
    margin: 0 8px;
    font-size: 1rem;
    text-shadow: 0 0 10px var(--sniggle-soft);
}

nav a:hover {
    text-decoration: underline;
}

.separator {
    color: var(--white);
    font-family: 'Nunito', sans-serif;
}

.returnlink {
    color: var(--white);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 36px;
    display: block;
    text-align: center;
    opacity: 0.85;
    text-shadow: 0 0 10px var(--sniggle-soft);
}

.returnlink:hover {
    text-decoration: underline;
    opacity: 1;
}

.postsection,
.blogsection {
    width: 100%;
    max-width: 680px;
    padding: 0 16px 60px;
}

.panel {
    background: var(--panel-bg);
    border: 1px solid var(--blueborder);
    border-radius: 4px;
    padding: 28px 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.panelinner {
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.outerbox {
    border: 3px ridge var(--blue);
    padding: 24px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: var(--outerbox-bg);
}

.paradiv {
    width: 100%;
    height: 1px;
    background: var(--schlarp);
    margin-bottom: 20px;
}

.blogintro {
    font-family: 'Courier New', monospace;
    font-size: 0.92rem;
    text-align: center;
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 24px;
    color: var(--text);
}

.bloglist {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.bloglink {
    font-family: 'Courier New', monospace;
    font-size: 0.92rem;
    color: var(--hl);
    text-decoration: none;
    padding: 10px 8px;
    border-bottom: 1px dashed var(--blue-border);
    width: 100%;
    display: block;
}

.bloglink:last-child {
    border-bottom: none;
}

.bloglink:hover {
    color: var(--white);
    text-decoration: underline;
    background: var(--blue-hover-bg);
}

.posttitle {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 6px;
}

.postdate {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: var(--schlarp);
    margin-bottom: 24px;
}

.postbody {
    font-family: 'Courier New', monospace;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.85;
}

.postbody p {
    margin-bottom: 1.3em;
}

.postbody p:last-child {
    margin-bottom: 0;
}

.postimage {
    width: 100%;
    margin: 1.6em 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.postimage img {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--image-border);
    display: block;
}

.postimage figcaption {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: var(--image-border);
    text-align: center;
    font-style: italic;
}

.credit {
    position: relative;
    width: 100%;
    text-align: center;
    color: var(--sniggle-soft);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    padding: 24px 0 16px;
    z-index: 1;
}

.blogsection ~ .credit {
    position: fixed;
    bottom: 0;
    padding: 10px 0 16px;
}

.credit a {
    color: var(--sniggle-soft);
    text-decoration: none;
}

.credit a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    h1 { font-size: 2rem; }

    .panelinner {
        padding: 0 16px;
    }

    .outerbox {
        padding: 18px 14px 16px;
    }

    nav a {
        display: inline-block;
        margin: 3px 4px;
        font-size: 0.85rem;
    }

    .separator {
        display: none;
    }
}