:root {
    color-scheme: dark;
    --bg: #0d141b;
    --surface: #141f29;
    --input: #0f171f;
    --line: #344454;
    --text: #f1f6fb;
    --muted: #a9bdcf;
    --blue: #6ebcff;
    --button-text: #07131f;
    color: var(--text);
    background: var(--bg);
    font: 16px/1.65 system-ui, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    padding: clamp(18px, 5vw, 48px) 16px;
    background: linear-gradient(160deg, #0b1117, #102337 70%, #0b1117);
}

main {
    max-width: 48rem;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 36px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

h1 { margin: .45em 0 .5em; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; }
h2 { margin: 1.5em 0 .45em; line-height: 1.3; }
p, li, dt, dd { overflow-wrap: anywhere; }
a { color: var(--blue); text-underline-offset: .17em; }
main > a:first-child { text-decoration: none; font-weight: 700; }
main > a:first-child:hover { text-decoration: underline; }

label { display: block; margin: 1rem 0; }
input, textarea, button { font: inherit; }
input:not([type="checkbox"]):not([type="hidden"]), textarea {
    display: block;
    width: 100%;
    margin-top: .35rem;
    padding: .65rem .75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--input);
    color: var(--text);
}

textarea { resize: vertical; }
input[type="checkbox"] { margin-right: .5rem; accent-color: var(--blue); }
button {
    max-width: 100%;
    padding: 12px 20px;
    border: 0;
    border-radius: 9px;
    background: var(--blue);
    color: var(--button-text);
    font-weight: 700;
    cursor: pointer;
}

button:hover:not(:disabled) { background: #8dcbff; }
button:disabled { background: #263d51; color: #c5d5e4; cursor: default; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

pre { white-space: pre-wrap; overflow-wrap: anywhere; }
