@font-face {
  font-family: Dosis;
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/dosis-latin.woff2") format("woff2");
}

/* The seven original Font Awesome 4.7 glyphs, without the icon library. */
@font-face {
  font-family: HomeIcons;
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/home-icons.woff2") format("woff2");
}

:root {
  color: #fff;
  font-family: Dosis, "Helvetica Neue", "Lucida Grande", Arial, Verdana, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

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

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, text-shadow .2s ease;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 1ex #fff, 0 0 4px #fff;
}

a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: safe center;
  min-height: 100vh;
  z-index: 1;
}

.item-title {
  position: relative;
  width: 100%;
  padding: 0 5%;
}

#message {
  max-width: 600px;
  min-height: 240px;
  margin: 0 auto;
  padding-left: 12px;
}

#message h1,
#message p {
  padding: 0 0 clamp(1rem, 3vw, 1.5rem);
  font-family: inherit;
}

#message h1 {
  margin: clamp(1.5rem, 6vw, 4.5rem) clamp(.5rem, 2vw, 1rem) clamp(.5rem, 1.5vw, 1.5rem);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 200;
  line-height: 1;
}

#message p {
  margin: 0 0 clamp(.35rem, .8vw, .7rem);
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.05;
}

#message p:nth-child(3) {
  white-space: nowrap;
}

#message p:last-child {
  margin-bottom: 0;
}

#message a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.letter {
  display: inline-block;
  white-space: pre;
}

.glitch {
  opacity: .9;
}

.link-bottom {
  max-width: 600px;
  margin: 0 auto;
  padding: 10px 8px;
  transition: opacity .4s ease, transform .4s ease;
}

.social-links a:not(:last-child),
.link-icon {
  margin: 8px;
  color: #ffffffe6;
  font-size: 32px;
  transition: color .25s ease, text-shadow .25s ease, transform .25s ease;
}

.link-icon {
  display: inline-block;
  font-family: HomeIcons;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.social-links a:hover .link-icon,
.social-links a:focus-visible .link-icon {
  color: #fff;
  text-shadow: 0 0 16px #ffffffe6;
  transform: translateY(-2px);
}

.opl {
  display: inline-block;
  position: fixed;
  top: 5%;
  left: 0;
  width: 92px;
  height: 48px;
  z-index: 100;
  background: url("../assets/one-page-love.png") no-repeat 0 0 / contain;
  transform: translateX(0);
  transition: opacity .6s ease, transform .6s ease;
}

.is-animating .link-bottom:not(.is-visible) {
  opacity: 0;
  transform: translateY(10px);
}

.is-animating .opl:not(.is-visible) {
  opacity: 0;
  transform: translateX(-120%);
}

@media (max-width: 667px) {
  .opl {
    display: none;
  }

  #container {
    display: block;
    min-height: 100%;
  }

  .item-title {
    padding: 5%;
  }

  #message {
    min-height: 320px;
  }

  #message h1 {
    font-size: 64px;
  }

  #message p:nth-child(3) {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
