/* Felix Larsen — one-pager.
   Dark by default; the dot portrait is the only thing on the page that moves. */

:root {
  --bg: #0b0c0e;
  --fg: #e8e9eb;
  --fg-bright: #ffffff;
  --muted: #9a9ea6;
  --body: #b8bcc4;
  --rule: #3a3e45;
  --select: #2a2d33;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--select); }

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

a:hover { color: var(--fg-bright); border-color: var(--fg); }

a:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
  border-radius: 1px;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  box-sizing: border-box;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 640px;
  width: 100%;
}

/* The canvas is square and sized in CSS; portrait.js reads clientWidth and
   matches the backing store to it at up to 2x DPR. `pan-y` keeps the page
   scrollable on touch while still delivering pointermove for the repulsion. */
.portrait {
  width: min(85vw, 580px);
  aspect-ratio: 1 / 1;
  display: block;
  touch-action: pan-y;
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.identity h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.tagline {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.bio {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--body);
  text-align: center;
  max-width: 520px;
  text-wrap: pretty;
}

/* elbspace has no public URL yet — styled as emphasis, not as a dead link.
   Swap the <span class="unlinked"> in index.html for an <a> when it launches. */
.unlinked { color: var(--fg); }

.links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  margin-top: 16px;
}

@media (max-width: 420px) {
  .page { padding: 48px 20px; }
  .stack { gap: 32px; }
  .identity h1 { font-size: 24px; }
  .links { gap: 20px; }
}
