:root {
    color-scheme: dark;
    --background: #121212;
    --surface: #1e1e1e;
    --text: #e7e2eb;
    --muted: #b9b0c0;
    --accent: #c59aff;
    --border: #3a3540;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    line-height: 1.75;
}

header,
main,
footer {
    width: min(760px, calc(100% - 36px));
    margin-inline: auto;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.brand img {
    width: 34px;
    height: 34px;
}

nav {
    display: flex;
    gap: 16px;
}

a {
    color: var(--accent);
}

nav a {
    text-decoration: none;
}

main {
    padding: 34px clamp(22px, 5vw, 52px) 46px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.25;
}

h2 {
    margin: 34px 0 8px;
    font-size: 1.2rem;
}

p,
ul {
    margin: 10px 0;
}

.lead {
    color: var(--muted);
    font-size: 1.08rem;
}

.notice {
    margin-top: 28px;
    padding: 16px 18px;
    background: #28232d;
    border-left: 3px solid var(--accent);
    border-radius: 6px;
}

.updated {
    color: var(--muted);
    font-size: 0.9rem;
}

footer {
    padding: 22px 0 32px;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 540px) {
    header {
        align-items: flex-start;
        flex-direction: column;
    }

    main {
        padding: 28px 22px 38px;
    }
}
