@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0a0a0a;
  --surface: #171717;
  --surface-2: #1f1f1f;
  --line: rgba(255, 255, 255, 0.10);
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --accent: #7c5cff;
  --accent-ink: #ffffff;
  --gap: 14px;
  --cover-h: 175px;      /* cover height on a phone (per page setting) */
  --avatar: 112px;
  --avatar-overlap: 64px; /* how far the round avatar sits over the bottom of the cover */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px calc(48px + env(safe-area-inset-bottom));
}
.page:not(.page--cover) { padding-top: calc(48px + env(safe-area-inset-top)); }

/* hero image, full bleed on small screens */
.hero {
  position: relative;
  margin: 0 -20px;
  height: var(--cover-h);
  overflow: hidden;
  background: var(--surface);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__fade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0) 60%, rgba(10,10,10,0.8) 88%, var(--bg) 100%);
}

/* Desktop: the page stays a phone-width column; the backdrop (per-page setting) fills the rest.
   Phones never see it. */
.backdrop { display: none; }
@media (min-width: 560px) {
  .backdrop {
    display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg);
  }
  .backdrop__img {
    position: absolute; top: -80px; left: -80px; width: calc(100% + 160px); height: calc(100% + 160px);
    object-fit: cover; filter: blur(44px) brightness(0.36) saturate(1.15);
  }
  .page { background: var(--bg); min-height: 100vh; box-shadow: 0 0 90px rgba(0, 0, 0, 0.55); }
  .page:not(.page--cover) { padding-top: 48px; }
}

.profile { text-align: center; }
.avatar {
  width: var(--avatar); height: var(--avatar);
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar--over { margin-top: calc(-1 * var(--avatar-overlap)); position: relative; z-index: 1; }
.name {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.bio {
  margin: 10px auto 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 15px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.links { display: flex; flex-direction: column; gap: var(--gap); margin-top: 32px; }
.btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 14px 22px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); background: var(--surface-2); }
.btn:active { transform: scale(0.985); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn__icon { flex: 0 0 auto; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.btn__icon:empty { display: none; }
.btn__label { flex: 1 1 auto; text-align: center; overflow-wrap: anywhere; }
.btn__icon:not(:empty) + .btn__label { padding-right: 26px; } /* keep label optically centred */
.btn__chev { display: none; }

.links[data-shape="rounded"] .btn { border-radius: 18px; }
.links[data-shape="square"] .btn { border-radius: 4px; }

.links[data-style="solid"] .btn { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.links[data-style="solid"] .btn:hover { background: var(--accent); filter: brightness(1.08); }
.links[data-style="solid"] .btn__icon { color: var(--accent-ink); }
.links[data-style="outline"] .btn { background: transparent; border: 2px solid var(--accent); }
.links[data-style="outline"] .btn:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
