:root {
  color-scheme: dark;
  --ink: #f0f0eb;
  --muted: #797b76;
  --signal: #ebff15;
  --void: #090a09;
  --rail-x: max(26px, calc((100vw - 1120px) / 2 + 36px));
  --font-mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  height: 100%;
  background: var(--void);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.035), transparent 32%),
    repeating-radial-gradient(circle at 20% 80%, rgba(255,255,255,.012) 0 1px, transparent 1px 4px),
    var(--void);
  color: var(--ink);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

button, a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 12px;
  transform: translateY(-160%);
  background: var(--signal);
  color: #080908;
  font-size: 11px;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px;
  padding: max(28px, env(safe-area-inset-top)) calc(var(--rail-x) + 58px) 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.wordmark {
  pointer-events: auto;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .48em;
  white-space: nowrap;
}

.archive-label {
  margin: 1px 0 0;
  color: #60625e;
  font-size: 9px;
  letter-spacing: .18em;
}

.log {
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  padding: 28svh calc(var(--rail-x) + 54px) 28svh 24px;
}

.log::-webkit-scrollbar { display: none; }

.entry {
  --distance: 1;
  width: min(720px, 100%);
  min-height: 48svh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  cursor: pointer;
  outline: none;
}

.entry__content {
  width: 100%;
  padding: 38px 0;
  transform: scale(calc(1 - (var(--distance) * .08)));
  filter: blur(calc(var(--distance) * 8px));
  opacity: calc(1 - (var(--distance) * .82));
  transition: opacity 100ms linear, filter 100ms linear, transform 100ms linear;
  text-align: center;
  will-change: transform, filter, opacity;
}

.entry[data-active="true"] .entry__content { opacity: 1; }

.entry__meta {
  margin: 0 0 28px;
  color: #c9cac4;
  font-size: clamp(9px, 1.1vw, 12px);
  line-height: 1.5;
  letter-spacing: .22em;
}

.entry__title {
  margin: 0;
  font-size: clamp(32px, 6vw, 74px);
  font-weight: 400;
  line-height: .99;
  letter-spacing: .045em;
  text-wrap: balance;
}

.entry__project {
  margin: 28px 0 0;
  color: var(--signal);
  font-size: 12px;
  letter-spacing: .48em;
  text-indent: .48em;
}

.entry__hint {
  margin: 23px 0 0;
  color: #777973;
  font-size: 8px;
  letter-spacing: .18em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 250ms ease, transform 250ms ease;
}

.entry[data-active="true"]:hover .entry__hint,
.entry[data-active="true"]:focus-visible .entry__hint {
  opacity: 1;
  transform: translateY(0);
}

.entry:focus-visible .entry__content {
  outline: 1px solid color-mix(in srgb, var(--signal) 55%, transparent);
  outline-offset: 16px;
}

.timeline {
  position: fixed;
  z-index: 32;
  top: 0;
  right: var(--rail-x);
  height: 100svh;
  width: 1px;
}

.timeline__line {
  position: absolute;
  inset: 0;
  width: 1px;
  background: #5c5e59;
}

.timeline__nodes {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline__node {
  position: absolute;
  left: 0;
  top: var(--node-y);
  display: flex;
  align-items: center;
  transform: translate(-50%, -50%);
}

.timeline__button {
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.timeline__button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid #676963;
  border-radius: 50%;
  background: var(--void);
  content: "";
  transform: translate(-50%, -50%);
  transition: width 200ms ease, height 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.timeline__node[data-active="true"] .timeline__button::before {
  width: 13px;
  height: 13px;
  border-color: var(--signal);
  background: var(--signal);
  box-shadow: 0 0 18px rgba(235,255,21,.25);
}

.timeline__button:focus-visible { outline: 1px solid var(--signal); outline-offset: 1px; }

.timeline__stamp {
  position: absolute;
  left: 26px;
  top: 50%;
  width: 48px;
  color: #666862;
  font-size: 9px;
  line-height: 1.45;
  letter-spacing: .08em;
  transform: translateY(-50%);
  transition: color 200ms ease;
}

.timeline__node[data-active="true"] .timeline__stamp { color: var(--signal); }

.focus-line {
  position: fixed;
  z-index: 25;
  left: calc(50% - 1px);
  width: 1px;
  height: 42px;
  background: rgba(240,240,235,.75);
  pointer-events: none;
}

.focus-line--top { top: calc(50% - 177px); }
.focus-line--bottom { top: calc(50% + 136px); }

.edge-fade {
  position: fixed;
  z-index: 15;
  left: 0;
  width: 100%;
  height: 27svh;
  pointer-events: none;
}

.edge-fade--top { top: 0; background: linear-gradient(var(--void) 16%, rgba(9,10,9,.86) 44%, transparent); }
.edge-fade--bottom { bottom: 0; background: linear-gradient(transparent, rgba(9,10,9,.86) 56%, var(--void) 88%); }

.scroll-instruction {
  position: fixed;
  z-index: 30;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 30px;
  margin: 0;
  color: #555752;
  font-size: 8px;
  letter-spacing: .18em;
  writing-mode: vertical-rl;
}

.live-status {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.field-note {
  width: min(760px, calc(100% - 32px));
  max-height: min(720px, calc(100svh - 32px));
  padding: 0;
  border: 1px solid #3e403c;
  background: rgba(10,11,10,.98);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0,0,0,.76);
}

.field-note::backdrop { background: rgba(0,0,0,.77); backdrop-filter: blur(10px); }

.field-note__inner { padding: clamp(36px, 8vw, 90px); }

.field-note__close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  margin: 18px 18px 0 0;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #848680;
  font: 9px/1 var(--font-mono);
  letter-spacing: .14em;
  cursor: pointer;
}

.field-note__close:hover, .field-note__close:focus-visible { color: var(--signal); }
.field-note__eyebrow { color: var(--signal); font-size: 10px; letter-spacing: .25em; }
.field-note__title { margin: 22px 0 26px; font-size: clamp(30px, 6vw, 62px); font-weight: 400; line-height: 1.02; text-transform: uppercase; }
.field-note__body { max-width: 62ch; margin: 0; color: #c4c5bf; font-size: clamp(15px, 2vw, 19px); line-height: 1.75; }
.field-note__status { margin: 48px 0 0; color: #595b56; font-size: 8px; letter-spacing: .17em; }

@media (max-width: 700px) {
  :root { --rail-x: 64px; }
  .site-header { height: 88px; padding: max(24px, env(safe-area-inset-top)) 112px 0 24px; }
  .wordmark { font-size: 10px; letter-spacing: .42em; }
  .archive-label { display: none; }
  .log { padding-right: 116px; padding-left: 18px; }
  .entry { min-height: 38svh; }
  .entry__meta { margin-bottom: 22px; font-size: 8px; letter-spacing: .13em; }
  .entry__title { font-size: clamp(32px, 10.5vw, 48px); line-height: 1.04; }
  .entry__project { margin-top: 24px; font-size: 10px; }
  .timeline__stamp { left: 19px; font-size: 8px; }
  .scroll-instruction { display: none; }
  .focus-line { left: calc(50% - 34px); height: 30px; }
  .focus-line--top { top: calc(50% - 152px); }
  .focus-line--bottom { top: calc(50% + 122px); }
  .field-note { width: calc(100% - 18px); max-height: calc(100svh - 18px); }
  .field-note__inner { padding: 58px 26px 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .entry__content, .timeline__button::before, .timeline__stamp { transition: none; }
}
