:root {
  color-scheme: light;
  --background: #f5f5f2;
  --text: #1b1b19;
  --muted: #6f6f69;
  --quiet: #8b8a83;
  --line: #d8d7d1;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
}

main {
  width: min(100% - 3rem, 70rem);
  margin-inline: auto;
  padding-block: clamp(2rem, 5vw, 4rem) 2.5rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 140ms ease;
}

a:hover {
  opacity: 0.52;
}

a:focus-visible {
  border-radius: 0.1rem;
  outline: 1px solid currentColor;
  outline-offset: 0.3rem;
}

.site-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
}

.home-link {
  color: var(--text);
  font-weight: 550;
}

.intro {
  padding-block: clamp(6rem, 13vw, 10rem) clamp(4rem, 9vw, 7rem);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--quiet);
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-family:
    "Iowan Old Style",
    "Baskerville",
    "Times New Roman",
    ui-serif,
    serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 33rem;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.6;
}

.timeline {
  border-top: 1px solid var(--line);
}

.year {
  display: grid;
  grid-template-columns: minmax(5rem, 0.8fr) minmax(0, 4.2fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(2.25rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

h2 {
  position: sticky;
  top: 2rem;
  align-self: start;
  color: var(--quiet);
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.08em;
}

.entries {
  display: grid;
}

.entry {
  display: grid;
  grid-template-columns: minmax(6rem, 0.75fr) minmax(0, 3fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}

.entry:first-child {
  padding-top: 0;
}

.entry:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.entry-meta {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  color: var(--quiet);
  font-size: 0.7rem;
  line-height: 1.4;
}

h3 {
  display: grid;
  gap: 0.35rem;
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

h3 span {
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.entry-body > p {
  max-width: 39rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.entry-body .work {
  margin-top: 0.75rem;
  color: var(--quiet);
}

.work span {
  margin-right: 0.5rem;
  color: var(--text);
  font-size: 0.65rem;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.repo {
  align-self: start;
  color: var(--quiet);
  font-size: 0.7rem;
  white-space: nowrap;
}

footer {
  padding-top: 2rem;
}

@media (max-width: 48rem) {
  .year {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  h2 {
    position: static;
  }

  .entry {
    grid-template-columns: minmax(5.5rem, 0.7fr) minmax(0, 2.5fr);
  }

  .repo {
    grid-column: 2;
  }
}

@media (max-width: 34rem) {
  main {
    width: min(100% - 2.25rem, 70rem);
    padding-top: 1.75rem;
  }

  .intro {
    padding-block: 5.5rem 4.5rem;
  }

  .entry {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .entry-meta {
    display: flex;
    gap: 0.75rem;
  }

  .entry-meta span + span::before {
    content: "·";
    margin-right: 0.75rem;
  }

  .repo {
    grid-column: auto;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #171715;
    --text: #efefe9;
    --muted: #a5a59d;
    --quiet: #85857d;
    --line: #363632;
  }
}

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

  a {
    transition: none;
  }
}
