/* MyCard — carte de visite networking (vCard ⇄ LinkedIn).
   Tokens lifted from the Rinaldo.dev design system; values inlined on purpose
   (no Web Awesome / framework). */

:root {
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-brand: 'Jost', var(--font-body);

  --bg: #000000;
  --text-1: #f4f4f5;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.42);
  --accent: #3aa7b4;              /* petrol on black */
  --accent-ink: #137fab;          /* petrol on white */

  --card-bg: #ffffff;
  --card-radius: 22px;
  --card-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
  --qr-size: 168px;

  --ease-emphasis: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  color: var(--text-1);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Carousel ──────────────────────────────────────────────────────────── */
.viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.viewport.dragging { cursor: grabbing; }

.track {
  display: flex;
  height: 100%;
  width: 100%;
  will-change: transform;
}

.screen {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Safe areas so content clears the status bar / gesture bar in standalone. */
  padding:
    calc(env(safe-area-inset-top, 0px) + 48px)
    28px
    calc(env(safe-area-inset-bottom, 0px) + 32px);
}

.screen__inner {
  width: 100%;
  max-width: 320px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.eyebrow {
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.name {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 23px;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--text-1);
  white-space: nowrap;
}

.wordmark {
  margin-top: 6px;
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--text-2);
}
.wordmark__dot { color: var(--accent); }

.spacer { flex: 1; }

/* ── QR card ───────────────────────────────────────────────────────────── */
.qr-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 16px;
  box-shadow: var(--card-shadow);
}
.qr-card .qr {
  display: block;
  width: var(--qr-size);
  height: var(--qr-size);
}

/* ── Contact block ─────────────────────────────────────────────────────── */
.contact {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact--vcard { gap: 13px; }
.contact--linkedin { gap: 8px; }

.contact__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--text-1);
}
.contact__row .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--accent);
}
.contact__row--linkedin .icon { width: 21px; height: 21px; }

.contact__text {
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
}
.contact__text--num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.contact__hint {
  margin-top: 2px;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-3);
}
.contact--linkedin .contact__hint { margin-top: 0; }

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