/* IMPORTS */
@import url("https://rsms.me/inter/inter.css");
@import url("https://rsms.me/raster/raster2.css");

/* GLOBAL DEFINITIONS */
:root {
  color-scheme: dark;
  --yellow: #fedb00;
  --violet: #440099;
  --violet-lighter: color-mix(in hsl, white 25%, var(--violet) 75%);
  color: white;
  background-color: black;
  font-size: 15px;
  font-family: "Inter", "Akzidenz-Grotesk", "Helvetica Neue", "Helvetica",
    "IBM Plex Sans", Arial, sans-serif;
  font-display: swap;
  text-wrap: pretty;
  margin: 0;
  padding: 0;
  /*cursor: url('~/cursor.png'), auto;*/
}

/* TYPOGRAPHY */
@supports (font-variation-settings: normal) {
  :root {
    font-family: "Inter var", "Akzidenz-Grotesk", "Helvetica Neue", "Helvetica",
      "IBM Plex Sans", Arial, sans-serif;
  }
}

/* BRANDING */
.roundel {
  font-weight: 900;
  border-radius: 50px;
  background: var(--violet);
  display: block;
  height: 100px;
  width: 100px;
  margin-bottom: 40px;
  text-align: center;
  align-self: center;
  vertical-align: middle;
  font-size: 50px;
  line-height: 100px;
  cursor: pointer;
  user-select: none;
}

.yellow,
.yellow *:not(a) {
  color: var(--yellow);
}

.violet,
.violet *:not(a) {
  color: var(--violet);
}

/* SEMANTICS */
a {
  color: var(--violet-lighter);
  text-decoration: none;
  white-space: normal;
}

a:hover {
  color: var(--yellow) !important;
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--violet);
  text-decoration-skip-ink: auto;
}

a:visited {
  color: var(--violet-lighter);
}

a.yellow:visited {
  color: var(--yellow);
}

li.fav::marker {
  content: "❧ ";
}

summary {
  cursor: pointer;
  color: var(--violet-lighter);
}

details,
summary {
  display: inline-flex;
  flex-flow: row wrap;
  gap: 8px;
}

summary::marker {
  display: none;
}

.navLink:hover {
  text-decoration: none;
}

/* FORMS */

#emailForm {
  display: flex;
  gap: 12px;
  border-radius: 8px;
}

input {
  border: 0;
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 500;
}

#emailSubmit {
  background-color: var(--yellow);
  color: black;
  border: 0;
  border-radius: 10px;
  padding: 4px 8px;
}

input:hover,
button:hover {
  box-shadow: 0 0 0 2px #440099;
}

input:focus,
button:focus {
  outline: var(--yellow);
  outline-color: var(--yellow);
  box-shadow: 0 0 0 2px #fedb00;
}

/* SPECIAL */
emoji {
  font-style: normal;
}

button.rainbow,
span.rainbow {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

hr {
  background-color: white;
  -webkit-background-clip: block;
}

@media only screen and (max-width: 800px) {
  #emailForm {
    flex-direction: column;
  }
}

hr.rainbow {
  -webkit-background-clip: block;
}

