@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400&display=swap');

:root {
  --void: #000;
  --slab: #050506;
  --dim: #3a3d43;
  --faint: #6c7078;
  --glyph: #9aa0a8;
  --sun: #fff6dc;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--void); color: var(--glyph); font: 300 11px/1.6 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .08em; overflow: hidden; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .55; background-image:
  radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 68% 8%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 84% 42%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 33% 72%, #cfd8ff 50%, transparent 51%),
  radial-gradient(1px 1px at 92% 88%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 6% 92%, #ffe9cf 50%, transparent 51%);
  background-size: 460px 460px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.field { position: relative; height: 100vh; height: 100dvh; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(24px, 6vw, 96px); padding: 0 clamp(16px, 5vw, 64px); }

/* Sun, moon, earth: aligned above the slab */
.alignment { position: absolute; left: 50%; top: 4vh; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translateX(-50%); }
.alignment i { display: block; border-radius: 50%; }
.alignment i:nth-child(1) { width: 6px; height: 6px; background: var(--sun); box-shadow: 0 0 18px 6px rgba(255, 238, 200, .45); }
.alignment i:nth-child(2) { width: 3px; height: 3px; background: var(--faint); }
.alignment i:nth-child(3) { width: 4px; height: 4px; background: var(--dim); }

/* The slab: 4 : 9, its face is the encoded manifest */
.monolith { grid-column: 2; display: block; height: min(76vh, 760px); aspect-ratio: 4 / 9; position: relative; overflow: hidden; text-decoration: none; background: linear-gradient(100deg, #000 0%, var(--slab) 60%, #111216 100%); box-shadow: inset 1px 0 0 rgba(255, 255, 255, .14), 0 0 0 1px #0d0e11, 0 40px 120px rgba(0, 0, 0, .9); }
.monolith::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 0%, rgba(255, 246, 220, .07) 48%, rgba(255, 246, 220, .16) 50%, rgba(255, 246, 220, .07) 52%, transparent 100%); background-size: 100% 300%; animation: sweep 11s ease-in-out infinite; }
@keyframes sweep { from { background-position: 0 100%; } to { background-position: 0 0; } }
.inscription { margin: 0; padding: 8%; height: 100%; color: #1b1d21; font: 400 7px/1.9 'IBM Plex Mono', monospace; overflow: hidden; letter-spacing: .02em; white-space: pre-wrap; word-break: break-all; transition: color 1.2s ease; user-select: all; }
.monolith:hover .inscription, .monolith:focus-visible .inscription { color: #4a4f57; }
.monolith:focus-visible { outline: 1px solid var(--faint); outline-offset: 10px; }

/* Marks: the four surfaces, in notation */
.marks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9vh; }
.marks-left { justify-items: end; text-align: right; }
.marks li { color: var(--faint); white-space: nowrap; }
.marks b { display: block; margin-bottom: 8px; color: var(--glyph); font-weight: 300; font-size: 20px; letter-spacing: 0; }

.corner { position: absolute; color: var(--dim); font-size: 10px; }
.tl { top: 22px; left: clamp(16px, 3vw, 32px); }
.tr { top: 22px; right: clamp(16px, 3vw, 32px); }
.bl { bottom: 22px; left: clamp(16px, 3vw, 32px); max-width: 44vw; overflow-wrap: anywhere; }
.br { bottom: 22px; right: clamp(16px, 3vw, 32px); text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .monolith::after { animation: none; }
}

@media (max-width: 760px) {
  body { overflow: auto; }
  .field { height: auto; min-height: 100dvh; grid-template-columns: 1fr; gap: 40px; padding: 120px 16px 140px; justify-items: center; }
  .monolith { grid-column: 1; grid-row: 1; height: 62vh; }
  .marks { gap: 28px; justify-items: center; text-align: center; }
  .marks-left { justify-items: center; text-align: center; }
  .marks li { white-space: normal; }
  .alignment { top: 48px; }
  .bl { max-width: calc(100% - 32px); bottom: 64px; }
  .br { left: 16px; text-align: left; }
}
