/* colortr holding page: the logo on cool paper, ink from the logo's own colours behind it (ink.js). */
:root {
  --paper: #f2f3f5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  height: 100%;
}

body {
  background: var(--paper);
  overflow: hidden;
}

#ink {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
}

/* Own stacking context above the canvas, so the logo's clear pool sits between ink and logo. */
main {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
}

h1 {
  position: relative;
  line-height: 0;
}

/* A pool of clear water around the logo: ink drifts behind it but never muddies the mark. */
h1::before {
  content: "";
  position: absolute;
  inset: -80px -110px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--paper) 42%, rgb(242 243 245 / 0.8) 64%, rgb(242 243 245 / 0) 100%);
}

/* Native size on purpose: the source is 191 px wide and scaling it up would blur it. */
h1 img {
  display: block;
  width: 191px;
  height: auto;
  animation: develop 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* The colour develops into the mark. No opacity or blur: if a browser never runs the
   animation (background tab, screenshot tool), the logo is still fully visible. */
@keyframes develop {
  from {
    filter: saturate(0) contrast(0.9);
  }
  to {
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  h1 img {
    animation: none;
  }
}
