@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --ink: #000;
  --soft: #666;
  --line: #d9d9d9;
  --paper: #fff;
  --rail: 3.25rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* The whole page is one thread: a rail of avatars joined by a line. */
.thread { max-width: 46rem; margin: 0 auto; padding: 4.5rem 1.25rem 1rem; }

.post { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: 1.25rem; }

.rail { display: flex; flex-direction: column; align-items: center; }
.rail::after { content: ""; flex: 1; width: 2px; background: var(--line); margin: 0.6rem 0; border-radius: 2px; }
.post.last .rail::after { display: none; }

.avatar {
  width: var(--rail); height: var(--rail); border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; color: #fff;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.util { background: var(--ink); }
.avatar.fia { background: #fff; border: 1.5px solid var(--line); }
.avatar.fia img { width: 78%; height: 78%; object-fit: contain; }
.avatar.go { background: #00add8; }
.avatar.rs { background: #b7410e; }

.content { padding-bottom: 3.25rem; }
.post.last .content { padding-bottom: 2rem; }

.who { margin: 0.7rem 0 0.9rem; font-weight: 650; font-size: 1rem; line-height: 1.2; }
.kind { font-weight: 400; color: var(--soft); margin-left: 0.4rem; }

h1 {
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
  font-stretch: 78%;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.lede { font-size: 1.3rem; color: var(--soft); max-width: 32rem; margin: 0; }

h2 { font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.025em; font-stretch: 88%; margin: 0 0 0.6rem; }
.content p { margin: 0 0 0.9rem; max-width: 36rem; }

.links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-weight: 600; }

footer { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; border-top: 1px solid var(--line); color: var(--soft); font-size: 0.95rem; }
footer p { margin: 0 0 0.3rem; }

@media (prefers-reduced-motion: no-preference) {
  .post:not(.root) { opacity: 0; transform: translateY(8px); animation: reply 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
  .post:nth-child(2) { animation-delay: 0.35s; }
  .post:nth-child(3) { animation-delay: 0.5s; }
  .post:nth-child(4) { animation-delay: 0.65s; }
  .post:nth-child(5) { animation-delay: 0.8s; }
  @keyframes reply { to { opacity: 1; transform: none; } }
}

@media (max-width: 34rem) {
  :root { --rail: 2.5rem; }
  body { font-size: 1.0625rem; }
  .thread { padding-top: 2.5rem; }
  .post { column-gap: 0.85rem; }
  .avatar { font-size: 0.95rem; }
  .who { margin-top: 0.45rem; }
  .content { padding-bottom: 2.5rem; }
}
