html,
body {
  margin: 0;
  background: hsl(0, 0%, 95%);
  color: rgb(49, 49, 49);

  /* Improve font rendering on macOS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Improve font rendering on Windows */
  text-rendering: optimizeLegibility;

  font-family: "Stack Sans Text", sans-serif;
  letter-spacing: -0.02em;
}

body {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
}

@media screen and (min-width: 1200px) {
  body {
    outline: 1px solid hsl(0, 0%, 85%);
  }
}

.notch {
  font-family: "Stack Sans Notch", sans-serif;
}

* {
  box-sizing: border-box;
}

video,
canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
canvas {
  pointer-events: none;
}

.section {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 450px;
  overflow: hidden;
}

.content {
  position: absolute;
  margin: 0 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgb(49, 49, 49);
  z-index: 300;
  max-width: 900px;
}

.inside {
  margin: 0 40px;
  max-width: 800px;
}

@media screen and (max-width: 520px) {
  .content,
  .inside {
    margin: 0 12px;
  }
}

.content h1 {
  font-family: "Stack Sans Notch", sans-serif;
  font-size: 8rem;
  margin: 0;
  padding: 0;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

@media screen and (max-width: 950px) {
  .content h1 {
    font-size: 7rem;
    letter-spacing: -0.03em;
  }
}

@media screen and (max-width: 620px) {
  .content h1 {
    font-size: 6rem;
    letter-spacing: -0.03em;
  }
}

@media screen and (max-width: 520px) {
  .content h1 {
    font-size: 5rem;
    letter-spacing: -0.02em;
  }

  video,
  canvas,
  .content,
  .section.header,
  .ascii {
    height: 70vh;
    overflow-y: hidden;
  }
}

@media screen and (max-width: 400px) {
  .content h1 {
    font-size: 4rem;
    letter-spacing: -0.01em;
  }
}

header {
  position: absolute;
  margin: 0 40px;
  margin-top: 20px;
  z-index: 100;
  padding: 12px;
  background: hsl(0, 0%, 99%);
  width: clamp(200px, calc(100vw - 80px), 600px);
  z-index: 500;
}

@media screen and (max-width: 520px) {
  header {
    margin: 0 12px;
    margin-top: 20px;
  }
}

header h2 {
  margin: 0;
  font-size: 1rem;
}

.inside h2 {
  font-size: 3rem;
}

@media screen and (max-width: 520px) {
  .inside h2 {
    font-size: 2rem;
  }
}

footer {
  background-color: rgb(49, 49, 49);
  color: hsl(0, 0%, 95%);
  padding-top: 20px;
  padding-bottom: 20px;
}

footer * {
  margin: 0;
}

footer p {
  color: hsl(0, 0%, 85%);
}

footer a {
  color: hsl(0, 0%, 75%);
  text-decoration: underline;
}

footer a:hover {
  color: rgb(49, 49, 49);
  background-color: hsl(0, 0%, 85%);
}
