/* -------------------------------
  Fonts
------------------------------- */
@font-face {
  font-family: 'Pixel';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  src: url('./font.woff2') format('woff2');
}

/* -------------------------------
  Animation
------------------------------- */
@keyframes blink {
  0% { opacity: 1 }
  50% { opacity: 1 }
  50.1% { opacity: 0 }
  100% { opacity: 0 }
}
@keyframes glitch {
  0% { opacity: 0.6 }
  15% { opacity: 1 }
  25% { opacity: 0.5 }
  55% { opacity: 1 }
}

/* -------------------------------
  Variables
------------------------------- */
:root {
  --color-primary: #a26b0e;
  --color-secondary: #ffdb8d;
}

/* -------------------------------
  Modern Browser Reset
------------------------------- */
html {
  box-sizing: border-box;
}

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

/* -------------------------------
  Globals / Body
------------------------------- */
html {
  position: relative;
  font-size: 62.5%;
  padding: 0;
  margin: 0;
  background-color: #141313;
  color: var(--color-primary);
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  background: linear-gradient(180deg, #141313 60%, rgb(21 16 4));
  font-family: 'Pixel', system-ui, sans-serif;
  font-weight: 500;
  font-size: 2rem;
  text-shadow: 0 0 8px currentColor;
  line-height: 1.1;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

h1 {
  font-family: inherit;
  font-weight: inherit;
  line-height: 0.7;
  text-shadow: 0 0 10px currentColor;

  &:after {
      position: relative;
      content: '';
      display: inline-block;
      width: 12px;
      height: 24px;
      top: 2px;
      left: -2px;
      box-shadow: 0 0 10px currentColor;
      background-color: currentColor;
      animation: blink 2s forwards infinite;
  }
}

div.content {}

div.overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  inset: 0;
  background-image: repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.15) 1px,
      transparent 1px,
      transparent 2px);
  background-size: 100% 3px;
  pointer-events: none;
}

ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

a {
  display: flex;
  min-height: 25px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;

  &:before {
    content: '–';
    position: relative;
    top: 1px;
    margin-right: 8px;
  }

  &:hover {
      color: var(--color-secondary);
      animation: glitch 0.6s forwards;

      &:before {
        content: '▸';
        top: 0;
      }

      &:after {
          position: relative;
          content: '';
          display: inline-block;
          width: 10px;
          height: 17px;
          box-shadow: 0 0 10px currentColor;
          background-color: currentColor;
          animation: blink 1s forwards infinite;
          margin-left: 8px;
      }
  }
}