@font-face {
  font-family: "DPComic";
  src: url("dpcomic.regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page-padding: clamp(20px, 3vw, 40px);
  --text-color: #f7f6f1;
  --shadow-color: rgba(0, 0, 0, 0.58);
  --brand-scale: 1;
  --bg-shift-x: 0px;
  --bg-shift-y: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  cursor: url("cursor.png") 5 6, auto;
}

body {
  min-height: 100svh;
  overflow: hidden;
  font-family: "Courier New", Courier, monospace;
  color: var(--text-color);
  background-color: #060608;
}

body::before {
  content: "";
  position: fixed;
  inset: -3.5%;
  background-image:
    linear-gradient(to bottom, rgba(4, 4, 8, 0.28), rgba(4, 4, 8, 0.36)),
    url("Bg.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate3d(var(--bg-shift-x), var(--bg-shift-y), 0) scale(1.05);
  transform-origin: center;
  will-change: transform;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.06) 26%, rgba(0, 0, 0, 0.12) 100%);
  z-index: -1;
}

.page-shell {
  position: relative;
  min-height: 100svh;
  padding: var(--page-padding);
}

.brand-wrap,
.intro-wrap,
.links {
  position: fixed;
  left: var(--page-padding);
  right: var(--page-padding);
}

.brand-wrap {
  top: var(--page-padding);
}

.brand {
  display: inline-block;
  margin: 0;
  font-family: "DPComic", fantasy;
  font-size: 96px;
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: left;
  text-shadow: 0 3px 18px var(--shadow-color);
  transform: scale(var(--brand-scale));
  transform-origin: top left;
}

.links {
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  gap: 32px;
  text-align: center;
}

.links a {
  color: var(--text-color);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-transform: lowercase;
  text-shadow: 0 2px 12px var(--shadow-color);
  cursor: url("cursor.png") 5 6, pointer;
}

.links a:hover,
.links a:focus-visible {
  opacity: 0.86;
}

.intro-wrap {
  bottom: var(--page-padding);
  display: flex;
  justify-content: flex-start;
}

.intro {
  width: min(440px, calc(100vw - (var(--page-padding) * 2)));
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  text-align: left;
  text-shadow: 0 2px 12px var(--shadow-color);
}

@media (max-width: 900px) {
  .brand {
    font-size: 72px;
  }

  .links {
    gap: 20px;
  }

  .links a {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px;
  }

  .brand-wrap,
  .intro-wrap,
  .links {
    left: 18px;
    right: 18px;
  }

  .brand {
    font-size: 56px;
  }

  .links {
    gap: 12px;
    flex-direction: column;
  }

  .links a {
    font-size: 19px;
  }

  .intro {
    width: min(320px, calc(100vw - 36px));
    font-size: 16px;
    line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    transform: scale(1.05);
  }
}
