@charset "UTF-8";
* {
  box-sizing: border-box;
}

html,
body {
  overscroll-behavior: none;
  margin: 0;
  padding: 0;
  background: rgb(236, 235, 220);
  background-image: radial-gradient(rgba(68, 68, 85, 0.0666666667) 3px, transparent 0);
  background-size: 40px 40px;
  background-position: -19px -19px;
  min-height: 100vh;
  font-family: "Luckiest Guy", sans-serif;
  color: rgb(17, 51, 95);
  animation: background 60s linear infinite;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgb(102, 148, 190) #ddd;
}
html.reading,
body.reading {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  position: relative;
  width: 100%;
  height: 200px;
  background: rgb(102, 148, 190);
  background-image: radial-gradient(rgba(68, 68, 85, 0.0666666667) 3px, transparent 0);
  background-size: 40px 40px;
  background-position: -19px -19px;
  animation: background 60s linear infinite;
  z-index: 2;
  padding: 60px;
}
@media screen and (max-width: 600px) {
  header {
    padding: 60px 10px;
  }
}
header .name {
  text-transform: uppercase;
  color: rgb(17, 51, 95);
  text-align: center;
  font-size: 8rem;
}
@media screen and (max-width: 650px) {
  header .name {
    font-size: 3rem;
  }
}

.waves {
  position: sticky;
  top: 0;
  width: 100%;
  height: 140px;
  z-index: 1;
}

