:root {
  color-scheme: dark;
  --background: #101310;
  --text: #e8e3d5;
  --muted: #a8a69c;
  --link: #aaa7ff;
  --accent: #79d8c6;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 20px;
  text-rendering: optimizeLegibility;
}

main {
  width: min(calc(100% - 40px), 720px);
  margin: 0 auto;
  padding: 44px 0 72px;
}

code {
  color: inherit;
  font: inherit;
}

p {
  margin: 0 0 20px;
}

.name {
  margin-bottom: 20px;
  font-weight: 700;
}

.dot {
  color: var(--text);
}

.separator {
  margin: 26px 0;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  color: var(--link);
}

a:focus-visible {
  outline: 1px solid var(--link);
  outline-offset: 3px;
}

section > p:first-child {
  margin-bottom: 20px;
}

.entries {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entries li {
  display: grid;
  grid-template-columns: 76px 12px minmax(0, 1fr);
  gap: 0;
  margin-bottom: 20px;
}

.when {
  color: var(--text);
}

.dot {
  display: inline-block;
}

strong {
  font-weight: 400;
}

small {
  color: var(--muted);
  font: inherit;
}

.timeline li {
  position: relative;
}

.timeline li:not(:last-child)::after {
  position: absolute;
  top: 16px;
  bottom: -40px;
  left: 80px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--text) 0,
    var(--text) 10px,
    transparent 10px,
    transparent 20px
  );
  content: "";
}

.timeline .dot {
  position: relative;
  z-index: 1;
  color: var(--text);
}

::selection {
  background: var(--accent);
  color: var(--background);
}

@media (max-width: 560px) {
  main {
    width: min(calc(100% - 32px), 720px);
    padding-top: 32px;
  }

  .entries li {
    grid-template-columns: 1fr;
    margin-bottom: 26px;
  }

  .entries .when {
    color: var(--muted);
  }

  .entries .dot,
  .timeline li::after {
    display: none;
  }
}
