:root {
  --paper: #fcfcfb;
  --paper-light: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --line: rgb(29 29 31 / 0.14);
  /* San Francisco on Apple devices, Inter everywhere else. */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Segoe UI", Roboto, sans-serif;
}

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

html {
  height: 100%;
  background: var(--paper);
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 3rem 1.5rem 1.5rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  background: radial-gradient(ellipse 90% 70% at 50% 35%, var(--paper-light), var(--paper) 75%);
  -webkit-font-smoothing: antialiased;
}

/* Paper grain: fine fractal noise multiplied over the off-white background. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.36;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.4 0 0 0 0 0.4 0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.intro {
  position: relative;
  width: min(100%, 28rem);
  text-align: center;
}

.intro > * {
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.intro > :nth-child(2) { animation-delay: 80ms; }
.intro > :nth-child(3) { animation-delay: 140ms; }
.intro > :nth-child(4) { animation-delay: 200ms; }
.intro > :nth-child(5) { animation-delay: 260ms; }
.intro > :nth-child(6) { animation-delay: 320ms; }

.portrait {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
  box-shadow:
    0 0 0 4px rgb(255 255 255 / 0.45),
    0 0 0 5px rgb(31 28 24 / 0.14),
    0 12px 30px -14px rgb(31 28 24 / 0.35);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 7.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.role {
  margin: 0.6rem auto 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.role > span {
  display: block;
}

/* Keep names and "Co-founder" from splitting across lines. */
.nb {
  white-space: nowrap;
}

.tagline {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bio {
  margin: 1.75rem auto 0;
  padding-top: 1.75rem;
  max-width: 24rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.bio .lead {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  text-wrap: balance;
}

.links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.links a {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgb(255 255 255 / 0.55);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.links a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-light);
}

.links a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.links svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

footer {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro > * {
    animation: none;
  }
}
