/* Home page: business card over a low-poly mountain scene */
:root {
  --ink: #1a1a1a;
  --muted: #56606a;
  --line: rgba(40, 60, 80, .18);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color: var(--ink); }
html { background: #dce7ef; }
body {
  background: linear-gradient(to bottom, #7fb0d8 0%, #a5c8e3 40%, #c9dcea 75%, #dce7ef 100%) fixed;
}
.camp {
  position: fixed; right: 0; bottom: 0;
  width: min(46vw, 680px); height: auto;
  z-index: 0; pointer-events: none;
}
.clouds {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  z-index: 0; pointer-events: none;
}
.cloud { animation: drift 60s ease-in-out infinite alternate; }
.cloud:nth-child(2n) { animation-duration: 80s; animation-direction: alternate-reverse; }
.cloud:nth-child(3n) { animation-duration: 95s; }
@keyframes drift {
  from { transform: translateX(-40px); }
  to { transform: translateX(40px); }
}
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.6s ease-in-out infinite; }
.flame.inner { animation-duration: 1.1s; animation-delay: -.4s; }
@keyframes flicker {
  0%, 100% { transform: scale(1, 1); }
  30% { transform: scale(.92, 1.08) skewX(-3deg); }
  60% { transform: scale(1.05, .94) skewX(2deg); }
}
.smoke { animation: rise 6s linear infinite; opacity: 0; }
.smoke.s2 { animation-delay: -3s; }
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: .35; }
  100% { transform: translate(-14px, -70px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .flame, .smoke, .cloud { animation: none; }
}
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
canvas {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  z-index: 0; pointer-events: none;
}
main {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 520px;
  padding: 64px 24px;
  margin: 0 7vw 0 auto;
}
/* touch drags move the light, so the page must not pan or zoom under the finger */
body { touch-action: none; }
@media (max-width: 800px) {
  /* one screen on phones: text at the top, the scene below, nothing to scroll */
  html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  main { min-height: 0; height: 100vh; height: 100dvh; margin: 0 auto; padding: 40px 24px 0; justify-content: flex-start; }
  .camp { width: 70vw; }
}
h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.role {
  margin: 14px 0 0;
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--muted);
}
.role strong { font-weight: 400; color: var(--ink); }
.bio {
  margin: 28px 0 0;
  max-width: 46ch;
  line-height: 1.6;
  color: var(--muted);
}
ul.links {
  list-style: none;
  margin: 36px 0 0; padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 28px;
}
.links a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.links a:hover, .links a:focus-visible { border-bottom-color: currentColor; }
.links svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.links .label { color: var(--muted); }
