*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, p { margin: 0; }
img, svg { display: block; }
a { color: var(--ink); }
a:hover { color: var(--ink-hover); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 12px;
}

/* The phone-width column every page is drawn inside. Height is min- rather
   than fixed so a taller viewport doesn't clip and a shorter one scrolls. */
.frame {
  width: 100%;
  max-width: var(--frame);
  min-height: 100svh;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

/* Shared blocks ------------------------------------------------------- */

.hero {
  width: min(340px, 87vw);
  height: auto;
  aspect-ratio: 1;
  flex-shrink: 0;
  object-fit: cover;
}

.name {
  font-size: clamp(32px, 10vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.role {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-pill);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
