:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #707070;
  --line: #ebebeb;
  --soft: #f3f3f3;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --fg: #f2f2f2;
    --muted: #8c8c8c;
    --line: #222222;
    --soft: #181818;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(4rem, 18vh, 10rem) 1.5rem 6rem;
}

.avatar-link {
  display: inline-block;
  margin: 0 0 2rem;
  border-radius: 50%;
}

.avatar-link:focus-visible { border-radius: 50%; }

.avatar {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: var(--soft);
  object-fit: cover;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.lead {
  max-width: 30rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.5;
}

.links {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.links li { border-bottom: 1px solid var(--line); }

.links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  color: var(--fg);
  text-decoration: none;
}

.links a::after {
  content: "↗";
  color: var(--muted);
  transition: transform .2s ease, color .2s ease;
}

.links a:hover::after {
  color: var(--fg);
  transform: translate(3px, -3px);
}

a { color: var(--fg); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 4px; }

.thoughts { margin: 3.5rem 0 0; }

.post + .post { margin-top: 8rem; }

.post h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 4.6vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.post p {
  margin: 0 0 1.25rem;
  font-size: clamp(1.125rem, 2.6vw, 1.25rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.post img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--soft);
}

.post img + time { margin-top: 1rem; }

.post time {
  display: block;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: .9375rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(.35em); filter: blur(6px); }
}

.word { display: inline-block; }
.nowrap { white-space: nowrap; }

.word, .fade {
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

.d1 { --i: 1; } .d2 { --i: 2; } .d3 { --i: 3; } .d4 { --i: 4; } .d8 { --i: 8; } .d10 { --i: 10; }

@media (prefers-reduced-motion: reduce) {
  .word, .fade { animation: none; }
}
