:root {
  --fg: #111;
  --bg: #fff;
  --bar: #d04141;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #fff;
    --bg: #111;
  }
  img.logo {
    -webkit-filter: invert(1);
    filter: invert(1);
  }
}
html {
  font-size: 1.25rem;
  box-sizing: border-box;
  min-width: 18em;
}
*,
::after,
::before {
  box-sizing: inherit;
  text-decoration-thickness: 0.1rem;
}

body {
  max-width: 600px;
  margin: auto;
  background: var(--bg);
  font-family: monospace;
  min-width: 370px;
}
a,
body {
  color: var(--fg);
}
main section + section {
  padding: 2rem 0;
}
body > footer,
body > header,
body > main {
  margin: auto;
  max-width: 660px;
  padding-left: 10px;
  padding-right: 10px;
  width: 100%;
}
body > header {
  text-align: center;
  font-size: 1.2em;
}
h1 {
  font-size: 2em;
}
h2 {
  font-size: 1.5em;
}
footer {
  text-align: center;
}
ul { list-style: none; padding: 0; margin: 0; }
ul li {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}
button,
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: none;
  box-sizing: inherit;
  padding: 0.2rem 0.5rem;
  width: 100%;
  font-size: 1rem;
  color: var(--fg);
  background-color: var(--bg);
  border: 0.1rem solid var(--fg);
  border-radius: 0;
  font-family: monospace;
}
button:disabled,
input[type="button"]:disabled,
input[type="reset"]:disabled,
input[type="submit"]:disabled {
  border-style: dashed;
  cursor: not-allowed;
}
nav {
  margin: 2rem 0;
}
nav ul {
  padding: 0;
  list-style: none;
}
nav ul li {
  margin: 0 0.2rem;
  display: inline-block;
}

hr {
  border: 0.05rem solid var(--fg);
}

fieldset {
  max-height: 400px;
  min-height: 400px;
  overflow: auto;
  display: flex;
  flex-direction: column-reverse; 
  border: 0.1rem solid var(--fg);
}
label,
legend {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

fieldset,
input,
select,
textarea {
  margin: 0 0 0.8rem;
}
input::placeholder,
textarea::placeholder {
  color: var(--fg);
  font-style: italic;
  opacity: 1;
}

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