@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBM Plex Sans Var-Roman.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBM Plex Sans Var-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
}

html,
body {
  margin: 0;
  padding: 0;
}

/** {
  border: 1px dotted pink !important;
}*/

html {
  block-size: 100%;
}

body {
  background: #002FA7;
  background: #002FA7 url(background.avif) repeat;
  background-size: 128px 128px;
  font-family: "IBM Plex Sans", sans-serif;
  color: white;
  min-block-size: 100vh;
  min-block-size: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

header {
  padding: 1rem 2rem;
}

h1 {
  font-size: 2rem;
  font-weight: 200;
  margin-bottom: 0;
}

#postForm {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 30rem;
  margin: 2rem auto 0 auto;
}

textarea {
  border: 2px solid white;
  background: transparent;
  color: white;
  font: inherit;
  padding: 0.5rem 0.75rem;
  outline: none;
  font-size: 10pt;
}

textarea:focus {
  outline: 2px solid white;
}

textarea::placeholder {
  color: white;
}

main {
  padding: 0 2rem 2rem;
}

.post {
  max-width: 30rem;
  margin: 0 auto 1.5rem auto;
  padding: 0rem;
}

.post .content {
  margin-top: 0;
  font-size: 9pt;
  white-space: pre-wrap;
  word-wrap: break-word;
  text-wrap: pretty;
}

.post .content a {
  color: inherit;
  text-decoration-thickness: 1px;
}

.post .content a:hover,
.post .content a:focus-visible {
  text-decoration: underline;
}

.post .content[hidden] {
  display: none;
}

.post .info {
  font-size: x-small;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 10px;
  margin-bottom: 0.50rem;
}

.post .info p,
.post .info time,
.post .info .separator {
  margin: 0;
  line-height: 1;
}

.post button {
  font-size: x-small;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.post button:hover {
  text-decoration: underline;
}

button,
label {
  box-sizing: content-box;
  display: inline-block;
  font: inherit;
  appearance: none;
  vertical-align: baseline;
  background: none;
  border: none;
  outline: none;
  font-size: medium;
  padding: 0;
  margin: 0;
  color: white;
  text-decoration: underline;
  cursor: pointer;
}

button[type="submit"] {
  align-self: flex-end;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid white;
  vertical-align: middle;
  width: auto;
  height: auto;
  font-size: 10pt;
  padding: 4pt 5pt 4pt 5pt;
}

button[type="submit"]:focus {
  outline: 2px solid white;
}

dialog.error {
  border: 3px solid white;
  background: #f5f1e8;
  color: #111;
  max-width: 24rem;
  width: calc(100% - 3rem);
  padding: 1.5rem;
}

dialog.error::backdrop {
  background: rgb(0 0 0 / 0.45);
}

dialog.error h2,
dialog.error p {
  margin-top: 0;
}

dialog.error form {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

dialog.error button[type="submit"] {
  color: #111;
  border-color: #111;
}

dialog.error button[type="submit"]:focus {
  outline-color: #111;
}

#restoreFile {
  display: none;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 9pt;
}

footer form {
  display: flex;
  align-items: center;
  margin: 0;
}

footer button,
footer label {
  font-size: 9pt;
  line-height: 1.2;
}

footer a {
  color: white;
}