:root {
  --text: #ffffff;
  --shade: rgba(0, 0, 40, 0.65);
  --link: #fdf05a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #1d63d8;
  color: var(--text);
  font: 15px/1.4 Tahoma, Verdana, system-ui, sans-serif;
  overflow: hidden;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

header, footer, .hint {
  position: fixed;
  left: 0;
  right: 0;
  padding: 10px 16px;
  text-shadow: 0 1px 3px var(--shade), 0 0 8px var(--shade);
}

/* A dark wash behind the links, so they stay readable when a white cloud drifts by. */
header {
  top: 0;
  padding-bottom: 28px;
  background: linear-gradient(to bottom, rgba(0, 10, 40, 0.7), rgba(0, 10, 40, 0.6) 70%, rgba(0, 10, 40, 0));
}

/* Room on the right for the monogram. */
header { padding-right: 72px; }

/* Anne Jan's AJB monogram, top right: a signature rather than one more link. */
.ajb {
  position: absolute;
  top: 10px;
  right: 16px;
  display: block;
  line-height: 0;
  opacity: 0.85;
  transition: opacity 0.2s, filter 0.2s;
}
.ajb img { width: 37px; height: 48px; }
.ajb:hover, .ajb:focus-visible { opacity: 1; filter: drop-shadow(0 0 6px var(--link)); }
.ajb:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }

h1 {
  margin: 0 0 4px;
  font: 900 clamp(1.6rem, 5vw, 2.6rem)/1 Impact, 'Arial Black', sans-serif;
  letter-spacing: 0.03em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
}

/* Links at least 24 px tall, for fingers and shaky hands. */
nav a {
  display: inline-block;
  min-height: 24px;
  line-height: 24px;
}

nav.prods {
  font-size: 0.8rem;
  opacity: 0.9;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover, a:focus-visible { text-decoration: underline; }

.hint {
  bottom: 30px;
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Pause and play, for everything that moves (WCAG 2.2.2); P does the same. */
.pause {
  position: fixed;
  left: 16px;
  bottom: 10px;
  z-index: 1;
  min-height: 24px;
  padding: 2px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(0, 10, 40, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.pause:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

footer {
  bottom: 0;
  font-size: 0.8rem;
  text-align: right;
  opacity: 0.85;
}

/* Reduced motion, or no script: a still picture, the links stay. */
.still #logos, .still #front { display: none; }