/* I don't remember where I originally saw this lovely
bit of css, but it made me very happy a number of years
ago, and so here it lives on. Thank you, internet person.
*/
.rainbow {
  -o-animation: rainbow 15s ease infinite;
  -webkit-animation: rainbow 15s ease infinite;
  -z-animation: rainbow 15s ease infinite;
  animation: rainbow 15s ease infinite;
  background: -moz-linear-gradient(
    90deg,
    #440099 0%,
    rgba(255, 0, 0, 1) 10%,
    rgba(255, 154, 0, 1) 15%,
    #fedb00 20%,
    rgba(208, 222, 33, 1) 25%,
    rgba(79, 220, 74, 1) 35%,
    rgba(63, 218, 216, 1) 45%,
    rgba(47, 201, 226, 1) 50%,
    rgba(28, 127, 238, 1) 55%,
    rgba(95, 21, 242, 1) 60%,
    rgba(186, 12, 248, 1) 80%,
    rgba(251, 7, 217, 1) 90%,
    rgba(255, 0, 0, 1) 100%
  );
  background: -o-linear-gradient(
    90deg,
    #440099 0%,
    rgba(255, 0, 0, 1) 10%,
    rgba(255, 154, 0, 1) 15%,
    #fedb00 20%,
    rgba(208, 222, 33, 1) 25%,
    rgba(79, 220, 74, 1) 35%,
    rgba(63, 218, 216, 1) 45%,
    rgba(47, 201, 226, 1) 50%,
    rgba(28, 127, 238, 1) 55%,
    rgba(95, 21, 242, 1) 60%,
    rgba(186, 12, 248, 1) 80%,
    rgba(251, 7, 217, 1) 90%,
    rgba(255, 0, 0, 1) 100%
  );
  background: -webkit-linear-gradient(
    90deg,
    #440099 0%,
    rgba(255, 0, 0, 1) 10%,
    rgba(255, 154, 0, 1) 15%,
    #fedb00 20%,
    rgba(208, 222, 33, 1) 25%,
    rgba(79, 220, 74, 1) 35%,
    rgba(63, 218, 216, 1) 45%,
    rgba(47, 201, 226, 1) 50%,
    rgba(28, 127, 238, 1) 55%,
    rgba(95, 21, 242, 1) 60%,
    rgba(186, 12, 248, 1) 80%,
    rgba(251, 7, 217, 1) 90%,
    rgba(255, 0, 0, 1) 100%
  );
  background: linear-gradient(
    90deg,
    #440099 0%,
    rgba(255, 0, 0, 1) 10%,
    rgba(255, 154, 0, 1) 15%,
    #fedb00 20%,
    rgba(208, 222, 33, 1) 25%,
    rgba(79, 220, 74, 1) 35%,
    rgba(63, 218, 216, 1) 45%,
    rgba(47, 201, 226, 1) 50%,
    rgba(28, 127, 238, 1) 55%,
    rgba(95, 21, 242, 1) 60%,
    rgba(186, 12, 248, 1) 80%,
    rgba(251, 7, 217, 1) 90%,
    rgba(255, 0, 0, 1) 100%
  );
  background: linear-gradient(
    90deg,
    #440099 0%,
    rgba(255, 0, 0, 1) 10%,
    rgba(255, 154, 0, 1) 15%,
    #fedb00 20%,
    rgba(208, 222, 33, 1) 25%,
    rgba(79, 220, 74, 1) 35%,
    rgba(63, 218, 216, 1) 45%,
    rgba(47, 201, 226, 1) 50%,
    rgba(28, 127, 238, 1) 55%,
    rgba(95, 21, 242, 1) 60%,
    rgba(186, 12, 248, 1) 80%,
    rgba(251, 7, 217, 1) 90%,
    rgba(255, 0, 0, 1) 100%
  );
  background-size: 2500% 2500%;
}
*/

/* ANIMATIONS */
@-webkit-keyframes rainbow {
  0% {
    background-position: 0% 82%;
  }
  50% {
    background-position: 100% 19%;
  }
  100% {
    background-position: 0% 82%;
  }
}

@-moz-keyframes rainbow {
  0% {
    background-position: 0% 82%;
  }
  50% {
    background-position: 100% 19%;
  }
  100% {
    background-position: 0% 82%;
  }
}

@-o-keyframes rainbow {
  0% {
    background-position: 0% 82%;
  }
  50% {
    background-position: 100% 19%;
  }
  100% {
    background-position: 0% 82%;
  }
}

@keyframes rainbow {
  0% {
    background-position: 0% 82%;
  }
  50% {
    background-position: 100% 19%;
  }
  100% {
    background-position: 0% 82%;
  }
}
