@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

/* ── Variables ─────────────────────────────── */
:root {
  --accent:      #ff6600;
  --text:        #e8e8e8;
  --text-muted:  #aaa;
  --surface:     #252525;
  --tooltip-bg:  #333;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --ease: 150ms ease;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Body ──────────────────────────────────── */
body {
  font-family: var(--font);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* ── Card ──────────────────────────────────── */
.card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  max-width: 700px;
  width: 100%;
}

/* ── Info (left column) ────────────────────── */
.card__info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ── Name + tagline ────────────────────────── */
.name {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.name em {
  color: var(--accent);
  font-style: normal;
}

.tagline {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Social links ──────────────────────────── */
.links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  list-style: none;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--ease), transform var(--ease);
}

.link:hover {
  color: var(--accent);
  transform: scale(1.18);
}

.link svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
  display: block;
}

/* ── Tooltip ───────────────────────────────── */
.link::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--tooltip-bg);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}

/* Tooltip caret */
.link::before {
  content: '';
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: var(--tooltip-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}

.link:hover::after,
.link:hover::before {
  opacity: 1;
}

/* ── Photo (right column) ──────────────────── */
.card__photo {
  flex-shrink: 0;
}

.photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
  display: block;
}

/* Placeholder shown when no photo is available */
.photo--placeholder {
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  user-select: none;
}

/* ── Mobile ─────────────────────────────────── */
@media (max-width: 520px) {
  .card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .card__photo {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .links {
    justify-content: center;
  }
}
