/* Infolex digital card: mobile-first, no frameworks. */
:root {
  --bg: #F1EEE8;
  --ink: #1E1630;
  --muted: #5B5470;
  --brand: #4C3377;
  --brand-soft: #8960A9;
  --line: rgba(76, 51, 119, 0.18);
  --radius: 14px;
}

*, *::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: 2.25rem;
}

.wordmark {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

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

.role {
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  font-weight: 700;
}

.org {
  margin: 0.125rem 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.25rem;
  padding: 0 1rem;
  border: 1.5px solid var(--brand);
  border-radius: var(--radius);
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover { background: rgba(76, 51, 119, 0.08); }

.btn-primary {
  grid-column: 1 / -1;
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover { background: #3d2961; }

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: 0.95rem 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; }

.foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}

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

.foot p { margin: 0; }

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

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