:root {
  color-scheme: light;

  --paper: #f4f3ef;
  --ink: #1d1d1b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;

  width: 100%;
  min-height: 100%;
}

html {
  background: var(--paper);
}

body {
  min-height: 100vh;
  min-height: 100dvh;

  overflow: hidden;

  background: var(--paper);

  color: var(--ink);

  font-family:
    Arial,
    Helvetica,
    sans-serif;
}


/* almost invisible grain */

body::before {
  content: "";

  position: fixed;
  inset: 0;

  pointer-events: none;

  opacity: 0.09;

  background:
    repeating-radial-gradient(
      circle at 20% 30%,
      rgba(0,0,0,0.04) 0 1px,
      transparent 1px 5px
    );
}


/* dust */

#dust {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100%;

  pointer-events: none;
}


/* there is effectively no layout */

main {
  position: relative;

  width: 100vw;
  height: 100vh;
  height: 100dvh;
}


/* dot */

.dot {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 5px;
  height: 5px;

  transform:
    translate(-50%, -50%);

  appearance: none;

  border: 0;
  border-radius: 50%;

  padding: 0;

  background: #2b2b28;

  cursor: pointer;

  transition:
    left 700ms cubic-bezier(.2,.8,.2,1),
    top 700ms cubic-bezier(.2,.8,.2,1),
    opacity 500ms ease,
    transform 300ms ease;
}

.dot:hover {
  transform:
    translate(-50%, -50%)
    scale(1.7);
}


/* occasional words */

.message {
  position: absolute;

  left: 50%;
  top: calc(50% + 28px);

  max-width: calc(100% - 50px);

  transform:
    translateX(-50%);

  margin: 0;

  opacity: 0;

  color: #74736e;

  font-size: 11px;
  letter-spacing: 0.02em;

  text-align: center;

  pointer-events: none;

  transition:
    opacity 650ms ease;
}

.message.visible {
  opacity: 1;
}


/* contact is not initially visible */

.nothing-contact {
  position: absolute;

  right:
    max(
      17px,
      env(safe-area-inset-right)
    );

  bottom:
    max(
      15px,
      env(safe-area-inset-bottom)
    );

  appearance: none;

  border: 0;
  padding: 2px;

  background: transparent;

  color: #b4b3ae;

  font-size: 9px;

  opacity: 0;

  cursor: pointer;

  transition:
    opacity 1.2s ease,
    color 200ms ease;
}

.nothing-contact.visible {
  opacity: 1;
}

.nothing-contact:hover {
  color: #565651;
}


/* when even the dot gives up */

body.empty .dot {
  opacity: 0;
}

body.empty .message {
  opacity: 0;
}


/* phone */

@media (max-width: 700px) {
  .message {
    font-size: 10px;
  }
}