/* theme */
:root {
    --bg: #1c1d20;
    --panel: #232428;
    --line: #2f3036;
    --text: #e6e6e6;
    --muted: #a8a8a8;
    --accent: #8b1b20;
    --accent-soft: rgba(196, 71, 71, .25);
}

/* reset */
* {
    box-sizing: border-box;
}

/* structure */
html,
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* page background (shared) */
body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    overflow-x: hidden;
    background: linear-gradient(to bottom, #1f2024 0%, #1c1d20 40%, #18191c 100%);
}

/* make footer stick to bottom */
main.wrap {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* top nav */
.top {
    border-bottom: 1px solid var(--line);
}

.nav {
    width: min(860px, 92vw);
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    gap: 18px;
}

.nav-link {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    position: relative;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link.is-active {
    color: var(--accent);
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

/* layout */
.wrap {
    width: min(860px, 92vw);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 36px 0 48px;
}

/* content card (shared) */
.card {
    margin-top: 26px;
    padding: 28px;
    background: rgba(35, 36, 40, 0.9);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* typography */
p {
    margin: 0 0 14px;
    line-height: 1.7;
}

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

.muted {
    color: var(--muted);
}

/* inline links */
a.inline {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--accent-soft);
    text-underline-offset: 4px;
}

a.inline:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

/* external links row (used on home) */
.links {
    margin-top: 18px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

.links a:hover {
    color: var(--accent);
}

/* footer */
.footer {
    border-top: 1px solid var(--line);
}

.footer-inner {
    width: min(860px, 92vw);
    margin: 0 auto;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
}

/* mobile base */
@media (max-width: 520px) {
    .wrap {
        padding-top: 44px;
    }
}