:root {
  font-family: sans-serif;
  font-size: 18px;
  box-sizing: border-box;
  --color-0: #0A100D;
  --color-1: #202020;
  --color-2: #A22C29;
  --color-3: #B9BAA3;
  --color-4: #D6D5C9;
}

.visuallyhidden {
  position: fixed;
  transform: translateY(-1000rem);
}

body.app {
  padding: 0;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1rem 1fr 1rem;
  grid-template-rows: 1rem auto 1fr auto 1rem;
  grid-template-areas:
    ". .      . "
    ". header ."
    ". main   ."
    ". footer .";

    min-height: 100vh;
    max-width: 32rem;

    color: var(--color-4);
    background-color: var(--color-0);
}

header, main, footer {
  :first-child {
    margin-top: 0;
  }
  padding: 1rem;
  background-color: var(--color-2);
  border: 5px solid var(--color-1);
  border-radius: 2px;
}

body > header {
  grid-area: header;

  h1 {
    margin: 0;

    a {
      text-decoration: none;
    }
  }
}

body > main {
  grid-area: main;
}

body > footer {
  grid-area: footer;

  display: flex;
  flex-direction: row;
  justify-content: space-between;

  form button {
    padding: 0;
    border: 0;
    background-color: transparent;
    color: var(--color-4);
    font-size: inherit;
  }
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;

  input[type=text], input[type=password], button, textarea {
    padding: 0.5rem;
    border-radius: 2px;
    border-width: 2px;
    border-style: solid;
    color: var(--color-0);
  }
  button {
    background-color: var(--color-3);
    border-color: var(--color-4);
    color: var(--color-1);
  }
  input[type=text], input[type=password], textarea {
    border-color: var(--color-3);
    background-color: var(--color-1);
    color: var(--color-4);
    font-size: 1rem;
  }
}

.messagelist {
  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;
  gap: 1rem;

  list-style: none;

  li > a {
    text-decoration: none;
  }
}

.controls-strip {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;

  margin: 1rem 0;
}

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

hr {
  margin: 2rem 0;
  border-width: 2px 0 0 0;
  border-style: solid;
  border-color: var(--color-3);
}

.message-frame {
  display: flex;
  display: flex;
  justify-content: center;
  padding: 0.5rem;
  background-color: var(--color-1);
}

.message-text {
  padding: 1rem;
  margin: 0;
  background-color: var(--color-1);
  color: var(--color-4);
  font-weight: 600;
  aspect-ratio: 16/9;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;

  border: 4px solid var(--color-1);
}
