@font-face {
  font-family: manyfold;
  src: url('manyfoldsv0.otf');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: manyfold;
}

html {
  background: #fff;
  color: #000;
  width: 100%;
  min-height: 100%;
}

body {
  /* transparent so the fixed wireframe canvas shows through */
  background: transparent;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  padding: 80px 24px 120px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.45;
}

/* fixed-position canvas backdrop — terrain wireframe in dark grey on white */
canvas {
  position: fixed !important;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  z-index: 0;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.item {
  margin-bottom: 36px;
}

.hero {
  margin-bottom: 64px;
}

.hero-title {
  display: inline-block;
  font-size: clamp(34px, 7vw, 64px);
  background: #000;
  color: #fff;
  padding: 4px 10px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.url {
  color: #fff;
  background: #000;
  text-decoration: none;
  padding: 1px 6px;
  display: inline-block;
  margin-right: 4px;
  margin-bottom: 4px;
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.role,
.meta {
  display: block;
  margin-top: 2px;
  width: fit-content;
  max-width: 100%;
  background: rgba(255,255,255,0.88);
  padding: 0 4px;
}

.role {
  color: #000;
}

.meta {
  color: rgba(0,0,0,0.6);
  letter-spacing: 0.12em;
}

/* small clear-line break after the URL row before role text */
.item .url + .role {
  margin-top: 8px;
}

.nav-link {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.85);
}

/* hover styles only on devices that actually have hover (i.e. not iOS):
   on touch, :hover sticks after first tap and blocks navigation until a
   second tap. */
@media (hover: hover) {
  .nav-link:hover {
    color: #000;
    background: #fff;
  }

  .url:hover,
  .hero-title:hover {
    cursor: pointer;
    animation: hover-change 0.1s linear infinite;
  }
}

@keyframes hover-change {
  0%   { color: cyan; }
  25%  { color: magenta; }
  50%  { color: yellow; }
  100% { color: white; }
}

@media (max-width: 640px) {
  body { padding: 56px 18px 80px; }
  .item { margin-bottom: 28px; }
}