.wave-1,
.wave-2,
.wave-3 {
  width: 100%;
  animation: parallax linear;
  animation-timeline: scroll();
  animation-range: 0 300px;
  position: absolute;
  top: 0px;
  height: 180px;
  width: 100%;
  background: rgb(102, 148, 190);
  --mask: radial-gradient(
        129.69px at 50% calc(100% - 174px),
        #000 99%,
        #0000 101%
      )
      calc(50% - 116px) 0/232px 100%,
    radial-gradient(129.69px at 50% calc(100% + 116px), #0000 99%, #000 101%)
      50% calc(100% - 58px) / 232px 100% repeat-x;
  -webkit-mask: var(--mask);
  mask: var(--mask);
  transform: translateY(-60%);
}

.wave-2 {
  height: 220px;
  bottom: -220px;
  background: color-mix(rgb(102, 148, 190), transparent 50%);
  --mask: radial-gradient(
        111.8px at 50% calc(100% - 150px),
        #000 99%,
        #0000 101%
      )
      calc(50% - 100px) 0/200px 100%,
    radial-gradient(111.8px at 50% calc(100% + 100px), #0000 99%, #000 101%) 50%
      calc(100% - 50px) / 200px 100% repeat-x;
  -webkit-mask: var(--mask);
  mask: var(--mask);
  z-index: -1;
}

.wave-3 {
  height: 250px;
  bottom: -250px;
  background: color-mix(rgb(102, 148, 190), transparent 80%);
  --mask: radial-gradient(
        78.26px at 50% calc(100% - 105px),
        #000 99%,
        #0000 101%
      )
      calc(50% - 70px) 0/140px 100%,
    radial-gradient(78.26px at 50% calc(100% + 70px), #0000 99%, #000 101%) 50%
      calc(100% - 35px) / 140px 100% repeat-x;
  -webkit-mask: var(--mask);
  mask: var(--mask);
  z-index: -1;
}

nav {
  position: sticky;
  top: 0px;
  font-size: 2rem;
  height: 100px;
  display: flex;
  align-items: end;
  flex-direction: column;
}
@media screen and (max-width: 600px) {
  nav {
    font-size: 1.3rem;
  }
}
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  width: 100%;
  justify-content: center;
  padding: 0;
}
nav li {
  text-decoration: none;
  color: rgb(17, 51, 95);
  transition: 0.2s;
}
nav li:hover {
  transform: rotate(-2deg) scale(1.1);
}
nav li:nth-child(even):hover {
  transform: rotate(2deg) scale(1.1);
}

h1,
h2 {
  margin: 0;
  font-size: 3rem;
}
@media screen and (max-width: 600px) {
  h1,
  h2 {
    font-size: 2rem;
  }
}

h2 {
  font-weight: 300;
  position: relative;
  color: rgb(17, 51, 95);
}
h2.fill::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: rgb(17, 51, 95);
  background-clip: text;
  -webkit-background-clip: text;
  animation: textFill 1s ease-in-out both;
}
@supports (-webkit-text-stroke: 1px grey) {
  h2[data-title]:not(.wordy) {
    color: #d1dad6;
    -webkit-text-stroke: 1px rgb(17, 51, 95);
    text-stroke: 1px rgb(17, 51, 95);
  }
}

.waves::after {
  content: "";
  position: absolute;
  bottom: 9px;
  left: 0;
  width: 100%;
  height: 150px;
  pointer-events: none;
  animation: parallax linear;
  animation-timeline: scroll();
  animation-range: 0 300px;
  background: linear-gradient(to bottom, rgb(236, 235, 220) 60%, transparent);
  /* background: pink; */
  z-index: -2;
}

main {
  position: relative;
  z-index: 0;
  height: 100%;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

section:first-of-type {
  scroll-snap-align: start;
  scroll-margin-top: 100px;
}
section:last-of-type {
  margin-bottom: 200px;
}
section {
  width: 100%;
  max-width: 600px;
}
section p {
  font-family: "Open Sans";
}
section a {
  border-bottom: 1px dashed rgb(102, 148, 190);
}
section a::before {
  content: "↪";
  margin-right: 10px;
}
section.written p {
  margin: 0;
  text-indent: 5ch;
}
section.written button.reading-mode {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: none;
  background: transparent;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  text-align: center;
  color: rgb(17, 51, 95);
  margin: 20px 0;
  border-radius: 15px;
  transition: 0.3s ease;
  cursor: pointer;
}
section.written button.reading-mode::before {
  content: "📖";
  margin-right: 10px;
}
section.written button.reading-mode:hover {
  background: rgb(102, 148, 190);
}
section.written {
  max-height: 400px;
  overflow: hidden;
  position: relative;
}
section.written::after {
  position: absolute;
  content: "Reveal all";
  background: linear-gradient(transparent 0, rgb(236, 235, 220) 60%);
  width: 100%;
  height: 60px;
  bottom: 0;
  display: flex;
  align-items: end;
  justify-content: center;
  cursor: pointer;
}
section.written.revealed {
  max-height: unset;
}
section.written.revealed::after {
  content: none;
  display: none;
}

main.writing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1rem;
  grid-auto-flow: dense;
  justify-items: center;
  align-items: center;
  align-content: center;
  max-width: 1000px;
  margin: 0 auto;
}
main.writing section {
  width: auto;
}
main.writing section img {
  width: 200px;
  height: auto;
  transition: 0.2s;
}
main.writing section img:hover {
  transform: scale(1.05) rotate(-2deg);
}
main.writing section a {
  border: none;
}
main.writing section a::before {
  content: "";
}
main.writing section:last-of-type {
  margin-bottom: 0;
}

footer {
  text-align: end;
  font-family: "Open Sans", sans-serif;
  font-size: 0.8rem;
  position: absolute;
  right: 0;
  bottom: 0;
}

@keyframes parallax {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-60%);
  }
}
@keyframes background {
  from {
    background-position: -19px -19px;
  }
  to {
    background-position: 20px 20px;
  }
}
@keyframes textFill {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
#reader {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  font-family: "Open Sans", sans-serif;
}
#reader.open {
  display: block;
}
#reader #overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8666666667);
  display: flex;
  justify-content: center;
  padding: 50px 2%;
}
#reader #words {
  border-radius: 10px;
  background: white;
  color: black;
  width: 100%;
  padding: 30px 20px;
  max-width: 700px;
  z-index: 11;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgb(102, 148, 190) #ddd;
}
#reader #words h2 {
  margin-bottom: 20px;
  text-align: center;
}
#reader #words p {
  text-align: justify;
  text-indent: 3ch;
  margin: 0;
  line-height: 1.5rem;
  font-size: 1.2rem;
}
#reader #words p:first-of-type {
  text-indent: 0;
}
#reader #words p:first-of-type::first-letter {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: rgb(17, 51, 95);
  float: left;
  font-size: 75px;
  line-height: 60px;
  padding-top: 2px;
  padding-right: 8px;
  padding-left: 3px;
}
#reader #close {
  position: absolute;
  top: 5px;
  right: 10px;
  color: white;
  border-radius: 50%;
  aspect-ratio: 1/1;
  width: 30px;
  height: 30px;
  background: transparent;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
#reader #close:hover {
  color: rgb(17, 51, 95);
  background: white;
}/*# sourceMappingURL=styles.css.map */