:root {
    --bg: #fff;
    --text: #202122;
    --link: #0645ad;
    --visited: #0b0080;
    --border: #a2a9b1;
    --button: #f8f9fa;
    --button-hover: #eaecf0;
    --placeholder: #72777d;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #161616;
        --text: #e6e6e3;
        --link: #8ab4f8;
        --visited: #c3a6f0;
        --border: #5f646b;
        --button: #262728;
        --button-hover: #333537;
        --placeholder: #a0a4a8;
    }
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--text);
    font: 17px/1.6 Georgia, "Times New Roman", serif;
}

.wrap {
    max-width: 600px;
    margin: 4rem auto;
    padding: 0 1rem;
}

a {
    color: var(--link);
    text-decoration: underline;
}

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

h1 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: normal;
    line-height: 1.25;
}

p,
dl {
    margin: 0 0 1rem;
}

dt {
    font-weight: bold;
}

dd {
    margin: 0 0 1rem;
}

form {
    position: relative;
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0 1rem;
}

input,
button {
    min-width: 0;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font: inherit;
}

input {
    flex: 1;
    background: var(--bg);
}

input::placeholder {
    color: var(--placeholder);
}

button {
    background: var(--button);
    cursor: pointer;
}

button:hover {
    background: var(--button-hover);
}

.hidden,
.trap {
    position: absolute;
    left: -9999px;
}

footer {
    margin-top: 1.5rem;
    font-size: 15px;
}

.back {
    margin-bottom: 1.5rem;
    font-size: 15px;
}

@media (max-width: 600px) {
    .wrap {
        margin: 2.5rem auto;
    }

    form {
        flex-direction: column;
    }
}
