@font-face {
  font-family: "JetBrains Mono";
  src: url("./assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fefdf9;
  --ink: #20211f;
  --muted: #60615b;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

::selection { background: #dbdcd3; color: #11120f; }

.trajectory-canvas {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Keep the moving paths outside the reading area. */
  -webkit-mask-image: radial-gradient(ellipse 42% 36% at 50% 50%, transparent 48%, #0008 90%, #000 125%);
  mask-image: radial-gradient(ellipse 42% 36% at 50% 50%, transparent 48%, #0008 90%, #000 125%);
}

.landing {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(48px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.content {
  width: min(100%, 800px);
  text-align: center;
}

.brand {
  display: block;
  width: 390px;
  max-width: 78%;
  height: auto;
  margin: 0 auto 48px;
  user-select: none;
  animation: arrive 1.2s ease-out both;
}

h1 {
  margin: 0;
  font-size: clamp(23px, 2.65vw, 34px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.055em;
  text-wrap: balance;
  animation: arrive 1.2s 100ms ease-out both;
}

.description {
  max-width: 610px;
  margin: 27px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
  letter-spacing: -0.025em;
  text-wrap: balance;
  animation: arrive 1.2s 200ms ease-out both;
}

.contact {
  margin-top: 43px;
  animation: arrive 1.2s 300ms ease-out both;
}

.email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
  text-decoration: underline;
  text-decoration-color: #a4a69b;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 200ms;
}

.email-arrow {
  width: 13px;
  height: 13px;
  transition: transform 200ms;
}

.email:hover { text-decoration-color: var(--ink); }
.email:hover .email-arrow { transform: translate(2px, -2px); }
.email:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; }

.collaboration {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  text-wrap: balance;
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .trajectory-canvas {
    -webkit-mask-image: radial-gradient(ellipse 70% 35% at 50% 49%, transparent 65%, #0009 115%, #000 150%);
    mask-image: radial-gradient(ellipse 70% 35% at 50% 49%, transparent 65%, #0009 115%, #000 150%);
  }
  .landing { padding: 40px 24px; }
  .brand { width: 285px; max-width: 88%; margin-bottom: 38px; }
  h1 { font-size: clamp(22px, 5.1vw, 28px); line-height: 1.5; letter-spacing: -0.055em; }
  .desktop-break { display: none; }
  .description { max-width: 370px; margin-top: 23px; font-size: 12px; line-height: 1.9; }
  .contact { margin-top: 31px; }
  .email { font-size: 12px; }
  .collaboration { max-width: 290px; margin: 14px auto 0; font-size: 10px; }
}

@media (max-height: 520px) and (min-width: 601px) {
  .landing { padding-top: 30px; padding-bottom: 30px; }
  .brand { width: 290px; margin-bottom: 23px; }
  h1 { font-size: 25px; }
  .description { margin-top: 16px; }
  .contact { margin-top: 17px; }
  .collaboration { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand, h1, .description, .contact { animation: none; }
  .email, .email-arrow { transition: none; }
  .email:hover .email-arrow { transform: none; }
}
