:root {
  --page-bg: #000000;
  --page-fg: #ffffff;
  --chrome-max: 46%;
  --mask-a: 24%;
  --mask-b: 40%;
  --mask-full: 62%;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-fg);
  font: 400 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.1) var(--mask-a),
    rgba(0, 0, 0, 0.45) var(--mask-b),
    #000 var(--mask-full)
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.1) var(--mask-a),
    rgba(0, 0, 0, 0.45) var(--mask-b),
    #000 var(--mask-full)
  );
}

.bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.chrome {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(1.5rem, 5vw, 5.5rem);
  max-width: var(--chrome-max);
  pointer-events: none;
}

.chrome > * {
  pointer-events: auto;
}

.chrome-head,
.chrome-foot,
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.chrome-head:empty,
.chrome-foot:empty,
.actions:empty {
  display: none;
}

main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

h1 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0;
}

@media (max-width: 900px) {
  .bg {
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.12) 30%,
      #000 58%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.12) 30%,
      #000 58%
    );
  }

  .chrome {
    max-width: 100%;
    justify-content: flex-start;
    padding-top: 10vh;
    min-height: 58vh;
  }
}
