:root {
  color-scheme: dark;
  --ink: #1a1120;
  --text: #faeffa;
  --muted: #d2bed7;
  --accent: #e784ff;
  --divider: #4b2e50;
  --hero-shadow: #221429;
  --footer: #121214;
  --side-padding: 7%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--footer);
  color: var(--text);
  font: 1rem/1.5 system-ui, sans-serif;
}

h1,
h2,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.witch,
.lurk {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.witch {
  padding: clamp(26px, 4.6vw, 48px) var(--side-padding) clamp(36px, 6vw, 66px);
  background: linear-gradient(100deg, var(--hero-shadow) 23%, #47234e 72%, #2e1837);
}

.backdrop,
.witch::after,
.lurk::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.backdrop {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.witch::after,
.lurk::after {
  z-index: -1;
  content: "";
}

.witch::after {
  background:
    linear-gradient(90deg, #1b1224f7 0%, #1b1224e8 38%, #1b1224a8 59%, #1b122415 100%),
    linear-gradient(0deg, #1b122494 0%, transparent 38%);
}

.witch-copy,
.lurk-copy {
  display: grid;
  justify-items: start;
}

.witch-copy {
  gap: 12px;
  max-width: 460px;
}

.brand-logo {
  display: block;
  width: clamp(142px, 23vw, 208px);
  height: auto;
  margin-bottom: clamp(4px, 1.15vw, 12px);
}

.game-title-logo {
  display: block;
  height: auto;
}

/* Frame the wordmark inside its oversized transparent canvas. */
.witch h1 {
  position: relative;
  width: clamp(210px, 35vw, 392px);
  max-width: 100%;
  aspect-ratio: 1000 / 470;
  overflow: hidden;
}

.witch .game-title-logo {
  position: absolute;
  left: -51%;
  top: calc(-202 * 100% / 470);
  width: 205.8%;
}

.witch p,
.lurk p,
.studio p {
  color: var(--muted);
}

.witch p {
  max-width: 49ch;
}

.witch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 19px;
  margin-top: 8px;
  font-weight: 650;
}

.witch-actions a,
.lurk a,
.studio a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.buy-button {
  padding-inline: 14px;
  border: 1px solid var(--accent);
  font-weight: 650;
}

.witch .buy-button {
  background: var(--accent);
  color: var(--ink);
}

.motion-button {
  position: absolute;
  right: var(--side-padding);
  bottom: 16px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #1b12246b;
  color: #faeffac4;
  cursor: pointer;
}

.motion-button:not([hidden]) {
  display: grid;
  place-items: center;
}

.motion-button:hover {
  background: var(--ink);
  color: var(--text);
}

.motion-button svg {
  width: 20px;
  height: 20px;
}

.motion-button[data-playing] .play-icon,
.motion-button:not([data-playing]) .pause-icon {
  display: none;
}

.lurk {
  display: grid;
  align-items: center;
  min-height: 295px;
  padding: 34px var(--side-padding);
  background: var(--ink);
}

.lurk .backdrop {
  object-position: 59% 50%;
}

.lurk::after {
  background: linear-gradient(90deg, #151018f5 0%, #151018ed 32%, #151018cb 57%, #15101820 94%);
}

.lurk-copy {
  gap: 9px;
  max-width: 355px;
}

.lurk h2 {
  width: clamp(180px, 24vw, 285px);
  max-width: 100%;
}

.lurk .game-title-logo {
  width: 100%;
  margin-inline-start: -5%;
}

.lurk a,
.studio a {
  color: var(--accent);
}

.lurk .buy-button:hover {
  background: #e784ff1a;
}

.studio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 14px var(--side-padding);
  background: var(--footer);
  border-top: 1px solid var(--divider);
}

.studio-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.studio-identity img {
  display: block;
  width: clamp(64px, 10vw, 92px);
  height: auto;
}

.studio h2 {
  font-size: 1rem;
  font-weight: 650;
}

.studio-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.studio-links a {
  gap: 7px;
}

.studio-links svg {
  width: 20px;
  height: 20px;
  flex: none;
}

@media (max-width: 680px) {
  .witch::after {
    background: linear-gradient(90deg, #1b1224f1, #1b1224cf);
  }

  .lurk::after {
    background: linear-gradient(90deg, #151018f1, #151018cf);
  }

  .motion-button {
    position: static;
    margin-top: 16px;
  }
}

@media (min-width: 75rem) {
  body {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
  }

  main {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
  }

  .witch {
    display: grid;
    flex: 3 0 auto;
    align-items: center;
  }

  .lurk {
    flex: 2 0 auto;
    min-height: 20rem;
  }

  .lurk .backdrop {
    object-position: 59% 17%;
  }

  .witch-copy {
    max-width: 33rem;
  }

  .lurk-copy {
    max-width: 30rem;
  }

  .witch p,
  .lurk p {
    font-size: 1.125rem;
    line-height: 1.55;
  }

  .witch p {
    max-width: 52ch;
  }
}

@media (min-width: 100rem) {
  :root {
    --side-padding: max(7%, calc((100% - 92rem) / 2));
  }

  .witch .backdrop,
  .lurk .backdrop {
    left: auto;
    mask-image: linear-gradient(90deg, transparent, #000 32%);
  }

  .witch .backdrop {
    width: min(87%, 112rem);
  }

  .lurk .backdrop {
    width: min(76%, 92rem);
  }

  .witch::after {
    background:
      linear-gradient(90deg, #1b1224f7 12%, #1b1224dd 36%, #1b122463 59%, #1b122415 90%),
      linear-gradient(0deg, #1b122494 0%, transparent 34%);
  }

  .lurk::after {
    background: linear-gradient(90deg, #151018f5 12%, #151018ed 36%, #15101878 59%, #15101820 90%);
  }
}
