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

:root {
  --background: white;
  --foreground: #333;
  --accent: #00b7ff;
  --shadow: 0 0 5px hsl(0deg 0% 0% / 0.2);
  --page-margin: 15vw;
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #333;
    --foreground: white;
    --shadow: 0 0 5px hsl(0deg 0% 100% / 0.5);
  }
}

@media screen and (max-width: 500px) {
  :root {
    --page-margin: 20vw;
  }
}

html,
body {
  position: relative;
  min-height: 100%;
  background-color: var(--background);
  /* background: var(--accent); */
  color: var(--foreground);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 100%;
  text-size-adjust: 100%;
}

@media screen and (max-width: 500px) {
  html,
  body {
    font-size: 90%;
  }
}

.outer-content {
  position: relative;
  background-color: var(--background);
}

.noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.3'/%3E%3C/svg%3E");
  mix-blend-mode: color-dodge;

  /* filter: url(#noise) grayscale(100%);
  transform: translateZ(0);
  mix-blend-mode: screen;
  opacity: 0.5; */
  /* mask-image: linear-gradient(
    to bottom,
    transparent,
    black 10%,
    black 90%,
    transparent
  ); */
}

@media (prefers-color-scheme: dark) {
  .noise {
    /* mix-blend-mode: hard-light; */
    opacity: 0.4;
  }
}

.large-logo-container {
  width: 100vw;
  height: 100vh;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20vh 10vw;
}

.large-logo-container svg {
  width: 50%;
  height: auto;
  min-width: 220px;
  filter: drop-shadow(var(--shadow));
}

.small-logo-container {
  position: fixed;
  left: 0;
  top: 5vh;
  width: calc(var(--page-margin) * 1.2);
  padding-right: 1rem;
  pointer-events: none;
  display: none;
}

.small-logo-container svg {
  width: 100%;
  height: auto;
  transform: translateX(15%);
}

.small-logo-container svg #logo-text {
  filter: drop-shadow(var(--shadow));
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100vw;
  padding: 90vh var(--page-margin) 40vh var(--page-margin);
  align-items: center;
}

@media screen and (max-width: 500px) {
  .content {
    padding-right: 8vw;
    padding-left: 15vw;
  }
}

.inner-content {
  position: relative;
  max-width: 60em;
}

.inner-content p {
  font-size: 1.5rem;
  line-height: 2;
  margin-bottom: 2rem;
  text-shadow: var(--shadow);
}

.inner-content p a {
  color: inherit;
  text-decoration: none;
}

.links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.links a {
  position: relative;
  display: flex;
  gap: 1em;
  align-items: center;
}

.links a svg {
  width: 1.1em;
  transform: scale(1);
  opacity: 0.9;
  transition:
    opacity 0.2s,
    transform 0.2s var(--ease-out-back);
  filter: drop-shadow(var(--shadow));
  will-change: transform;
}

.links a span {
  position: relative;
}

.links a span:after {
  content: "";
  position: absolute;
  height: 1px;
  left: 0;
  bottom: 0;
  width: 100%;
  border-bottom: 1px dashed var(--foreground);
  opacity: 0.3;
  transition:
    opacity 0.2s,
    color 0.2s,
    transform 0.2s var(--ease-out-back);
}

.links a:hover svg {
  color: var(--accent);
}

.links a:nth-child(1):hover svg {
  transform: scale(1.5) rotate(-10deg);
}

.links a:nth-child(2):hover svg {
  transform: scale(1.5) rotate(10deg);
}

.links a:nth-child(3):hover svg {
  transform: scale(1.5) rotate(0deg);
}

.links a:hover span:after {
  opacity: 1;
  transform: translateY(-0.2em);
}

@media screen and (max-width: 400px) {
  .inner-content p {
    font-size: 1.25rem;
  }
}

/* Scroll effects */

@keyframes large-logo-animation {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-60%);
    opacity: 0;
  }
  100% {
    transform: translateY(-60%);
    opacity: 0;
  }
}

@keyframes small-logo-animation {
  0% {
    transform: translateY(10%);
    opacity: 0;
  }
  50% {
    transform: translateY(10%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .large-logo-container {
      width: 100vw;
      height: 100vh;
      position: fixed;
      animation: large-logo-animation 1s linear;
      animation-timeline: scroll();
    }

    .small-logo-container {
      display: block;
      animation: small-logo-animation 1s linear;
      animation-timeline: scroll();
    }
  }
}
