/* vouds.app: one dark theme in the game's own colours (the launch screen's
   night, the logo's gold, the Bloody Wars red). */
@font-face {
    font-family: 'Pirata One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/pirata-one-latin-400-normal.woff2') format('woff2');
}

:root {
    --night: #14181d;
    --night-2: #1d232a;
    --night-3: #2a323b;
    --stone: #8b97a3;
    --text: #e6e1d6;
    --muted: #a9b0b7;
    --gold: #f2c14e;
    --gold-2: #ffdf7e;
    --blood: #c4161c;
    --radius: 6px;
    --wide: 1100px;
    --read: 720px;
    /* Settings → Design → Typography can replace both fonts. */
    --head: var(--gh-font-heading, 'Pirata One', Georgia, serif);
    --body: var(--gh-font-body, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--night);
    color: var(--text);
    font: 17px/1.6 var(--body);
}

img { max-width: 100%; height: auto; }
.pixel { image-rendering: pixelated; }

h1, h2, h3, h4 {
    font-family: var(--head);
    font-weight: 400;
    line-height: 1.15;
    color: var(--gold);
    letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0.2em 0 0.4em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 1.6em 0 0.4em; }
h3 { font-size: 1.45rem; margin: 1.2em 0 0.3em; }

a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--night-2); padding: 8px 12px; }

/* Header */
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    max-width: var(--wide);
    margin: 0 auto;
    padding: 12px 16px;
}
.brand img { display: block; width: 150px; }
.top ul, .bottom ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.top nav a {
    color: var(--text);
    text-decoration: none;
    font-family: var(--head);
    font-size: 1.3rem;
}
.top nav a[aria-current='page'], .top nav a:hover { color: var(--gold); }

/* Content pages */
.page, .narrow {
    max-width: var(--read);
    margin: 0 auto;
    padding: 8px 16px 48px;
}
.prose ul, .prose ol { padding-left: 1.2em; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; }
.post-picture { margin: 8px 0; }
.post-picture img { max-height: 420px; width: auto; }
.post-picture figcaption, .gh-content figcaption {
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 6px;
}

/* Ghost editor content */
.gh-content > * + * { margin-top: 1em; }
.gh-content blockquote {
    border-left: 4px solid var(--blood);
    margin: 16px 0;
    padding: 4px 0 4px 16px;
    font-style: italic;
}
.gh-content img { border-radius: 2px; }
.gh-content hr { border: 0; border-top: 1px solid var(--night-3); margin: 2em 0; }
.gh-content code {
    background: var(--night-2);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.9em;
}
.gh-content pre { background: var(--night-2); padding: 12px; overflow-x: auto; border-radius: var(--radius); }
.gh-content table { border-collapse: collapse; width: 100%; }
.gh-content th, .gh-content td { border-bottom: 1px solid var(--night-3); padding: 6px 8px; text-align: left; }
.kg-card { margin: 1.5em 0; }
.kg-width-wide {
    position: relative;
    width: min(85vw, 1000px);
    left: 50%;
    transform: translateX(-50%);
}
.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
}
.kg-width-full img { width: 100%; }
.kg-image { display: block; margin: 0 auto; }
.kg-callout-card, .kg-toggle-card { color: var(--text); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    color: var(--muted);
}

/* Front page */
.hero {
    position: relative;
    min-height: min(78vh, 720px);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 32px 16px 48px;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 30%;
    background: linear-gradient(transparent, var(--night));
    z-index: -1;
}
.hero-title { margin: 0; }
.hero-logo {
    width: min(560px, 90vw);
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));
}
.hero-sub { width: min(300px, 60vw); display: block; margin: -8px auto 0; }
.hero-tag {
    font-family: var(--head);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    text-shadow: 0 2px 8px #000;
    margin: 16px 0 24px;
}

.buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.button {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--radius);
    background: var(--blood);
    color: #fff;
    text-decoration: none;
    font-family: var(--head);
    font-size: 1.35rem;
    border: 2px solid #e2474c;
    box-shadow: 0 3px 0 #6d0a0e;
}
.button:hover { background: #d9252b; color: #fff; }
.button.ghost { background: rgba(20, 24, 29, 0.75); border-color: var(--stone); box-shadow: none; }
.button[aria-disabled='true'] { opacity: 0.75; cursor: default; }

.section { max-width: var(--wide); margin: 0 auto; padding: 24px 16px; }
.section.narrow { max-width: var(--read); }
.two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: center;
}
.two .gh-content > h2:first-child { margin-top: 0; }
.wide-pic { width: 100%; border-radius: var(--radius); border: 1px solid var(--night-3); }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.card {
    background: var(--night-2);
    border: 1px solid var(--night-3);
    border-radius: var(--radius);
    padding: 18px;
}
.card h3 { margin-top: 0.2em; }
.card p { margin: 0; color: var(--muted); }
.feature-pic { width: 96px; height: 96px; border: 2px solid #000; box-shadow: 0 0 0 2px var(--night-3); }

.strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 8px 0; }
.strip img { width: 80px; height: 80px; border: 2px solid #000; }

/* News lists */
.post-list { list-style: none; padding: 0; }
.post-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--night-3); }
.post-list img { width: 64px; height: 64px; flex: none; border: 2px solid #000; object-fit: cover; }
.post-list h2 { font-size: 1.6rem; margin: 0; }
.post-list p { margin: 4px 0 0; color: var(--muted); }
time { color: var(--muted); font-size: 0.9rem; }

/* Footer */
.bottom {
    max-width: var(--wide);
    margin: 24px auto 0;
    padding: 24px 16px 40px;
    border-top: 1px solid var(--night-3);
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}
.bottom p { margin: 4px 0 8px; }
.bottom ul { justify-content: center; }

@media (max-width: 560px) {
    body { font-size: 16px; }
    .top { justify-content: center; }
    .post-list img { width: 48px; height: 48px; }
}
