* {
  box-sizing: border-box;
}
*::before, *::after { box-sizing: border-box; }

body {
  font-family: "Roboto Mono", monospace;
  font-size: 0.8em;
  font-weight: 400;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
  color: #2e2e2e;
  background: #fff;
  background-position: center;
  background-attachment: fixed;
  padding: 1rem;
}

body.hovering {
  color: #cfcfcf;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

ul { list-style: none; padding-left: 0; }
li:not(:last-child) { margin-bottom: 15px; }

#container {
  margin: auto;
  padding: 0 1rem;
  max-width: 48rem;
  width: 100%;
}

@media (min-width: 64rem) {
  #container.cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 64rem;
  }
}

a {
  text-decoration: none;
  color: black;
  cursor: pointer;
}

.link {
  position: relative;
  transition: -webkit-clip-path 275ms ease;
  transition: clip-path 275ms ease;
  transition: clip-path 275ms ease, -webkit-clip-path 275ms ease;
}
.link:hover span::before, .link:focus span::before {
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
          clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.link span {
  position: relative;
  display: inline-block;
  color: #2c2fe8;
}
.link span::before {
  position: absolute;
  content: attr(data-content);
  color: #1619cb;
  text-decoration: underline;
  -webkit-text-decoration-color: #1619cb;
          text-decoration-color: #1619cb;
  -webkit-clip-path: polygon(0 0, 0 0, 0% 100%, 0 100%);
          clip-path: polygon(0 0, 0 0, 0% 100%, 0 100%);
  transition: -webkit-clip-path 275ms ease;
  transition: clip-path 275ms ease;
  transition: clip-path 275ms ease, -webkit-clip-path 275ms ease;
}

span.rigone::before {
  text-decoration-line: line-through;
}

input[type="text"]#filter-search {
  font-family: inherit;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  color: #2e2e2e;
  background: #fff;
  border: 1px solid #ccc;
  padding: 0.3rem 0.5rem;
  width: 100%;
}

@media (max-width: 48rem) {
  body { font-size: 0.95em; }
  #container { padding: 0; }
}
