:root {
  color-scheme: dark;
  --bg: #020611;
  --panel: #061126;
  --text: #e9f2ff;
  --muted: #788ba8;
  --subtle: #536783;
  --line: rgba(96, 165, 250, 0.22);
  --line-strong: rgba(96, 165, 250, 0.5);
  --blue: #60a5fa;
  --blue-soft: #93c5fd;
  --border: rgba(148, 163, 184, 0.13);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.12), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.timeline-header,
.timeline-footer {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeline-header {
  min-height: 78px;
  border-bottom: 1px solid var(--border);
}

.timeline-home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #dbeafe;
  text-decoration: none;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.timeline-mark { color: var(--blue); font-size: 15px; }
.timeline-header nav,
.timeline-footer nav { display: flex; align-items: center; gap: 20px; }
.timeline-header nav a,
.timeline-footer a {
  color: #8397b5;
  font-size: 11px;
  text-decoration: none;
  transition: color 140ms ease;
}
.timeline-header nav a:hover,
.timeline-footer a:hover { color: var(--blue-soft); }

.timeline-shell {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0 120px;
}

.timeline-intro { margin-bottom: 68px; }
.timeline-eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.timeline-intro h1 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(38px, 7vw, 58px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.timeline-description {
  max-width: 560px;
  margin: 20px 0 0;
  color: #8ea2bf;
  font-size: 14px;
  line-height: 1.65;
}
.timeline-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  color: var(--subtle);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.timeline-live { display: inline-flex; align-items: center; gap: 6px; }
.timeline-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.65);
}
.timeline-live.is-cached .timeline-live-dot {
  background: #64748b;
  box-shadow: none;
}

.timeline-list {
  position: relative;
  padding-left: 28px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 5px;
  left: 4px;
  width: 1px;
  background: linear-gradient(to bottom, var(--line-strong), var(--line) 12%, var(--line) 88%, transparent);
}
.timeline-day { position: relative; }
.timeline-day + .timeline-day { margin-top: 54px; }
.timeline-date {
  margin: 0 0 22px;
  color: #6f85a4;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.timeline-date::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 4px;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(96, 165, 250, 0.6);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-commit {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 24px;
}
.timeline-commit:last-child { padding-bottom: 0; }
.timeline-time {
  padding-top: 2px;
  color: #526781;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.timeline-commit-main { min-width: 0; }
.timeline-commit-title {
  display: inline;
  color: #cbd9ec;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  text-decoration: none;
}
.timeline-commit-title:hover { color: #eff6ff; }
.timeline-commit-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: #4f6380;
  font-size: 9px;
  line-height: 1.5;
}
.timeline-sha {
  color: #6684aa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-decoration: none;
}
.timeline-sha:hover { color: var(--blue-soft); }
.timeline-separator { opacity: 0.55; }
.timeline-loading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  color: #627896;
  font-size: 11px;
}
.timeline-loading-dot {
  position: absolute;
  left: -28px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-empty {
  margin: 0 0 0 28px;
  color: #637895;
  font-size: 12px;
}
.timeline-footer {
  min-height: 96px;
  border-top: 1px solid var(--border);
  color: #607591;
  font-size: 10px;
}

@media (max-width: 640px) {
  .timeline-header,
  .timeline-footer,
  .timeline-shell { width: min(100% - 28px, 760px); }
  .timeline-header { min-height: 66px; }
  .timeline-shell { padding: 72px 0 90px; }
  .timeline-intro { margin-bottom: 54px; }
  .timeline-intro h1 { font-size: 42px; }
  .timeline-description { font-size: 13px; }
  .timeline-list { padding-left: 23px; }
  .timeline-list::before { left: 3px; }
  .timeline-date::before,
  .timeline-loading-dot { left: -23px; }
  .timeline-commit { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .timeline-time { font-size: 9px; }
  .timeline-commit-title { font-size: 12px; }
  .timeline-footer { flex-direction: column; justify-content: center; gap: 12px; padding: 22px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
