html,
body {
  font-family: 'Liberation Serif', Georgia, 'Times New Roman', Times, serif;
  /* 'Nimbus Roman', */
  font-size: 27px;
  line-height: 1.75em;
  padding: 0;
  margin: 0;
  background: #f8f8fd;
  color: #130013; }

*:focus {
  outline: #3e143f 2px solid;
  outline-offset: 2px;
  border-radius: 2px; }

#main-container {
  padding: 0 1rem;
  margin: auto;
  width: 75%;
  min-width: 20rem;
  max-width: 30rem; }

main p {
  text-indent: 1rem; }

main .center {
  text-align: center; }

main .right {
  text-align: right; }

main .line-xs {
  text-indent: 0;
  margin: 0 0; }

main .line-s {
  text-indent: 0;
  margin: 0.5rem 0; }

main .line-m {
  text-indent: 0;
  margin: 1rem 0; }

main .line-l {
  text-indent: 0;
  margin: 1.5rem 0; }

main .line-xl {
  text-indent: 0;
  margin: 2rem 0; }

header {
  position: relative;
  margin: 2rem 0;
  height: calc(95svh - 4rem);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-bottom: 1px dashed #3e143f; }
  header h1, header h2 {
    margin: 0.5rem 0; }

aside {
  margin: 4rem auto 1rem;
  padding: 1rem;
  border-top: 1px dashed #3e143f;
  border-bottom: 1px dashed #3e143f; }
  aside p {
    font-size: 0.8rem;
    text-indent: 0;
    line-height: 1.5em; }

.card {
  display: block;
  margin: 1rem auto;
  padding: 0.9rem 1rem;
  border: 1px dashed #3e143f;
  background: #FFF;
  text-decoration: none;
  transition: transform ease-in-out 0.1s; }
  .card:hover {
    transform: translateX(0.1rem); }
  .card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    text-align: left;
    margin: 0 0 0.5rem;
    text-decoration: underline; }

footer {
  padding: 2rem 0 0;
  margin: 1rem auto;
  position: relative; }
  footer nav {
    border-top: 1px dashed #3e143f;
    padding: 1rem 1rem 0;
    margin: 0;
    font-size: 0.8rem;
    text-indent: 0;
    line-height: 1.5em;
    display: flex;
    justify-content: space-between; }

h1, h2, h3, h4, h5, h6 {
  margin: 4rem 0 1em;
  text-align: center;
  line-height: 1.3em; }

header + h1, header + h2, header + h3, header + h4, header + h5, header + h6 {
  margin-top: 0; }

a {
  color: #3e143f;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px; }

p {
  margin: 1rem 0; }

figure {
  margin: 1rem 0; }

img {
  max-width: 100%;
  height: auto; }

#title {
  overflow: hidden;
  text-align: center; }

#title::before,
#title::after {
  border-top: 1px dashed #3e143f;
  content: "";
  display: inline-block;
  height: 1px;
  position: relative;
  vertical-align: middle;
  width: 50%; }

#title::before {
  right: 0.5em;
  margin-left: -50%; }

#title::after {
  left: 0.5em;
  margin-right: -50%; }

.pen {
  background: #f8f8fd;
  margin: 0 -0 -2px auto;
  position: relative;
  left: 0;
  top: 0;
  width: 5rem;
  height: 3rem; }
  .pen div {
    outline: none;
    overflow: hidden;
    background: linear-gradient(to right, rgba(87, 0, 87, 0.4), rgba(87, 0, 87, 0));
    bottom: 1px;
    left: 0;
    right: 0;
    position: absolute;
    height: 35%;
    transform-origin: 0 100%;
    animation: wave ease 5s infinite;
    clip-path: polygon(0% 100%, 100% 100%, 100% 0%); }
  .pen div:nth-child(1) {
    animation-delay: -0s;
    animation-duration: 2s; }
  .pen div:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 3s; }
  .pen div:nth-child(3) {
    animation-delay: -11s; }

@keyframes wave {
  0% {
    transform: rotateZ(-17deg); }
  50% {
    transform: rotateZ(-12deg); }
  100% {
    transform: rotateZ(-17deg); } }

.paper {
  cursor: pointer;
  margin: 2rem 0;
  position: relative;
  display: block;
  transition: all ease-in-out 0.25s;
  text-decoration: none; }
  .paper span {
    display: block;
    z-index: 5;
    position: relative;
    padding: 1rem;
    background-color: #FFF; }
    .paper span h1, .paper span h2, .paper span h3, .paper span h4, .paper span h5, .paper span h6 {
      margin: 0;
      text-align: left;
      text-decoration: underline; }

.paper:hover {
  transform: scale(1.03); }

.paper::before,
.paper::after {
  content: "";
  background: rgba(87, 0, 87, 0.4);
  top: -0.25rem;
  left: -0.5rem;
  width: calc(100% + 1rem);
  height: calc(100% + 0.5rem);
  position: absolute;
  transform-origin: 50% 50%;
  animation: paper-wave ease 3s infinite;
  animation-play-state: paused; }

.paper::after {
  animation-delay: -5s; }

.paper:hover::before,
.paper:hover::after {
  animation-play-state: running; }

@keyframes paper-wave {
  0% {
    transform: rotateZ(-1deg); }
  50% {
    transform: rotateZ(1deg); }
  100% {
    transform: rotateZ(-1deg); } }
