/* ===== RootFox dark theme (tidy up) ===== */
:root {
    --bg: #111111;
    --paper: #151515;
    --ink: #e5e7eb;
    --muted: #9ca3af;
    --line: #262626;
    --accent: #ff8a3d;
    --accent-ink: #111111;
    --radius: 14px;
    --shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.6 Montserrat, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .15s ease, border-color .15s ease, opacity .15s ease;
}

a:hover {
    border-color: var(--accent);
    opacity: .95;
}

.content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px 80px;
}

.page {
    width: 100%;
    max-width: 900px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 28px;
    position: relative;
    min-width: 350px;
}

.logo {
    display: block;
    position: absolute;
    right: -10px;
    top: -5px;
    pointer-events: none;
}

h1, h2 {
    margin: 0 0 .5em 0;
    line-height: 1.25;
    font-family: Cuprum, Montserrat, system-ui, sans-serif;
}

h1 {
    font-size: 34px;
    letter-spacing: .2px;
}

h2 {
    font-size: 22px;
    color: #f0f3f6;
    margin-top: 1.4em;
}

p {
    margin: .8em 0;
    color: var(--ink);
}

.strike {
    text-decoration: line-through;
    color: var(--muted);
}

/* language switcher */
.lang-switcher {
    position: fixed;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 6px;
    z-index: 1000;
}

.lang-switcher .lang-btn {
    appearance: none;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    font: 600 12px/1 Montserrat, system-ui, sans-serif;
    letter-spacing: .3px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    transition: transform .1s ease, border-color .15s ease, background .15s ease, color .15s ease, opacity .15s ease;
}

.lang-switcher .lang-btn:hover {
    transform: translateY(-1px);
    border-color: #333;
}

.lang-switcher .lang-btn.active {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: transparent;
}

/* small screens */
@media (max-width: 600px) {
    .page {
        padding: 24px 18px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 20px;
    }
}
