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

/* ─── Base ──────────────────────────────────────────────────────── */
html { font-size: 16px; }

body {
  background: rgb(251, 247, 236);
  color: #1f2937;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ─── Layout ────────────────────────────────────────────────────── */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgb(251, 247, 236);
  padding: 40px 32px 80px;
  width: 100%;
  margin-top: 80px;
}

.inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 672px; /* max-w-2xl */
}

.content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-height: 80vh;
}

/* ─── Lines ─────────────────────────────────────────────────────── */
.line {
  display: inline-flex;
  position: relative;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  color: #1f2937;
}

/* On wider screens, lines go horizontal */
@media (min-width: 640px) {
  .line {
    flex-direction: row;
    align-items: center;
  }
}

.line strong {
  font-weight: 300; /* stays light like the rest */
}

.mt-large { margin-top: 32px; }

/* ─── Avatar placeholder ────────────────────────────────────────── */
.avatar-placeholder {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  flex-shrink: 0;
}

/* ─── Icon stack (fan-out on hover) ─────────────────────────────── */
.icon-stack {
  display: inline-flex;
  position: relative;
  gap: 0;
}

/* Default state: icons overlap and tilt */
.icon-stack .icon-link:nth-child(1) { transform: rotate(-6deg) translateX(6px);  z-index: 10; }
.icon-stack .icon-link:nth-child(2) { transform: rotate( 3deg) translateX(0);    z-index: 20; }
.icon-stack .icon-link:nth-child(3) { transform: rotate(-6deg) translateX(-12px); z-index: 30; }
.icon-stack .icon-link:nth-child(4) { transform: rotate( 6deg) translateX(-20px); z-index: 40; }

/* Fan out on parent hover */
.icon-stack:hover .icon-link:nth-child(1) { transform: rotate(0deg) translateX(0);  }
.icon-stack:hover .icon-link:nth-child(2) { transform: rotate(0deg) translateX(8px); }
.icon-stack:hover .icon-link:nth-child(3) { transform: rotate(0deg) translateX(16px); }
.icon-stack:hover .icon-link:nth-child(4) { transform: rotate(0deg) translateX(24px); }

/* ─── Individual icon links ─────────────────────────────────────── */
.icon-link {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* Solo icon (YouTube, studio) */
.icon-link.solo {
  transform: rotate(6deg);
}
.icon-link.solo:hover {
  transform: rotate(0deg);
}

/* ─── Icon box (colored placeholder square) ─────────────────────── */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  flex-shrink: 0;
  user-select: none;
}

/* ─── Tooltip ───────────────────────────────────────────────────── */
.icon-link[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 100;
}

.icon-link[data-tip]:hover::after {
  opacity: 1;
}

/* Hide tooltips on mobile */
@media (max-width: 639px) {
  .icon-link[data-tip]::after { display: none; }
}

/* ─── Studio logo pill ──────────────────────────────────────────── */
.studio-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  font-size: 15px;
  font-weight: 400;
  color: #1f2937;
  background: #fff;
  white-space: nowrap;
  transition: box-shadow 0.2s ease;
}

.studio-link:hover .studio-logo {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ─── Text links ────────────────────────────────────────────────── */
.text-link {
  color: #2563eb;
  transition: color 0.15s ease;
}
.text-link:hover {
  color: #7c3aed;
}

/* ─── Divider ───────────────────────────────────────────────────── */
.divider {
  width: 100%;
  border-top: 1px dotted #d1d5db;
  margin: 16px 0;
}

/* ─── Footer lines ──────────────────────────────────────────────── */
.footer-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 18px;
  margin-top: auto;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .page { margin-top: 0; padding: 40px 20px 60px; }
  body { font-size: 20px; }
  .footer-lines { font-size: 16px; }

  /* On mobile, icons sit side by side without overlap */
  .icon-stack { gap: 8px; }
  .icon-stack .icon-link:nth-child(1),
  .icon-stack .icon-link:nth-child(2),
  .icon-stack .icon-link:nth-child(3),
  .icon-stack .icon-link:nth-child(4) {
    transform: none;
  }
}
