/* SKRYING. One word over a field of numbers. Amethyst on violet-black;
   cyan and magenta appear only while the picture tears. */
@font-face {
  font-family: "Skrying Text";
  src: url("/fonts/text.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #0a0612;
  --dusk: #1d1232;
  --amethyst: #c4a5e2;
  --pale: #f1e7ff;
  --cyan: #63f2ff;
  --magenta: #ff3fd0;
  color-scheme: dark;
  background: var(--void);
  color: var(--amethyst);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 55% at 50% 50%, var(--dusk), transparent 70%) var(--void);
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

main {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* The tracking is added after every letter, so the same amount is padded on the
   left to keep the word optically centred. */
#mark {
  position: relative;
  margin: 0;
  padding-left: .24em;
  font: 400 clamp(2.1rem, 9vw, 6.5rem)/1.2 "Skrying Text", "Iowan Old Style", Georgia, serif;
  letter-spacing: .24em;
  white-space: nowrap;
  text-shadow: 0 0 .5em rgb(150 100 230 / .35);
  user-select: none;
  -webkit-user-select: none;
}

#mark .l {
  display: inline-block;
  text-align: center;
}

/* A letter showing its number for an instant. */
#mark .l.n {
  font: 400 .46em/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0;
  color: var(--pale);
  vertical-align: .42em;
  text-shadow: -.08em 0 var(--magenta), .08em 0 var(--cyan);
}

/* Two coloured copies of the word, cut into a strip and pushed sideways while
   the picture tears. Hidden at rest. */
#mark .ghost {
  position: absolute;
  inset: 0;
  padding-left: .24em;
  visibility: hidden;
  text-shadow: none;
  mix-blend-mode: screen;
  pointer-events: none;
}
#mark .ghost.c { color: var(--cyan); }
#mark .ghost.m { color: var(--magenta); }
#mark.tear .ghost { visibility: visible; }

/* The page for an address that does not exist. */
.lost a {
  color: inherit;
  text-decoration: none;
}
.lost a:focus-visible {
  outline: 1px solid var(--amethyst);
  outline-offset: .3em;
}
