:root {
  color-scheme: light;
  --ink: #000;
  --paper: #fff;
  --muted: #666;
  --faint: #aaa;
  --hairline: #ddd;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 36px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.62;
  text-rendering: geometricPrecision;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

a,
button {
  color: var(--ink);
  text-decoration: none;
  background-image: none;
  cursor: pointer;
}

button {
  border: 0;
  padding: 0;
  background-color: transparent;
  font: inherit;
}

a:hover,
button:hover {
  color: var(--muted);
}

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.container {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 100px 28px 80px;
}

.intro {
  margin-bottom: 48px;
}

.tiny,
.section-updated,
.contact-line,
.footer {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tiny {
  margin: 0 0 6px;
}

h1 {
  width: fit-content;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 44px;
  font-weight: 650;
  line-height: 0.95;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0;
}

.contact-line a {
  font-weight: 650;
}

.contact-line span,
.footer span {
  color: var(--faint);
}

.home-section {
  margin-bottom: var(--space-5);
}

.section-title-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: var(--space-3);
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  text-transform: lowercase;
}

.section-updated {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.section-updated::before {
  content: "/";
  margin-right: 8px;
  color: var(--faint);
}

.lead,
.timeline-item > p {
  margin: 0;
  color: #111;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.timeline-item {
  padding: 0 0 var(--space-4);
  margin: 0 0 var(--space-4);
  border-bottom: 1px solid var(--hairline);
}

.timeline-item.compact {
  padding-bottom: 0;
  border-bottom: 0;
}

.timeline-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 10px;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
}

.timeline-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.timeline-head > p {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 17px;
}

li {
  padding-left: 2px;
  color: #111;
}

li::marker {
  color: var(--faint);
}

.footer {
  padding-top: 8px;
}

.footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0;
}

.footer a,
.footer button {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
}

.footer a:hover,
.footer button:hover {
  background-size: 0 1px;
}

.fade-in {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px);
  transition: opacity 520ms linear, filter 520ms linear, transform 520ms linear;
}

.fade-in.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

[data-scramble] {
  transition: color 120ms linear, background-size 120ms linear;
}

[data-scramble].is-scrambling {
  color: #444;
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
    line-height: 1.58;
  }

  .container {
    padding: 72px 22px 56px;
  }

  .intro {
    margin-bottom: 38px;
  }

  h1 {
    font-size: 40px;
  }

  .contact-line,
  .footer {
    font-size: 12px;
  }

  .timeline-head {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .timeline-head > p {
    text-align: left;
    white-space: normal;
  }

  .lead,
  .timeline-item > p {
    text-align: left;
    hyphens: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .fade-in {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
