/* general settings */
* {
  box-sizing: border-box;
}

*:focus {
  outline: 4px solid rgba(100, 0, 100, 0.25);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: 19px;
  color: black;
}

::selection {
  background: #ffc9ff;
}

::-moz-selection {
  background: #ffc9ff;
}

a {
  color: black;
}

p {
  margin: 0.5em 0;
}

/* headers */
@media screen and (max-width: 600px) {
  h2 {
    text-align: center;
  }
}
h1, h2 {
  font-weight: bold;
}

h2 {
  margin-top: 4em;
}

h3 {
  font-weight: normal;
}

code, pre {
  font-family: Inconsolata, monospace;
}

pre {
  margin: 0;
  padding: 0;
}

.right {
  float: right;
}

.heart {
  color: red;
}

/* titlebar link */
.star-link {
  position: relative;
  border-bottom: 2px solid transparent;
}

.star-link .star {
  position: relative;
  display: inline-block;
  transition: all 200ms ease;
}

.star-link:hover {
  border-bottom: 2px solid white;
}

.star-link:hover .star:nth-child(1) {
  transform: rotate(-20deg) translateX(-2px) translateY(-4px);
}

.star-link:hover .star:nth-child(2) {
  transform: rotate(20deg) translateX(2px) translateY(-4px);
}

/* squiggle */
.squiggle-top, .squiggle-bottom {
  position: relative;
  /* background-color: inherit; */
}

.squiggle-top {
  margin-top: 32px;
}

.squiggle-bottom {
  margin-bottom: 32px;
}

.squiggle-top::before,
.squiggle-bottom::after {
  content: " ";
  position: absolute;
  width: 100%;
  left: 0;
  height: 32px;
}

hr.squiggle {
  border: none;
  height: 32px;
  background-image: url("/images/squiggle-line.svg");
}

.squiggle-top::before {
  bottom: 100%;
  background: url("./squiggle-top-invert.svg") repeat top center;
  background-color: inherit;
  -webkit-mask: url("./squiggle-top-mask.svg") repeat top center;
  mask: url("./squiggle-top-mask.svg") repeat top center;
}

.squiggle-bottom::after {
  top: 100%;
  background: url("./squiggle-bottom-invert.svg") repeat bottom center;
  background-color: inherit;
  -webkit-mask: url("./squiggle-bottom-mask.svg") repeat bottom center;
  mask: url("./squiggle-bottom-mask.svg") repeat bottom center;
}

/* nav */
#nav {
  padding: 0.5em 1em;
  position: relative;
  background: #ffd;
  background-size: 10px 10px;
  margin-bottom: 64px;
}
#nav a {
  color: black;
  padding: 0 1em;
  text-decoration: none;
  line-height: 1.17rem;
}
#nav .nav-row {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  flex-direction: row;
  justify-content: space-between;
}
@media screen and (max-width: 586px) {
  #nav .nav-row {
    align-items: center;
    justify-content: center;
  }
}
#nav .nav-row > * {
  margin: 1em 0;
}
#nav .nav-row > *:last-child {
  margin-top: 1.75em;
}
#nav .subtitle {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 0.7em;
  font-weight: normal;
}

#index, #buttons, .container {
  max-width: 40em;
  width: 100%;
  margin: 0 auto;
}

.container {
  padding: 0 1em;
  box-sizing: border-box;
}

.codepen {
  height: 265px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  margin: 1em 0;
  padding: 1em;
}

/* ul */
#toc > li {
  margin: 1em 0;
  padding: 0;
  list-style-type: none;
  font-size: 1rem;
}

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

.examples > li {
  margin: 0.5em 0;
  font-size: 0.9rem;
}

/*# sourceMappingURL=style.css.map */
