/* Infolex digital card: mobile-first, white background, no frameworks. */
:root {
  --bg: #FFFFFF;
  --ink: #1E1630;
  --muted: #5B5470;
  --brand: #4C3377;
  --brand-dark: #3D2961;
  --brand-soft: #8960A9;
  --tint: #F6F2FA;
  --line: #E7E1EF;
  --radius: 16px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 28rem;
  padding: 2rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.wordmark {
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  color: var(--brand);
}

.identity h1 {
  margin: 0;
  font-size: clamp(2.25rem, 10vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.role {
  margin: 0.75rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand);
}

.org {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: #EDE5F5; border-color: var(--brand-soft); }

.btn-primary {
  grid-column: 1 / -1;
  min-height: 3.75rem;
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  font-size: 1.0625rem;
}

.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.btn-wide { grid-column: 1 / -1; }

a:focus-visible {
  outline: 3px solid var(--brand-soft);
  outline-offset: 3px;
}

.details {
  margin: 0;
  border-top: 1px solid var(--line);
}

.details div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; text-align: right; }
.details a { color: var(--ink); text-decoration: none; }
.details a:hover { text-decoration: underline; }

.share {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--muted);
  font-size: 0.9375rem;
}

.share img {
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  flex: none;
}

.share p { margin: 0; }

@media (min-width: 30rem) {
  body { align-items: center; }
  .card { padding: 3rem 2.5rem; }
}

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