@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --paper: #f4f4f4;
  --ink: #0404cd;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

::selection {
  color: var(--paper);
  background: var(--ink);
}

.page-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 100vh;
  min-height: 100svh;
}

.copy-panel {
  display: flex;
  flex-direction: column;
  padding: 56px clamp(32px, 4.5vw, 88px) 32px;
}

.copy,
.colophon {
  max-width: 580px;
  width: 100%;
  margin-inline: auto;
}

.copy {
  padding-bottom: 64px;
  font-size: 13px;
  line-height: 1.85;
  font-weight: 400;
}

h1,
p {
  margin: 0;
}

h1 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.brand-mark {
  flex: 0 0 48px;
  image-rendering: pixelated;
}

.lead {
  margin-bottom: 28px;
  font-size: clamp(23px, 1.9vw, 30px);
  line-height: 1.45;
  letter-spacing: -0.055em;
  text-wrap: pretty;
}

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgb(4 4 205 / 16%);
  font-size: 11px;
  line-height: 1.6;
}

#tree-field {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #ffffff;
}

#tree-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: pixelated;
}

@media (max-width: 800px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .copy-panel {
    padding: 40px 24px 32px;
  }

  .copy {
    font-size: 14px;
  }

  h1 {
    margin-bottom: 28px;
  }

  .lead {
    font-size: clamp(23px, 4.2vw, 28px);
  }

  #tree-field {
    position: relative;
    height: auto;
    aspect-ratio: 3 / 4;
  }
}
