:root {
  color-scheme: only light;
  background: #f7f8f5;
  color: #171918;
}

* {
  box-sizing: border-box;
}

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

html {
  overscroll-behavior: none;
}

body {
  min-width: 320px;
  min-height: 480px;
  background: #f7f8f5;
  background-image: radial-gradient(circle, #e3e7e0 1px, transparent 1px);
  background-size: 26px 26px;
}

main {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 16px;
}

canvas {
  width: min(760px, calc(100vw - 32px), calc(100vh - 132px));
  width: min(760px, calc(100vw - 32px), calc(100svh - 132px));
  aspect-ratio: 1;
  display: block;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

canvas:focus-visible {
  outline: 2px solid #1478c9;
  outline-offset: -4px;
}

canvas.is-pointer-focused:focus {
  outline: none;
}

.intro-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 20px;
  height: 28px;
  overflow: visible;
  fill: #1689d8;
  stroke: #f7f8f5;
  stroke-linejoin: round;
  stroke-width: 3px;
  opacity: 0;
  pointer-events: none;
  transform-origin: 0 0;
  will-change: transform, opacity;
}

.status {
  position: absolute;
  display: flex;
  visibility: hidden;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.status__brand {
  display: inline-flex;
  height: 30px;
  align-items: center;
  gap: 3px;
  padding: 1px 10px 0;
  border-radius: 6px;
  background: #1689d8;
  color: #fff;
  font: 400 20px/1 var(--font-lum-bio-display);
}

.status__brand b {
  color: inherit;
  font: 400 12px/1 var(--font-lum-bio-display);
}

#tilt {
  position: relative;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #1689d8;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 100ms ease, color 100ms ease, transform 100ms ease;
}

#tilt:hover {
  background: #0878c4;
}

#tilt:active {
  background: #086db0;
  transform: scale(0.97);
}

#tilt:focus-visible {
  outline: 2px solid #1689d8;
  outline-offset: 2px;
}

#tilt:disabled {
  cursor: wait;
  opacity: 0.7;
}

.tilt__icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.bio {
  width: min(560px, calc(100vw - 32px));
  text-align: center;
}

.bio__links {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bio__link {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 3px;
  padding: 9px 12px;
  border: 1.5px solid #bdc6bc;
  border-radius: 6px;
  background: rgb(247 248 245 / 88%);
  color: #171918;
  text-decoration: none;
  text-align: left;
  transition: background-color 120ms ease, border-color 120ms ease,
    color 120ms ease, transform 120ms ease;
}

.bio__link-kind {
  min-width: 0;
  color: #1689d8;
  font: 400 10px/1 var(--font-lum-bio-text);
  transition: color 120ms ease;
}

.bio__link-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 400 15px/1.1 var(--font-lum-bio-text);
}

.bio__link-arrow {
  position: relative;
  width: 16px;
  height: 16px;
  grid-column: 2;
  grid-row: 1 / -1;
  color: #7f8980;
  transition: color 120ms ease, transform 120ms ease;
}

.bio__link-arrow::before {
  position: absolute;
  top: 7px;
  left: 1px;
  width: 14px;
  border-top: 1.5px solid currentColor;
  content: "";
  transform: rotate(-45deg);
}

.bio__link-arrow::after {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
}

.bio__link:hover {
  border-color: #1689d8;
  background: #fff;
  color: #1689d8;
}

.bio__link:hover .bio__link-arrow {
  color: #1689d8;
}

.bio__link:hover .bio__link-arrow {
  transform: translate(2px, -2px);
}

.bio__link:active {
  border-color: #086db0;
  color: #086db0;
  transform: translateY(1px);
}

.bio__link:focus-visible {
  outline: 2px solid #1478c9;
  outline-offset: 2px;
}

@media (max-height: 620px) {
  .corner--tl,
  .corner--tr {
    display: none;
  }
}

@media (max-width: 520px) {
  .bio__link {
    min-height: 58px;
    column-gap: 7px;
    padding: 8px 10px;
  }

  .bio__link-label {
    font-size: 14px;
  }
}

.corner {
  position: absolute;
  z-index: 1;
  margin: 0;
  color: #9aa39b;
  pointer-events: none;
  user-select: none;
}

.corner--tl {
  left: 22px;
  top: 18px;
}

.corner--tr {
  right: 22px;
  top: 18px;
}

.corner--bl {
  left: 22px;
  bottom: 18px;
}

.corner--br {
  right: 22px;
  bottom: 18px;
}

.rainbow-footer {
  --rainbow-footer-height: 175px;
  --rainbow-footer-bottom: -2vh;

  position: relative;
  z-index: 1;
}

.rainbow-footer__spacer,
.rainbow-footer__effect {
  height: var(--rainbow-footer-height);
}

.rainbow-footer__effect {
  position: fixed;
  z-index: 2;
  right: 0;
  bottom: var(--rainbow-footer-bottom);
  left: 0;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  will-change: transform;
}

.rainbow-footer__effect img {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 600px) {
  .rainbow-footer {
    --rainbow-footer-height: 300px;
  }
}

@media (min-width: 1000px) {
  .rainbow-footer {
    --rainbow-footer-height: 65vh;
  }

  .rainbow-footer__spacer {
    margin-top: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rainbow-footer__effect {
    display: none;
  }

  .rainbow-footer__spacer {
    height: 0;
    margin-top: 0;
  }
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-height: 560px) {
  .status__brand {
    display: none;
  }
}
