:root {
  color-scheme: light;
  font-family: "Courier New", monospace;
  color: #242820;
  background: #eeeadb;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(100% - 2rem, 43rem); margin: clamp(2rem, 7vw, 5rem) auto; }
.plate {
  position: relative;
  margin-top: 1.8rem;
  text-align: center;
  padding: 2.1rem 1.2rem 1.5rem;
  background: #f9f4dc;
  color: #253e35;
  border: 3px solid currentColor;
  border-radius: 1.15rem;
  box-shadow: inset 0 0 0 5px #f9f4dc, inset 0 0 0 6px #8c9783, 0 5px 0 #bcb6a0;
}
.plate::before, .plate::after {
  content: "";
  position: absolute;
  top: 1rem;
  width: 1.35rem;
  height: .38rem;
  background: #7c806b;
  border-radius: 1rem;
}
.plate::before { left: 1.3rem; }
.plate::after { right: 1.3rem; }
h1 { margin: .75rem 0 0; font-size: clamp(.9rem, 3vw, 1.4rem); }
h1 strong {
  display: block;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2.3rem, 10vw, 5rem);
  letter-spacing: .025em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  line-height: 1.15;
}
#visit-loading {
  display: grid;
  place-items: center;
  min-height: 1.15em;
  font-size: clamp(2.3rem, 10vw, 5rem);
}
#visit-loading:not(:empty) {
  min-height: 2.65rem;
  font-size: inherit;
}
#visit-loading:empty::after {
  content: "";
  width: .55em;
  height: .55em;
  border: .07em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  #visit-loading:empty::after { animation: visit-spin .8s linear infinite; }
}
@keyframes visit-spin { to { transform: rotate(1turn); } }
.video { aspect-ratio: 16 / 9; background: #242820; border-radius: .65rem; overflow: hidden; }
iframe { display: block; width: 100%; height: 100%; border: 0; }
.guestbook { border-top: 2px dashed #817f6d; margin-top: 1.6rem; padding-top: 1rem; }
.heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; }
h2 { margin: 0; }
label { display: block; font-weight: bold; margin-bottom: .5rem; }
textarea { width: 100%; font: inherit; padding: .75rem; border-radius: .4rem; background: #fffdf3; color: inherit; border: 1px solid #817f6d; resize: vertical; }
button { padding: .6rem .9rem; border: 0; border-radius: .35rem; background: #253e35; color: #fffdf3; font: inherit; font-weight: bold; cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #9b421d; outline-offset: 3px; }
ol { padding: 0; list-style: none; }
li { padding: .9rem; background: #fffdf3; border-left: 3px solid #817f6d; margin-bottom: .65rem; }
li p { margin: 0 0 .4rem; white-space: pre-wrap; overflow-wrap: anywhere; }
time { font-size: .85rem; color: #4e564d; }

.entry-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .6rem; }
.entry-visitor {
  padding: .12rem .35rem;
  border-radius: .2rem;
  background: #ffcf62;
  color: #253e35;
  font-size: .85rem;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}

#moderation-form fieldset, #hide-options { margin: 0 0 1rem; padding: .75rem; }
#original-entry { white-space: pre-wrap; overflow-wrap: anywhere; }
#word-list { display: flex; flex-wrap: wrap; gap: .5rem; }
#word-list label { margin: 0; padding: .3rem .45rem; background: #fffdf3; border-radius: .25rem; }

.entry-moderation { color: #7c371d; font-size: .85rem; font-weight: bold; }
.entry-hidden-reason { color: #62645d; font-style: italic; }
