@font-face {
  font-family: 'Gambarino';
  src: url('../gambarino.min.woff2') format('woff2');
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CabinetGrotesk';
  src: url('../cabinentgrotesk.min.woff2') format('woff2');
  font-style: normal;
  font-display: swap;
}

:root {
  --background: hsl(28 41% 71%);
  --foreground: hsl(24 40% 17%);
  --primary: hsl(32 46% 89%);
  --warning: hsl(356 100% 65%);
}

* {
  box-sizing: border-box;
  user-select: none;
}

html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  background: var(--background);
  color: var(--foreground);
  font-family: 'CabinetGrotesk', sans-serif;
  overscroll-behavior: none;
  overflow-x: hidden;
}

.backdrop {
  filter: url(#backround);
  position: fixed;
  inset: auto 0 0 0;
  height: 25rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  font-family: 'Gambarino', serif;
  font-size: 20rem;
  letter-spacing: -0.15em;
  word-spacing: 0.25em;
  pointer-events: none;
}

.backdrop>span {
  bottom: -7.5rem;
  position: absolute;
  white-space: nowrap;
  left: 0;
  will-change: transform;
}

main#stage {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  overflow: clip;
  position: relative;
  z-index: 1;
}

main#stage.filtered {
  filter: url(#round);
}

.matter-body,
.matter-image,
.matter-circle {
  position: relative;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.matter-body {
  width: min-content;
  height: min-content;
  white-space: nowrap;
  text-align: left;
  z-index: 2;
  font-family: 'Gambarino', serif;
  flex-direction: column;
}

.strip {
  min-height: 150px;
  padding: 3rem 3rem;
  background: var(--primary);
  border-radius: 32px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  transition: font-size 0.2s ease;
}

.strip:hover {
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
}

.subtitle {
  margin-top: 8px;
  font-size: 1.1rem;
  color: var(--foreground);
  font-family: 'CabinetGrotesk';
}

.matter-image {
  z-index: 1;
  width: 15rem;
  height: 20rem;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--primary);
}

.matter-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
}

.matter-circle {
  z-index: 2;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: var(--primary);
  padding: 1.4rem;
}

.matter-circle>svg {
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease;
}

.matter-circle>svg>path {fill: var(--foreground)}
.matter-circle>svg>rect, .matter-circle>svg>circle{fill: none;stroke: var(--foreground); stroke-width: 45;}

.matter-circle>svg:hover {
  transform: scale(1.06) rotate(5deg);
}

#overlay {
  position: absolute;
  z-index: 10;
  inset: 0;
  width: 100vw;
  height: 100%;
  overflow: clip;
  pointer-events: none;
}

.overlay-clone {
  position: absolute;
  left: 0;
  top: 0;
  background: transparent !important;
  pointer-events: none;
}

.overlay-clone {
  pointer-events: auto;
}

#stage .matter-body>*,
#stage nav .matter-circle>* {
  opacity: 0;
}

.status {
  position: fixed;
  top: 1em;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 12px 16px;
  text-align: center;
  background: var(--warning);
  color: var(--primary);
  border-radius: 16px;
  font-family: 'CabinetGrotesk';
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.status.show {
  opacity: 1;
}

#cursor-circle {
  position: fixed;
  left: 0;
  top: 0;
  width: 92px;
  height: 42px;
  border-radius: 20%;
  background: var(--primary);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  filter: blur(26px);
}

@media (max-width: 600px) {
  .strip {
    padding: 32px 40px;
  }

  .matter-image {
    width: 12rem;
    height: 14rem;
  }
}