:root {
  --background: #faf9f6;
  --text: #202020;
  --muted: #77746f;
  --line: rgba(32, 32, 32, 0.15);

  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--text);
  background: var(--background);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

main {
  width: min(1080px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(0, 560px) 1fr;
  column-gap: 80px;
  align-items: center;
}

.intro {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

h1 {
  margin: 0 0 42px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.bio {
  max-width: 550px;
}

p {
  margin: 0 0 18px;

  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.012em;
}

a {
  color: inherit;
  text-decoration-color: rgba(32, 32, 32, 0.32);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;

  transition: text-decoration-color 140ms ease;
}

a:hover {
  text-decoration-color: currentColor;
}

.links {
  display: flex;
  gap: 22px;
  margin-top: 40px;

  font-size: 0.9rem;
  color: var(--muted);
}

.art {
  position: relative;
  height: 440px;
  min-width: 0;
  pointer-events: auto;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 800px) {
  main {
    width: min(100% - 42px, 600px);
    min-height: auto;

    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .intro {
    padding: 72px 0 24px;
  }

  h1 {
    margin-bottom: 36px;
  }

  .art {
    width: 100%;
    height: 300px;
    margin: 0 0 40px;
  }
}

@media (max-width: 480px) {
  main {
    width: calc(100% - 36px);
  }

  .intro {
    padding-top: 54px;
  }

  p {
    font-size: 0.97rem;
  }

  .art {
    height: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  canvas {
    opacity: 0.75;
  }
}
